@takazudo/zudo-doc 10.0.1 → 10.0.3

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
@@ -6,6 +6,17 @@ The format is based on Keep a Changelog, and release notes are generated from th
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [10.0.3] - 2026-11-11
10
+
11
+ - No package-specific changes.
12
+
13
+ ## [10.0.2] - 2026-11-11
14
+
15
+ ### Other Changes
16
+
17
+ - The optional `diff` peer now admits `^8.0.0 || ^9.0.0`. (501d41ab)
18
+ - Adopt ZDTP 0.9.4.
19
+
9
20
  ## [10.0.1] - 2026-11-11
10
21
 
11
22
  ### Bug Fixes
@@ -56,19 +56,19 @@ export declare function deriveNavDataPrep(ctx: ChromeContext): {
56
56
  buildLocaleLinksForNav: (currentPath: string, lang: string, localeCount: number) => import("../url-helpers/index.js").LocaleLink[] | undefined;
57
57
  buildSidebarNodes: (lang: string, navSection: string | undefined, currentVersion: string | undefined, emptyWhenUnsectioned?: boolean | undefined) => import("../sidebar/types.js").SidebarNavNode[];
58
58
  buildSidebarContext: (lang: string, navSection: string | undefined, currentVersion: string | undefined, emptyWhenUnsectioned?: boolean) => {
59
+ nodes: never[];
60
+ navigation: undefined;
61
+ } | {
59
62
  nodes: import("../sidebar/types.js").SidebarNavNode[];
60
63
  navigation: {
61
- id: string;
62
- roots: import("../sidebar/types.js").SidebarNavNode[];
63
64
  initialExpansion?: Record<string, "collapsed" | "expanded">;
64
65
  parents: Record<string, string | null>;
65
66
  localParentId?: string;
67
+ id: string;
68
+ roots: import("../sidebar/types.js").SidebarNavNode[];
66
69
  };
67
- } | {
68
- nodes: never[];
69
- navigation: undefined;
70
70
  };
71
- getThemeDefaultMode: () => "light" | "dark" | undefined;
71
+ getThemeDefaultMode: () => "dark" | "light" | undefined;
72
72
  };
73
73
  /** Derive the header SearchWidget: `ctx.hostBindings.SearchWidget` when the host
74
74
  * supplies one, else the package `SearchWidget` bound to the site base. */
@@ -42,9 +42,9 @@ export declare function buildDocsSchema(opts?: BuildDocsSchemaOptions): z.ZodObj
42
42
  collapsed: "collapsed";
43
43
  expanded: "expanded";
44
44
  }>>;
45
- tags: z.ZodOptional<z.ZodArray<z.ZodString>> | z.ZodOptional<z.ZodArray<z.ZodEnum<{
45
+ tags: z.ZodOptional<z.ZodArray<z.ZodEnum<{
46
46
  [x: string]: string;
47
- }>>>;
47
+ }>>> | z.ZodOptional<z.ZodArray<z.ZodString>>;
48
48
  search_exclude: z.ZodOptional<z.ZodBoolean>;
49
49
  pagination_next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
50
  pagination_prev: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -67,9 +67,9 @@ export declare function buildDocsSchema(opts?: BuildDocsSchemaOptions): z.ZodObj
67
67
  }>>;
68
68
  note_tray_dated: z.ZodOptional<z.ZodBoolean>;
69
69
  note_tray_sidebar: z.ZodOptional<z.ZodEnum<{
70
- year: "year";
71
- month: "month";
72
70
  index: "index";
71
+ month: "month";
72
+ year: "year";
73
73
  }>>;
74
74
  date: z.ZodOptional<z.ZodString>;
75
75
  updated: z.ZodOptional<z.ZodString>;
@@ -1,3 +1,3 @@
1
1
  export declare const contentType = "text/plain";
2
- declare const _default: () => string;
3
2
  export default _default;
3
+ declare function _default(): string;
@@ -13,8 +13,8 @@ export declare const themePackMetaSchema: z.ZodObject<{
13
13
  name: z.ZodString;
14
14
  description: z.ZodString;
15
15
  mode: z.ZodEnum<{
16
- light: "light";
17
16
  dark: "dark";
17
+ light: "light";
18
18
  }>;
19
19
  version: z.ZodString;
20
20
  fonts: z.ZodObject<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takazudo/zudo-doc",
3
- "version": "10.0.1",
3
+ "version": "10.0.3",
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",
@@ -757,7 +757,7 @@
757
757
  "@takazudo/zfb-md-wasm": "^6.0.1",
758
758
  "@takazudo/zfb-runtime": "^6.0.1",
759
759
  "@takazudo/zudo-doc-history-server": "^10.0.0",
760
- "diff": "^8.0.0",
760
+ "diff": "^8.0.0 || ^9.0.0",
761
761
  "katex": "^0.18.2 || ^0.19.0",
762
762
  "zod": "^4.3.6"
763
763
  },
@@ -786,7 +786,7 @@
786
786
  "esbuild": "^0.28.2",
787
787
  "fs-extra": "^11.4.1",
788
788
  "minimist": "^1.2.8",
789
- "parse5": "^8.0.1",
789
+ "parse5": "^8.1.1",
790
790
  "picocolors": "^1.1.1",
791
791
  "pluralize": "^8.0.0",
792
792
  "smol-toml": "^1.9.1",
@@ -801,15 +801,17 @@
801
801
  "@takazudo/zfb-runtime": "6.0.1",
802
802
  "@types/fs-extra": "^11.0.4",
803
803
  "@types/minimist": "^1.2.5",
804
- "@types/node": "^25.9.9",
804
+ "@types/node": "^26.6.6",
805
805
  "@types/pluralize": "^0.0.33",
806
+ "diff8": "npm:diff@8.0.4",
806
807
  "happy-dom": "^21.0.4",
807
808
  "katex": "^0.19.1",
809
+ "@typescript/typescript6": "^6.0.2",
808
810
  "tsup": "^9.0.0",
809
- "typescript": "^5.0.0",
810
- "vitest": "^4.1.12",
811
+ "typescript": "^7.0.2",
812
+ "vitest": "5.1.0",
811
813
  "zod": "^4.6.7",
812
- "@takazudo/zudo-doc-history-server": "10.0.1"
814
+ "@takazudo/zudo-doc-history-server": "10.0.3"
813
815
  },
814
816
  "scripts": {
815
817
  "gen:search-widget-script": "node scripts/gen-search-widget-script.mjs",