Skip to content

Framework: Update Node.js to v24 (wp/6.6) - #86495

Open
sirreal wants to merge 6 commits into
wp/6.6from
build/node-24-wp-6.6
Open

sirreal wants to merge 6 commits into
wp/6.6from
build/node-24-wp-6.6

Conversation

@sirreal

@sirreal sirreal commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

What?

Sets .nvmrc to Node.js 24.20 on wp/6.6, as on trunk, regenerates package-lock.json with npm 11, passes a boolean autoSelect in the DataViews search widget, and updates three test files for Ariakit 0.3.14.

Why?

The wordpress-develop 6.6 branch moves to Node.js 24 in WordPress/wordpress-develop#13839. npm 11 rejects this branch's lockfile: npm ci exits with EUSAGE because nested entries such as docker-compose 0.24.2 under packages/env, which asks for ^0.24.3, do not satisfy their ranges. This fails the Gutenberg build job on that PR.

How?

npm install --package-lock-only with npm 11. 3 entries change version, 3 are added and 13 are removed. Where the lockfile must change, it installs the versions WordPress 6.6 ships (core's package-lock.json), pinned with a temporary root overrides entry that was then removed: @ariakit/react and @ariakit/react-core 0.3.14, from 0.3.12 and in place of the 0.4.1 nested under packages/dataviews, which asks for ^0.3.12; @floating-ui/react-dom 2.0.8, in place of the hoisted 2.0.9 and the 2.0.1 nested under packages/components, which asks for ^2.0.8; and uuid 9.0.1 for six packages that ask for ^9.0.1 and had a nested 8.3.2. packages/env gets docker-compose 0.24.8. The search widget passed autoSelect="always", an Ariakit 0.4 value that fails the type check against 0.3.14; 0.3.14 converts the prop to a boolean, so autoSelect keeps the behavior WordPress 6.6 ships. From Ariakit 0.3.13, components finish rendering after timers, so the Tabs, CustomSelectControlV2 and ColorGradientControl tests now await an async render, ported from #64066; Tabs uses that PR's temporary render fork, which supports rerender. Converts package-lock.json from lockfile version 2 to 3 with npm 11; the packages section is unchanged.

Testing Instructions

With Node.js 24 and npm 11: npm ci && npm run build && npm run test:unit.

Use of AI Tools

AI assistance: Yes
Tools: Claude Code
Model: Claude Opus 5.5
Used for: Regenerating the lockfile, the DataViews and test changes, building and testing on Node.js 24, and drafting this description.

Set .nvmrc to 24.18, as on wp/7.1, and regenerate package-lock.json
with npm 11, which rejects this branch's lockfile (EUSAGE) because
nested entries do not satisfy their declared ranges, such as
docker-compose 0.24.2 under packages/env, which asks for ^0.24.3.

Where the lockfile changes, it installs the versions WordPress 6.6
ships: @ariakit/react and @ariakit/react-core 0.3.14 (dataviews' nested
0.4.1 does not satisfy its ^0.3.12), @floating-ui/react-dom 2.0.8
(components' nested 2.0.1 does not satisfy its ^2.0.8) and uuid 9.0.1.
These were pinned with a temporary root override that was then
removed; use-sync-external-store stays at 1.2.0, core's version.
autoSelect="always" is an Ariakit 0.4 value. With @ariakit/react
0.3.14, which dataviews now installs, the prop is typed as boolean and
build:package-types fails. Ariakit 0.3.14 converts the prop with
!!autoSelect, so passing true keeps the behavior WordPress 6.6 ships.
From Ariakit 0.3.13, components finish rendering after timers, so with
@ariakit/react 0.3.14, 18 tests in the Tabs, CustomSelectControlV2 and
ColorGradientControl suites fail with Testing Library's synchronous
render.

Port the test change from #64066:
the suites await an async render. CustomSelectControlV2 and
ColorGradientControl use @ariakit/test's render; Tabs needs rerender,
which @ariakit/test 0.3.7 does not return, so it uses that PR's
temporary render fork.
@sirreal sirreal added the [Type] Build Tooling Issues or PRs related to build tooling label Nov 9, 2026
@coderabbitai

coderabbitai Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b5d14875-47d5-4761-8e7d-6696688a511e

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions github-actions Bot added [Package] Components /packages/components [Package] Block editor /packages/block-editor [Package] DataViews /packages/dataviews labels Nov 9, 2026
…6.6)

The render fork in src/utils was compiled into the components build/,
build-module/ and build-types/ directories. The Babel package build
skips test directories, but the components tsconfig includes .ts and
.tsx files under test/ and emits declarations for them, so a separate
helper module under tabs/test/ would still appear in build-types.

Define the helper in the Tabs test, its only user, with no exports.
The test-file lint rules apply there, so its render result is named
view and one parentElement check disables
testing-library/no-node-access.
Matches trunk's .nvmrc. Node.js 24.20 bundles npm 11.19.
@sirreal

sirreal commented Nov 12, 2026

Copy link
Copy Markdown
Member Author

The Compressed Size failure comes from the base branch, not this PR. The check installs and builds this PR, then resets to the base branch and runs npm ci again to build the comparison, with the Node.js 24.20 it set up from this PR's .nvmrc. npm 11 rejects the base branch's lockfile.

@sirreal
sirreal marked this pull request as ready for review November 12, 2026 05:07
@sirreal
sirreal requested a review from desrosj November 12, 2026 05:07
@github-actions

Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: sirreal <jonsurrell@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.


Props Bot commands

You can trigger Props Bot actions by commenting on this PR:

  • @propsbot add <username> to give props to a GitHub user. Requires write access.
  • @propsbot remove <username> to leave a user out of the props. Requires write access.
  • @propsbot refresh to refresh this list. Adding the props-bot label works too.

Converted with npm 11.19.0 (Node 24.20.0):

    npm install --package-lock-only --lockfile-version 3 --ignore-scripts --no-audit --no-fund

The `packages` section is unchanged; the legacy `dependencies` section is removed.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Package] Block editor /packages/block-editor [Package] Components /packages/components [Package] DataViews /packages/dataviews [Type] Build Tooling Issues or PRs related to build tooling

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

1 participant