Skip to content

Build/Test Tools: Update npm development dependencies for 7.2 - #12861

Closed
desrosj wants to merge 13 commits into
WordPress:trunkfrom
desrosj:audit/npm-dependencies
Closed

desrosj wants to merge 13 commits into
WordPress:trunkfrom
desrosj:audit/npm-dependencies

Conversation

@desrosj

@desrosj desrosj commented Aug 5, 2026 •

Copy link
Copy Markdown
Member

Updates twelve development dependencies, one commit per package:

  • @playwright/test: 1.64.1 → 1.65.1
  • @pmmmwh/react-refresh-webpack-plugin: 0.6.2 → 0.6.3
  • @types/codemirror: 5.60.17 → 5.60.18
  • autoprefixer: 10.5.3 → 10.6.2
  • grunt: 1.6.2 → 1.6.3
  • grunt-webpack: 7.0.1 → 8.0.0
  • minimizer-webpack-plugin: 5.6.1 → 5.14.0 (terser 5.37.0 → 5.51.2)
  • postcss: 8.5.19 → 8.5.33
  • qunit: ~2.26.0 → 3.0.0
  • update-browserslist-db: 1.3.1 → 1.4.0
  • wait-on: 9.0.10 → 9.5.1
  • webpack: 5.108.4 → 5.109.2

The npm run build output matches WordPress/WordPress r65556, except for four minified files that the newer version of Terser rewrites without changing behavior (verified by comparing syntax trees):

  • wp-includes/js/codemirror/codemirror.min.js
  • wp-includes/js/codemirror/espree.min.js
  • wp-includes/js/dist/development/react-refresh-entry.min.js
  • wp-includes/js/dist/development/react-refresh-runtime.min.js

Not included:

  • webpack 5.110+ changes the code generated for the CodeMirror bundles, so it needs separate testing.
  • @wordpress/scripts and @wordpress/e2e-test-utils-playwright will be updated together in a separate PR.

Trac ticket: https://core.trac.wordpress.org/ticket/65857

Use of AI Tools

AI assistance: Yes
Tool(s): Claude Code
Model(s): Claude Opus 5.5
Used for: Reviewing the upstream changes, applying and testing each update, comparing the build output, and drafting the commit messages and this description. I reviewed the changes.


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

🤖 Generated with Claude Code

https://claude.ai/code/session_011Y86h1C6BoWy65W2SSqvtD

@desrosj desrosj self-assigned this Aug 5, 2026
@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown

Test using WordPress Playground

The changes in this pull request can previewed and tested using a WordPress Playground instance.

WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser.

Some things to be aware of

  • All changes will be lost when closing a tab with a Playground instance.
  • All changes will be lost when refreshing the page.
  • A fresh instance is created each time the link below is clicked.
  • Every time this pull request is updated, a new ZIP file containing all changes is created. If changes are not reflected in the Playground instance,
    it's possible that the most recent build failed, or has not completed. Check the list of workflow runs to be sure.

For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation.

Test this pull request with WordPress Playground.

@desrosj
desrosj force-pushed the audit/npm-dependencies branch from ad648c0 to 8b81a85 Compare August 5, 2026 15:04
@desrosj

desrosj commented Aug 5, 2026

Copy link
Copy Markdown
Member Author

There's a few issues to look into before this can be committed.

@mukeshpanchal27

Copy link
Copy Markdown
Member

@desrosj Can you make this ready for 7.2? As it's not committed in 7.1.

@lancewillett lancewillett changed the title Final npm devDependency updates for 7.1 Build/Test Tools: Update npm development dependencies for 7.2 Oct 26, 2026
@desrosj
desrosj marked this pull request as ready for review November 17, 2026 14:46
@github-actions

github-actions Bot commented Nov 17, 2026 •

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.

Core Committers: Use this line as a base for the props when committing in SVN:

Props desrosj, mukesh27.

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 or WordPress.org 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.

@desrosj
desrosj force-pushed the audit/npm-dependencies branch from 0703abc to f73630c Compare November 17, 2026 14:47
Update `grunt` from `1.6.2` to `1.6.3`, along with its `js-yaml` dependency (`3.14.2` to `3.15.2`).
Update `wait-on` from `9.0.10` to `9.5.1`, along with its `axios` (`1.18.1` to `1.21.1`), `follow-redirects` (`1.16.0` to `1.16.3`), `joi` (`18.2.3` to `18.3.2`), and `@hapi/tlds` (`1.1.4` to `1.1.7`) dependencies.
Update `autoprefixer` from `10.5.3` to `10.6.2`. This also updates `browserslist` (`4.28.6` to `4.29.6`) and `caniuse-lite` (`1.0.30001805` to `1.0.30001826`), which the new version requires, along with related browser data packages.

`browserslist` now requires `update-browserslist-db` `^1.3.4`, so a nested copy is installed alongside the `1.3.1` version pinned in `package.json`.

There are no changes to the generated CSS in `src/`.
Update `grunt-webpack` from `7.0.1` to `8.0.0`. The only breaking change is a minimum Node.js version of 22.13.0.
Update `postcss` from `8.5.19` to `8.5.32`, along with its `nanoid` (`3.3.16` to `3.3.20`) and `source-map-js` (`1.2.1` to `1.2.2`) dependencies.

Running `grunt precommit:css` produces no changes to the CSS files in `src/`.
Update `@types/codemirror` from `5.60.17` to `5.60.18`. The type definitions are unchanged; the minimum supported TypeScript version is now 5.6.
…6.3.

Update `@pmmmwh/react-refresh-webpack-plugin` from `0.6.2` to `0.6.3`. This adds support for `webpack-dev-server` 6.x and uses `__webpack_global__` in its loader when available. The client entry that Core bundles is unchanged.
Update `webpack` from `5.108.4` to `5.109.2`, along with its `enhanced-resolve` dependency (`5.24.2` to `5.27.0`). The `acorn-import-phases` and `loader-runner` packages are no longer required.

This is the newest version that works with the current version of `minimizer-webpack-plugin`. Later versions require `minimizer-webpack-plugin` 5.13.0 or newer, which changes the minified output of several built files.
Update `@playwright/test` from `1.64.1` to `1.65.1`, along with its `playwright` and `playwright-core` dependencies. This updates the bundled Chromium to version 159. Playwright no longer tests on Node.js 20, which Core no longer supports.
Update `update-browserslist-db` from `1.3.1` to `1.4.0`. Since `browserslist` requires `^1.3.4`, this also removes the separate copy that was installed for it.

The changes are limited to package managers other than npm: support for `aube`, running `pnpm` without a shell and respecting its `minimumReleaseAge` setting, and better Yarn and Deno handling.
Update `qunit` from `2.26.0` to `3.0.0`, along with its `commander` (`7.2.0` to `12.1.0`) and `node-watch` (`0.7.3` to `0.7.4`) dependencies. The version is now pinned to match the other development dependencies.

QUnit 3.0 removes deprecated APIs and promotes deprecation warnings to errors. The Core test suite produces no deprecation warnings on QUnit 2.26, uses none of the removed APIs, and passes on QUnit 3.0 without changes.

Claude-Session: https://claude.ai/code/session_011Y86h1C6BoWy65W2SSqvtD
Update `minimizer-webpack-plugin` from `5.6.1` to `5.14.0`, along with its `terser` dependency (`5.37.0` to `5.51.2`).

The newer version of Terser no longer wraps function arguments in parentheses, and makes a few other equivalent rewrites. This changes the minified output of four built files, without changing what the code does:

- `wp-includes/js/codemirror/codemirror.min.js`
- `wp-includes/js/codemirror/espree.min.js`
- `wp-includes/js/dist/development/react-refresh-entry.min.js`
- `wp-includes/js/dist/development/react-refresh-runtime.min.js`

See #65857.

Claude-Session: https://claude.ai/code/session_011Y86h1C6BoWy65W2SSqvtD
Update `postcss` from `8.5.32` to `8.5.33`.

Running `grunt precommit:css` produces no changes to the CSS files in `src/`.

See #65857.
@desrosj
desrosj force-pushed the audit/npm-dependencies branch from c91a77a to a11437c Compare November 17, 2026 15:13
@desrosj

desrosj commented Nov 17, 2026

Copy link
Copy Markdown
Member Author

Merged in r65557.

@desrosj desrosj closed this Nov 17, 2026
@desrosj
desrosj deleted the audit/npm-dependencies branch November 17, 2026 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants