Skip to content

1.2.0

Latest

Choose a tag to compare

@annlickander annlickander released this 13 Aug 18:40
· 3 commits to master since this release
7c00b75

Changed

  • Build with @wordpress/scripts instead of Laravel Mix. Laravel Mix 5 runs webpack 4, which hashes with MD4 and therefore cannot build on Node 17 or later (error:0308010C:digital envelope routines::unsupported).
  • The compiled bundle is committed and ships in the release archive. It was gitignored, so assets/scripts/dist/editor.js was missing from every Composer install and each consuming site had to build the plugin itself.
  • The editor script is registered from the generated editor.asset.php, so its dependencies and cache-busting version follow the build instead of a hand-written list.
  • Editor sources import from the @wordpress/* packages rather than reading the wp global.

Fixed

  • The editor script no longer loads without react and react-jsx-runtime, which the hand-written dependency list had never included.

Added

  • Translations for the editor script are loaded with wp_set_script_translations().
  • A build workflow compiles the plugin on pull requests, so a dependency bump that breaks the build is caught before release.