Skip to content

2.0.0

Compare
Choose a tag to compare
@kyeotic kyeotic released this 17 Nov 16:42

[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