@akinon/theme-contract 2.0.146-rc.0 → 2.0.147-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  # @akinon/theme-contract
2
2
 
3
- ## 2.0.146-rc.0
3
+ ## 2.0.147-beta.0
4
+
5
+ ## 2.0.146
6
+
7
+ ### Patch Changes
8
+
9
+ - 7db9912: ZERO-5209: Document pz-theme on the v1 line and guard the composable-auth codemod
10
+
11
+ - The `@akinon/pz-theme` readme states the v1 compatibility policy: one release line from main, the versions that build on `@akinon/next` 1.x (2.0.106 and later), the core versions some editor features need, the setup a v1 brand needs, and the rules that keep the package buildable on v1. The `@akinon/theme-contract` readme points v1 storefronts there.
12
+ - `projectzero codemod --codemod=composable-auth` leaves a project without `@akinon/pz-theme`, or with one older than 2.0.41, untouched instead of writing a login layout whose import cannot resolve.
13
+ - `projectzero --plugins` offers List Hover Image (`pz-list-hover-image`), which its readme already told brands to install from there.
4
14
 
5
15
  ## 2.0.145
6
16
 
package/README.md CHANGED
@@ -67,6 +67,13 @@ A storefront edited with the theme editor needs these variables. `@akinon/next`
67
67
 
68
68
  The report tells the editor apart by the request's `Origin`, with the same rule the preview applies (`createOriginGuard`): the listed origins, plus localhost outside production.
69
69
 
70
+ ## v1 storefronts
71
+
72
+ There is no 1.x release of this package. A storefront on `@akinon/next` 1.x gets the 2.x release that its `@akinon/pz-theme` depends on, and never lists this package itself. See "Using pz-theme on the v1 line" in the `@akinon/pz-theme` readme for the supported versions and the setup.
73
+
74
+ - The package ships TypeScript sources (`main: src/index.ts`), so the storefront has to transpile it. `withPzConfig` does that on every 2.x core and on 1.x from 1.126.17; an older 1.x storefront adds it to `transpilePackages` itself.
75
+ - Only the 2.x core serves `/theme-editor/health`. A 1.x storefront answers 404, which the editor reads as unknown, so it carries on without naming a missing variable. `NEXT_PUBLIC_THEME_EDITOR_ORIGINS` is still required in production.
76
+
70
77
  ## Versioning
71
78
 
72
79
  `THEME_CONTRACT_PROTOCOL_VERSION` bumps ONLY on a breaking change to the envelope or an existing message's data shape. Adding a message type is not breaking — unknown types are reported and skipped. Messages from pre-contract builds (no `protocolVersion` field) are accepted as version 0.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akinon/theme-contract",
3
- "version": "2.0.146-rc.0",
3
+ "version": "2.0.147-beta.0",
4
4
  "description": "Shared wire contract between the theme editor (pz-theme-editor) and the storefront renderer (@akinon/pz-theme): theme types, postMessage envelope, runtime validation and origin helpers.",
5
5
  "license": "MIT",
6
6
  "main": "src/index.ts",