Repository navigation
aws-cdk-blocks@1.0.0
·
4 commits
to main
since this release
The first stable release. The changes since 1.0.0-rc.2 are listed below. The full notes for every other change since 0.x are in CHANGELOG.md under 1.0.0-rc.0, 1.0.0-rc.1 and 1.0.0-rc.2.
Changes since @aws-blocks/blocks 0.x
- The package is now
aws-cdk-blocks. Install it in place of@aws-blocks/blocks, and change the import specifiers. - be8864c: Check conversation ownership in
stream(),resume(),getConversation()andgetPendingInterrupts(), and scopegetChannel()to the caller. - c4e4e67: Scope
inferenceOnlysessions to the user by default. - 5f55dac: A web frontend served from another origin than its API can sign in with a federated provider.
- 5f55dac:
Authcan share its user pool with a frontend that signs in directly against Cognito, such as one built with the Amplify client libraries. - 5f55dac: Adds
AuthErrors, the auth error names, with theAuthErrorNametype and theisAuthError()andisAuthErrorName()guards. - 5f55dac:
AuthBasic,AuthCognitoandAuthOIDCare removed. - c95d7c7:
Authlets you keep end users from writing an attribute your app relies on for authorization. - 5f55dac: Show local social and SAML sign-in as unavailable.
- 5f55dac: The local user pool can check authenticator-app (TOTP) codes as Cognito does.
- 5f55dac:
Authoptions: a block-levelstoreand oneprovidersmap. - 5f55dac: Accept a
Secretas a provider client secret. - 5f55dac:
Authcan send its user pool's email through your own Amazon SES identity, with theemailoption. - 5f55dac: Add auth test helpers to
aws-cdk-blocks/utils. - 5f55dac: A signed-in user can set up an authenticator app (TOTP) through
auth.createApi(), with no backend code. - 5f55dac:
subscribeAuthState,getAuthStateSnapshotand a shared auth-state store behindsubmitAuthAction. A sign-in or sign-out reaches every component and tab once. - 5f55dac: Add
Auth(@aws-cdk-blocks/bb-auth), the single authentication Building Block, exported fromaws-cdk-blocks. - 7c1eec5: An app that deployed a SQL block of an earlier release keeps its database.
- c67048e:
Databaseis the only SQL block.@aws-blocks/bb-dataand@aws-blocks/bb-distributed-dataare removed. See "Upgrade from@aws-blocks/bb-data" in thebb-databaseREADME. - 7c23ab9: Upload URLs carry signed constraints, download disposition is opt-in, key validation is stricter, and invalid input returns 400.
- 684e22d:
npm run devstarts the Nuxt and Astro dev servers. - b2eb306: Lifecycle tasks return 0 for success, 1 for failure, 2 for invalid usage and 130 for an interruption.
--output jsongives a structured result. - 792e269: Migration moves recognized generated script wrappers to package tasks and carries generated dev settings into
package.json#blocks.dev. - a34c850: The documentation tasks read the docs shipped with the installed
aws-cdk-blocks, including in hoisted workspaces. - c42ba42: The hidden
.blocks/folder is now.cdk-blocks/, and local data moves from.bb-data/to.cdk-blocks/local/data/. - 703238f: The scaffolded backend folder is
cdk-blocks/instead ofaws-blocks/. - 45a05d1: The per-deploy state directory is now
.cdk-blocks-sandbox/. - 1de6ea4: The reserved URL prefix is now
/cdk-blocks/(/cdk-blocks/api,/cdk-blocks/auth/*and others)./aws-blocks/still works as an alias. - 9ebf67a: An API namespace can run on a
containercompute. - 5f55dac: Opt in to HTTP error statuses for an API namespace.
- 4665f81:
defaults.appIdentitygives each app an identity, so many apps can share one AWS account. - 8894669: Telemetry follows your CDK CLI telemetry setting. The old opt-out (
AWS_BLOCKS_DISABLE_TELEMETRY) is removed. To opt out, runcdk cli-telemetry --disableor setCDK_DISABLE_CLI_TELEMETRY=1. - 2c9005f: Reject malformed native declarations instead of dropping them.
- 44c7377:
defaults.strictNamespacePlacementserves each API namespace only on the compute it is placed on. - 227a856:
withAuth(fn, cookies, { allowAnonymous: true })runsfnsigned out when no cookies are found, instead of throwing a401. - afad513: A plain
allowedOriginsentry such ashttps://app.example.comnow matches exactly, ignoring case. - 5f55dac: New apps now use the unified
Authblock. - 9801a5b: Each deploy stage has its own CDK outputs file.
- 64f7247:
EmailClient.sendBatch()now takes at most 100 messages per call by default. - 93d533a: Add
allowPlainHttp, an explicit opt-out for builders who need a plain-HTTP front door in production. - adb6077: A production synth fails for a front door that would carry sign-in, session cookies or the origin-verify secret over plain HTTP. To keep such a door, set
allowPlainHttp. - fb29c06: Lock the CloudFront door's server origin with a random secret, a regional web ACL and opt-in access logs.
- 40d25ec: Keep credentialed and cookie-setting SSR responses out of the shared edge cache.
- d51b8ee: Add
KnowledgeBase.asAgentTool(), which returns a search tool for an Agent'stoolscallback. - 6d3077e:
KVStoreis the only key-value block:DistributedTableis folded in. A store of release 0.4.0 or earlier needsLegacyKVStore. See "Upgrade from release 0.4.0 or earlier" in thebb-kv-storeREADME. - e1e4844: Tasks run as package scripts (
npm run dev,npm run deployand the others) instead of thecdk-blocksexecutable. Runnpm run migrateto update an older app. - 2095f31:
ctx.request.url.pathnameno longer includes the API Gateway stage when deployed. - 42b84b2: Add
getChannel(namespace, channel, { scope: 'exact' })and validate channel names. - eb60b04: Bind channel handles to the signed-in user, re-check subscriptions on ping, and add
revokeAccess(). - 8894669: The
telemetryapp task is gone. - 58817b0: Service-principal trust policies get
aws:SourceAccountandaws:SourceArnconditions, and the synth checks for them.
Since 1.0.0-rc.2
- 63e571c: Use AWS CDK Blocks consistently in starter apps, CLI messages, package metadata, and documentation. Package imports and commands are unchanged.