@kudzujs/core 0.17.5 → 0.17.7

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.5](https://github.com/kudzujs/kudzu/releases/tag/v0.17.5).** List-owned effects now wait for row ownership initialization through an explicit ESM dependency. Delayed list loading no longer makes effects miss existing DOM refs. Chrome verifies current row values, stable IDs, uncontrolled inputs, state, cleanup and fresh clones. C2 adds 50 raw / 7 level-9 gzip bytes; project-app output is unchanged. Generator `create-kudzu@0.1.166` targets core `^0.17.5`. No speed improvement is claimed; startup, restoration and AI-cost/1.0 gates remain unresolved.
17
+ **Current release: [0.17.7](https://github.com/kudzujs/kudzu/releases/tag/v0.17.7).** Route and runtime-family artifact reports now omit the style helper when specialization does not emit it, while retaining required styled binding/list dependencies. All 13 artifact fixtures pass with byte-identical deploy output. Generator `create-kudzu@0.1.168` targets core `^0.17.7`. This is a reporting correction, not a speed improvement; 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")
@@ -630,7 +630,12 @@ function fillListParts(root, parts, item, revision, index = 0, previous) {
630
630
  }
631
631
  }
632
632
  if (__KUDZU_LIST_EVENTS__) {
633
- for (const [node, events] of parts.events) {
633
+ for (let [node, events] of parts.events) {
634
+ if (__KUDZU_GENERAL_ROW_HOOKS__) {
635
+ let owner = root
636
+ while (owner && !listRowPaths.has(owner)) owner = owner.parentElement
637
+ if (owner && !rowReplacements.has(owner)) events = events.replaceAll("$k", listRowPaths.get(owner))
638
+ }
634
639
  for (const [event, native] of JSON.parse(events)) {
635
640
  native.scope = Object.fromEntries(Object.entries(native.scope).map(([name, value]) => [name, value?.type === "list-item" ? serializeItem(item) : value?.type === "list-index" ? index : value]))
636
641
  node.dataset[`kNative${capitalize(event)}`] = JSON.stringify(native)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kudzujs/core",
3
- "version": "0.17.5",
3
+ "version": "0.17.7",
4
4
  "description": "HTML-first TSX framework with synchronous state semantics and no virtual DOM",
5
5
  "type": "module",
6
6
  "license": "MIT",