@kudzujs/core 0.17.12 → 0.17.13

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
@@ -14,7 +14,7 @@ Kudzu compiles ordinary React-shaped TypeScript and TSX into complete static HTM
14
14
 
15
15
  > Experimental `0.17.x`: the compiler API and supported TSX surface may change.
16
16
 
17
- **Current release: [0.17.12](https://github.com/kudzujs/kudzu/releases/tag/v0.17.12).** Native `SharedWorker` construction and feature detection in owned browser effects no longer cause build-time capture errors. Existing effect cleanup owns ports and listeners; no coordinator runtime is added. Generator `create-kudzu@0.1.173` targets core `^0.17.12`. Regression and artifact evidence is recorded in `PERFORMANCE.md`; no speed or whole-application migration claim is made.
17
+ **Current release: [0.17.13](https://github.com/kudzujs/kudzu/releases/tag/v0.17.13).** JSX event types distinguish the handler's `currentTarget` from a potentially different `target`. Known HTML boolean attributes reject strings such as `disabled="false"`. Use `event.currentTarget.value` for input handlers or narrow the native target. Unlisted attributes remain open for migration compatibility. Generator `create-kudzu@0.1.173` retains its compatible core `^0.17.12` range. No runtime code or browser capability changes.
18
18
 
19
19
  - [Documentation](https://kudzujs.cloud/docs)
20
20
  - [Installation guide](https://kudzujs.cloud/docs#install)
@@ -4,9 +4,13 @@ export namespace JSX {
4
4
 
5
5
  type TargetedEvent<Target extends EventTarget, NativeEvent extends Event = Event> = NativeEvent & {
6
6
  currentTarget: Target
7
- target: EventTarget & Target
8
7
  }
9
8
 
9
+ type HTMLBooleanAttributes = {
10
+ [Name in "allowFullScreen" | "async" | "autoFocus" | "autoPlay" | "checked" | "controls" | "default" | "defer" | "disabled" | "formNoValidate" | "inert" | "loop" | "multiple" | "muted" | "noValidate" | "open" | "playsInline" | "readOnly" | "required" | "reversed" | "selected"]?: boolean | null
11
+ }
12
+
13
+ // shortcut: preserve unlisted attributes for migration input until a complete HTML/SVG attribute contract is available.
10
14
  type IntrinsicProps<Target extends EventTarget> = Record<string, unknown> & {
11
15
  children?: Children
12
16
  onBlur?: (event: TargetedEvent<Target, FocusEvent>) => unknown
@@ -24,7 +28,7 @@ export namespace JSX {
24
28
  }
25
29
 
26
30
  type IntrinsicElements = {
27
- [Name in keyof HTMLElementTagNameMap]: IntrinsicProps<HTMLElementTagNameMap[Name]>
31
+ [Name in keyof HTMLElementTagNameMap]: IntrinsicProps<HTMLElementTagNameMap[Name]> & HTMLBooleanAttributes
28
32
  } & {
29
33
  [Name in keyof SVGElementTagNameMap]: IntrinsicProps<SVGElementTagNameMap[Name]>
30
34
  } & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kudzujs/core",
3
- "version": "0.17.12",
3
+ "version": "0.17.13",
4
4
  "description": "HTML-first TSX framework with synchronous state semantics and no virtual DOM",
5
5
  "type": "module",
6
6
  "license": "MIT",