hono-decks 1.2.0 → 1.2.2

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/README.ja.md CHANGED
@@ -9,7 +9,7 @@ Hono と Cloudflare Workers 上で MDX のスライドを配信するための
9
9
  既存のアプリに `hono-decks` をインストールし、構成に合わせて初期設定します。
10
10
 
11
11
  ```sh
12
- npm install hono-decks
12
+ npm install hono-decks@latest
13
13
 
14
14
  # Hono+Vite
15
15
  npx hono-decks init --framework hono
@@ -22,6 +22,8 @@ npm run dev
22
22
  npm run build
23
23
  ```
24
24
 
25
+ 新規導入では`@latest`で現在の公開版を選びます。同じ環境を再現する場合は、動作確認したバージョンを明示してください。
26
+
25
27
  どちらも、既存の Vite 設定を保持して自動コンパイルを登録し、
26
28
  `hono-decks.config.ts`、`src/decks.ts`、サンプルの
27
29
  `decks/welcome/deck.mdx` を作ります。生成ファイルがない状態からでも
@@ -69,8 +71,9 @@ npm run dev
69
71
  npm run build
70
72
  ```
71
73
 
72
- この連携には `void-plugin-hono-jsx@^0.5.0` の standalone compiler/client export
73
- が必要です。`--install` は対応範囲のアダプターを選びます。
74
+ この連携には standalone compiler/client export を持つアダプターが必要です。
75
+ 新規インストールの既定値は `void-plugin-hono-jsx@^0.6.0` です。
76
+ `--install` は、インストール済みの互換アダプターを維持します。
74
77
  `--install` を省略する場合は、Markdown 用の任意 peer も必要です:
75
78
  `markdown-exit@^1.3.0 yaml@^2.9.1 markdown-it-container@^4.0.0 shiki@^4.5.0 @shikijs/transformers@^4.5.0`。
76
79
  動作確認した組み合わせは Void 1.1.11、Vite 8.3.4、Hono 4.13.13 です。
package/README.md CHANGED
@@ -9,7 +9,7 @@ hono-decks serves MDX slide decks from Hono applications and Cloudflare Workers.
9
9
  Install hono-decks in an existing app and choose its integration:
10
10
 
11
11
  ~~~sh
12
- npm install hono-decks
12
+ npm install hono-decks@latest
13
13
 
14
14
  # Hono + Vite
15
15
  npx hono-decks init --framework hono
@@ -22,6 +22,8 @@ npm run dev
22
22
  npm run build
23
23
  ~~~
24
24
 
25
+ For a new app, `@latest` selects the current published release. To reproduce a setup, replace it with the exact version you have verified.
26
+
25
27
  Both modes preserve the existing Vite config while adding automatic compilation,
26
28
  create `hono-decks.config.ts`, `src/decks.ts`, and a sample
27
29
  `decks/welcome/deck.mdx`. Generated code stays in Vite virtual modules and is not written to disk.
@@ -68,9 +70,9 @@ npm run dev
68
70
  npm run build
69
71
  ~~~
70
72
 
71
- This integration requires `void-plugin-hono-jsx@^0.5.0` or a compatible adapter
72
- with the `/markdown/compiler` and `/markdown/client` exports. `--install` selects
73
- the supported adapter range. Without `--install`, also install the optional Markdown peers:
73
+ This integration requires an adapter with the `/markdown/compiler` and
74
+ `/markdown/client` exports. New installations default to `void-plugin-hono-jsx@^0.6.0`;
75
+ `--install` preserves an already installed compatible adapter. Without `--install`, also install the optional Markdown peers:
74
76
  `markdown-exit@^1.3.0 yaml@^2.9.1 markdown-it-container@^4.0.0 shiki@^4.5.0 @shikijs/transformers@^4.5.0`.
75
77
  The verified host versions are Void 1.1.11, Vite 8.3.4, and Hono 4.13.13.
76
78
 
@@ -465,7 +467,7 @@ At this level, the application owns the mount path, source policy, and option me
465
467
  ## Void Hono Markdown
466
468
 
467
469
  Set `build.markdown: "void"` in `hono-decks.config.ts` to opt into `.md` decks
468
- alongside MDX. This requires `void-plugin-hono-jsx@^0.5.0` with its standalone compiler and client exports.
470
+ alongside MDX. This requires `void-plugin-hono-jsx@^0.6.0` with its standalone compiler and client exports.
469
471
  See the [Void consumer fixture](https://github.com/ts-76/hono-decks/tree/main/fixtures/void-markdown)
470
472
  for package verification, Void middleware hosting, supported syntax and limitations.
471
473
 
package/dist/bin.js CHANGED
@@ -2350,7 +2350,7 @@ async function runInitCommand(input, args, stdout, stderr) {
2350
2350
  return { exitCode: 1 };
2351
2351
  }
2352
2352
  if (parsed.options.framework) try {
2353
- const { initializeVite } = await import("./init-vite-EA_L4k2H.js");
2353
+ const { initializeVite } = await import("./init-vite-F2gLT72s.js");
2354
2354
  const sampleSlug = await initializeVite(input.cwd, parsed.options.framework, parsed.options.configFile, parsed.options.entry, parsed.options.install ? { adapter: parsed.options.adapter } : void 0);
2355
2355
  stdout(`Initialized ${parsed.options.framework} decks at /slides/${sampleSlug}. Run your usual dev or build command; no manual compile is needed.`);
2356
2356
  return { exitCode: 0 };
package/dist/cli.js CHANGED
@@ -2349,7 +2349,7 @@ async function runInitCommand(input, args, stdout, stderr) {
2349
2349
  return { exitCode: 1 };
2350
2350
  }
2351
2351
  if (parsed.options.framework) try {
2352
- const { initializeVite } = await import("./init-vite-EA_L4k2H.js");
2352
+ const { initializeVite } = await import("./init-vite-F2gLT72s.js");
2353
2353
  const sampleSlug = await initializeVite(input.cwd, parsed.options.framework, parsed.options.configFile, parsed.options.entry, parsed.options.install ? { adapter: parsed.options.adapter } : void 0);
2354
2354
  stdout(`Initialized ${parsed.options.framework} decks at /slides/${sampleSlug}. Run your usual dev or build command; no manual compile is needed.`);
2355
2355
  return { exitCode: 0 };
@@ -81,7 +81,7 @@ async function installVoidDependencies(cwd, options = {}) {
81
81
  specs.push(`hono-decks@${requested}`);
82
82
  }
83
83
  if (options.adapter || missing("void-plugin-hono-jsx/markdown/compiler")) {
84
- let adapter = options.adapter ?? "void-plugin-hono-jsx@^0.5.0";
84
+ let adapter = options.adapter ?? "void-plugin-hono-jsx@^0.6.0";
85
85
  if (/^\d+\./.test(adapter)) adapter = "void-plugin-hono-jsx@" + adapter;
86
86
  else if (modernYarn && (adapter.endsWith(".tgz") || adapter.startsWith("file:"))) adapter = "void-plugin-hono-jsx@file:" + resolve(cwd, adapter.replace(/^file:/, ""));
87
87
  specs.push(adapter);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hono-decks",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "Slide decks for Hono and Cloudflare Workers",
5
5
  "keywords": [
6
6
  "cloudflare-workers",
@@ -22,7 +22,7 @@ for manual integration and non-Vite applications.
22
22
 
23
23
  For an existing Void app, use `npx hono-decks init --framework void` after
24
24
  installing the compatible packages and Markdown peers described in the README.
25
- Use `void-plugin-hono-jsx@^0.4.0` for its standalone compiler and client exports. Init connects the existing Vite config, creates the routing
25
+ Use `void-plugin-hono-jsx@^0.6.0` for its standalone compiler and client exports. Init connects the existing Vite config, creates the routing
26
26
  middleware and a sample `.md` deck at `/slides/welcome`, and uses virtual modules without generated
27
27
  files. Use the app's normal `dev` and `build` scripts without changes or a manual
28
28
  compile. Existing `.mdx` files remain supported. Unsupported configs or existing