diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6c89cd41..cb0cb8d2 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 e86dee32..8f88b4a2 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 f8c9f43e..0ec86d9d 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.63.0-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 @@ -18,7 +19,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 f04c64ee..c181fa50 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 6de99f80..b48badae 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 3158c830..a55dfb79 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 a45fd52c..1dda03dd 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -24 +26.13.0 diff --git a/docker/node/Dockerfile b/docker/node/Dockerfile index 62e81593..a5d0edf9 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/docker/playwright/Dockerfile b/docker/playwright/Dockerfile index c91334d0..ab323b23 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 diff --git a/package-lock.json b/package-lock.json index 08a10916..00dfdd89 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 b76366ad..89cd7531 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" } },