@bygghammar/cms-platform 0.91.0 → 0.91.1

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/README.md +16 -3
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -8,6 +8,42 @@ matches `package.json` exactly. See
8
8
  Versions 0.1.0 through 0.78.0 predate this repository and were reconstructed
9
9
  from the published npm tarballs.
10
10
 
11
+ ## 0.91.1
12
+
13
+ - Documentation correction, and nothing else. The npm-facing `README.md` said
14
+ contract v2 arrives with "the two `20260904…` publication migrations". Those
15
+ two are what v2 needs in order to work, but they are not the upgrade: a site
16
+ coming directly from `0.90.0-m7.12` is missing all three new canonical
17
+ migrations and must apply them in chronological order —
18
+ `20260904090000_c54603f8-a155-40f8-a86c-54434aa5c0ae.sql`,
19
+ `20260904140000_9f2a7c41-06d5-4d6b-8b4e-1c7a5d3e9b20.sql`, then
20
+ `20260904160000_0d565000-2839-4738-aacc-537d7090398f.sql`.
21
+ - The last two are the contract-v2 publication pair. Applying only that pair
22
+ leaves `missingMigrations` and `compareSchema` reporting
23
+ `20260904090000_c54603f8-…` as still missing, because it is canonical schema
24
+ too and not merely a prerequisite of the pair.
25
+ - `assertPlatformContract(2)` compares contract numbers held in the site's own
26
+ code. It never inspects the database, so a site that passes it has proved
27
+ nothing about schema parity. The README now says so, and
28
+ `tests/platform-contract.test.ts` holds the README to it alongside
29
+ `docs/NEW-SITE.md` and `docs/PAGES.md`.
30
+ - No runtime source, migration SQL, database schema or application behaviour
31
+ changes in this release. Compared with `0.91.0`, the published npm package
32
+ changes only `README.md`, `CHANGELOG.md` and `package.json`, and the README is
33
+ the one carrying the user-facing correction. The repository differs by more
34
+ than the package does: it also holds the README regression test in
35
+ `tests/platform-contract.test.ts` and the release-workflow hardening merged
36
+ after `0.91.0`, which taught release verification to wait out npm's
37
+ asynchronous publishing. Neither of those is included in the npm package.
38
+
39
+ **Already running `0.91.0`?** The package was correct; only its README was
40
+ incomplete, so there is nothing to roll back and no reason to republish. Check
41
+ the database rather than the version: run `missingMigrations(applied)` or
42
+ `compareSchema(applied)` against the migration list your site has actually
43
+ applied, apply any canonical migration they report missing before letting
44
+ editors make further changes, and do not treat contract version 2 as evidence
45
+ of schema parity.
46
+
11
47
  ## 0.91.0
12
48
 
13
49
  - Stable promotion of `0.91.0-m7.1`. There are no runtime source, database
package/README.md CHANGED
@@ -60,9 +60,22 @@ related is ever read in the browser, and the font picker needs no API key. See
60
60
  - `PLATFORM_CONTRACT_VERSION` (`platform/contract`) is bumped when a shared
61
61
  screen starts requiring schema or adapter capabilities an older site lacks.
62
62
  Sites pin it in a test. It is **v2**: page saves, publishing, trashing and
63
- restoring go through database functions that the two `20260904…` publication
64
- migrations install, so migrations are applied before the package is deployed.
65
- `docs/NEW-SITE.md` gives the order.
63
+ restoring go through database functions. Upgrading straight from the last
64
+ pre-v2 published package, `0.90.0-m7.12`, means applying all three new
65
+ canonical migrations, in chronological order:
66
+
67
+ 1. `20260904090000_c54603f8-a155-40f8-a86c-54434aa5c0ae.sql`
68
+ 2. `20260904140000_9f2a7c41-06d5-4d6b-8b4e-1c7a5d3e9b20.sql`
69
+ 3. `20260904160000_0d565000-2839-4738-aacc-537d7090398f.sql`
70
+
71
+ The last two are the pair that establishes contract-v2 publication
72
+ behaviour, but the first is canonical schema too, so applying only the pair
73
+ still leaves `missingMigrations` and `compareSchema` reporting drift. Apply
74
+ them before the v2 package is deployed, then verify the two things
75
+ separately: `missingMigrations(applied)` reports nothing missing, **and**
76
+ `assertPlatformContract(2)` passes. The second only compares version numbers
77
+ in the site's own code and never reads the database, so it is no substitute
78
+ for the first. `docs/NEW-SITE.md` gives the full order.
66
79
  - `migrations/` is schema only. Site content, SEO copy and seeds never belong
67
80
  there.
68
81
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bygghammar/cms-platform",
3
- "version": "0.91.0",
3
+ "version": "0.91.1",
4
4
  "description": "Shared CMS platform: blocks, block types, i18n core, UI primitives and design-token contract used by every Bygghammar/Voyara site.",
5
5
  "type": "module",
6
6
  "sideEffects": [