Skip to content

chore(deps): move to @wordpress/scripts 34 and @wordpress/env 11 - #249

Merged
nk-o merged 1 commit into
masterfrom
wp-scripts-34
Aug 18, 2026
Merged

chore(deps): move to @wordpress/scripts 34 and @wordpress/env 11#249
nk-o merged 1 commit into
masterfrom
wp-scripts-34

Conversation

@nk-o

@nk-o nk-o commented Aug 18, 2026

Copy link
Copy Markdown
Collaborator

Puts the build toolchain on the current major and brings all six plugin repos to the same version.

Nothing here uses wp-scripts beyond start and build, which is what makes this a small change rather than a migration. The breaking changes across 30–34 all land on commands this repo does not run:

Version Breaking change Applies here
30 default stylelint config switched to scss-stylistic no — stylelint runs from our own .stylelintrc.js
31 lint-js also lints .cjs/.mjs/.cts/.mts no — linting is biome
32 eslint 8 → 10, flat config by default no — linting is biome
33 test-e2e moved from Puppeteer to Playwright no — e2e runs from our own Playwright config
34 Jest 29 → 30 no — unit tests are PHPUnit

@wordpress/env goes to 11 alongside it. Its one change that could have bitten us is the port default becoming auto-select, and it does not: nk-wp-env always passes WP_ENV_PORT and WP_ENV_TESTS_PORT explicitly. Pretty permalinks are now on by default in the test environment, which e2e will confirm.

This does not reduce npm audit. The earlier advice that these findings are "fixed via @wordpress/scripts@34.1.0" was wrong: on 34.1.0 the same chain is still flagged, and npm now suggests downgrading to 19.2.4 instead. What remains sits inside the toolchain's own tree and cannot be fixed from here. All of it is dev-only.

Generated output under build/ is not committed here; the release build regenerates it.

One source change comes with it. webpack.config.js imported getWordPressSrcDirectory from @wordpress/scripts/utils, which the newer version renamed to getProjectSourcePath — the build died with TypeError: getWordPressSrcDirectory is not a function before webpack started. The rename is not listed in the upstream changelog's breaking changes, so it only surfaced on the first build. Both helpers return the same relative source path, and the CopyWebpackPlugin pattern it feeds has always been a no-op here: this repo has no src/ directory and no block.json files, before or after.

Brings the build toolchain up to date and puts this repo on the same
version as the rest of the plugins.

Nothing here uses wp-scripts beyond `start` and `build`, so the breaking
changes in 30-34 (stylelint config, lint-js extensions, eslint 10 with
flat config, Playwright replacing Puppeteer in test-e2e, Jest 30) do not
apply: linting is biome and stylelint, e2e runs from our own Playwright
config, unit tests are PHPUnit.

wp-env 11 defaults its port to auto-select, which does not reach us —
nk-wp-env always passes WP_ENV_PORT and WP_ENV_TESTS_PORT explicitly.

webpack.config.js switches from getWordPressSrcDirectory to
getProjectSourcePath: the helper was renamed and the build failed with
"getWordPressSrcDirectory is not a function". The rename is not in the
upstream changelog. Both return the same relative source path, and the
CopyWebpackPlugin pattern it feeds is a no-op here — no src/ directory,
no block.json files, before or after.
@nk-o
nk-o merged commit 8acb303 into master Aug 18, 2026
7 checks passed
@nk-o
nk-o deleted the wp-scripts-34 branch August 18, 2026 09:52
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.

1 participant