Skip to content

Releases: cher-ami/router

v3.6.1

22 Feb 10:23

Choose a tag to compare

Full Changelog: v3.6.0...v3.6.1

Update version for npm

v3.6.0

22 Feb 10:15
118ca69

Choose a tag to compare

What's Changed

  • Fix subrouter for parent staticprops by @pierregradelet in #166
  • Allow to use <div> instead of <main> on Stack by adding as prop

Full Changelog: v3.5.5...v3.6.0

v3.5.5

12 Dec 14:45

Choose a tag to compare

What's Changed

Full Changelog: v3.5.4...v3.5.5

v3.5.4

27 Sep 09:42

Choose a tag to compare

What's Changed

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

v3.5.3

26 Sep 18:53

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

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

Choose a tag to compare

Patch for default props deprecated warning

v3.5.0

09 Jan 11:39

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

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

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