create-zudo-doc 0.2.0-next.2 → 0.2.0-next.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/dist/scaffold.js CHANGED
@@ -212,7 +212,6 @@ export async function scaffold(choices) {
212
212
  function generatePackageJson(choices) {
213
213
  // Intentionally absent from scaffolded deps:
214
214
  // @takazudo/zudo-doc-md-plugins — zero references in generator templates/source
215
- // @takazudo/zfb-adapter-cloudflare — zero references in generator templates/source
216
215
  const deps = {
217
216
  // zfb engine — distributed as published npm packages (the prebuilt binary
218
217
  // ships via an optionalDependency of @takazudo/zfb-<platform>); pinned to
@@ -242,16 +241,23 @@ function generatePackageJson(choices) {
242
241
  // still setting it hard-error at load). Replaced by the generic
243
242
  // `markdown.features.directives` map; host zfb.config.ts migrated
244
243
  // in zudolab/zudo-doc#1840.
245
- "@takazudo/zfb": "0.1.0-next.25",
246
- "@takazudo/zfb-runtime": "0.1.0-next.25",
244
+ // Bumped to next.28 — next.26/next.28 are fix/feature releases (no
245
+ // consumer-facing breaking change): UTF-8 preserved in directive
246
+ // quoted attrs (`:::note{title="日本語"}`), `.mdx` page-source extension
247
+ // stripped from route templates, and embedded-V8 worker console capture
248
+ // so render failures surface `console.*` output. next.27 is unusable
249
+ // for adapter consumers — its tarball omitted emit-worker.mjs
250
+ // (Takazudo/zudo-front-builder#794, fixed in next.28) — so never pin 27.
251
+ "@takazudo/zfb": "0.1.0-next.28",
252
+ "@takazudo/zfb-runtime": "0.1.0-next.28",
247
253
  // zfb-adapter-cloudflare — required for any route with `prerender = false`.
248
254
  // Pinned in lockstep with @takazudo/zfb.
249
- "@takazudo/zfb-adapter-cloudflare": "0.1.0-next.25",
255
+ "@takazudo/zfb-adapter-cloudflare": "0.1.0-next.28",
250
256
  // @takazudo/zudo-doc — published from this monorepo via
251
257
  // .github/workflows/publish-zudo-doc.yml. The pin here is bumped in
252
258
  // lockstep by scripts/release-create-zudo-doc.sh whenever zudo-doc's
253
259
  // version moves, so a fresh scaffold pulls the version we just published.
254
- "@takazudo/zudo-doc": "^0.2.0-next.2",
260
+ "@takazudo/zudo-doc": "^0.2.0-next.3",
255
261
  // zod — used by the generated zfb.config.ts. zfb-config-gen emits
256
262
  // `import { z } from "zod"` for the content-collection schema +
257
263
  // `z.toJSONSchema(...)` conversion. Without this dep, the consumer
@@ -309,7 +315,7 @@ function generatePackageJson(choices) {
309
315
  // @takazudo/zudo-doc/integrations/doc-history which in turn imports
310
316
  // @takazudo/zudo-doc-history-server/git-history. Without this dep the
311
317
  // plugin host fails at init with ERR_MODULE_NOT_FOUND — W8A (#1739).
312
- deps["@takazudo/zudo-doc-history-server"] = "^0.2.0-next.2";
318
+ deps["@takazudo/zudo-doc-history-server"] = "^0.2.0-next.3";
313
319
  // W7A (#1736): doc-history-plugin.mjs spawns `tsx -e <inline-script>` to
314
320
  // run the v2 runtime in a TS-aware Node subprocess; without tsx the
315
321
  // plugin's preBuild step exits with ENOENT before zfb finishes config
@@ -128,10 +128,6 @@ export function generateSettingsFile(choices) {
128
128
  else {
129
129
  lines.push(` designTokenPanel: false as boolean,`);
130
130
  }
131
- // Deprecated alias — kept for one release so existing user projects keep
132
- // working. Prefer `designTokenPanel` above; when this alias is unset, only
133
- // the new flag is consulted.
134
- lines.push(` colorTweakPanel: undefined as boolean | undefined,`);
135
131
  if (choices.features.includes("sidebarResizer")) {
136
132
  lines.push(` sidebarResizer: true as boolean,`);
137
133
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-zudo-doc",
3
- "version": "0.2.0-next.2",
3
+ "version": "0.2.0-next.3",
4
4
  "description": "Create a new zudo-doc documentation site",
5
5
  "license": "MIT",
6
6
  "author": "Takeshi Takatsudo",
@@ -147,7 +147,7 @@ export function BodyEndIslands({
147
147
  // bootstrap module can drain and re-dispatch once the real zdtp listener
148
148
  // is registered. Mirrors the PageLoadingOverlay SSR-script pattern.
149
149
  const designTokenPanelBootstrap =
150
- settings.designTokenPanel || settings.colorTweakPanel
150
+ settings.designTokenPanel
151
151
  ? (
152
152
  <>
153
153
  <script
@@ -334,7 +334,6 @@ export function HeaderWithDefaults(
334
334
  settings.headerRightItems ?? [],
335
335
  {
336
336
  designTokenPanel: Boolean(settings.designTokenPanel),
337
- colorTweakPanel: Boolean(settings.colorTweakPanel),
338
337
  aiAssistant: Boolean(settings.aiAssistant),
339
338
  colorMode: Boolean(settings.colorMode),
340
339
  hasLocales: Object.keys(settings.locales).length > 0,
@@ -2,7 +2,7 @@ import { settings } from "@/config/settings";
2
2
  import type { HeaderRightItem } from "@/config/settings-types";
3
3
 
4
4
  function isDesignTokenPanelEnabled(): boolean {
5
- return Boolean(settings.designTokenPanel || settings.colorTweakPanel);
5
+ return Boolean(settings.designTokenPanel);
6
6
  }
7
7
 
8
8
  export function filterHeaderRightItems(
@@ -2,8 +2,8 @@
2
2
  * Production bootstrap for @takazudo/zdtp (zdtp).
3
3
  *
4
4
  * Imported as a side-effect from the body-end islands helper when
5
- * settings.designTokenPanel (or the deprecated alias colorTweakPanel) is
6
- * truthy. The dynamic import is gated there so this module is only bundled
5
+ * settings.designTokenPanel is truthy. The dynamic import is gated there so
6
+ * this module is only bundled
7
7
  * when the feature is enabled.
8
8
  *
9
9
  * Lifecycle adapter: wires zdtp's navigation hooks to zfb's own navigation