0.0.3
What's Changed
Breaking Changes
- Change the
onNavigatecallback signature from(event, matched)to(event, info)whereinfois{ matches: MatchedRoute[] | null, intercepting: boolean }. The newinterceptingflag indicates whether the router will intercept the navigation. (#52)
Features
- Add type-safe route object with hooks
useRouteParams,useRouteState, anduseRouteDatafor accessing typed route data (#50) - Allow type-safe hooks to access ancestor route data in nested route hierarchies (#53)
- Add
exactoption to route definitions for explicit control over exact vs prefix matching (#54) - Make
pathoptional 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