Skip to content

Latest commit

 

History

History
79 lines (55 loc) · 2.55 KB

CHANGELOG.md

File metadata and controls

79 lines (55 loc) · 2.55 KB

1.0.8

  • #155 Fix failed to route resolution on Chromium on Windows

1.0.6, 1.0.7

v1.0.6 is failed publish, v1.0.7 is valid package for v1.0.6

  • #154 Fix Invalid URL in Chromium browsers

1.0.5

  • #152 [dev] Replace bili to vite
  • #153 [dev] Replace url and querystring deps to WHATWG URL API

1.0.3

  • #137 Support typing for React 18

1.0.2

  • # target attribute is no longer ignored on Link component

1.0.1

  • #32 Fix broken query fragment in Link#href

1.0.0

Breaking changes

  • #4 Accept parsed query and search string in your action.preload.
// Before
routeOf(...).action({
  preload: (context, params, query)
})

// After
routeOf(...).action({
  preload: (context, params, /* Changed ⇢ */ { query, search })
})
  • #2 RouteDefinition.match now returns null instead of false when route is unmatched

New features

  • #2 Add Next.js partially compat useRouter hooks
  • #3 Add useFrouteRouter hooks, it's superset of useRouter
  • #1 Add useBeforeRouteChange hooks for preventing navigation
  • #2 Add query and search in result of RouteDefinition.match.
  • #7 Accept plain query string in 3rd argument of buildPath
    buildPath(routeDef, { param: '' }, '**Accept query string here** without `?` prefix')

Deprecation

  • The following hooks have been deprecated Use useFrouteRouter or useRouter instead.
    • useLocation
    • useNavigation
    • useParams
    • useUrlBuilder

0.2.0

  • #1 Add routeOf route define method
    • It's follows Template Literal Type
      routeOf('/user/:userId')
        // infered params to `{ userId: string }`
  • #1 Support history.state from useLocation().state
    • Sorry, I forgot to expose useHistoryState hooks in this version... now readonly...

0.1.0

  • First release of @fleur/froute!