Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

v2.0.0

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 09 Feb 23:00
· 77 commits to master since this release
c47f63a

2.0.0 (2022-02-09)

Bug Fixes

  • register: Remove source-map-support (#86) (c47f63a)

BREAKING CHANGES

skuba-dive/register no longer configures source-map-support for your project. Upgrade to Node.js 14.18+ and use the built-in --enable-source-maps option.

For a containerised application, update your Dockerfile:

- FROM gcr.io/distroless/nodejs:12 AS runtime
+ FROM gcr.io/distroless/nodejs:16 AS runtime

+ # https://nodejs.org/api/cli.html#cli_node_options_options
+ ENV NODE_OPTIONS --enable-source-maps

For a Serverless Lambda application, update your serverless.yml:

provider:
- runtime: nodejs12.x
+ runtime: nodejs14.x

functions:
  Worker:
    environment:
+     # https://nodejs.org/api/cli.html#cli_node_options_options
+     NODE_OPTIONS: --enable-source-maps

For a CDK Lambda application, update your stack:

new aws_lambda.Function(this, 'worker', {
- runtime: aws_lambda.Runtime.NODEJS_12_X,
+ runtime: aws_lambda.Runtime.NODEJS_14_X,
  environment: {
+   // https://nodejs.org/api/cli.html#cli_node_options_options
+   NODE_OPTIONS: '--enable-source-maps',
  },
});

See seek-oss/skuba#761 for more information