create-zudo-doc 4.4.4 → 4.4.5

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.4";
21
+ export declare const ZUDO_DOC_PIN = "^4.4.5";
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.4";
27
+ export const ZUDO_DOC_PIN = "^4.4.5";
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,6 +630,23 @@ 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.5",
633
650
  };
634
651
  const devDeps = {
635
652
  "@tailwindcss/vite": "^4.2.0",
@@ -645,16 +662,15 @@ function generatePackageJson(choices) {
645
662
  devDeps["pagefind"] = "^1.4.0";
646
663
  }
647
664
  if (choices.features.includes("docHistory")) {
648
- // (diff is now an unconditional base dep — see the `deps` block above:
649
- // packageOwnedRoutes always bundles the doc-history-area path, so diff is
650
- // required regardless of this feature flag.)
651
- // @takazudo/zudo-doc has @takazudo/zudo-doc-history-server as an optional
652
- // peer dep. When docHistory is selected the zfb plugin
653
- // (@takazudo/zudo-doc/plugins/doc-history) eagerly imports its internal
654
- // doc-history helpers, which in turn import
655
- // @takazudo/zudo-doc-history-server/git-history. Without this dep the
656
- // plugin host fails at init with ERR_MODULE_NOT_FOUND — W8A (#1739).
657
- deps["@takazudo/zudo-doc-history-server"] = "^4.4.4";
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).
658
674
  // tsx is no longer needed here: the relocated package plugin imports the
659
675
  // runner directly (no `tsx -e` spawn) since the package ships compiled
660
676
  // 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.4",
3
+ "version": "4.4.5",
4
4
  "description": "Create a new zudo-doc documentation site",
5
5
  "license": "MIT",
6
6
  "author": "Takeshi Takatsudo",