fix: version block assets so browsers pick up changes

Block viewScript and style URLs are versioned from block.json, not
CHRNX_VERSION, so they kept serving cached JavaScript after the theme
version moved. The theme toggle looked broken because the browser was
still running the script that looked for radio inputs.

All block.json versions now track CHRNX_VERSION, and a smoke test fails
if any of them drift, so this cannot come back silently.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
chrnxandClaude Opus 5 committed 2026-08-13 19:42:06 -05:00
1 parent 842c8a9b37
commit 6c7ed22970
10 files changed
+10 -10

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 3,
"name": "chrnx/journal-link",
"version": "0.1.0",
"version": "0.2.0",
"title": "Journal Link",
"category": "theme",
"description": "Display a translated portable link to the full Journal.",