Upgrade Node.js Runtime from 18 to 22 #382
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR upgrades the entire codebase from Node.js 18 to Node.js 22, ensuring consistency across Lambda functions, build tools, development environments, and CI/CD pipelines.
Changes
Lambda Runtime Updates
NODEJS_22_Xin all CDK constructs:DemoApp(packages/cdk/lib/DemoApp.ts)MicroAppsSvcs(packages/microapps-cdk/src/MicroAppsSvcs.ts)MicroAppsChildDeployer(packages/microapps-cdk/src/MicroAppsChildDeployer.ts)MicroAppsEdgeToOrigin(packages/microapps-cdk/src/MicroAppsEdgeToOrigin.ts)AWS CDK Updates
aws-cdk-libfrom2.117.0to2.168.0:package.jsonpackages/microapps-cdk/package.json(devDependencies and peerDependencies)packages/cdk/package.jsonpackages/microapps-cdk/.projenrc.js(cdkVersion)aws-cdkCLI from^2.117.0to^2.168.0in rootpackage.jsonPackage Configuration
package.jsonfiles:>= 18.0.0→>= 22.0.0@types/nodedependencies:^18.0.0→^22.0.0Build Configuration
node18tonode22:.nvmrcfromv18.17.1tov22.0.0packages/microapps-cdk/.projenrc.js:minNodeVersionfrom'18.0.0'to'22.0.0'CI/CD Updates
.github/actions/configure-nodejs/action.yml: Default Node version18→22.github/workflows/release.yml: Allnode-version: 18→node-version: 22.github/workflows/main-build.yml: Allnode-version: 18→node-version: 22Infrastructure & Documentation
DockerfileSuperchain: Base image fromnode16→node22CONTRIBUTING.md: Node.js version references updatedTesting
Breaking Changes
Developers and CI/CD environments must have Node.js 22 installed to work with this codebase.
Migration Notes
Update local Node.js version:
Reinstall dependencies:
Rebuild the project:
Related