@takazudo/zudo-sg 0.1.2 → 0.2.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.
Files changed (3) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +27 -3
  3. package/package.json +7 -7
package/CHANGELOG.md CHANGED
@@ -4,6 +4,26 @@ All notable changes to `@takazudo/zudo-sg` are documented in this file.
4
4
 
5
5
  The format is based on Keep a Changelog, and release notes are generated from the changelog MDX pages.
6
6
 
7
+ ## [0.2.0] - 2026-09-20
8
+
9
+ A requirements release. The engine's code is unchanged, but its published peer
10
+ floors move up, so a host on an older toolchain must upgrade its peers before
11
+ installing this version. That is why it is a minor bump rather than a patch.
12
+
13
+ ### Breaking Changes
14
+
15
+ - **Raised peer floors.** `@takazudo/zfb` is now `^2.19.0` (was `^2.18.0`),
16
+ `@takazudo/zudo-doc` is now `^5.26.0` (was `^5.25.0`), and `preact` is now
17
+ `^10.29.8` (was `^10.29.1`). The zfb floor follows `@takazudo/zudo-doc`
18
+ 5.26.0's own requirement. Upgrade these three in the host before moving to
19
+ 0.2.0; hosts that stay on the older peers should remain on 0.1.x.
20
+
21
+ ### Other Changes
22
+
23
+ - Bumped the `postcss` dependency to `^8.5.28`.
24
+ - The README now documents upstream provenance, the current peer requirements,
25
+ and scaffolding a new host with the `create-zudo-sg` initializer.
26
+
7
27
  ## [0.1.2] - 2026-09-19
8
28
 
9
29
  A toolchain-only release. The engine is built and verified against
package/README.md CHANGED
@@ -38,14 +38,32 @@ Preact + zfb hosts only. React 19 hosts are an explicit non-goal for this
38
38
  release (see the ADR's "Framework scope" decision for the seam that would
39
39
  enable them later).
40
40
 
41
+ ## Quick start with the initializer
42
+
43
+ For a new host, use the pnpm initializer:
44
+
45
+ ```sh
46
+ pnpm create zudo-sg@latest my-styleguide
47
+ cd my-styleguide
48
+ pnpm install
49
+ pnpm gen-registry
50
+ pnpm gen-token-manifest
51
+ pnpm dev
52
+ ```
53
+
54
+ The initializer is available from its first npm release; nothing is published
55
+ by this epic. It copies a private starter with three example Preact components,
56
+ stories, token CSS, a preview entry, and the zfb/zudo-doc composition already
57
+ wired. The CLI prints the same next steps after scaffolding.
58
+
41
59
  ## Installation
42
60
 
43
61
  ```sh
44
- pnpm add @takazudo/zudo-sg@latest @takazudo/zfb@^2.18.0 @takazudo/zfb-md-wasm@^2.18.0 @takazudo/zfb-runtime@^2.18.0 @takazudo/zudo-doc@^5.25.0 @takazudo/zdtp@^0.8.0 diff@^8.0.4 katex@^0.16.38 preact@^10.29.1 preact-render-to-string@^6.6.6 tailwindcss@^4.2.0 zod@^4.3.6
62
+ pnpm add @takazudo/zudo-sg@latest @takazudo/zfb@^2.19.0 @takazudo/zfb-md-wasm@^2.19.0 @takazudo/zfb-runtime@^2.19.0 @takazudo/zudo-doc@^5.26.0 @takazudo/zdtp@^0.8.0 diff@^8.0.4 katex@^0.16.38 preact@^10.29.8 preact-render-to-string@^6.6.6 tailwindcss@^4.2.0 zod@^4.3.6
45
63
  ```
46
64
 
47
- The engine peers are `@takazudo/zfb ^2.18.0`, `@takazudo/zudo-doc ^5.25.0`,
48
- `@takazudo/zdtp ^0.8.0`, and `preact ^10.29.1`. `@takazudo/zdtp` is required:
65
+ The engine peers are `@takazudo/zfb ^2.19.0`, `@takazudo/zudo-doc ^5.26.0`,
66
+ `@takazudo/zdtp ^0.8.0`, and `preact ^10.29.8`. `@takazudo/zdtp` is required:
49
67
  the injected `/tokens` route imports its dashboard at build time. The
50
68
  `@takazudo/zfb-md-wasm`, `@takazudo/zfb-runtime`, `diff`, `katex`, and `zod`
51
69
  entries are prerequisites inherited from zfb/zudo-doc; zudo-doc's published
@@ -56,6 +74,12 @@ by the fixture's component and preview-style setup, respectively; add them
56
74
  when your host uses those same pieces. The command above reproduces the full
57
75
  fixture dependency set.
58
76
 
77
+ Keep the `tokens` block in `zudo-sg.config.mjs`: the initializer's config
78
+ typing treats it as required, and `gen-token-manifest` needs its two CSS paths
79
+ and `manifestOut` to populate the `/tokens` dashboards. Manual adopters should
80
+ also retain `@takazudo/zdtp`, `diff`, and `katex`; they are required host
81
+ dependencies, not optional extras.
82
+
59
83
  ## Composing it into a host
60
84
 
61
85
  ```ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takazudo/zudo-sg",
3
- "version": "0.1.2",
3
+ "version": "0.2.0",
4
4
  "type": "module",
5
5
  "description": "zudo-sg styleguide engine — story registry, catalog routes and preview machinery for zfb + zudo-doc hosts.",
6
6
  "license": "MIT",
@@ -133,27 +133,27 @@
133
133
  "@codemirror/state": "^6.0.0",
134
134
  "@codemirror/theme-one-dark": "^6.0.0",
135
135
  "@codemirror/view": "^6.0.0",
136
- "postcss": "^8.5.15",
136
+ "postcss": "^8.5.28",
137
137
  "@tailwindcss/node": "^4.2.0",
138
138
  "@tailwindcss/oxide": "^4.2.0"
139
139
  },
140
140
  "peerDependencies": {
141
- "@takazudo/zfb": "^2.18.0",
141
+ "@takazudo/zfb": "^2.19.0",
142
142
  "@takazudo/zdtp": "^0.8.0",
143
- "@takazudo/zudo-doc": "^5.25.0",
144
- "preact": "^10.29.1"
143
+ "@takazudo/zudo-doc": "^5.26.0",
144
+ "preact": "^10.29.8"
145
145
  },
146
146
  "devDependencies": {
147
147
  "@takazudo/zdtp": "0.8.0",
148
148
  "@takazudo/zfb": "2.19.0",
149
- "@takazudo/zudo-doc": "5.25.0",
149
+ "@takazudo/zudo-doc": "5.26.0",
150
150
  "@testing-library/jest-dom": "^6.9.1",
151
151
  "@testing-library/preact": "^3.2.4",
152
152
  "@types/culori": "^4.0.1",
153
153
  "@types/node": "^22.0.0",
154
154
  "culori": "^4.0.2",
155
155
  "happy-dom": "^16.8.1",
156
- "preact": "^10.29.1",
156
+ "preact": "^10.29.8",
157
157
  "tsup": "^8.5.0",
158
158
  "typescript": "^5.9.0",
159
159
  "vitest": "^4.1.9"