Skip to content

0.0.3

Choose a tag to compare

@uhyo uhyo released this 24 Jan 02:45
· 56 commits to master since this release

What's Changed

Breaking Changes

  • Change the onNavigate callback signature from (event, matched) to (event, info) where info is { matches: MatchedRoute[] | null, intercepting: boolean }. The new intercepting flag indicates whether the router will intercept the navigation. (#52)

Features

  • Add type-safe route object with hooks useRouteParams, useRouteState, and useRouteData for accessing typed route data (#50)
  • Allow type-safe hooks to access ancestor route data in nested route hierarchies (#53)
  • Add exact option to route definitions for explicit control over exact vs prefix matching (#54)
  • Make path optional in route definitions for layout wrappers and catch-all routes (#55)
  • Add server entry point (@funstack/router/server) for RSC compatibility (#42)
  • Support JSX element syntax for route component

Full Changelog: 0.0.2...0.0.3