Releases: anomalyco/sst
v0.60.4
v0.60.2
ESM Support
There is now a new option bundle.format which can be set to "esm" to generate esm builds. We strongly recommend this and will become the default behavior in the future. It allows for features like top level await which makes things like loading secrets on cold-start a lot smoother.
Some libraries you are using may be written in a way that does not work with ESM at all so you may not be able to use this. We encourage opening issues to push more projects to ship ESM - if they are unable to it's a sign to look for an alternative.
π Enhancement
π Bug Fix
Update using:
$ npx sst update 0.60.2
$ yarn sst update 0.60.2v0.59.4
v0.59.1
v0.59.0
π₯ Breaking Change: Updating to CDK v2
We migrated to CDK v2. Here is how to update your apps.
Estimated time: 15 minutes
Prerequisites
- Update Node.js to v14 or later
- Update SST to v0.57.0 or later
Steps
-
Run
npx sst update 0.59.1 -
Open up your
package.jsonand update CDK dependencies to v2.- If you have
@aws-cdk/coreas a dependency, rename it toaws-cdk-lib. - If you have
@aws-cdk/assertas a dependency, remove it from your package.json. - If you have one or more
@aws-cdk/aws-XXXXdependencies, and if they are on the experimental package list below, rename them to@aws-cdk/aws-XXXX-alpha. For example, rename@aws-cdk/api-gatewayv2to@aws-cdk/api-gatewayv2-alpha. - If you have one or more
@aws-cdk/aws-XXXXdependencies, and if they are not on the experimental package list below, remove them from your package.json.
- If you have
-
Update the
importin your CDK code to use v2 dependencies.- If you import
@aws-cdk/core, renameimport * as cdk from "@aws-cdk/core"toimport * as cdk from "aws-cdk-lib". - If you import
@aws-cdk/assert, renameimport * as assert from "@aws-cdk/assert"toimport * as assert from "aws-cdk-lib/assertions". Read more about using assertions here. - If you import
@aws-cdk/aws-XXXX, and if they are on the experimental package list below, renameimport * as XXXX from "@aws-cdk/aws-XXXX"toimport * as XXXX from "@aws-cdk/aws-XXXX-alpha". For example, renameimport * as apig from "@aws-cdk/aws-apigatewayv2"toimport * as apig from "@aws-cdk/aws-apigatewayv2-alpha". - If you have one or more
@aws-cdk/aws-XXXXdependencies, and if they are not on the experimental package list below, renameimport * as XXXX from "@aws-cdk/aws-XXXX"toimport * as XXXX from "aws-cdk-lib/aws-XXXX". For example, renameimport * as sns from "@aws-cdk/aws-sns"toimport * as sns from "aws-cdk-lib/aws-sns".
- If you import
-
Run
npx sst update 0.59.1one more time. -
Run
npx sst diffto review the changes. If you are updating from SST v0.57.0 or later, the only major change is how CDK v2 handles CloudFormation parameters, which mostly affectsAWS::Lambda::Functionresources'Codeproperties.
Read more about updating to AWS CDK v2 here
Experimental packages
@aws-cdk/aws-amplify
@aws-cdk/aws-apigatewayv2
@aws-cdk/aws-apigatewayv2-authorizers
@aws-cdk/aws-apigatewayv2-integrations
@aws-cdk/aws-apprunner
@aws-cdk/aws-appsync
@aws-cdk/aws-batch
@aws-cdk/aws-cloud9
@aws-cdk/aws-codestar
@aws-cdk/aws-glue
@aws-cdk/aws-iot-actions
@aws-cdk/aws-iot
@aws-cdk/aws-iotevents
@aws-cdk/aws-ivs
@aws-cdk/aws-kinesisanalytics-flink
@aws-cdk/aws-kinesisfirehose
@aws-cdk/aws-kinesisfirehose-destinations
@aws-cdk/aws-lambda-go
@aws-cdk/aws-lambda-python
@aws-cdk/aws-msk
@aws-cdk/aws-neptune
@aws-cdk/aws-redshift
@aws-cdk/aws-route53resolver
@aws-cdk/aws-servicecatalog
@aws-cdk/aws-servicecatalogappregistry
@aws-cdk/aws-synthetics
π Enhancement
π Bug Fix
v0.58.0
In this release we are adding an anonymous telemetry collection program to SST. It's completely optional but it really helps us improve SST. You can read more about this over on our docs.
You can also check out how this is implemented in this PR: #1236. And the source for the service that stores these anonymous events is also open source: https://github.com/serverless-stack/telemetry
You can opt-out of this if you'd not like to share any information.
npx sst telemetry disableIf you have any questions or concerns, feel free to contact us.
π Enhancement
π Documentation
Contributors
- Thomas Gick (@thgick)
Update using:
$ npx sst update 0.58.0
$ yarn sst update 0.58.0v0.57.4
v0.57.2
v0.57.0
π₯ Breaking Change in CDK
If you are using the Api, ApolloApi, or WebSocketApi construct in your app, and if you are configuring JWT or CUSTOM authorizers, there has been a recent change. And here is what you need to change after you update.
If you are using Api or ApolloApi with HttpJwtAuthorizer authorizer
Change this:
new HttpJwtAuthorizer({
jwtAudience: ["UsGRQJJz5sDfPQDs6bhQ9Oc3hNISuVif"],
jwtIssuer: "https://myorg.us.auth0.com",
})to:
new HttpJwtAuthorizer("Authorizer", "https://myorg.us.auth0.com", {
jwtAudience: ["UsGRQJJz5sDfPQDs6bhQ9Oc3hNISuVif"],
})If you are using Api or ApolloApi with HttpUserPoolAuthorizer authorizer
Change this:
new HttpUserPoolAuthorizer({
userPool,
userPoolClients: [userPoolClient],
})to:
new HttpUserPoolAuthorizer("Authorizer", userPool, {
userPoolClients: [userPoolClient],
})If you are using Api or ApolloApi with HttpLambdaAuthorizer authorizer
Change this:
new HttpLambdaAuthorizer({
authorizerName: "LambdaAuthorizer",
handler: new sst.Function(this, "Authorizer", {
handler: "src/authorizer.main",
}),
})to:
const authorizer = new sst.Function(this, "AuthorizerFn", {
handler: "src/authorizer.main",
});
new HttpLambdaAuthorizer("LambdaAuthorizer", authorizer, {
authorizerName: "LambdaAuthorizer",
})If you are using WebSocketApi with HttpLambdaAuthorizer authorizer
Change this:
new HttpLambdaAuthorizer({
authorizerName: "LambdaAuthorizer",
handler: new sst.Function(this, "Authorizer", {
handler: "src/authorizer.main",
}),
})to:
const authorizer = new sst.Function(this, "AuthorizerFn", {
handler: "src/authorizer.main",
});
new WebSocketLambdaAuthorizer("LambdaAuthorizer", authorizer, {
authorizerName: "LambdaAuthorizer",
identitySource: ["route.request.header.Authorization"],
})π Enhancement
- #1242 Update CDK to v1.138.0 (@fwang)
- #1240 Console: Filter out stacks that do not match supported console version (@thdxr)
- #1217 Console: Leave the function request body after an invocation (@Manitej66)
π Bug Fix
- #1238 Console: Page through all cloudformation stacks (@thdxr)
- #1215 Console: Show sign if bucket is empty (@Manitej66)
- #1235 Console: Limit how fast stack metadata is fetched (@thdxr)
- #1231 Console: Do not crop image in preview (@Manitej66)
- #1227 Console: Dark theme doesn't applied to splash (@Manitej66)
- #1214 Console: Initialize ws server after runtime server (@thdxr)
Contributors
- Mischa Spiegelmock (@revmischa)
Update using:
$ npx sst update 0.57.0
$ yarn sst update 0.57.0