Skip to content

Kudzu 0.7.4 - Memoized collection pipelines

Choose a tag to compare

@bunzzeok bunzzeok released this 31 Jul 05:01
· 62 commits to main since this release

Kudzu 0.7.4 lets ordinary React/Vite source retain analyzable collection work inside useMemo while reusing the existing keyed-list selector and DOM identity model.

New in 0.7.4

  • Inline useMemo callbacks accept collection pipelines rooted in direct local array state.
  • Existing filter, direct-property flatMap, and Array.from selector analysis is reused without a browser memo cache.
  • Intermediate .map() calls lower to the existing Array.from(source, mapper) selector operation.
  • Memo locals are removed from emitted server modules after their uses are inlined.
  • State updates preserve keyed row DOM identity as selected values change.
  • Collection callbacks must be synchronous arrows with plain (item) or (item, index) parameters.
  • The React/Vite fixture verifies filter + map, selector generation, browser updates, and retained row identity.

Boundary

Memoized collections use the existing statically analyzable collection subset. Arbitrary callbacks, external captures, asynchronous transforms, getters, and general-purpose memo caching remain unsupported. React, a VDOM, hydration, and a retained browser component tree are not emitted.

Upgrade

npm install @kudzujs/core@^0.7.4