Kudzu 0.7.20 - Computed child collections
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
mapcallback may contain one top-levelconstdeclaration followed by its final JSX return. - The
conststarts from a direct parent-item child property and may use the existing purefilter, direct-propertyflatMap, orArray.fromselector 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.20The matching project generator is create-kudzu@0.1.75.