Skip to content

Commit 6248dc2

Browse files
authored
feat: support nodejs:26 kind to the list of supported runtimes (#232)
Adds nodejs:26 to the static SupportedRuntimes list (src/utils.js) and the corresponding validateActionRuntime test (test/utils.test.js). Mirrors PR #223 (Node 24) exactly. Refs ACNA-4591
1 parent 5c26d7c commit 6248dc2

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const globby = require('globby')
2020
const path = require('path')
2121
const archiver = require('archiver')
2222
// this is a static list that comes from here: https://developer.adobe.com/runtime/docs/guides/reference/runtimes/
23-
const SupportedRuntimes = ['sequence', 'blackbox', 'nodejs:10', 'nodejs:12', 'nodejs:14', 'nodejs:16', 'nodejs:18', 'nodejs:20', 'nodejs:22', 'nodejs:24']
23+
const SupportedRuntimes = ['sequence', 'blackbox', 'nodejs:10', 'nodejs:12', 'nodejs:14', 'nodejs:16', 'nodejs:18', 'nodejs:20', 'nodejs:22', 'nodejs:24', 'nodejs:26']
2424
const { HttpProxyAgent } = require('http-proxy-agent')
2525
const PatchedHttpsProxyAgent = require('./PatchedHttpsProxyAgent.js')
2626
const { getCliEnv, DEFAULT_ENV } = require('@adobe/aio-lib-env')

test/utils.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2575,6 +2575,7 @@ describe('validateActionRuntime', () => {
25752575
expect(() => utils.validateActionRuntime({ exec: { kind: 'nodejs:20' } })).not.toThrow()
25762576
expect(() => utils.validateActionRuntime({ exec: { kind: 'nodejs:22' } })).not.toThrow()
25772577
expect(() => utils.validateActionRuntime({ exec: { kind: 'nodejs:24' } })).not.toThrow()
2578+
expect(() => utils.validateActionRuntime({ exec: { kind: 'nodejs:26' } })).not.toThrow()
25782579
})
25792580
test('no exec', () => {
25802581
expect(utils.validateActionRuntime({})).toBeUndefined()

0 commit comments

Comments
 (0)