diff --git a/.changeset/assetupdater-reinit-bypass.md b/.changeset/assetupdater-reinit-bypass.md deleted file mode 100644 index 1c7f360..0000000 --- a/.changeset/assetupdater-reinit-bypass.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@axistaylor/nextpress": patch ---- - -AssetUpdater now re-executes WordPress view scripts on client-side navigation, so scripts using the standard `document.readyState` / `DOMContentLoaded` ready-check re-initialize for the new page's content without any SPA-specific code. Adds a `reinitBypassHandles` prop to opt non-idempotent scripts (e.g. `wc-order-attribution`, whose `customElements.define()` throws on a second run) out of re-running — those load once and are skipped on subsequent navigations. diff --git a/packages/js/CHANGELOG.md b/packages/js/CHANGELOG.md index 1534c77..e012c82 100644 --- a/packages/js/CHANGELOG.md +++ b/packages/js/CHANGELOG.md @@ -1,5 +1,11 @@ # @axistaylor/nextpress +## 1.8.2 + +### Patch Changes + +- [#73](https://github.com/AxisTaylor/nextpress/pull/73) [`650fbea`](https://github.com/AxisTaylor/nextpress/commit/650fbea3f75e1d1b891d4d28e38ca0de5608bec0) Thanks [@kidunot89](https://github.com/kidunot89)! - AssetUpdater now re-executes WordPress view scripts on client-side navigation, so scripts using the standard `document.readyState` / `DOMContentLoaded` ready-check re-initialize for the new page's content without any SPA-specific code. Adds a `reinitBypassHandles` prop to opt non-idempotent scripts (e.g. `wc-order-attribution`, whose `customElements.define()` throws on a second run) out of re-running — those load once and are skipped on subsequent navigations. + ## 1.8.1 ### Patch Changes diff --git a/packages/js/package.json b/packages/js/package.json index 551edef..0faad1f 100644 --- a/packages/js/package.json +++ b/packages/js/package.json @@ -1,6 +1,6 @@ { "name": "@axistaylor/nextpress", - "version": "1.8.1", + "version": "1.8.2", "description": "Render WordPress Gutenberg content 1:1 in Next.js. Automatic script/stylesheet loading, middleware proxy, and multi-WordPress support.", "keywords": [ "wordpress",