Skip to content

Commit b6fb279

Browse files
authored
feat: Adding support to Node js v22 runtime and updating test cases. (#483)
1 parent a6cf48c commit b6fb279

28 files changed

+65
-27
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,7 @@ This plugin currently supports the following AWS runtimes:
373373
- nodejs16.x
374374
- nodejs18.x
375375
- nodejs20.x
376+
- nodejs22.x
376377
- python3.7
377378
- python3.8
378379
- python3.9

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"node-fetch": "^2.6.7",
5757
"path": "^0.12.7",
5858
"semver": "^7.5.4",
59-
"serverless": "4.x || 3.x || 2.x || 1.x"
59+
"serverless": "4.x || 3.x"
6060
},
6161
"keywords": [
6262
"lambda",

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const wrappableRuntimeList = [
2222
"nodejs16.x",
2323
"nodejs18.x",
2424
"nodejs20.x",
25+
"nodejs22.x",
2526
"python3.7",
2627
"python3.8",
2728
"python3.9",

tests/fixtures/arm64.output.service.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
],
5353
"handler": "newrelic-lambda-wrapper.handler",
5454
"layers": [
55-
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18XARM64:94"
55+
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18XARM64:95"
5656
],
5757
"package": {
5858
"exclude": [

tests/fixtures/debug-log-level.output.service.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"events": [{ "schedule": "rate(5 minutes)" }],
5555
"handler": "newrelic-lambda-wrapper.handler",
5656
"layers": [
57-
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:94"
57+
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:95"
5858
],
5959
"package": {
6060
"exclude": ["./**", "!newrelic-wrapper-helper.js"],

tests/fixtures/debug.output.service.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"events": [{ "schedule": "rate(5 minutes)" }],
5454
"handler": "newrelic-lambda-wrapper.handler",
5555
"layers": [
56-
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:94"
56+
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:95"
5757
],
5858
"package": {
5959
"exclude": ["./**", "!newrelic-wrapper-helper.js"],

tests/fixtures/distributed-tracing-enabled.output.service.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
],
5151
"handler": "newrelic-lambda-wrapper.handler",
5252
"layers": [
53-
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:94"
53+
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:95"
5454
],
5555
"package": {
5656
"exclude": ["./**", "!newrelic-wrapper-helper.js"],

tests/fixtures/eu.output.service.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
],
5656
"handler": "newrelic-lambda-wrapper.handler",
5757
"layers": [
58-
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:94"
58+
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:95"
5959
],
6060
"package": {
6161
"exclude": ["./**", "!newrelic-wrapper-helper.js"],

tests/fixtures/function-has-layers.output.service.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"service": "newrelic-lambda-layers-nodejs-example",
33
"provider": {
44
"layers": [
5-
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:94"
5+
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:95"
66
],
77
"name": "aws",
88
"stage": "prod",
@@ -46,7 +46,7 @@
4646
"runtime": "nodejs18.x",
4747
"layers": [
4848
"arn:aws:lambda:us-east-1:123456789012:layer:SomeOtherLayer:1",
49-
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:94"
49+
"arn:aws:lambda:us-east-1:451483290750:layer:NewRelicNodeJS18X:95"
5050
]
5151
},
5252
"layer-nodejs18x2": {

0 commit comments

Comments
 (0)