Skip to content

Kudzu 0.8.44 - Collision-free Context actions

Choose a tag to compare

@bunzzeok bunzzeok released this 13 Aug 00:19
· 1 commit to main since this release

Kudzu 0.8.44 removes a compiler-only naming restriction from relative Context-hook actions. Provider state and setters needed privately by an action may now share names with ordinary consumer locals.

Highlights

  • Action-private Provider state/setter fields receive collision-free compiler aliases.
  • Consumer source keeps its local names and public hook destructuring.
  • The specialized action AST and state map use the same aliases before existing HandlerIR lowering.
  • Context objects, Provider trees, and action functions remain absent from browser output.
  • Private captures, hidden state pairs, indirect actions, and dynamic Provider values remain fail-closed.

Validation

  • npm run check: 159 generated pages.
  • npm test: 208/208 tests, including Chrome Notes CRUD coverage with a colliding consumer setNotes local.
  • npm run test:package: passed.

No browser runtime or public API changed, and no new performance claim is made.

Install with npm install @kudzujs/core@^0.8.44.