Skip to content

Commit e8596da

Browse files
authored
feat: support nodejs:24 kind to the list of supported runtimes (#223)
* feat: support nodejs:24 kind to the list of supported runtimes * fix: minor
1 parent 65701fb commit e8596da

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ const { createFetch } = require('@adobe/aio-lib-core-networking')
1919
const globby = require('globby')
2020
const path = require('path')
2121
const archiver = require('archiver')
22-
// 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']
22+
// 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']
2424
const { HttpProxyAgent } = require('http-proxy-agent')
2525
const PatchedHttpsProxyAgent = require('./PatchedHttpsProxyAgent.js')
2626

test/utils.test.js

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

0 commit comments

Comments
 (0)