Skip to content

chore: drop Node.js 20 support#5218

Open
svozza wants to merge 1 commit intomainfrom
chore/drop-node20
Open

chore: drop Node.js 20 support#5218
svozza wants to merge 1 commit intomainfrom
chore/drop-node20

Conversation

@svozza
Copy link
Copy Markdown
Contributor

@svozza svozza commented Apr 30, 2026

Summary

AWS Lambda marks the nodejs20.x runtime as deprecated on 2026-04-30 and will block new-function creation from 2026-06-01. This drops Node.js 20 from the supported runtimes so we stop running integration tests against a runtime we can no longer deploy, 4 weeks ahead of the Lambda cut-off. Supported runtimes going forward: nodejs22.x and nodejs24.x; minimum engines.node is now >=22.

Changes

  • Remove 20 from the CI matrix in quality_check.yml, reusable-run-linting-check-and-unit-tests.yml, and run-e2e-tests.yml
  • Bump root package.json engines.node to >=22 and tsconfig.json target to ES2024
  • Remove Runtime.NODEJS_20_X from the layer's compatibleRuntimes, bump the canary runtime to NODEJS_22_X, and update the layer-publisher unit test assertion
  • Drop the nodejs20x entry from TEST_RUNTIMES in packages/testing/src/constants.ts
  • Remove test:e2e:nodejs20x scripts from all package package.json files (layers + 10 packages)
  • Update hardcoded AWS_EXECUTION_ENV / runtime strings to nodejs22.x in test setup (setupEnv.ts, populateEnvironmentVariables.ts, Tracer.test.ts, testingMetadata.ts)
  • Remove the 20.x option from the bug report template and bump the NodeSupport README badge to 22|24
  • Update docs (lambda-layers.md, versioning.md) and the awsSdkUtils.ts JSDoc example
  • Bump Runtime.NODEJS_20_X to NODEJS_22_X in example CDK constructs and the Terraform snippet
  • Remove the now-dead describe.skipIf(getRuntimeKey() === 'nodejs20x') guard in durableIdempotent.test.ts

Issue number: closes #4906


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.

@sonarqubecloud
Copy link
Copy Markdown

@svozza
Copy link
Copy Markdown
Contributor Author

svozza commented Apr 30, 2026

@svozza svozza requested a review from dreamorosi April 30, 2026 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/L PRs between 100-499 LOC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Maintenance: drop support for Node.js 20

1 participant