From 6c7ed22970e280afde2f64efd0d46024611aad45 Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Thu, 13 Aug 2026 19:42:06 -0500 Subject: [PATCH] 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) --- blocks/featured-stories/block.json | 2 +- blocks/footer-content/block.json | 2 +- blocks/journal-link/block.json | 2 +- blocks/latest-podcast/block.json | 2 +- blocks/podcast-meta/block.json | 2 +- blocks/reading-time/block.json | 2 +- blocks/related-posts/block.json | 2 +- blocks/site-brand/block.json | 2 +- blocks/subscribe-cta/block.json | 2 +- blocks/topic-hero/block.json | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/blocks/featured-stories/block.json b/blocks/featured-stories/block.json index 1942d7f..25649fc 100644 --- a/blocks/featured-stories/block.json +++ b/blocks/featured-stories/block.json @@ -2,7 +2,7 @@ "$schema": "https://schemas.wp.org/trunk/block.json", "apiVersion": 3, "name": "chrnx/featured-stories", - "version": "0.1.0", + "version": "0.2.0", "title": "Featured Stories", "category": "theme", "description": "A sticky-led selection of topic-diverse stories.", diff --git a/blocks/footer-content/block.json b/blocks/footer-content/block.json index 9a7b695..cc98fcb 100644 --- a/blocks/footer-content/block.json +++ b/blocks/footer-content/block.json @@ -2,7 +2,7 @@ "$schema": "https://schemas.wp.org/trunk/block.json", "apiVersion": 3, "name": "chrnx/footer-content", - "version": "0.1.0", + "version": "0.2.0", "title": "CHRNX Footer Content", "category": "theme", "description": "Display translated internal footer navigation and site credit.", diff --git a/blocks/journal-link/block.json b/blocks/journal-link/block.json index 9e80baf..fcd2043 100644 --- a/blocks/journal-link/block.json +++ b/blocks/journal-link/block.json @@ -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.", diff --git a/blocks/latest-podcast/block.json b/blocks/latest-podcast/block.json index 10f2629..97c6e97 100644 --- a/blocks/latest-podcast/block.json +++ b/blocks/latest-podcast/block.json @@ -2,7 +2,7 @@ "$schema": "https://schemas.wp.org/trunk/block.json", "apiVersion": 3, "name": "chrnx/latest-podcast", - "version": "0.1.0", + "version": "0.2.0", "title": "Latest Podcast", "category": "theme", "description": "A linked card for the latest podcast episode.", diff --git a/blocks/podcast-meta/block.json b/blocks/podcast-meta/block.json index 46acf1e..62cb0b5 100644 --- a/blocks/podcast-meta/block.json +++ b/blocks/podcast-meta/block.json @@ -2,7 +2,7 @@ "$schema": "https://schemas.wp.org/trunk/block.json", "apiVersion": 3, "name": "chrnx/podcast-meta", - "version": "0.1.0", + "version": "0.2.0", "title": "Podcast Metadata", "category": "theme", "description": "Safe episode details for the current post.", diff --git a/blocks/reading-time/block.json b/blocks/reading-time/block.json index 34b7abb..31d4327 100644 --- a/blocks/reading-time/block.json +++ b/blocks/reading-time/block.json @@ -2,7 +2,7 @@ "$schema": "https://schemas.wp.org/trunk/block.json", "apiVersion": 3, "name": "chrnx/reading-time", - "version": "0.1.0", + "version": "0.2.0", "title": "Reading Time", "category": "theme", "description": "Display a localized estimate based on the current post content.", diff --git a/blocks/related-posts/block.json b/blocks/related-posts/block.json index 839f807..8994932 100644 --- a/blocks/related-posts/block.json +++ b/blocks/related-posts/block.json @@ -2,7 +2,7 @@ "$schema": "https://schemas.wp.org/trunk/block.json", "apiVersion": 3, "name": "chrnx/related-posts", - "version": "0.1.0", + "version": "0.2.0", "title": "Related Posts", "category": "theme", "description": "Related stories selected by topic, tags, and recency.", diff --git a/blocks/site-brand/block.json b/blocks/site-brand/block.json index 4c74ef1..38fcba6 100644 --- a/blocks/site-brand/block.json +++ b/blocks/site-brand/block.json @@ -2,7 +2,7 @@ "$schema": "https://schemas.wp.org/trunk/block.json", "apiVersion": 3, "name": "chrnx/site-brand", - "version": "0.1.0", + "version": "0.2.0", "title": "CHRNX Site Brand", "category": "theme", "description": "Display the local CHRNX wordmark linked to the site home.", diff --git a/blocks/subscribe-cta/block.json b/blocks/subscribe-cta/block.json index df22698..f86f5c6 100644 --- a/blocks/subscribe-cta/block.json +++ b/blocks/subscribe-cta/block.json @@ -2,7 +2,7 @@ "$schema": "https://schemas.wp.org/trunk/block.json", "apiVersion": 3, "name": "chrnx/subscribe-cta", - "version": "0.1.0", + "version": "0.2.0", "title": "Subscribe CTA", "category": "theme", "description": "A call to action linked to the configured subscribe page.", diff --git a/blocks/topic-hero/block.json b/blocks/topic-hero/block.json index 3191240..165ddeb 100644 --- a/blocks/topic-hero/block.json +++ b/blocks/topic-hero/block.json @@ -2,7 +2,7 @@ "$schema": "https://schemas.wp.org/trunk/block.json", "apiVersion": 3, "name": "chrnx/topic-hero", - "version": "0.1.0", + "version": "0.2.0", "title": "Topic Hero", "category": "theme", "description": "A fixed-art hero for an editorial topic.",