@tsrx/hono 0.1.2 → 0.1.4

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
@@ -18,10 +18,11 @@ statements, dynamic tags, sibling-scoped styles, themes, and error boundaries.
18
18
  Hono handles rendering, hooks, context, and Suspense through its own runtime APIs.
19
19
  Authored `class` attributes are preserved.
20
20
 
21
- Server components may be async and use top-level `await`. DOM components must be
22
- synchronous; use Hono's `use(promise)` with a pending boundary for asynchronous
23
- work. `@catch (error)` is supported, but Hono does not provide the reset callback
24
- used by some other targets.
21
+ Server components may be async and use `await` in setup code and in `@for`,
22
+ `@empty`, `@switch`, and `@if` bodies; a loop body finishes one item before it
23
+ starts the next. DOM components must be synchronous; use Hono's `use(promise)`
24
+ with a pending boundary for asynchronous work. `@catch (error)` is supported, but
25
+ Hono does not provide the reset callback used by some other targets.
25
26
 
26
27
  ```tsx
27
28
  import { use } from 'hono/jsx';
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.1.2",
6
+ "version": "0.1.4",
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.2.3"
46
+ "@tsrx/core": "0.3.0"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "hono": "^4.13.7"
package/src/platform.js CHANGED
@@ -80,6 +80,7 @@ function create_hono_platform(mode) {
80
80
  jsx: {
81
81
  rewriteClassAttr: false,
82
82
  multiRefStrategy: 'merge-refs',
83
+ hostSpreadRefBinding: 'in-place',
83
84
  },
84
85
  validation: {
85
86
  // Server JSX supports async function components. The DOM renderer is