From 15c3797ab1e6a6c0514478cfaecd5c169220b5a8 Mon Sep 17 00:00:00 2001 From: Bedrich Schindler Date: Wed, 4 Nov 2026 19:15:48 +0200 Subject: [PATCH 1/2] Drop support for Node.js 22 and add support for Node.js 26 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`. --- .github/workflows/build.yml | 25 +++++++++++----------- .github/workflows/lint.yml | 2 +- .github/workflows/playwright.yml | 4 ++-- .github/workflows/pull-request-preview.yml | 2 +- .github/workflows/release-management.yml | 6 +++--- .github/workflows/test.yml | 2 +- .nvmrc | 2 +- docker/node/Dockerfile | 2 +- package-lock.json | 2 +- package.json | 6 +++--- 10 files changed, 27 insertions(+), 26 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6c89cd411..cb0cb8d2c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,39 +9,40 @@ on: [ pull_request ] # As package.json does not support comments, we document the version mapping here. # # `engines` field in package.json defines the minimum required Node.js version for running the package. -# We set it to the first released previous LTS version of Node.js. This means we allow users -# to run the package on this version and any later versions. +# We set it to the first released previous LTS version of Node.js with the latest security fixes, +# and to the first released active LTS version of Node.js. This means we allow users to run +# the package on these versions and any later versions. # # "engines": { -# "node": ">=22.11.0" +# "node": "^24.22.1 || >=26.13.0" # } # # `devEngines` field in package.json defines the Node.js versions used for development and building. -# We set both to the first released active and previous LTS versions of Node.js. We also set -# the npm version to the version of npm bundled with the first released active LTS Node.js version. -# This means we strictly require one of those versions for development and building. +# We set both to the first released active LTS and previous LTS versions of Node.js with the latest +# security fixes. We also set the npm version to the version of npm bundled with the previous LTS +# Node.js version. This means we strictly require one of those versions for development and building. # # "devEngines": { # "runtime": { # "name": "node", -# "version": "^22.11.0 || ^24.11.0", +# "version": "^24.22.1 || ^26.13.0", # "onFail": "error" # }, # "packageManager": { # "name": "npm", -# "version": "^11.6.1", +# "version": "^11.19.1", # "onFail": "error" # } # } # -# Versions defined in `env` use major version numbers only to install the latest minor/patch. +# Versions defined in `env` are exact. env: - NODE_ACTIVE_LTS_VERSION: 24.17 - NODE_PREVIOUS_LTS_VERSION: 22.23 + NODE_ACTIVE_LTS_VERSION: 26.13.0 + NODE_PREVIOUS_LTS_VERSION: 24.22.2 # Pin npm version to prevent npm issues from breaking the build # See - NPM_VERSION: 11.13.0 + NPM_VERSION: 11.19.1 jobs: build_on_node_previous_lts: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index e86dee323..8f88b4a29 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -13,7 +13,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v4 with: - node-version: 24.17 + node-version: 26.13.0 cache: npm - name: Print Node.js and npm version diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index f8c9f43ec..f4b6d9e3e 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -10,7 +10,7 @@ jobs: name: Playwright runs-on: ubuntu-24.04 container: - image: mcr.microsoft.com/playwright:v1.63.0-noble + image: mcr.microsoft.com/playwright:v1.64.1-noble steps: - name: Clone repository uses: actions/checkout@v4 @@ -18,7 +18,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v4 with: - node-version: 24.17 + node-version: 26.13.0 cache: npm - name: Print Node.js and npm version diff --git a/.github/workflows/pull-request-preview.yml b/.github/workflows/pull-request-preview.yml index f04c64eeb..c181fa500 100644 --- a/.github/workflows/pull-request-preview.yml +++ b/.github/workflows/pull-request-preview.yml @@ -24,7 +24,7 @@ permissions: pull-requests: write env: - NODE_VERSION: 24 + NODE_VERSION: 26.13.0 jobs: build: diff --git a/.github/workflows/release-management.yml b/.github/workflows/release-management.yml index 6de99f80f..b48badae0 100644 --- a/.github/workflows/release-management.yml +++ b/.github/workflows/release-management.yml @@ -22,7 +22,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v4 with: - node-version: 24.17 + node-version: 26.13.0 cache: npm - name: Install @@ -105,7 +105,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v4 with: - node-version: 24.17 + node-version: 26.13.0 cache: npm registry-url: https://registry.npmjs.org @@ -136,7 +136,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v4 with: - node-version: 24.17 + node-version: 26.13.0 cache: npm - name: Install diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3158c8302..a55dfb794 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,7 +16,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v4 with: - node-version: 24.17 + node-version: 26.13.0 cache: npm - name: Print Node.js and npm version diff --git a/.nvmrc b/.nvmrc index a45fd52cc..1dda03ddb 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -24 +26.13.0 diff --git a/docker/node/Dockerfile b/docker/node/Dockerfile index 62e81593c..a5d0edf90 100644 --- a/docker/node/Dockerfile +++ b/docker/node/Dockerfile @@ -1,3 +1,3 @@ -FROM node:24.22.1 +FROM node:26.13.0 RUN mkdir /workspace WORKDIR /workspace diff --git a/package-lock.json b/package-lock.json index 08a109161..00dfdd891 100644 --- a/package-lock.json +++ b/package-lock.json @@ -59,7 +59,7 @@ "webpack-visualizer-plugin2": "^2.0.0" }, "engines": { - "node": ">=22.11.0" + "node": "^24.22.1 || >=26.13.0" }, "peerDependencies": { "react": "^18.2.0", diff --git a/package.json b/package.json index b76366ade..89cd75311 100644 --- a/package.json +++ b/package.json @@ -44,17 +44,17 @@ "url": "https://github.com/react-ui-org/react-ui" }, "engines": { - "node": ">=22.11.0" + "node": "^24.22.1 || >=26.13.0" }, "devEngines": { "runtime": { "name": "node", - "version": "^22.23.0 || ^24.17.0", + "version": "^24.22.1 || ^26.13.0", "onFail": "error" }, "packageManager": { "name": "npm", - "version": "^11.13.0", + "version": "^11.19.1", "onFail": "error" } }, From 3a78d9558f2f208e9763ce4f152ae754b15d27f5 Mon Sep 17 00:00:00 2001 From: Bedrich Schindler Date: Wed, 4 Nov 2026 19:15:49 +0200 Subject: [PATCH 2/2] Pin base image of `playwright` Docker image by digest (#782) 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. --- .github/workflows/playwright.yml | 3 ++- docker/playwright/Dockerfile | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index f4b6d9e3e..0ec86d9da 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -10,7 +10,8 @@ jobs: name: Playwright runs-on: ubuntu-24.04 container: - image: mcr.microsoft.com/playwright:v1.64.1-noble + # Pinned by digest to match the `playwright` service, see `docker/playwright/Dockerfile` + image: mcr.microsoft.com/playwright:v1.64.1-noble@sha256:2f05f8a734509a7b3f26a912639488ee08f58a7b292d14d62271bcff9038768f steps: - name: Clone repository uses: actions/checkout@v4 diff --git a/docker/playwright/Dockerfile b/docker/playwright/Dockerfile index c91334d02..ab323b236 100644 --- a/docker/playwright/Dockerfile +++ b/docker/playwright/Dockerfile @@ -1,3 +1,6 @@ -FROM mcr.microsoft.com/playwright:v1.64.1 +# The Playwright image is pinned by digest, Microsoft rebuilds its tags in place +# (`v1.64.1` moved from Node.js 24 to Node.js 26 on 2026-11-01). This digest +# contains Node.js 26.13.0 and npm 11.20.0, matching the `node` service. +FROM mcr.microsoft.com/playwright:v1.64.1-noble@sha256:2f05f8a734509a7b3f26a912639488ee08f58a7b292d14d62271bcff9038768f RUN mkdir /workspace WORKDIR /workspace