Skip to content

Commit cc69e28

Browse files
add node 24 version (#637)
Co-authored-by: Alex Angelillo <alex.angelillo@datadoghq.com>
1 parent 03da14c commit cc69e28

3 files changed

Lines changed: 11 additions & 0 deletions

File tree

scripts/generate_layers_json.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ LAYER_NAMES=(
1818
"Datadog-Node18-x"
1919
"Datadog-Node20-x"
2020
"Datadog-Node22-x"
21+
"Datadog-Node24-x"
2122
"Datadog-Python37"
2223
"Datadog-Python38"
2324
"Datadog-Python38-ARM"
@@ -49,6 +50,7 @@ JSON_LAYER_NAMES=(
4950
"nodejs18.x"
5051
"nodejs20.x"
5152
"nodejs22.x"
53+
"nodejs24.x"
5254
"python3.7"
5355
"python3.8"
5456
"python3.8-arm"

src/layer.spec.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ describe("findHandlers", () => {
4646
"node18-function": { handler: "myfile.handler", runtime: "nodejs18.x" },
4747
"node20-function": { handler: "myfile.handler", runtime: "nodejs20.x" },
4848
"node22-function": { handler: "myfile.handler", runtime: "nodejs22.x" },
49+
"node24-function": { handler: "myfile.handler", runtime: "nodejs24.x" },
4950
"python37-function": { handler: "myfile.handler", runtime: "python3.7" },
5051
"python38-function": { handler: "myfile.handler", runtime: "python3.8" },
5152
"python39-function": { handler: "myfile.handler", runtime: "python3.9" },
@@ -98,6 +99,12 @@ describe("findHandlers", () => {
9899
type: RuntimeType.NODE,
99100
runtime: "nodejs22.x",
100101
},
102+
{
103+
name: "node24-function",
104+
handler: { handler: "myfile.handler", runtime: "nodejs24.x" },
105+
type: RuntimeType.NODE,
106+
runtime: "nodejs24.x",
107+
},
101108
{
102109
name: "python37-function",
103110
handler: { handler: "myfile.handler", runtime: "python3.7" },

src/layer.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ export const runtimeLookup: { [key: string]: RuntimeType } = {
5959
"nodejs18.x": RuntimeType.NODE,
6060
"nodejs20.x": RuntimeType.NODE,
6161
"nodejs22.x": RuntimeType.NODE,
62+
"nodejs24.x": RuntimeType.NODE,
6263
"python3.7": RuntimeType.PYTHON,
6364
"python3.8": RuntimeType.PYTHON,
6465
"python3.9": RuntimeType.PYTHON,
@@ -98,6 +99,7 @@ export const ARM_RUNTIME_KEYS: { [key: string]: string } = {
9899
"nodejs18.x": "nodejs18.x",
99100
"nodejs20.x": "nodejs20.x",
100101
"nodejs22.x": "nodejs22.x",
102+
"nodejs24.x": "nodejs24.x",
101103
// The same Java layer works for both x86 and ARM
102104
java: "java",
103105
};

0 commit comments

Comments
 (0)