Skip to content
This repository was archived by the owner on Apr 5, 2025. It is now read-only.

Commit 35e421a

Browse files
authored
feat(node): add NODEJS_18_X to compatible runtimes (#37)
1 parent 18be8a6 commit 35e421a

6 files changed

+259
-221
lines changed

.projen/deps.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.projenrc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const project = new awscdk.AwsCdkConstructLibrary({
44
authorUrl: 'https://aws.amazon.com',
55
authorOrganization: true,
66
keywords: ['aws', 'cdk', 'powertools', 'python', 'layer', 'lambda', 'devax', 'typescript', 'nodejs'],
7-
cdkVersion: '2.44.0',
7+
cdkVersion: '2.51.1',
88
defaultReleaseBranch: 'main',
99
majorVersion: 3,
1010
name: 'cdk-aws-lambda-powertools-layer',
@@ -22,4 +22,4 @@ const project = new awscdk.AwsCdkConstructLibrary({
2222
copyrightOwner: 'Amazon.com, Inc. or its affiliates. All Rights Reserved.',
2323
});
2424

25-
project.synth();
25+
project.synth();

package.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lambda-powertools-layer.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ function getRuntimesFromRuntimeFamily(runtimeFamily: lambda.RuntimeFamily): lamb
120120
lambda.Runtime.NODEJS_12_X,
121121
lambda.Runtime.NODEJS_14_X,
122122
lambda.Runtime.NODEJS_16_X,
123+
lambda.Runtime.NODEJS_18_X,
123124
];
124125
default:
125126
return [];
@@ -148,4 +149,4 @@ function getDockerPlatformNameFromArchitectures(architectures: lambda.Architectu
148149
// binary code for all architectures
149150
return Architecture.X86_64.dockerPlatform;
150151
}
151-
}
152+
}

test/lambda-powertools-typescript-layer.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ describe('with minimal configuration the construct', () => {
2828
'nodejs12.x',
2929
'nodejs14.x',
3030
'nodejs16.x',
31+
'nodejs18.x',
3132
],
3233
});
3334
});

0 commit comments

Comments
 (0)