create-zudo-doc 4.4.7 → 4.4.9

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.
@@ -18,5 +18,5 @@ export { getSecondaryLang };
18
18
  *
19
19
  * Bumped in lockstep by scripts/release-create-zudo-doc.sh.
20
20
  */
21
- export declare const ZUDO_DOC_PIN = "^4.4.7";
21
+ export declare const ZUDO_DOC_PIN = "^4.4.9";
22
22
  export declare function scaffold(choices: UserChoices): Promise<void>;
package/dist/scaffold.js CHANGED
@@ -24,7 +24,7 @@ export { getSecondaryLang };
24
24
  *
25
25
  * Bumped in lockstep by scripts/release-create-zudo-doc.sh.
26
26
  */
27
- export const ZUDO_DOC_PIN = "^4.4.7";
27
+ export const ZUDO_DOC_PIN = "^4.4.9";
28
28
  /**
29
29
  * Files in `templates/base/**` that must not be copied by the unconditional
30
30
  * base mirror. Each entry is matched against the path relative to
@@ -630,23 +630,14 @@ function generatePackageJson(choices) {
630
630
  // the "@takazudo/zdtp dep implication" note in
631
631
  // packages/zudo-doc/docs/adr/route-injection-seam.md.
632
632
  "@takazudo/zdtp": "0.4.9",
633
- // @takazudo/zudo-doc-history-server — SAME "unconditional at build time
634
- // despite being an optional peer" class as `diff` (#2342) and
635
- // `@takazudo/zdtp` (#2668) above. `@takazudo/zudo-doc/dist/doc-history-area/
636
- // index.js` imports `@takazudo/zudo-doc-history-server/exclude`
637
- // (compileExclude) at MODULE scope, and packageOwnedRoutes always bundles
638
- // the doc-history-area path so every project pulls this import into the
639
- // esbuild graph, `docHistory` setting or not; only history RENDERING is
640
- // gated on the setting, not the import. Without this dep a docHistory-OFF
641
- // scaffold fails `zfb build` with "Could not resolve
642
- // '@takazudo/zudo-doc-history-server/exclude'" (#3080). It IS an optional
643
- // peerDependency of @takazudo/zudo-doc (^4.4.3), but pnpm does not
644
- // auto-install peers, so a missing copy produces no install warning and
645
- // shipped silently until build time. The pin stays lockstep with the root
646
- // version (parity-guarded — INTERNAL_PINNED_PACKAGES in
647
- // scripts/check-pin-parity.mjs). docHistory-ON projects additionally need
648
- // npm-run-all2 for the two-process dev script — see the docHistory block below.
649
- "@takazudo/zudo-doc-history-server": "^4.4.7",
633
+ // (@takazudo/zudo-doc-history-server is NOT here it is gated on the
634
+ // docHistory feature, see the block below. It was briefly unconditional
635
+ // (#3080) to work around doc-history-area importing its `/exclude` subpath
636
+ // at module scope; that root cause was fixed in #3110 by moving
637
+ // compileExclude into @takazudo/zudo-doc itself, so the workaround is gone
638
+ // and a docHistory-OFF project no longer carries the dep. A package-side
639
+ // reachability guard now prevents the class from returning see
640
+ // packages/zudo-doc/src/__tests__/optional-peer-reachability.test.ts.)
650
641
  };
651
642
  const devDeps = {
652
643
  "@tailwindcss/vite": "^4.2.0",
@@ -662,15 +653,26 @@ function generatePackageJson(choices) {
662
653
  devDeps["pagefind"] = "^1.4.0";
663
654
  }
664
655
  if (choices.features.includes("docHistory")) {
665
- // (Both `diff` AND `@takazudo/zudo-doc-history-server` are now unconditional
666
- // base deps see the `deps` block above: packageOwnedRoutes always bundles
667
- // the doc-history-area path, whose module-scope imports pull both in
668
- // regardless of this feature flag. #2342 / #3080.)
669
- // When docHistory is selected the zfb plugin
670
- // (@takazudo/zudo-doc/plugins/doc-history) additionally, at plugin-init time,
671
- // eagerly imports @takazudo/zudo-doc-history-server/git-history the same
672
- // dep, so it is already satisfied by the unconditional entry (was W8A #1739,
673
- // when the dep was still gated here).
656
+ // (`diff` remains an unconditional base dep — see the `deps` block above:
657
+ // packageOwnedRoutes always bundles the doc-history-area path, whose
658
+ // module-scope `diff` import is pulled in regardless of this flag. #2342.)
659
+ //
660
+ // @takazudo/zudo-doc-history-server is gated HERE, on the feature, because
661
+ // that is the only graph that actually reaches it: the zfb plugin
662
+ // (@takazudo/zudo-doc/plugins/doc-history) eagerly imports
663
+ // @takazudo/zudo-doc-history-server/git-history at plugin-init time, and the
664
+ // plugin is only wired when docHistory is on (W8A #1739). It is an optional
665
+ // peerDependency of @takazudo/zudo-doc and pnpm does not auto-install peers,
666
+ // so a docHistory-ON project must declare it directly. The pin stays lockstep
667
+ // with the root version (parity-guarded — INTERNAL_PINNED_PACKAGES in
668
+ // scripts/check-pin-parity.mjs, and rewritten at release time by
669
+ // scripts/release-create-zudo-doc.sh step 2d).
670
+ //
671
+ // It was briefly unconditional (#3080) because doc-history-area imported
672
+ // `/exclude` at module scope from the always-bundled chrome graph; #3110
673
+ // moved compileExclude into @takazudo/zudo-doc, so docHistory-OFF projects
674
+ // no longer need the package at all.
675
+ deps["@takazudo/zudo-doc-history-server"] = "^4.4.9";
674
676
  // tsx is no longer needed here: the relocated package plugin imports the
675
677
  // runner directly (no `tsx -e` spawn) since the package ships compiled
676
678
  // dist/ — package-first migration #2321 (#2337).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-zudo-doc",
3
- "version": "4.4.7",
3
+ "version": "4.4.9",
4
4
  "description": "Create a new zudo-doc documentation site",
5
5
  "license": "MIT",
6
6
  "author": "Takeshi Takatsudo",