Skip to content

Releases: anomalyco/sst

v0.63.0

10 Feb 23:04

Choose a tag to compare

Major changes to NextjsSite

The NextjsSite construct uses the @sls-next/lambda-at-edge package from the serverless-next.js project to build and package your Next.js app to a structure that can be deployed to Lambda@Edge and CloudFront.

Prior to this release, SST used to include the @sls-next/lambda-at-edge package as a dependency. It caused two problems:

  1. You cannot use a different version of @sls-next/lambda-at-edge
  2. @sls-next/lambda-at-edge is installed even if you are not using the NextjsSite construct

Starting with this release, you are responsible for installing @sls-next/lambda-at-edge as a dependency in your SST app to use the NextjsSite construct.

What do I need to do

npm install -s @sls-next/lambda-at-edge
// or
yarn add @sls-next/lambda-at-edge

That's it! This should be a seamless transition for most people without any code changes. However, if you are hardcoding the bucket name, you need to change the name because this release will replace the bucket, and CloudFormation cannot replace it with the same name. For example, change this:

new NextjsSite(this, "Site", {
  path: "path/to/src",
  s3Bucket: {
    bucketName: "my-bucket",
  },
});

to

new NextjsSite(this, "Site", {
  path: "path/to/src",
  s3Bucket: {
    bucketName: "my-new-bucket",
  },
});

Update using:

$ npx sst update 0.63.0
$ yarn sst update 0.63.0

v0.62.0

10 Feb 01:08

Choose a tag to compare

πŸ†• SST Console / Cognito

This update features a brand new tab in the SST Console. It allows you to explore user pools in your app and create new users or delete existing users.

screen_shot_2022-02-09_at_7 54 11_pm


Update using:

$ npx sst update 0.62.0
$ yarn sst update 0.62.0

v0.61.3

09 Feb 02:05

Choose a tag to compare

Major changes to StaticSite

We made some changes to the StaticSite, ReactStaticSite, and ViteStaticSite constructs to speed up the deployment time.

Prior to this release, on each deployment, the site is deployed to a new folder inside the S3 bucket, and the CloudFront distribution is updated to point to the new folder. This process can sometimes take more than 5 mins. On rare occasions, this process can also causes intermittent downtime for low traffic sites. Starting with this release, the site is deployed to the root of the S3 bucket. And each subsequent deployment overwrites the files of the previous deployment.

Who is affected

This should be a seamless transition for most people without any code changes. However, if you are hardcoding the bucket name, you need to change the name because this release will replace the bucket, and CloudFormation cannot replace it with the same name. For example, change this:

new StaticSite(this, "Site", {
Β Β path: "path/to/src",
Β Β s3Bucket: {
Β Β Β Β bucketName: "my-bucket",
Β Β },
});

to

new StaticSite(this, "Site", {
Β Β path: "path/to/src",
Β Β s3Bucket: {
Β Β Β Β bucketName: "my-new-bucket",
Β Β },
});

This affects the StaticSite, ReactStaticSite, and ViteStaticSite constructs.

πŸš€ Enhancement


Update using:

$ npx sst update 0.61.3
$ yarn sst update 0.61.3

v0.61.2

08 Feb 05:04

Choose a tag to compare

πŸš€ Enhancement

  • #1343 ViteStaticSite: generate types definition for JS projects (@fwang)
  • #1339 Cli: support AWS credentials with assume role and MFA (@fwang)

Update using:

$ npx sst update 0.61.2
$ yarn sst update 0.61.2

v0.61.1

07 Feb 14:44

Choose a tag to compare

πŸš€ Enhancement

  • #1335 Api: access log retention takes RetentionDays format (@fwang)

πŸ› Bug Fix

Committers:


Update using:

$ npx sst update 0.61.1
$ yarn sst update 0.61.1

v0.61.0

02 Feb 20:44

Choose a tag to compare

πŸ“£ New Console Command

This release has a new sst console command that can point the console at different environments outside of your local (sst start). This allows you to look at CloudWatch logs and manage your app in production.

Learn more about it here: https://docs.serverless-stack.com/packages/cli#console

npx sst console --stage=production

πŸš€ Enhancement

  • #1322 Add console command + cloudwatch logs (@thdxr)
  • #1326 Function: show helpful error message when esbuild plugin is not found (@fwang)
  • #1324 Support GraphQL formatPayload callback (@thdxr)

Update using:

$ npx sst update 0.61.0
$ yarn sst update 0.61.0

v0.60.11

01 Feb 02:52

Choose a tag to compare

πŸš€ Enhancement

πŸ› Bug Fix

  • #1319 Fix for esbuild native import issue when using ESM (@thdxr)

πŸ“ Documentation


Update using:

$ npx sst update 0.60.11
$ yarn sst update 0.60.11

v0.60.9

31 Jan 06:49

Choose a tag to compare

πŸš€ Enhancement

πŸ› Bug Fix

  • #1316 Cli: fix build error when folder path contain spaces (@fwang)

Contributors


Update using:

$ npx sst update 0.60.9
$ yarn sst update 0.60.9

v0.60.8

28 Jan 22:10

Choose a tag to compare

πŸš€ Enhancement

  • #1311 Cli: hide exports from outputs created by CDK (@fwang)

    If this error seems familiar to you, we added automatic early detection for this issue.

     ❌  dev-stackA failed: Export dev-stackA:ExportsOutputRefTableArn30B25837ED330C0 cannot be deleted as it is in use by dev-stackB

    SST will temporarily add the exports that are still in use. Read more about how it works.

  • #1310 Cli: detect exports still in use and temporarily add to template (@fwang)

  • #1295 Add RDS construct (@fwang)

  • #1288 Add ViteStaticSite construct (@fwang)

πŸ› Bug Fix

  • #1313 Cli: stage prompt causes cli to not quit cleanly (@fwang)

πŸ“ Documentation


Update using:

$ npx sst update 0.60.8
$ yarn sst update 0.60.8

v0.60.6

26 Jan 20:40

Choose a tag to compare

πŸš€ Enhancement

πŸ› Bug Fix

  • #1308 Cli: fix stack changes not redeployed in sst start (@fwang)
  • #1302 NextjsSite: fix placeholder lambda functions (@fwang)
  • #1301 Cli: disable xray tracing for local invocation (@fwang)
  • #1298 Set aws-cdk-lib as external when transpiling CDK code (@fwang)

πŸ“ Documentation


Update using:

$ npx sst update 0.60.6
$ yarn sst update 0.60.6