openclaw/test/helpers/node-version-cases.ts
Peter Steinberger a917c99e92
fix(runtime): classify Node releases consistently across install and launch (#124812)
* fix(runtime): align Node release version guards

Amp-Thread-ID: https://ampcode.com/threads/T-01a00ae0-190d-718b-8a76-b75f3e8d1fae

* test(runtime): include Node version helper in source fixture

* fix(install): align Node release checks across boundaries

Amp-Thread-ID: https://ampcode.com/threads/T-01a00ae0-190d-718b-8a76-b75f3e8d1fae

* fix: keep node version guard legacy-compatible

Amp-Thread-ID: https://ampcode.com/threads/T-01a00ae0-190d-718b-8a76-b75f3e8d1fae

* test(runtime): exercise legacy launcher preflight

* fix(installer): validate installed Node release versions

Amp-Thread-ID: https://ampcode.com/threads/T-01a00ae0-190d-718b-8a76-b75f3e8d1fae

* fix(installer): compare Node version parts numerically

Amp-Thread-ID: https://ampcode.com/threads/T-01a00ae0-190d-718b-8a76-b75f3e8d1fae

* test(installer): cover 17-digit Node major

---------

Co-authored-by: Amp <amp@ampcode.com>
2026-08-17 00:42:23 -07:00

25 lines
520 B
TypeScript

// Cross-boundary corpus for OpenClaw's supported Node release-label contract.
export const NODE_RELEASE_VERSION_CASES = [
"22.22.2",
"22.22.3",
"23.11.0",
"24.14.1",
"24.15.0",
"25.8.1",
"25.9.0",
"26.0.0",
"v24.15.0+local.1",
" 24.15.0+vendor-1.sha ",
"24.15.0-rc.1",
"25.9.1-nightly.20260714",
"24.15",
"garbage24.15.0suffix",
"24.15.0suffix",
"024.15.0",
"24.015.0",
"24.15.00",
"24.15.0+local..1",
"24.15.0+",
"9007199254740992.0.0",
"10000000000000000.0.0",
] as const;