Repository navigation
Conversation
Regenerates package-lock.json with npm 11.
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
The regenerated lockfile installs @ariakit/react 0.3.14, the version WordPress 6.5 ships. From Ariakit 0.3.13, components finish rendering after timers, so 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, typed with ReactElement for this branch's @testing-library/react.
packages/dataviews asks for @ariakit/react ^0.3.12, but the lockfile nests 0.4.1 under it, which npm ls reports as invalid and npm 11 keeps when regenerating. Remove the nested @ariakit/core, @ariakit/react and @ariakit/react-core 0.4.1 entries and regenerate, so dataviews uses the hoisted 0.3.14, the version WordPress 6.5 ships for @wordpress/dataviews.
…6.5) 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.
|
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 |
|
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. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. Props Bot commandsYou can trigger Props Bot actions by commenting on this PR:
|
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.
What?
Sets
.nvmrcto Node.js 24.20 onwp/6.5, as on trunk, regeneratespackage-lock.jsonwith npm 11, and updates three test files for Ariakit 0.3.14.Why?
The wordpress-develop 6.5 branch moves to Node.js 24 in WordPress/wordpress-develop#13840. npm 11 rejects this branch's lockfile:
npm ciexits withEUSAGEbecause nested entries such asdocker-compose0.24.2 underpackages/env, which asks for^0.24.3, do not satisfy their ranges. This fails the Gutenberg build job on that PR. WordPress 6.5 ships@ariakit/react0.3.14 (core'spackage-lock.json), the version the regenerated lockfile now installs.How?
npm install --package-lock-onlywith npm 11. 2 entries change version, 3 are added and 12 are removed.packages/envgetsdocker-compose0.24.8, six packages that ask foruuid^9.0.1use the hoisted 9.0.1 instead of a nested 8.3.2, and the hoisted@ariakit/reactand@ariakit/react-coremove from 0.3.12 to 0.3.14.packages/dataviewsalso uses 0.3.14: npm 11 keeps its nested 0.4.1 entries, which do not satisfy^0.3.12, so they are removed before regenerating. From Ariakit 0.3.13, components finish rendering after timers, so the Tabs,CustomSelectControlV2andColorGradientControltests now await an asyncrender, ported from #64066; Tabs uses that PR's temporaryrenderfork, which supportsrerender. Convertspackage-lock.jsonfrom lockfile version 2 to 3 with npm 11; thepackagessection 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, porting the test change, building and testing on Node.js 24, and drafting this description.