Skip to content

v0.2.1 — Patch release (fixes v0.2.0)

Choose a tag to compare

@axielroque axielroque released this 20 Aug 17:34
· 107 commits to main since this release

This release corrects v0.2.0, which shipped with a stale compiled bundle.

What was wrong in v0.2.0

build/ (the compiled JS actually served to the browser) hadn't been rebuilt since PR #6, so it was missing the per-order cost snapshot disclosure UI added in PR #10 — the backend already computed and returned cost_coverage.snapshot_covered_pct correctly, but the dashboard never rendered it. Confirmed via grep -c "snapshot_covered_pct\|placed before per-order" build/index.js: 0 in v0.2.0, 1 here.

What's fixed/added in v0.2.1

  • Fix: rebuilt the compiled bundle to include the snapshot cost disclosure UI.
  • Add: PROFITLENS_DEV constant as a second gate for the plugin's dev-only tools (mock data switcher) — WP_DEBUG alone isn't a reliable proxy for "this is a Profit Lens development install," since real stores run it in production for unrelated reasons.
  • Add: .distignore, so a WordPress.org package only ships the compiled build/, not tests/, src/, or dev tooling manifests.

PHPUnit: 57/57 passing.

🤖 Generated with Claude Code