From 9b89089aa625b6097006056ddbc0e0b70f7b118b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20=C3=81ngel=20Garc=C3=ADa?= Date: Tue, 26 May 2026 15:19:11 -0700 Subject: [PATCH] feat: support nodejs:26 kind to the list of supported runtimes 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 --- src/utils.js | 2 +- test/utils.test.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils.js b/src/utils.js index 8a8d538..ff978af 100644 --- a/src/utils.js +++ b/src/utils.js @@ -20,7 +20,7 @@ const globby = require('globby') const path = require('path') const archiver = require('archiver') // this is a static list that comes from here: https://developer.adobe.com/runtime/docs/guides/reference/runtimes/ -const SupportedRuntimes = ['sequence', 'blackbox', 'nodejs:10', 'nodejs:12', 'nodejs:14', 'nodejs:16', 'nodejs:18', 'nodejs:20', 'nodejs:22', 'nodejs:24'] +const SupportedRuntimes = ['sequence', 'blackbox', 'nodejs:10', 'nodejs:12', 'nodejs:14', 'nodejs:16', 'nodejs:18', 'nodejs:20', 'nodejs:22', 'nodejs:24', 'nodejs:26'] const { HttpProxyAgent } = require('http-proxy-agent') const PatchedHttpsProxyAgent = require('./PatchedHttpsProxyAgent.js') const { getCliEnv, DEFAULT_ENV } = require('@adobe/aio-lib-env') diff --git a/test/utils.test.js b/test/utils.test.js index ee5e3bc..7a36de3 100644 --- a/test/utils.test.js +++ b/test/utils.test.js @@ -2575,6 +2575,7 @@ describe('validateActionRuntime', () => { expect(() => utils.validateActionRuntime({ exec: { kind: 'nodejs:20' } })).not.toThrow() expect(() => utils.validateActionRuntime({ exec: { kind: 'nodejs:22' } })).not.toThrow() expect(() => utils.validateActionRuntime({ exec: { kind: 'nodejs:24' } })).not.toThrow() + expect(() => utils.validateActionRuntime({ exec: { kind: 'nodejs:26' } })).not.toThrow() }) test('no exec', () => { expect(utils.validateActionRuntime({})).toBeUndefined()