Skip to content

Releases: cher-ami/router

v3.5.4

27 Sep 09:42
Compare
Choose a tag to compare

What's Changed

Full Changelog: v3.5.3...v3.5.4

v3.5.3

26 Sep 18:53
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v3.5.2...v3.5.3

v3.5.2

26 Sep 16:22
Compare
Choose a tag to compare

Fix langServide to handle hashHistory :

  • Added isHashHistory props to <Router> and to LangService option
  • Added test on getRouteFromUrl is hashHistory is used

v3.5.1

10 Jun 14:27
Compare
Choose a tag to compare

Patch for default props deprecated warning

v3.5.0

09 Jan 11:39
Compare
Choose a tag to compare

Re implement getPaused and setPaused because history block API don't keep the last URL pushed in history.

v3.4.0

09 Nov 15:54
Compare
Choose a tag to compare
  • remove getPaused and setPaused because history block API can do it. #149

  • props route returns queryParams & hash #153

    export type TRouteProps = {
      params?: TParams
      queryParams?: TQueryParams
      hash?: string
      [x: string]: any
    }

v3.3.0

09 Nov 14:42
Compare
Choose a tag to compare

Fix sub-router createUrl #154

When with createUrl of a sub-router, from a sub-router, the URL wasn't build properly on the server-side. This cause a diff of render between server and client.

To resolve this issue we need to:

  • Get an "is root router" state on server and client side
  • Harly reset all Routers property on each http request (because the nodejs runtime is not clear on each http request)
  • Rework createUrl() function: internalize all the getUrlByRouteName logic
  • Update and split tests
  • Remove old core getUrlByRouteName() & getFullPathByPath()
  • Remove core compileUrl(), use path-to-regexp compile instead

v3.2.1

18 Oct 20:41
Compare
Choose a tag to compare
  • replace jest by vitest (remove babel dependencies) #142
  • update documetation, add codesandox playground, fix anchors #144

v3.2.0

18 Oct 17:22
Compare
Choose a tag to compare

features

#141

  • Fix hydration error when server side staticLocation is "/foo" and client url is "/foo?some=param#anchor"
  • install turbo for run all dev examples
  • compile now with tsup instead of microbundle
  • test client and ssr hash and params
  • improve cache
  • update example-ssr

v3.1.2

05 Oct 13:25
Compare
Choose a tag to compare

Fix getStaticProps cache key #140