Skip to content

Kudzu 0.7.20 - Computed child collections

Choose a tag to compare

@bunzzeok bunzzeok released this 03 Aug 04:31
· 42 commits to main since this release

Kudzu 0.7.20 accepts a common block-bodied keyed map callback that computes one direct child collection before returning JSX, without executing arbitrary callback code or adding a browser runtime path.

New in 0.7.20

  • A keyed map callback may contain one top-level const declaration followed by its final JSX return.
  • The const starts from a direct parent-item child property and may use the existing pure filter, direct-property flatMap, or Array.from selector pipeline.
  • The computed alias feeds exactly one nested keyed list source.
  • The compiler substitutes the proven calculation into the returned JSX and reuses existing selector encoding and keyed ownership.
  • Child insertion, reorder, removal, indexes, and DOM identity retain existing nested-list behavior.
  • Additional statements, multiple or mixed alias reads, parent capture, mutation, arbitrary calls, and asynchronous callbacks fail during compilation.
  • The complete suite passes 107/107 tests.

Boundary

This release supports one direct-child collection const in a block-bodied keyed-map callback. Multiple calculations, aliases used outside one nested keyed list, imported transforms, parent captures, mutation, and async work remain unsupported.

Upgrade

npm install @kudzujs/core@^0.7.20

The matching project generator is create-kudzu@0.1.75.