Skip to content

v3.5.0

Latest

Choose a tag to compare

@gfazioli gfazioli released this 01 Dec 16:24

Toolchain

  • php bones migrate:to-v2 writes the @wordpress/scripts 37 toolchain (#150). 37's test-unit-js runs Vitest, so test and test:watch keep Jest through test-unit-jest, with Jest 30, jest-environment-jsdom, babel-jest, @babel/core, @wordpress/jest-preset-default 14 and @wordpress/babel-preset-default. glob moves to 13 and wp-prettier to ^3.9.6.
  • @wordpress/scripts 37 needs Node ^22.22.2 || ^24.15.0 || >=26. "Review manually" now says so, and names the eslint-plugin-jest override that JavaScript tests need, since 37 lints test files with Vitest's rules.

Fixes

  • A jest.config.js written by an earlier migrate:to-v2 requires @wordpress/scripts/config/jest-unit.config, which 37 no longer ships: the command replaces it when you never touched it, and keeps it with a warning when you did (#150).
  • The Jest stub passes while a plugin has no JavaScript tests, instead of failing with "No tests found" (#151).

The 14 boilerplates move to the same toolchain with this release.

To update a plugin: composer update wpbones/wpbones. For the new toolchain, commit first and run php bones migrate:to-v2 again: it rewrites the package.json scripts and devDependencies, replaces the 3.4 jest.config.js as above, keeps your other files and yarn.lock, and, as on the first run, deletes a package-lock.json or pnpm-lock.yaml.

Full Changelog: v3.4.1...v3.5.0