Skip to content

Update Node.js runtime to 22.x #219

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed

Conversation

mikey-
Copy link

@mikey- mikey- commented May 5, 2025

Issue #, if available: 216 (#216)

Description of changes:

A few changes here, all related to updating the default Node.js runtime from 18.x to 22.x

  1. The default Node.js runtime was updated by first updating CDK to 2.168.0, which I believe is the earliest version in which lambda.Runtime.NODEJS_22_X exists; and then updating the value of LAMBDA_RUNTIME_NODE, from lambda.Runtime.NODEJS_18_X to lambda.Runtime.NODEJS_22_X.
  2. To keep the CDK version consistent across this codebase, I updated it across all packages.
  3. Updated deployment templates CompatibleRuntimes to nodejs22.x
  4. Updated the @types/node to ^22.15.0, to match the Node.js LTS version
  5. Updated tests to ensure runtime version is nodejs22.x
  6. re-generated package-lock.json files for each package

I have run deployment/run-unit-tests.sh and ensured all tests are passing

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

@abewub abewub mentioned this pull request May 19, 2025
@abewub
Copy link
Member

abewub commented May 21, 2025

Thanks for the contribution, the changes are now merged in the PR

@abewub abewub closed this May 21, 2025
@mikey-
Copy link
Author

mikey- commented May 26, 2025

You're very welcome, thanks for providing this great tool :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants