Skip to content

Kudzu 0.7.23 - Router-shaped runtime params

Choose a tag to compare

@bunzzeok bunzzeok released this 04 Aug 00:22
· 39 commits to main since this release

Kudzu 0.7.23 accepts conventional React Router useParams() source on runtime bracket routes and redirects it to Kudzu's existing route-specific pathname reader without shipping React Router.

New in 0.7.23

  • Named or aliased useParams imports from react-router-dom work on bracket pages exporting runtimeParams = true.
  • One optional TypeScript type argument is preserved while runtime calls remain argument-free.
  • The binding redirects to @kudzujs/core; no React Router module reference survives emitted code.
  • Mixed Link and useParams imports lower together.
  • Existing secure pathname decoding, bindings, effects, handlers, and navigation lifetimes remain unchanged.
  • Indirect references, runtime arguments, unsupported imports, and other router hooks receive source diagnostics.
  • The complete suite passes 112/112 tests.

Boundary

Build-known getStaticPaths() routes continue to use page props. Catch-all routes, optional segments, indirect calls, runtime arguments, and other router hooks remain unsupported. No SPA router is included.

Upgrade

npm install @kudzujs/core@^0.7.23