Skip to content

aws-cdk-blocks@1.0.0

Choose a tag to compare

@pranavosu pranavosu released this 20 Nov 22:21
· 4 commits to main since this release
92cf8fb

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() and getPendingInterrupts(), and scope getChannel() to the caller.
  • c4e4e67: Scope inferenceOnly sessions to the user by default.
  • 5f55dac: A web frontend served from another origin than its API can sign in with a federated provider.
  • 5f55dac: Auth can 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 the AuthErrorName type and the isAuthError() and isAuthErrorName() guards.
  • 5f55dac: AuthBasic, AuthCognito and AuthOIDC are removed.
  • c95d7c7: Auth lets 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: Auth options: a block-level store and one providers map.
  • 5f55dac: Accept a Secret as a provider client secret.
  • 5f55dac: Auth can send its user pool's email through your own Amazon SES identity, with the email option.
  • 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, getAuthStateSnapshot and a shared auth-state store behind submitAuthAction. 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 from aws-cdk-blocks.
  • 7c1eec5: An app that deployed a SQL block of an earlier release keeps its database.
  • c67048e: Database is the only SQL block. @aws-blocks/bb-data and @aws-blocks/bb-distributed-data are removed. See "Upgrade from @aws-blocks/bb-data" in the bb-database README.
  • 7c23ab9: Upload URLs carry signed constraints, download disposition is opt-in, key validation is stricter, and invalid input returns 400.
  • 684e22d: npm run dev starts 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 json gives 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 of aws-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 container compute.
  • 5f55dac: Opt in to HTTP error statuses for an API namespace.
  • 4665f81: defaults.appIdentity gives 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, run cdk cli-telemetry --disable or set CDK_DISABLE_CLI_TELEMETRY=1.
  • 2c9005f: Reject malformed native declarations instead of dropping them.
  • 44c7377: defaults.strictNamespacePlacement serves each API namespace only on the compute it is placed on.
  • 227a856: withAuth(fn, cookies, { allowAnonymous: true }) runs fn signed out when no cookies are found, instead of throwing a 401.
  • afad513: A plain allowedOrigins entry such as https://app.example.com now matches exactly, ignoring case.
  • 5f55dac: New apps now use the unified Auth block.
  • 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's tools callback.
  • 6d3077e: KVStore is the only key-value block: DistributedTable is folded in. A store of release 0.4.0 or earlier needs LegacyKVStore. See "Upgrade from release 0.4.0 or earlier" in the bb-kv-store README.
  • e1e4844: Tasks run as package scripts (npm run dev, npm run deploy and the others) instead of the cdk-blocks executable. Run npm run migrate to update an older app.
  • 2095f31: ctx.request.url.pathname no 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 telemetry app task is gone.
  • 58817b0: Service-principal trust policies get aws:SourceAccount and aws:SourceArn conditions, 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.