Skip to content

v0.3.0

Choose a tag to compare

@TBarregren TBarregren released this 10 Jun 10:03
· 110 commits to main since this release

Raises the WordPress floor to 6.6 and wires the automated integration and end-to-end test layers. The floor change fixes a bug present since 0.1.0: on WordPress 6.5 the compiled editor scripts were silently skipped (they depend on the react-jsx-runtime script that ships from 6.6), so the blocks never appeared in the editor — caught by the new real-browser verification and now pinned by the e2e suite.

Added

  • Automated integration-test suite (tests/Integration/, Pest against a booted @wordpress/env WordPress, npm run test:integration): plugin and block registration, the CLI collection/image lifecycle, the import and REST-upload round-trips (including nonce, capability, and path-traversal negatives), doctor reconciliation on a real on-disk collection, and the index's mtime self-heal.
  • Automated end-to-end suite (tests/e2e/, Playwright + @wordpress/e2e-test-utils-playwright in real Chromium, npm run test:e2e): inserting both blocks in the editor — including opening the gallery's Layout panel and waiting for the ServerSideRender preview, the regression test for both editor bugs — plus a real in-browser Drop Zone upload round-trip (Canvas WebP conversion included), the lightbox's keyboard/focus/scroll behaviour as an anonymous visitor, and the no-JavaScript <a href> fallback.
  • A CI job that runs both new suites against @wordpress/env on every push.

Changed

  • The WordPress floor is raised from 6.5 to 6.6. The compiled blocks depend on the react-jsx-runtime script that WordPress ships from 6.6; on 6.5, WordPress silently skips enqueueing the editor scripts, so the blocks never appeared in the editor at all (a bug present since 0.1.0 that only a real browser could reveal — now covered by the e2e suite). Rather than shipping a hand-rolled JSX-runtime polyfill, the minimum version is now one where the editor actually works.

Full changelog: https://github.com/Kntnt/kntnt-photo-drop/blob/v0.3.0/CHANGELOG.md