@kudzujs/core 0.17.6 → 0.17.8

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.6](https://github.com/kudzujs/kudzu/releases/tag/v0.17.6).** Item-capturing row handlers retain correctly scoped state and refs after repeated same-key updates. Event templates resolve through existing row ownership before receiving current item captures. Chrome verifies delayed loading, repeated updates, cleanup and fresh clones. Project-app output adds 94 raw bytes; C2 raw JavaScript is unchanged. Generator `create-kudzu@0.1.167` targets core `^0.17.6`. No speed improvement is claimed; startup, restoration and AI-cost/1.0 gates remain unresolved.
17
+ **Current release: [0.17.8](https://github.com/kudzujs/kudzu/releases/tag/v0.17.8).** Delayed keyed rows now keep parent-only text and attributes reactive, including `disabled={busy}`. The compiler reuses existing keyed expression ownership; runtime sources are unchanged. A real Actual Budget Worker/SQLite reduction verifies creation, error recovery, reload persistence and cleanup. Existing 13 artifact fixtures retain identical deploy output. Generator `create-kudzu@0.1.169` targets core `^0.17.8`. No speed or whole-application migration claim is made; startup, restoration and AI-cost/1.0 gates remain unresolved.
18
18
 
19
19
  - [Documentation](https://kudzujs.cloud/docs)
20
20
  - [Installation guide](https://kudzujs.cloud/docs#install)
@@ -78,7 +78,7 @@ function routeRuntimeEdges(record, capability, family, base, navigationAsset) {
78
78
  if (record.capabilities.hasBehaviors || record.capabilities.navigable) add(record.capabilities.usesDependencyRuntime ? "kudzu-deps.js" : "kudzu.js")
79
79
  if (record.capabilities.hasBindings) add("kudzu-binding.js")
80
80
  if (record.capabilities.hasLists) add("kudzu-list.js")
81
- if (record.capabilities.hasBindings || record.capabilities.hasLists && family.capability.lists.styleCount) add("kudzu-style.js")
81
+ if (record.capabilities.hasBindings && family.capability.bindings.style || record.capabilities.hasLists && family.capability.lists.styleCount) add("kudzu-style.js")
82
82
  if (capability.effects.derivedDependencies || record.capabilities.hasLists && family.capability.lists.selectors) add("kudzu-collection-selector.js")
83
83
  if (record.capabilities.hasBindings || capability.events.hasNativeHandlers || record.capabilities.hasEffects && family.capability.effects.captures) add("kudzu-serialization.js")
84
84
  if (record.capabilities.hasEffects) add("kudzu-effect.js")
@@ -91,7 +91,7 @@ function familyRuntimeRequirements(family, base) {
91
91
  const names = [runtime.dependency ? "kudzu-deps.js" : "kudzu.js"]
92
92
  if (bindings.count || events.hasNativeHandlers || effects.captures) names.push("kudzu-serialization.js")
93
93
  if (effects.any) names.push("kudzu-effect.js")
94
- if (bindings.count || lists.styleCount) names.push("kudzu-style.js")
94
+ if (bindings.style || lists.styleCount) names.push("kudzu-style.js")
95
95
  if (bindings.count) names.push("kudzu-binding.js")
96
96
  if (effects.derivedDependencies || lists.selectors) names.push("kudzu-collection-selector.js")
97
97
  if (lists.count) names.push("kudzu-list.js")
@@ -2843,9 +2843,9 @@ function validateKeyedList(parts, sourceFile, setters, rowStates, componentSpeci
2843
2843
  analysis.values.push({ node: node.expression, value: { field } })
2844
2844
  return
2845
2845
  }
2846
- if (referencesIdentifier(expression, item) || parts.index && referencesIdentifier(expression, parts.index)) {
2847
- const states = referencedStateNames(expression, setters, expression, bindingIndex)
2848
- for (const rowState of rowStates) states.delete(rowState.state)
2846
+ const states = referencedStateNames(expression, setters, expression, bindingIndex)
2847
+ for (const rowState of parts.rowStates ?? rowStates) states.delete(rowState.state)
2848
+ if (referencesIdentifier(expression, item) || parts.index && referencesIdentifier(expression, parts.index) || states.size) {
2849
2849
  if (parts.nested && states.size) fail(node, "Nested keyed list item expressions cannot read parent state")
2850
2850
  validateListExpression(expression, item, node, fail, parts.index, states)
2851
2851
  if (ts.isJsxAttribute(node.parent) && ["ref", "dangerouslysetinnerhtml"].includes(node.parent.name.text.toLowerCase())) fail(node, `Keyed list item ${node.parent.name.text} is not supported`)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kudzujs/core",
3
- "version": "0.17.6",
3
+ "version": "0.17.8",
4
4
  "description": "HTML-first TSX framework with synchronous state semantics and no virtual DOM",
5
5
  "type": "module",
6
6
  "license": "MIT",