@takazudo/zfb-runtime 2.1.0 → 2.2.0

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.
Files changed (2) hide show
  1. package/README.md +9 -1
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -48,7 +48,10 @@ constants, and plugin types, none of which require Hono.
48
48
  The runtime is **JSX-runtime-agnostic**. It never imports preact or
49
49
  react. The caller passes a `FrameworkAdapter` that pins `renderToString`
50
50
  to the chosen JSX runtime; both `preact-render-to-string` and
51
- `react-dom/server` slot in.
51
+ `react-dom/server` slot in. `preact/compat` is a supported target, and
52
+ the `react` peer dependency is **optional**
53
+ (`peerDependenciesMeta.react.optional`) — a preact-only consumer does
54
+ not need `react` installed and does not need `auto-install-peers=true`.
52
55
 
53
56
  ## Public API
54
57
 
@@ -440,3 +443,8 @@ instance — pinning `zfb` as a peer dep makes that explicit and lets pnpm
440
443
  hoist a single shared copy. Install matching published versions of
441
444
  `@takazudo/zfb-runtime` and `@takazudo/zfb` so that shared state remains
442
445
  single-instanced.
446
+
447
+ Unlike `@takazudo/zfb`, the peer dependency on `react` is **optional**
448
+ here too — preact/compat is a fully supported target, so a preact-only
449
+ project does not need `react` installed and does not need
450
+ `auto-install-peers=true` in its pnpm config.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takazudo/zfb-runtime",
3
- "version": "2.1.0",
3
+ "version": "2.2.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "JavaScript runtime for zfb static sites — Hono-backed page router, content snapshots, and client-side hydration.",
@@ -75,7 +75,7 @@
75
75
  },
76
76
  "peerDependencies": {
77
77
  "react": "^19.2.3",
78
- "@takazudo/zfb": "2.1.0"
78
+ "@takazudo/zfb": "2.2.0"
79
79
  },
80
80
  "peerDependenciesMeta": {
81
81
  "react": {
@@ -89,7 +89,7 @@
89
89
  "react": "^19.2.3",
90
90
  "typescript": "^5.9.0",
91
91
  "vitest": "^2.1.9",
92
- "@takazudo/zfb": "2.1.0"
92
+ "@takazudo/zfb": "2.2.0"
93
93
  },
94
94
  "scripts": {
95
95
  "build": "tsc",