Skip to content

Raise the Node.js floor to 22, drop Node 20, and standardise CI on Node 22 #1944

Done

Description

@amrmelsayed

Problem

Codev's supported Node.js range is stated in several places and they disagree:

Place Value
packages/codev/package.json engines.node >=20.0.0
POSIX CI (test.yml, e2e.yml, dashboard-e2e.yml, sdk-canary.yml, post-release-e2e.yml) Node 20 only (eleven node-version: '20' lines)
Windows CI (windows.yml) probe matrix 20 / 22 / 24, unit suites on 22 and 24, install guard on 20 and 22
@types/node (codev, core, sdk, artifact-canvas, streamdeck, vscode) 22.x
README / codev-skeleton/DEPENDENCIES.md / codev/resources/arch.md "20+ (22 recommended)", "native Windows: 22 or 24"
codev/resources/cloud-instances.md provisioning script Node 20

Node 20 reached end of life on 2026-04-30. Every POSIX CI job still runs on it and it is still advertised as the floor.

Decision (owner, 2026-11-24)

  • Floor: Node 22. Node 20 is no longer supported.
  • Standardise on Node 22 for testing. The Windows workflow stops testing 20, 22 and 24 and tests 22 only.
  • This replaces the earlier text of this issue, which proposed testing and recommending Node 24.

Change set

  1. engines: packages/codev/package.json engines.node → >=22.0.0. Check whether engine-strict is set in the repo's .npmrc files and say in the PR whether a below-floor install warns or fails.
  2. Windows CI (windows.yml): one Node version, 22, in every job.
    • Probe matrix: drop the 20 and 24 rows on windows-latest and the 24 row on windows-11-arm. Remove the conditions that only existed because of the matrix (matrix.node == '22', continue-on-error: ${{ matrix.node == '20' }}).
    • Unit suites: drop the Node 24 job.
    • Install guard: see open question 2.
  3. POSIX CI: every node-version: '20' in the five workflows → '22' (see open question 1).
  4. @types/node: stays 22.x everywhere. No change.
  5. Docs: README install table and the native Windows line; codev-skeleton/DEPENDENCIES.md (Node section, support table, Windows table, troubleshooting entry); codev/resources/arch.md requirements lines; codev/resources/cloud-instances.md (setup_20.x → setup_22.x). State "Node 22" as the supported and tested version; do not describe 24 as tested. Grep both codev/ and codev-skeleton/ for 20+, Node 20, setup_20, 22 or 24 before claiming done.
  6. Guard message: SUPPORTED_WINDOWS_NODE in packages/codev/scripts/native-deps-guard.mjs and its runtime twin in src/lib/native-deps.ts are parity-tested; if the wording changes, change both. The ABI allow list does not change: a newer Node whose prebuilds exist keeps installing, it is just not a tested configuration.
  7. Lessons: the #1819 entry in lessons-learned.md says "CI pins Node 20"; update it to 22.

Out of scope: tsconfig targets, and re-provisioning existing cloud instances (the doc change is in scope; the image rebuild is an ops task).

Open questions (builder: raise with the architect, do not guess)

  1. POSIX CI version. The decision names Windows testing. This issue assumes "standardise on 22" covers the POSIX workflows too, since they must leave Node 20 and one version everywhere is the simplest reading. Confirm before changing them.
  2. Install-guard job. Its Node 20 leg proves the preinstall guard refuses an unsupported Node on Windows. With 20 dropped from testing, either remove that leg (the guard's unit tests remain) or keep the single refusal check as the one exception. Default if not told otherwise: remove it.

Verification

  • Full CI green on Node 22 for every POSIX job, including dashboard-e2e and sdk-canary.
  • Windows workflow dispatched on the branch with suites and install guard: gh workflow run windows.yml --ref <branch> -f purpose='node floor' -f suites=true -f install_guard=true. Every job runs on Node 22 and is green.
  • pnpm publish --dry-run shows the engines field adopters will see.

Protocol

AIR. The work is mechanical across CI, manifests and docs.

Activity

  1. added
    area/cross-cutting
    on Nov 22, 2026
  2. changed the title [-]Raise the Node.js floor to 22 and test/recommend Node 24 (Node 20 is EOL)[/-] [+]Raise the Node.js floor to 22, drop Node 20, and standardise CI on Node 22[/+] on Nov 24, 2026
  3. added 14 commits that reference this issue on Nov 24, 2026
  4. added a commit that references this issue on Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/cross-cutting

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions