@takazudo/zudo-sg 0.7.0 → 0.8.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
|
@@ -4,6 +4,29 @@ 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.8.0] - 2026-10-28
|
|
8
|
+
|
|
9
|
+
This release moves the engine onto zdtp 0.9, which renders with zfb's
|
|
10
|
+
zudo-react runtime instead of Preact. The engine's public API is unchanged.
|
|
11
|
+
Hosts upgrade by moving their zdtp and zudo-doc installs to the new peer
|
|
12
|
+
floors.
|
|
13
|
+
|
|
14
|
+
### Breaking Changes
|
|
15
|
+
|
|
16
|
+
- The `@takazudo/zdtp` peer is now ^0.9.0 (was ^0.8.7). zdtp 0.8 hosts are no
|
|
17
|
+
longer supported.
|
|
18
|
+
- The `@takazudo/zudo-doc` peer is now ^9.1.0 (was ^9.0.0).
|
|
19
|
+
|
|
20
|
+
### Other Changes
|
|
21
|
+
|
|
22
|
+
- The token dashboard adapter mounts through zdtp's `mountTokenDashboard` on
|
|
23
|
+
the host's zudo-react runtime. The engine no longer depends on `preact`, so
|
|
24
|
+
a host's install graph needs no Preact at all.
|
|
25
|
+
- The packed-install verifier proves the host graph is Preact-free and that
|
|
26
|
+
the host, the engine and zdtp share one `@takazudo/zfb`. Its Chromium
|
|
27
|
+
fallback also finds newer Playwright builds unpacked to `chrome-linux64/`.
|
|
28
|
+
- The README install line and peer list follow the new floors.
|
|
29
|
+
|
|
7
30
|
## [0.7.0] - 2026-10-27
|
|
8
31
|
|
|
9
32
|
This release moves the engine onto zudo-doc 9. The engine's public API is
|
package/README.md
CHANGED
|
@@ -98,9 +98,9 @@ inside detail-page iframes.
|
|
|
98
98
|
|
|
99
99
|
Module-mode stories use zfb's zudo-react runtime. Hosts using another
|
|
100
100
|
framework can use descriptor mode with an external preview document; see the
|
|
101
|
-
ADR's "Framework scope" decision. The `/tokens` dashboard
|
|
102
|
-
|
|
103
|
-
|
|
101
|
+
ADR's "Framework scope" decision. The `/tokens` dashboard mounts zdtp's
|
|
102
|
+
zudo-react widget through an engine-owned adapter, sharing the host's
|
|
103
|
+
`@takazudo/zfb` runtime; neither the engine nor the host depends on Preact.
|
|
104
104
|
|
|
105
105
|
## Quick start with the initializer
|
|
106
106
|
|
|
@@ -132,15 +132,16 @@ output as drift and never writes it.
|
|
|
132
132
|
## Installation
|
|
133
133
|
|
|
134
134
|
```sh
|
|
135
|
-
pnpm add @takazudo/zudo-sg@latest @takazudo/zfb@^5.1.5 @takazudo/zfb-md-wasm@^5.1.5 @takazudo/zfb-runtime@^5.1.5 @takazudo/zudo-doc@^9.
|
|
135
|
+
pnpm add @takazudo/zudo-sg@latest @takazudo/zfb@^5.1.5 @takazudo/zfb-md-wasm@^5.1.5 @takazudo/zfb-runtime@^5.1.5 @takazudo/zudo-doc@^9.1.0 @takazudo/zdtp@^0.9.0 diff@^8.0.4 katex@^0.19.0 zod@^4.3.6
|
|
136
136
|
```
|
|
137
137
|
|
|
138
|
-
The engine peers are `@takazudo/zfb ^5.1.5`, `@takazudo/zudo-doc ^9.
|
|
139
|
-
and `@takazudo/zdtp ^0.
|
|
138
|
+
The engine peers are `@takazudo/zfb ^5.1.5`, `@takazudo/zudo-doc ^9.1.0`,
|
|
139
|
+
and `@takazudo/zdtp ^0.9.0`. zfb 5 and zudo-doc 9 require Node.js 24, and
|
|
140
140
|
zudo-doc requires KaTeX `^0.18.2 || ^0.19.0`. The former zudo-doc 6.2.0 /
|
|
141
141
|
Node.js 22 option was retired with zfb 5. `@takazudo/zdtp` is required:
|
|
142
142
|
the injected `/tokens` route loads its dashboard through the engine-owned
|
|
143
|
-
|
|
143
|
+
adapter, which calls zdtp's `mountTokenDashboard` on the host's
|
|
144
|
+
zudo-react runtime. The engine has no Preact dependency. The
|
|
144
145
|
`@takazudo/zfb-md-wasm`, `@takazudo/zfb-runtime`, `diff`, `katex`, and `zod`
|
|
145
146
|
entries are prerequisites inherited from zfb/zudo-doc; zudo-doc's published
|
|
146
147
|
route dist imports `diff` and `katex` even when those features are disabled
|
|
@@ -325,7 +326,7 @@ The public leaf modules `@takazudo/zudo-sg/preview/external-runtime` and
|
|
|
325
326
|
validators. They can be imported in Node/SSR without a browser. React,
|
|
326
327
|
ReactDOM, fixture loaders and component closures belong only in the host's
|
|
327
328
|
separately built same-origin preview document. The engine shell and catalog
|
|
328
|
-
stay zudo-react
|
|
329
|
+
stay zudo-react, and so does the zdtp dashboard adapter.
|
|
329
330
|
|
|
330
331
|
These contracts are additive. `preview/messages` remains import-free and
|
|
331
332
|
continues accepting legacy messages with no `v` and current `v: 1` messages.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { type TokenDashboardProps } from "@takazudo/zdtp/dashboard";
|
|
1
|
+
import { type TokenDashboardProps } from "@takazudo/zdtp/dashboard/client";
|
|
2
2
|
export declare function mountDashboard(host: HTMLElement, props: TokenDashboardProps): () => void;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { TokenDashboard } from "@takazudo/zdtp/dashboard";
|
|
1
|
+
import { mountTokenDashboard } from "@takazudo/zdtp/dashboard/client";
|
|
3
2
|
function mountDashboard(host, props) {
|
|
4
|
-
|
|
5
|
-
return () =>
|
|
3
|
+
const handle = mountTokenDashboard(host, props);
|
|
4
|
+
return () => handle.dispose();
|
|
6
5
|
}
|
|
7
6
|
export {
|
|
8
7
|
mountDashboard
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@takazudo/zudo-sg",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.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",
|
|
@@ -154,18 +154,17 @@
|
|
|
154
154
|
"@codemirror/state": "^6.7.6",
|
|
155
155
|
"@codemirror/view": "^6.43.14",
|
|
156
156
|
"@lezer/highlight": "^1.2.5",
|
|
157
|
-
"postcss": "^8.5.28"
|
|
158
|
-
"preact": "^10.29.1"
|
|
157
|
+
"postcss": "^8.5.28"
|
|
159
158
|
},
|
|
160
159
|
"peerDependencies": {
|
|
161
160
|
"@takazudo/zfb": "^5.1.5",
|
|
162
|
-
"@takazudo/zdtp": "^0.
|
|
163
|
-
"@takazudo/zudo-doc": "^9.
|
|
161
|
+
"@takazudo/zdtp": "^0.9.0",
|
|
162
|
+
"@takazudo/zudo-doc": "^9.1.0"
|
|
164
163
|
},
|
|
165
164
|
"devDependencies": {
|
|
166
|
-
"@takazudo/zdtp": "0.
|
|
165
|
+
"@takazudo/zdtp": "0.9.0",
|
|
167
166
|
"@takazudo/zfb": "5.1.5",
|
|
168
|
-
"@takazudo/zudo-doc": "9.
|
|
167
|
+
"@takazudo/zudo-doc": "9.1.0",
|
|
169
168
|
"@testing-library/jest-dom": "^7.0.1",
|
|
170
169
|
"@types/culori": "^4.0.1",
|
|
171
170
|
"@types/node": "^22.20.5",
|