@takazudo/zudo-sg 0.5.1 → 0.5.2
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 +18 -0
- package/README.md +33 -0
- package/package.json +7 -6
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,24 @@ 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.5.2] - 2026-10-12
|
|
8
|
+
|
|
9
|
+
This maintenance release raises the minimum versions of the engine's CodeMirror
|
|
10
|
+
and Lezer runtime dependencies and documents how hosts recover from a stale
|
|
11
|
+
Lezer lockfile. The public API is unchanged.
|
|
12
|
+
|
|
13
|
+
### Other Changes
|
|
14
|
+
|
|
15
|
+
- Raise the runtime dependency minimums to `@codemirror/view` ^6.43.14 and
|
|
16
|
+
`@lezer/highlight` ^1.2.5, so fresh installs resolve the versions the code
|
|
17
|
+
panel is tested against.
|
|
18
|
+
- The README now explains how a host lockfile that keeps an older
|
|
19
|
+
`@lezer/common` breaks code-panel highlighting, and how `pnpm dedupe`
|
|
20
|
+
fixes it.
|
|
21
|
+
- Development tooling only: TypeScript checks now run on the native
|
|
22
|
+
TypeScript 7 compiler through the TypeScript 6 API, and test dependencies
|
|
23
|
+
were updated (`@testing-library/jest-dom` 7, `@types/node` 22.20.5).
|
|
24
|
+
|
|
7
25
|
## [0.5.1] - 2026-10-12
|
|
8
26
|
|
|
9
27
|
This release adds an opt-in, same-origin external preview runtime contract with
|
package/README.md
CHANGED
|
@@ -153,6 +153,39 @@ and `manifestOut` to populate the `/tokens` dashboards. Manual adopters should
|
|
|
153
153
|
also retain `@takazudo/zdtp`, `diff`, and `katex`; they are required host
|
|
154
154
|
dependencies, not optional extras.
|
|
155
155
|
|
|
156
|
+
## Recover highlighting in an existing consumer lock
|
|
157
|
+
|
|
158
|
+
An existing lock can retain two `@lezer/common` module identities even after
|
|
159
|
+
installing compatible engine/editor versions. The visible symptom is missing
|
|
160
|
+
TSX or editable CSS highlighting with a CodeMirror plugin error
|
|
161
|
+
`tags is not iterable` (the variable name can differ in a minified bundle);
|
|
162
|
+
successful editor construction or typing does not
|
|
163
|
+
establish that highlighting works.
|
|
164
|
+
|
|
165
|
+
From the affected host, diagnose and deduplicate its own graph:
|
|
166
|
+
|
|
167
|
+
```sh
|
|
168
|
+
pnpm dedupe --check
|
|
169
|
+
pnpm dedupe --ignore-scripts
|
|
170
|
+
pnpm install --frozen-lockfile
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
The first command is diagnostic and exits nonzero when deduplication is needed.
|
|
174
|
+
Review the resulting lock diff. Rebuild the host's generated output from scratch
|
|
175
|
+
(the packed proof removes only `dist` and `.zfb-build` before `pnpm exec zfb build`),
|
|
176
|
+
then verify TSX source tokens, editable CSS tokens, Live CSS application and
|
|
177
|
+
clearing, preview isolation, and absence of plugin/browser errors.
|
|
178
|
+
An ordinary or frozen install alone can preserve the split.
|
|
179
|
+
|
|
180
|
+
This recovery is scoped to pnpm **11.5.2**; other package managers need their own
|
|
181
|
+
resolution proof. It is consumer remediation, not a universal package-side fix.
|
|
182
|
+
Published compatible Lezer ranges still admit older common modules; direct
|
|
183
|
+
floors or a root-workspace dedupe check do not guarantee every retained consumer
|
|
184
|
+
lock. The separate packed diagnostic `pnpm verify:retained-lezer-lock` in the
|
|
185
|
+
engine repository preserves a clean control and treats the pre-recovery failure
|
|
186
|
+
as expected evidence. Track the remaining compatibility requirement in
|
|
187
|
+
[zudo-sg#963](https://github.com/Takazudo/zudo-sg/issues/963).
|
|
188
|
+
|
|
156
189
|
## Composing it into a host
|
|
157
190
|
|
|
158
191
|
```ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@takazudo/zudo-sg",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
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",
|
|
@@ -152,8 +152,8 @@
|
|
|
152
152
|
"@codemirror/lang-javascript": "^6.0.0",
|
|
153
153
|
"@codemirror/language": "^6.13.1",
|
|
154
154
|
"@codemirror/state": "^6.7.6",
|
|
155
|
-
"@codemirror/view": "^6.
|
|
156
|
-
"@lezer/highlight": "^1.
|
|
155
|
+
"@codemirror/view": "^6.43.14",
|
|
156
|
+
"@lezer/highlight": "^1.2.5",
|
|
157
157
|
"postcss": "^8.5.28",
|
|
158
158
|
"preact": "^10.29.1"
|
|
159
159
|
},
|
|
@@ -166,13 +166,14 @@
|
|
|
166
166
|
"@takazudo/zdtp": "0.8.6",
|
|
167
167
|
"@takazudo/zfb": "4.3.1",
|
|
168
168
|
"@takazudo/zudo-doc": "6.0.0",
|
|
169
|
-
"@testing-library/jest-dom": "^
|
|
169
|
+
"@testing-library/jest-dom": "^7.0.1",
|
|
170
170
|
"@types/culori": "^4.0.1",
|
|
171
|
-
"@types/node": "^22.
|
|
171
|
+
"@types/node": "^22.20.5",
|
|
172
172
|
"culori": "^4.0.2",
|
|
173
173
|
"happy-dom": "20.14.6",
|
|
174
174
|
"tsup": "^8.5.0",
|
|
175
|
-
"typescript": "
|
|
175
|
+
"@typescript/native": "npm:typescript@^7.0.2",
|
|
176
|
+
"typescript": "npm:@typescript/typescript6@^6.0.2",
|
|
176
177
|
"vite": "7.3.5",
|
|
177
178
|
"vitest": "4.1.11"
|
|
178
179
|
},
|