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:
10 files changed
+10
-10
No files matched your search
@@ -2,7 +2,7 @@
|
|||||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||||
"apiVersion": 3,
|
"apiVersion": 3,
|
||||||
"name": "chrnx/featured-stories",
|
"name": "chrnx/featured-stories",
|
||||||
"version": "0.1.0",
|
"version": "0.2.0",
|
||||||
"title": "Featured Stories",
|
"title": "Featured Stories",
|
||||||
"category": "theme",
|
"category": "theme",
|
||||||
"description": "A sticky-led selection of topic-diverse stories.",
|
"description": "A sticky-led selection of topic-diverse stories.",
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||||
"apiVersion": 3,
|
"apiVersion": 3,
|
||||||
"name": "chrnx/footer-content",
|
"name": "chrnx/footer-content",
|
||||||
"version": "0.1.0",
|
"version": "0.2.0",
|
||||||
"title": "CHRNX Footer Content",
|
"title": "CHRNX Footer Content",
|
||||||
"category": "theme",
|
"category": "theme",
|
||||||
"description": "Display translated internal footer navigation and site credit.",
|
"description": "Display translated internal footer navigation and site credit.",
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||||
"apiVersion": 3,
|
"apiVersion": 3,
|
||||||
"name": "chrnx/journal-link",
|
"name": "chrnx/journal-link",
|
||||||
"version": "0.1.0",
|
"version": "0.2.0",
|
||||||
"title": "Journal Link",
|
"title": "Journal Link",
|
||||||
"category": "theme",
|
"category": "theme",
|
||||||
"description": "Display a translated portable link to the full Journal.",
|
"description": "Display a translated portable link to the full Journal.",
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||||
"apiVersion": 3,
|
"apiVersion": 3,
|
||||||
"name": "chrnx/latest-podcast",
|
"name": "chrnx/latest-podcast",
|
||||||
"version": "0.1.0",
|
"version": "0.2.0",
|
||||||
"title": "Latest Podcast",
|
"title": "Latest Podcast",
|
||||||
"category": "theme",
|
"category": "theme",
|
||||||
"description": "A linked card for the latest podcast episode.",
|
"description": "A linked card for the latest podcast episode.",
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||||
"apiVersion": 3,
|
"apiVersion": 3,
|
||||||
"name": "chrnx/podcast-meta",
|
"name": "chrnx/podcast-meta",
|
||||||
"version": "0.1.0",
|
"version": "0.2.0",
|
||||||
"title": "Podcast Metadata",
|
"title": "Podcast Metadata",
|
||||||
"category": "theme",
|
"category": "theme",
|
||||||
"description": "Safe episode details for the current post.",
|
"description": "Safe episode details for the current post.",
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||||
"apiVersion": 3,
|
"apiVersion": 3,
|
||||||
"name": "chrnx/reading-time",
|
"name": "chrnx/reading-time",
|
||||||
"version": "0.1.0",
|
"version": "0.2.0",
|
||||||
"title": "Reading Time",
|
"title": "Reading Time",
|
||||||
"category": "theme",
|
"category": "theme",
|
||||||
"description": "Display a localized estimate based on the current post content.",
|
"description": "Display a localized estimate based on the current post content.",
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||||
"apiVersion": 3,
|
"apiVersion": 3,
|
||||||
"name": "chrnx/related-posts",
|
"name": "chrnx/related-posts",
|
||||||
"version": "0.1.0",
|
"version": "0.2.0",
|
||||||
"title": "Related Posts",
|
"title": "Related Posts",
|
||||||
"category": "theme",
|
"category": "theme",
|
||||||
"description": "Related stories selected by topic, tags, and recency.",
|
"description": "Related stories selected by topic, tags, and recency.",
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||||
"apiVersion": 3,
|
"apiVersion": 3,
|
||||||
"name": "chrnx/site-brand",
|
"name": "chrnx/site-brand",
|
||||||
"version": "0.1.0",
|
"version": "0.2.0",
|
||||||
"title": "CHRNX Site Brand",
|
"title": "CHRNX Site Brand",
|
||||||
"category": "theme",
|
"category": "theme",
|
||||||
"description": "Display the local CHRNX wordmark linked to the site home.",
|
"description": "Display the local CHRNX wordmark linked to the site home.",
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||||
"apiVersion": 3,
|
"apiVersion": 3,
|
||||||
"name": "chrnx/subscribe-cta",
|
"name": "chrnx/subscribe-cta",
|
||||||
"version": "0.1.0",
|
"version": "0.2.0",
|
||||||
"title": "Subscribe CTA",
|
"title": "Subscribe CTA",
|
||||||
"category": "theme",
|
"category": "theme",
|
||||||
"description": "A call to action linked to the configured subscribe page.",
|
"description": "A call to action linked to the configured subscribe page.",
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||||
"apiVersion": 3,
|
"apiVersion": 3,
|
||||||
"name": "chrnx/topic-hero",
|
"name": "chrnx/topic-hero",
|
||||||
"version": "0.1.0",
|
"version": "0.2.0",
|
||||||
"title": "Topic Hero",
|
"title": "Topic Hero",
|
||||||
"category": "theme",
|
"category": "theme",
|
||||||
"description": "A fixed-art hero for an editorial topic.",
|
"description": "A fixed-art hero for an editorial topic.",
|
||||||
|
|||||||
Reference in new issue
Block a user