Skip to content

Releases: kyeotic/raviger

4.1.2

02 Nov 16:25
Compare
Choose a tag to compare

[4.1.2] - 2022-11-02

Fixed

  • useHash undefined error from missing prop on event

4.1.1

21 Sep 16:30
Compare
Choose a tag to compare

v4.1.0...v4.1.1

4.1.0

24 Apr 20:50
Compare
Choose a tag to compare

[4.1.0] - 2022-04-24

Added

  • Support for React 18

4.0.0

11 Mar 19:01
Compare
Choose a tag to compare

Added

  • useHistory
  • usePath

Changed

  • BREAKING: navigate now has options object instead of overloads
  • BREAKING: useNavigate uses updated navigate params
  • BREAKING: useLocationChange now invokes the setter with a RavigerLocation object instead of the path string

Fixed

  • usePath getting an old path if navigate was called during the initial render

v3.1.0

17 Jan 20:05
Compare
Choose a tag to compare

[3.1.0] - 2022-01-17

Added

  • __tag to the PopState events dispatched by navigate

v3

03 Nov 03:15
Compare
Choose a tag to compare
v3

Changed

  • BREAKING:usePath returns decodeURIComponent-ed path
  • BREAKING:useRoutes, useMatch, and usePathParams match paths that have been decodeURIComponent-ed (e.g. /weird (route) will match a path of /weird%20(route))
  • BREAKING: type RouteParams renamed to Routes
  • BREAKING: usePathParams return type now depends on the input params. When a string it returns just the props, when an array it returns [path, props]

Added

  • RouterProvider

Fixed

  • useRoutes function-values to use props type string (was any)

2.6.0

15 Oct 18:39
Compare
Choose a tag to compare

[2.6.0] - 2021-10-15

Added

  • useMatch hook
  • usePathParams hook

2.5.5

03 Oct 17:29
Compare
Choose a tag to compare

Fixed

  • <Link basePath='/'> not skipping context basePath

2.5.4

27 Aug 18:37
Compare
Choose a tag to compare

Fixed

  • terser mangling location in querystring methods

2.5.3

25 Aug 19:24
Compare
Choose a tag to compare

[2.5.3] - 2021-08-25

Changed

  • Updated transpilation to reduce size, remove Babel