Skip to content

Releases: kyeotic/raviger

2.5.2

19 Aug 19:04
Compare
Choose a tag to compare

Fixed

  • <ActiveLink> matching in nested contexts
  • <ActiveLink> matching for relative paths

2.5.1

17 Aug 21:31
Compare
Choose a tag to compare
  • Merge pull request #100 from zoontek/fix-use-query-params-regression 0d352ee
  • Fix useQueryParams typing regression 6bef70d

v2.5.0...v2.5.1

2.5.0

15 Aug 17:22
Compare
Choose a tag to compare

Changed

  • src/ to typescript
  • types are now natively generated from source and provided as declaration files
  • Minimum NodeJS version is now 12

2.4.2

16 Jul 20:56
Compare
Choose a tag to compare

[2.4.2] - 2021-07-16

Fixed

  • useRoutes not updating after an internal <Redirect /> updates the location

2.3.1

18 Jun 21:57
Compare
Choose a tag to compare

[2.3.1] - 2021-06-18

Added

  • Sourcemaps to published package

Changed

  • useNavigationPrompt now restores scroll position after undoing navigation

2.3.0

18 Jun 16:45
Compare
Choose a tag to compare

[2.3.0] - 2021-06-18

Changed

  • useNavigationPrompt now intercepts browser back/forward button navigation

2.1.0

02 May 18:38
Compare
Choose a tag to compare

Added

  • options.onInitial parameter for useLocationChange that controls the first render behavior. default: false.

Fixed

  • useLocationChange invoking the setter on initial render. This was not intended and was an unannounced change from the v1 behavior, so reverting it is not considered an API change but a bugfix.

2.0.2

22 Mar 20:40
Compare
Choose a tag to compare

[2.0.2] - 2021-03-22

Added

  • state parameter for navigate

2.0.1

07 Jan 17:58
Compare
Choose a tag to compare

[2.0.1] - 2021-01-07

Removed

  • engine requirement for 'less than' Node 15

2.0.0

17 Nov 16:42
Compare
Choose a tag to compare

[2.0.0] - 2020-11-17

Changed

  • BREAKING: useRoutes and usePath will return null if basePath is provided and missing from path
  • BREAKING: useLocationChange will invoke callback with null if basePath is provided and missing from path
  • BREAKING: useLocationChange option inheritBasePath now accepts any false value (previously required false with ===)
  • BREAKING: useRoutes option matchTrailingSlash default to true (was false)
  • BREAKING: removed linkRef prop from Link and ActiveLink, replaced with standard React forwardRef
  • BREAKING: useQueryParams setter second argument changed from replace to options param with replace property
  • BREAKING: useRedirect parameters changed to match properties on Redirect component

Added

  • useFullPath for getting the full path, ignoring any context-provided basePath
  • Support for Node 14
  • Rollup-plugin-terser for builds

Removed

  • Support for Node 8

v1.6.0...v2.0.0