@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 +7 -4
- package/package.json +2 -2
- package/src/compiler.js +0 -1
- package/src/platform.js +0 -3
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
|
|
64
|
-
[@tsrx/
|
|
65
|
-
|
|
66
|
-
|
|
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.
|
|
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.
|
|
46
|
+
"@tsrx/core": "0.5.3"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"hono": "^4.13.7"
|
package/src/compiler.js
CHANGED
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.
|