@tsrx/hono 0.2.1 → 0.2.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/README.md CHANGED
@@ -60,10 +60,13 @@ it does for the same TSX. For a body computed at runtime, write
60
60
 
61
61
  ## Build integrations
62
62
 
63
- Use [@tsrx/vite-plugin-hono](../vite-plugin-hono/README.md) or
64
- [@tsrx/bun-plugin-hono](../bun-plugin-hono/README.md) with an explicit
65
- `mode: 'server'` or `mode: 'dom'`. Separate server and browser build graphs rather
66
- than selecting modes per file. The Hono mode is independent of `tsrx.platform`.
63
+ Use
64
+ [@tsrx/vite-plugin-hono](https://github.com/tsrx-org/tsrx/tree/main/packages/vite-plugin-hono)
65
+ or
66
+ [@tsrx/bun-plugin-hono](https://github.com/tsrx-org/tsrx/tree/main/packages/bun-plugin-hono)
67
+ with an explicit `mode: 'server'` or `mode: 'dom'`. Separate server and browser
68
+ build graphs rather than selecting modes per file. The Hono mode is independent of
69
+ `tsrx.platform`.
67
70
 
68
71
  For editor diagnostics in DOM projects, set
69
72
  `"tsrx": { "compiler": "@tsrx/hono/dom" }` in `tsconfig.json`.
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Hono JSX compiler target for TSRX",
4
4
  "license": "MIT",
5
5
  "author": "Dominic Gannaway",
6
- "version": "0.2.1",
6
+ "version": "0.2.3",
7
7
  "type": "module",
8
8
  "publishConfig": {
9
9
  "access": "public"
@@ -43,7 +43,7 @@
43
43
  }
44
44
  },
45
45
  "dependencies": {
46
- "@tsrx/core": "0.5.1"
46
+ "@tsrx/core": "0.5.3"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "hono": "^4.13.7"
package/src/compiler.js CHANGED
@@ -104,7 +104,6 @@ export function createCompiler(transform, settings = {}) {
104
104
  collect: true,
105
105
  loose: !!options?.loose,
106
106
  typeOnly: true,
107
- moduleScopedHookComponents: false,
108
107
  errors,
109
108
  comments,
110
109
  });
package/src/platform.js CHANGED
@@ -37,9 +37,6 @@ function create_hono_platform(mode) {
37
37
  },
38
38
  ...(is_dom
39
39
  ? {
40
- // Hono DOM keys hook state by the runtime component function. A
41
- // helper recreated inside its parent would lose state on updates.
42
- moduleScopedHookComponents: true,
43
40
  // Hono DOM JSX nodes carry mutable reconciliation and hook state.
44
41
  // Reusing any module-scoped node across mounts is unsafe, not only
45
42
  // reusing composite nodes.