Skip to content

Kudzu 0.7.19 - Reusable collection aliases

Choose a tag to compare

@bunzzeok bunzzeok released this 03 Aug 04:16
· 43 commits to main since this release

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 map sites.
  • 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 const setter callbacks and null-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.19

The matching project generator is create-kudzu@0.1.74.