Repository navigation
v4.19.0
·
100 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
A new MicroVm component, streaming for SvelteKit, and fixes for sites with a base path and for accounts that encrypt SSM parameters. Still built on upstream v4.17.2.
⚠️ Before you upgrade
sst/aws/workflownow uses@aws/durable-execution-sdk-js2.6.0, and two errors have new classes. A step that fails insidepromise.allthrowsPromiseCombinatorError, notStepError. A failedwaitForCallbackcallback throwsCallbackExternalError, notChildContextError. Update code that checks for the old classes. (#62, anomalyco/sst#7024)
New
sst.aws.MicroVmand thesst/aws/microvmSDK, for AWS Lambda MicroVMs: isolated, stateful sandboxes with their own HTTPS endpoint. Lambda builds the image from yourDockerfile, and a linked function starts MicroVMs withmicrovm.run()and calls them withfetch(). It supports VPC egress andsst dev, and deletes old image versions. (#58)- For now every MicroVM has 2 GB and no lifecycle hooks, until the AWS provider supports them.
sst removefails while MicroVMs from the image are running. Terminate them first.- A deploy role with limited permissions needs the Lambda MicroVMs actions, including
lambda:ListMicrovms,lambda:ListMicrovmImageVersionsandlambda:DeleteMicrovmImageVersionto delete old versions.
sst.aws.SvelteKitcan stream responses. Turn it on withadapter({ streaming: true })in@sst-community/svelte-kit-sst3.1.0, out with this release. It needs this CLI or later. Update the adapter withnpm install svelte-kit-sst@npm:@sst-community/svelte-kit-sst@3.1.0. (#40, #76, anomalyco/sst#6674)
Fixes
- A site with a base path loads its static files again, instead of getting a 403 from S3. This covers Next.js
basePathand SvelteKit's and Astro'sbase. (#72, anomalyco/sst#6980) - The Router takes a base path off the start of a request path only. A request with the base text in the middle of its path, or
/administratoron a site based at/admin, got the wrong S3 key. (#75) - SST works where a policy encrypts SSM parameters. Before, every command stopped with
invalid character 'A' looking for beginning of value. With a customer managed KMS key, the role needskms:Decrypton it. (#73, anomalyco/sst#6856) - SSR sites stop right away in the 11 regions without Lambda function URLs, instead of failing minutes into the deploy. Auckland is one of them. Spain (
eu-south-2) works again. Sites without a server function aren't affected. (#60)
Examples
- The Astro examples use Astro 7, which needs Node.js 22.12 or later. Those that deploy with the adapter use
@sst-community/astro-sst. (#53, #54, #55, #56, #57)
Also
- The docs site has a logo. The workflow SDK's tests load again (#69). The automatic review asks for a
Closesline when a pull request fixes an SST issue (#71). A release that fails partway can be finished by re-running it.
Install
npm install sst@npm:@sst-community/sst@4.19.0To switch an existing project:
- Check that
node --versionshowsv22or later, wherever you runsst, CI included. - Set its dependency to
"sst": "npm:@sst-community/sst@4.19.0"and reinstall.
For a project that isn't JavaScript, install the CLI globally. It still needs Node.js 22 or later, to run sst.config.ts:
curl -fsSL https://raw.githubusercontent.com/sst-community/sst/main/install | bash