Skip to content

Kudzu 0.7.27 - Stateful component migration

Choose a tag to compare

@bunzzeok bunzzeok released this 04 Aug 08:31
· 35 commits to main since this release

Kudzu 0.7.27 lets ordinary setter-adapter components keep local hooks and derived render values without adding a browser component runtime.

Highlights

  • Setter-adapter children can own serializable state, deterministic IDs, null-initialized refs, and supported effects.
  • Direct primitive state props can initialize synchronized string drafts through zero-argument .toString().
  • Conditional removal releases state and refs and runs effect cleanup; remount creates fresh synchronized ownership.
  • Pure top-level derived locals now drive reactive JSX text and attributes.
  • React Router normalization safely ignores local exports without module specifiers.
  • Migration-derived FIRE input coverage verifies draft editing, parent updates, blur handling, effect synchronization, and remount.
  • The complete suite passes 121/121 tests.

Boundary

The feature remains one compiler-specialized setter callback boundary. Other dynamic state initializers, non-null refs, repeated callback use, and unsupported effect forms retain source diagnostics. React is never emitted or executed.

Upgrade

npm install @kudzujs/core@^0.7.27