@kudzujs/core 0.17.11 → 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.11](https://github.com/kudzujs/kudzu/releases/tag/v0.17.11).** Supported Context-returning hooks now allow identifier aliases for state, setters and actions. Repeated consumers retain shared Provider state, and hidden setter names avoid consumer collisions. No browser runtime is added; private-timer aliases remain unsupported. Generator `create-kudzu@0.1.172` targets core `^0.17.11`. 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)
@@ -1,7 +1,7 @@
1
1
  import ts from "typescript"
2
2
 
3
3
  export const knownGlobalNames = new Set([
4
- "Array", "ArrayBuffer", "BigInt", "Blob", "Boolean", "Date", "Error", "Event", "FileReader", "FormData", "HTMLElement", "Infinity", "IntersectionObserver", "Intl", "JSON", "Map", "Math", "NaN", "Number", "Object", "Promise", "Proxy", "RangeError", "ReferenceError", "Reflect", "RegExp", "Set", "String", "Symbol", "TypeError", "URL", "URLSearchParams", "WeakMap", "WeakSet", "WebSocket", "Worker", "alert", "atob", "btoa", "cancelAnimationFrame", "clearInterval", "clearTimeout", "console", "crypto", "document", "fetch", "globalThis", "history", "isFinite", "isNaN", "localStorage", "location", "navigator", "parseFloat", "parseInt", "performance", "queueMicrotask", "requestAnimationFrame", "setInterval", "setTimeout", "structuredClone", "undefined", "window"
4
+ "Array", "ArrayBuffer", "BigInt", "Blob", "Boolean", "Date", "Error", "Event", "FileReader", "FormData", "HTMLElement", "Infinity", "IntersectionObserver", "Intl", "JSON", "Map", "Math", "NaN", "Number", "Object", "Promise", "Proxy", "RangeError", "ReferenceError", "Reflect", "RegExp", "Set", "SharedWorker", "String", "Symbol", "TypeError", "URL", "URLSearchParams", "WeakMap", "WeakSet", "WebSocket", "Worker", "alert", "atob", "btoa", "cancelAnimationFrame", "clearInterval", "clearTimeout", "console", "crypto", "document", "fetch", "globalThis", "history", "isFinite", "isNaN", "localStorage", "location", "navigator", "parseFloat", "parseInt", "performance", "queueMicrotask", "requestAnimationFrame", "setInterval", "setTimeout", "structuredClone", "undefined", "window"
5
5
  ])
6
6
 
7
7
  export function createBindingIndex(sourceFile) {
@@ -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.11",
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",