@takazudo/zudo-doc 4.4.10 → 4.4.12
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 +28 -0
- package/README.md +1 -1
- package/dist/mermaid-enlarge/index.js +2 -1
- package/package.json +16 -10
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,34 @@ All notable changes to `@takazudo/zudo-doc` 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
|
+
## [4.4.12] - 2026-07-30
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
- Restore EN `/docs/reference/design-token-panel` rendering — the page shipped its whole body as a single `<pre data-zfb-content-fallback>` blob due to a byte-offset-sensitive upstream zfb bundler bug, worked around with an exact-equivalent rewording (c3d9c78)
|
|
12
|
+
- Re-inject the mermaid enlarge button after a theme re-render (5b9a655)
|
|
13
|
+
- Close the bare same-page fragment guard hole in the link checker (ab2fea6)
|
|
14
|
+
|
|
15
|
+
### Other Changes
|
|
16
|
+
|
|
17
|
+
- New `check:content-fallback` build gate: fail the build when any built page ships a content-fallback blob, wired into b4push and the build-site jobs of all three CI workflows (a0e4361, 945c392)
|
|
18
|
+
- Record Takazudo/zudo-front-builder#2186 as the content-fallback guard's upstream tracking issue and retirement condition (6cee4ca)
|
|
19
|
+
- Bump the zfb family to 0.1.0-next.98 and add routes-src exports (8143de0)
|
|
20
|
+
|
|
21
|
+
## [4.4.11] - 2026-07-28
|
|
22
|
+
|
|
23
|
+
A maintenance release: CI post-deploy gate reliability, the `packages/zudo-doc` dev loop, and documentation. The published package artifacts are unchanged — the build path still cleans exactly as before.
|
|
24
|
+
|
|
25
|
+
### Bug Fixes
|
|
26
|
+
|
|
27
|
+
- Keep `packages/zudo-doc` declarations alive during dev. `tsup --watch` ran with `clean: true` and `dts: false`, so a dev session wiped `dist/` and regenerated no `.d.ts` at all (285 → 0). `dev` now pairs `tsup --watch` with a `tsc --watch` declarations pass, and only non-watch builds clean (a705fca1f, #3126)
|
|
28
|
+
- Widen the post-deploy smoke-gate retry window so slow asset propagation no longer turns a green deploy red, and split the CSS-shape action's HTML fetch from its link grep so a failure names the URL that died instead of surfacing a bare curl exit code (960ff3e3f, #3123)
|
|
29
|
+
- Give the six post-deploy gate steps a failure branch naming the URL and curl's exit status. Under `set -euo pipefail` a persistent 404 aborted at the assignment, so the `::error::` annotation was unreachable — the exact diagnosability gap the gate was meant to close. Gate-carrying jobs raised to `timeout-minutes: 15` so a job timeout cannot pre-empt the annotation (5f2266eaf, #3124)
|
|
30
|
+
|
|
31
|
+
### Other Changes
|
|
32
|
+
|
|
33
|
+
- Document the `run-p` dev-session cascade as accepted behaviour. One watcher exiting non-zero tears down all of `pnpm dev`, because `run-p` aborts its siblings and the zudo-doc watchers are themselves a nested `run-p`. Records the trigger set (including that `tsup --watch` exits on a failed *first* build while `tsc --watch` does not), the `EMFILE` vs `ENOSPC` inotify limit distinction, and why `--continue-on-error` is the wrong remedy (b9d7d5a29, 23f0deac1, #3129)
|
|
34
|
+
|
|
7
35
|
## [4.4.10] - 2026-07-28
|
|
8
36
|
|
|
9
37
|
### Bug Fixes
|
package/README.md
CHANGED
|
@@ -68,6 +68,6 @@ The fix is to import the package's build-generated safelist into your Tailwind C
|
|
|
68
68
|
|
|
69
69
|
## Dev workflow (in this repo)
|
|
70
70
|
|
|
71
|
-
This package is published to npm as `@takazudo/zudo-doc` (since `0.2.0`, `latest` tracks the current line). Inside this repo the host site consumes it as a workspace package through its compiled `dist/` — `pnpm dev` at the repo root runs `tsup --watch` so edits under `src/` rebuild automatically; for a one-off rebuild use `pnpm --filter @takazudo/zudo-doc build`.
|
|
71
|
+
This package is published to npm as `@takazudo/zudo-doc` (since `0.2.0`, `latest` tracks the current line). Inside this repo the host site consumes it as a workspace package through its compiled `dist/` — `pnpm dev` at the repo root runs two watchers in parallel, `tsup --watch` for the JS and `tsc -p tsconfig.build.json --watch` for the `.d.ts`, so edits under `src/` rebuild both halves automatically; for a one-off rebuild use `pnpm --filter @takazudo/zudo-doc build`.
|
|
72
72
|
|
|
73
73
|
zfb itself comes from npm (versions pinned in the root `package.json`). To develop against a local zfb checkout, use the temporary `pnpm.overrides` link escape hatch documented in the root `CLAUDE.md` — do not commit the override.
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
} from "../island-types/index.js";
|
|
10
10
|
const CONTENT_SCOPE_SELECTOR = "main .zd-content";
|
|
11
11
|
const DIAGRAM_SVG_SELECTOR = ":scope > svg";
|
|
12
|
+
const INJECTED_BTN_SELECTOR = ":scope > .zd-enlarge-btn";
|
|
12
13
|
const BTN_INJECTED_ATTR = "data-mermaid-enlarge-ready";
|
|
13
14
|
const ZOOM_STEP = 1.25;
|
|
14
15
|
const MIN_SCALE = 1;
|
|
@@ -41,7 +42,7 @@ function MermaidEnlarge() {
|
|
|
41
42
|
useEffect(() => {
|
|
42
43
|
let mutationObserver = null;
|
|
43
44
|
function injectButton(container) {
|
|
44
|
-
if (container.
|
|
45
|
+
if (container.querySelector(INJECTED_BTN_SELECTOR) !== null) return;
|
|
45
46
|
const rendered = container.hasAttribute("data-mermaid-rendered") || container.querySelector(DIAGRAM_SVG_SELECTOR) !== null;
|
|
46
47
|
if (!rendered) return;
|
|
47
48
|
container.setAttribute(BTN_INJECTED_ATTR, "");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@takazudo/zudo-doc",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.12",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "zudo-doc framework primitives layer that sits on top of zfb's engine — sidebar, theme, TOC, breadcrumb, layouts, head injection, View Transitions, SSR-skip wrappers (per ADR-003).",
|
|
6
6
|
"license": "MIT",
|
|
@@ -233,6 +233,7 @@
|
|
|
233
233
|
"./page-loading.css": "./dist/page-loading.css",
|
|
234
234
|
"./features.css": "./dist/features.css",
|
|
235
235
|
"./theme-packs/*": "./dist/theme-packs/*",
|
|
236
|
+
"./routes-src/*": "./routes-src/*",
|
|
236
237
|
"./tsconfig.base.json": "./tsconfig.base.json",
|
|
237
238
|
"./zfb-config-shim.d.ts": "./zfb-config-shim.d.ts",
|
|
238
239
|
"./virtual-modules.d.ts": "./virtual-modules.d.ts",
|
|
@@ -597,10 +598,10 @@
|
|
|
597
598
|
],
|
|
598
599
|
"peerDependencies": {
|
|
599
600
|
"@takazudo/zdtp": "^0.4.9",
|
|
600
|
-
"@takazudo/zfb": "^0.1.0-next.
|
|
601
|
-
"@takazudo/zfb-md-wasm": "^0.1.0-next.
|
|
602
|
-
"@takazudo/zfb-runtime": "^0.1.0-next.
|
|
603
|
-
"@takazudo/zudo-doc-history-server": "^4.4.
|
|
601
|
+
"@takazudo/zfb": "^0.1.0-next.98",
|
|
602
|
+
"@takazudo/zfb-md-wasm": "^0.1.0-next.98",
|
|
603
|
+
"@takazudo/zfb-runtime": "^0.1.0-next.98",
|
|
604
|
+
"@takazudo/zudo-doc-history-server": "^4.4.11",
|
|
604
605
|
"diff": "^8.0.0",
|
|
605
606
|
"katex": "^0.16.0",
|
|
606
607
|
"preact": "^10.29.1",
|
|
@@ -634,9 +635,9 @@
|
|
|
634
635
|
"tsx": "^4.21.0"
|
|
635
636
|
},
|
|
636
637
|
"devDependencies": {
|
|
637
|
-
"@takazudo/zfb": "0.1.0-next.
|
|
638
|
-
"@takazudo/zfb-md-wasm": "0.1.0-next.
|
|
639
|
-
"@takazudo/zfb-runtime": "0.1.0-next.
|
|
638
|
+
"@takazudo/zfb": "0.1.0-next.98",
|
|
639
|
+
"@takazudo/zfb-md-wasm": "0.1.0-next.98",
|
|
640
|
+
"@takazudo/zfb-runtime": "0.1.0-next.98",
|
|
640
641
|
"@types/fs-extra": "^11.0.4",
|
|
641
642
|
"@types/minimist": "^1.2.5",
|
|
642
643
|
"@types/node": "^25.3.5",
|
|
@@ -644,17 +645,22 @@
|
|
|
644
645
|
"@types/string-similarity": "^4.0.2",
|
|
645
646
|
"cross-env": "^7.0.3",
|
|
646
647
|
"happy-dom": "^20.10.6",
|
|
648
|
+
"npm-run-all2": "^7.0.2",
|
|
647
649
|
"preact": "^10.29.1",
|
|
648
650
|
"preact-render-to-string": "^6.6.6",
|
|
649
651
|
"tsup": "^8.0.0",
|
|
650
652
|
"typescript": "^5.0.0",
|
|
651
653
|
"vitest": "^4.1.0",
|
|
652
654
|
"zod": "^4.3.6",
|
|
653
|
-
"@takazudo/zudo-doc-history-server": "4.4.
|
|
655
|
+
"@takazudo/zudo-doc-history-server": "4.4.12"
|
|
654
656
|
},
|
|
655
657
|
"scripts": {
|
|
656
658
|
"build": "tsup && tsc -p tsconfig.build.json",
|
|
657
|
-
"
|
|
659
|
+
"predev": "node ../../scripts/ensure-workspace-build.mjs",
|
|
660
|
+
"// dev": "Do NOT add `--continue-on-error` here. It stops a fatal watcher exit from cascading, but the dead watcher then fails silently — a dead dev:dts leaves dist/*.d.ts frozen while the JS keeps updating, which typechecks cleanly against stale types instead of failing loudly like #3113's absent declarations did. See the #3129 section in CLAUDE.md.",
|
|
661
|
+
"dev": "run-p dev:js dev:dts",
|
|
662
|
+
"dev:js": "tsup --watch",
|
|
663
|
+
"dev:dts": "tsc -p tsconfig.build.json --watch --preserveWatchOutput",
|
|
658
664
|
"test:plugin-resolution": "node scripts/check-plugin-resolution.mjs",
|
|
659
665
|
"test": "vitest run --config vitest.config.ts",
|
|
660
666
|
"test:slow": "vitest run --config vitest.slow.config.ts",
|