Skip to content

Releases: anomalyco/sst

v0.60.4

20 Jan 18:38

Choose a tag to compare

πŸ› Bug Fix

  • #1284 Fixes issue on windows with runtime environment(@thdxr)
  • #1275 Cli: fix cdk bootstrap version mismatch (@fwang)

πŸ“ Documentation


Update using:

$ npx sst update 0.60.4
$ yarn sst update 0.60.4

v0.60.2

18 Jan 15:19

Choose a tag to compare

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

  • #1272 Cli: fix stacks with custom stack name fail to deploy (@fwang)

Update using:

$ npx sst update 0.60.2
$ yarn sst update 0.60.2

v0.59.4

17 Jan 14:44

Choose a tag to compare

πŸš€ Enhancement

  • #1266 Permissions: support Kinesis Firehose Delivery Stream (@fwang)
  • #1138 added external custom domain support to Api construct (@Manitej66)

Update using:

$ npx sst update 0.59.4
$ yarn sst update 0.59.4

v0.59.1

14 Jan 08:17

Choose a tag to compare

πŸ› Bug Fix

  • #1263 Cli: fix accounts not automatically bootstrapped (@fwang)

Update using:

$ npx sst update 0.59.1
$ yarn sst update 0.59.1

v0.59.0

14 Jan 03:18

Choose a tag to compare

πŸ’₯ 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

  1. Run npx sst update 0.59.1

  2. Open up your package.json and update CDK dependencies to v2.

    1. If you have @aws-cdk/core as a dependency, rename it to aws-cdk-lib.
    2. If you have @aws-cdk/assert as a dependency, remove it from your package.json.
    3. If you have one or more @aws-cdk/aws-XXXX dependencies, and if they are on the experimental package list below, rename them to @aws-cdk/aws-XXXX-alpha. For example, rename @aws-cdk/api-gatewayv2 to @aws-cdk/api-gatewayv2-alpha.
    4. If you have one or more @aws-cdk/aws-XXXX dependencies, and if they are not on the experimental package list below, remove them from your package.json.
  3. Update the import in your CDK code to use v2 dependencies.

    1. If you import @aws-cdk/core, rename import * as cdk from "@aws-cdk/core" to import * as cdk from "aws-cdk-lib".
    2. If you import @aws-cdk/assert, rename import * as assert from "@aws-cdk/assert" to import * as assert from "aws-cdk-lib/assertions". Read more about using assertions here.
    3. If you import @aws-cdk/aws-XXXX, and if they are on the experimental package list below, rename import * as XXXX from "@aws-cdk/aws-XXXX" to import * as XXXX from "@aws-cdk/aws-XXXX-alpha". For example, rename import * as apig from "@aws-cdk/aws-apigatewayv2" to import * as apig from "@aws-cdk/aws-apigatewayv2-alpha".
    4. If you have one or more @aws-cdk/aws-XXXX dependencies, and if they are not on the experimental package list below, rename import * as XXXX from "@aws-cdk/aws-XXXX" to import * as XXXX from "aws-cdk-lib/aws-XXXX". For example, rename import * as sns from "@aws-cdk/aws-sns" to import * as sns from "aws-cdk-lib/aws-sns".
  4. Run npx sst update 0.59.1 one more time.

  5. Run npx sst diff to 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 affects AWS::Lambda::Function resources' Code properties.

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

  • #1252 Do not do anything special for Go directory handlers (@thdxr)

v0.58.0

13 Jan 07:44

Choose a tag to compare

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 disable

If you have any questions or concerns, feel free to contact us.

πŸš€ Enhancement

  • #1236 Cli: Add anonymous telemetry collection (@fwang)

πŸ“ Documentation

Contributors


Update using:

$ npx sst update 0.58.0
$ yarn sst update 0.58.0

v0.57.4

10 Jan 20:30

Choose a tag to compare

πŸ› Bug Fix


Update using:

$ npx sst update 0.57.4
$ yarn sst update 0.57.4

v0.57.2

07 Jan 16:58

Choose a tag to compare

πŸ› Bug Fix


Update using:

$ npx sst update 0.57.2
$ yarn sst update 0.57.2

v0.57.0

07 Jan 08:27

Choose a tag to compare

πŸ’₯ 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"],
})

More info

πŸš€ 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

Contributors


Update using:

$ npx sst update 0.57.0
$ yarn sst update 0.57.0

v0.56.2

03 Jan 23:26

Choose a tag to compare

πŸ› Bug Fix

  • #1219 Emit external source maps when bundling for prod (@thdxr)
  • #1211 fix: invocation response ERROR src property must be a valid json object (@Manitej66)

Update using:

$ npx sst update 0.56.2
$ yarn sst update 0.56.2