Skip to content

Drop support for Node.js 22 and add support for Node.js 26 - #785

Merged
bedrich-schindler merged 2 commits into
masterfrom
bc/node-26
Nov 5, 2026
Merged

bedrich-schindler merged 2 commits into
masterfrom
bc/node-26

Conversation

@bedrich-schindler

@bedrich-schindler bedrich-schindler commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Node.js 26 became the active LTS in October 2026, so the supported versions move from Node.js 22 and 24 to Node.js 24 and 26.

Breaking change: engines.node is now ^24.22.1 || >=26.13.0, so the package no longer supports Node.js 22 and Node.js 24 older than 24.22.1.

Why Node.js 24.22.1 is the minimum

Node.js 24.22.1 is the security release from 2026-10-20. It fixes CVEs in http, dns, tls, crypto, the permission model and brotli, and updates root certificates and OpenSSL. Node.js 26.13.0 is the first LTS release of Node.js 26 and already contains these fixes. Node.js 24.22.2 only adds V8 and stream bug fixes, so it is not required.

Changes

  • devEngines require Node.js ^24.22.1 || ^26.13.0 and npm ^11.19.1. Node.js 24.22.1 bundles npm 11.19.1 and Node.js 26.13.0 bundles npm 11.20.0, so both work with their bundled npm.
  • The node service, .nvmrc and CI use Node.js 26.13.0, the build also runs on Node.js 24.22.2. Versions are exact (x.y.z), because actions/setup-node may otherwise take an older patch version (24.22.1 at the time of writing) from the runner tool cache.
  • CI Playwright image is updated from v1.63.0 to v1.64.1 to match @playwright/test.
  • The playwright service and the Playwright CI workflow are pinned by digest. The pinned image contains Node.js 26.13.0 and npm 11.20.0, the same versions as the node service.

Why the playwright service is pinned

Microsoft rebuilds Playwright image tags in place. v1.64.1 was built with Node.js 24 on 2026-10-23 and rebuilt with Node.js 26 on 2026-11-01 from the release-1.64 branch, see microsoft/playwright#43759. Pinning the tag alone is therefore not enough to keep Node.js, the OS and browsers stable. With the digest, they change only when the digest is updated, so the Node.js version in the image must be checked against devEngines on each Playwright update.

Testing

  • npm run lint, npm test, npm run build and npm run test:playwright-ct:all (1010 passed) on Node.js 26.13.0.
  • npm run lint, npm test and npm run build on Node.js 24.22.2.
  • npm run passes the devEngines check on Node.js 24.22.1 and in the new playwright service, and fails on Node.js 24.20.0 and 22 as expected.

Once merged, the Playwright fallback in the release skill from #783 can be removed.

Closes #782

@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.2
Preview removed because the pull request was closed.
2026-11-05 12:15 UTC

Comment thread .github/workflows/build.yml Resolved
Node.js 26 became the active LTS in October 2026, so the supported
versions move from Node.js 22 and 24 to Node.js 24 and 26.

- `engines.node` is now `^24.22.1 || >=26.13.0`. Node.js 24.22.1 is the
  security release from 2026-10-20 that fixes CVEs in `http`, `dns`,
  `tls`, `crypto`, the permission model and `brotli` and updates root
  certificates, so older Node.js 24 versions are not allowed. Node.js
  26.13.0 is the first LTS release of Node.js 26 and already contains
  these fixes.
- `devEngines` require Node.js `^24.22.1 || ^26.13.0` and npm `^11.19.1`,
  which is bundled with Node.js 24.22.1. Node.js 26.13.0 bundles npm
  11.20.0.
- The `node` service, `.nvmrc` and CI use Node.js 26.13.0, the build
  also runs on Node.js 24.22.2. Versions are exact (`x.y.z`), because
  `actions/setup-node` may otherwise take an older patch version from
  the runner tool cache.
- Comments in `build.yml` describe how `engines` and `devEngines` are
  set, and that versions in `env` are exact.
- CI Playwright image is updated to `v1.64.1` to match `@playwright/test`.
Microsoft rebuilds Playwright image tags in place. `v1.64.1` was rebuilt
with Node.js 26 instead of 24 on 2026-11-01, which broke the
`devEngines` check in the `playwright` service.

The base image is now pinned by digest, so Node.js, the OS and browsers
change only when the digest is updated. The pinned image contains
Node.js 26.13.0 and npm 11.20.0, the same versions as the `node` service.
The Playwright CI workflow uses the same digest.
@bedrich-schindler
bedrich-schindler merged commit b36f8c1 into master Nov 5, 2026
14 checks passed
@bedrich-schindler
bedrich-schindler deleted the bc/node-26 branch November 5, 2026 12:15

This branch was successfully deployed

1 active deployment
pr-preview/pr-785 — 3a78d955 Deployed Nov 5, 2026 by bedrich-schindler via Deploy PR Preview #159
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BC Breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Playwright container fails devEngines check again because its image does not pin Node.js

2 participants