Kudzu 0.7.19 - Reusable collection aliases
Kudzu 0.7.19 lets one immutable local collection alias feed multiple keyed list sites while preserving independent DOM identity, and formalizes setter callback and object-ref ownership across one ordinary component boundary.
New in 0.7.19
- A top-level immutable local alias over a supported collection pipeline may be reused by multiple keyed
mapsites. - Every alias reference must remain a statically analyzable collection source; mixed reads fail with a source-located diagnostic.
- Each list site retains its own keyed DOM identity through insertion, reorder, and removal.
- Inline or simple
constsetter callbacks andnull-initialized object refs may cross one same-file or relative-imported component boundary to a direct intrinsic root. - Conditional removal drops the handler with the DOM and resolves the ref to
null; remount creates a fresh element. - No callback registry, retained component instance, VDOM, or hydration is introduced.
- The complete suite passes 107/107 tests.
Boundary
Reusable aliases must be top-level immutable locals whose every reference is a supported collection source. Search, slice, pagination, sorting, mutation, imported transforms, arbitrary callbacks, callback refs, and forwarding beyond the proven component boundary remain unsupported.
Upgrade
npm install @kudzujs/core@^0.7.19The matching project generator is create-kudzu@0.1.74.