From 64abb797546ff3af08d6489a3860cc88c604dae1 Mon Sep 17 00:00:00 2001 From: Andrei Borza Date: Fri, 7 Aug 2026 16:15:20 +0200 Subject: [PATCH 1/3] chore(aws-serverless)!: Drop `nodejs18.x` from the Lambda layer runtimes Co-Authored-By: Claude Opus 5 --- .craft.yml | 1 - .../test-applications/aws-serverless-layer/src/stack.ts | 2 +- scripts/aws-deploy-local-layer.sh | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.craft.yml b/.craft.yml index 3c4676cbf4ac..35e3968c7a8f 100644 --- a/.craft.yml +++ b/.craft.yml @@ -159,7 +159,6 @@ targets: compatibleRuntimes: - name: node versions: - - nodejs18.x - nodejs20.x - nodejs22.x - nodejs24.x diff --git a/dev-packages/e2e-tests/test-applications/aws-serverless-layer/src/stack.ts b/dev-packages/e2e-tests/test-applications/aws-serverless-layer/src/stack.ts index 7171e66872c0..b2873a2d1cba 100644 --- a/dev-packages/e2e-tests/test-applications/aws-serverless-layer/src/stack.ts +++ b/dev-packages/e2e-tests/test-applications/aws-serverless-layer/src/stack.ts @@ -39,7 +39,7 @@ export class LocalLambdaStack extends Stack { type: 'AWS::Serverless::LayerVersion', properties: { ContentUri: path.join(LAYER_DIR, layerZipFile), - CompatibleRuntimes: ['nodejs18.x', 'nodejs20.x', 'nodejs22.x'], + CompatibleRuntimes: ['nodejs20.x', 'nodejs22.x'], CompatibleArchitectures: [samLambdaArchitecture()], }, }); diff --git a/scripts/aws-deploy-local-layer.sh b/scripts/aws-deploy-local-layer.sh index 67af94b1838a..463f54867827 100755 --- a/scripts/aws-deploy-local-layer.sh +++ b/scripts/aws-deploy-local-layer.sh @@ -32,7 +32,7 @@ aws lambda publish-layer-version \ --region "eu-central-1" \ --zip-file "fileb://build/aws/dist-serverless/$ZIP" \ --description "Local test build of SentryNodeServerlessSDK (can be deleted)" \ - --compatible-runtimes nodejs10.x nodejs12.x nodejs14.x nodejs16.x nodejs18.x + --compatible-runtimes nodejs20.x nodejs22.x nodejs24.x echo "Done deploying zipped Lambda layer to AWS as 'SentryNodeServerlessSDK-local-dev'." From 2202bdbc122810687043e62174ded82614b71e99 Mon Sep 17 00:00:00 2001 From: Andrei Borza Date: Fri, 7 Aug 2026 16:19:14 +0200 Subject: [PATCH 2/3] Match the shipped layer runtimes in the E2E layer --- .../test-applications/aws-serverless-layer/src/stack.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-packages/e2e-tests/test-applications/aws-serverless-layer/src/stack.ts b/dev-packages/e2e-tests/test-applications/aws-serverless-layer/src/stack.ts index b2873a2d1cba..ed77302ec088 100644 --- a/dev-packages/e2e-tests/test-applications/aws-serverless-layer/src/stack.ts +++ b/dev-packages/e2e-tests/test-applications/aws-serverless-layer/src/stack.ts @@ -39,7 +39,7 @@ export class LocalLambdaStack extends Stack { type: 'AWS::Serverless::LayerVersion', properties: { ContentUri: path.join(LAYER_DIR, layerZipFile), - CompatibleRuntimes: ['nodejs20.x', 'nodejs22.x'], + CompatibleRuntimes: ['nodejs20.x', 'nodejs22.x', 'nodejs24.x'], CompatibleArchitectures: [samLambdaArchitecture()], }, }); From fe1e051e3e786e4ff25d2cbde0b560211ef015ef Mon Sep 17 00:00:00 2001 From: Andrei Borza Date: Fri, 7 Aug 2026 16:24:10 +0200 Subject: [PATCH 3/3] Note the layer runtime compatibility in the migration guide --- MIGRATION.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MIGRATION.md b/MIGRATION.md index 38cbb52f1ebf..96a74e9d56cd 100644 --- a/MIGRATION.md +++ b/MIGRATION.md @@ -66,6 +66,8 @@ The SDK and bundler plugins now use Sentry CLI v3. This is an internal change fo A new AWS Lambda Layer for version 11 will be published as `SentryNodeServerlessSDKv11`. The ARN will be published in the [Sentry docs](https://docs.sentry.io/platforms/javascript/guides/aws-lambda/install/cjs-layer/) once available. +The layer is compatible with the `nodejs20.x`, `nodejs22.x` and `nodejs24.x` runtimes. Functions still on `nodejs18.x` need to move to a newer runtime before upgrading. + Updates and fixes for version 10 will be published as `SentryNodeServerlessSDKv10`. ## 2. Behaviour Changes