Releases: kyeotic/raviger
Releases · kyeotic/raviger
2.5.2
2.5.1
2.5.0
2.4.2
2.3.1
2.3.0
2.1.0
Added
options.onInitial
parameter foruseLocationChange
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
2.0.1
2.0.0
[2.0.0] - 2020-11-17
Changed
- BREAKING:
useRoutes
andusePath
will returnnull
ifbasePath
is provided and missing from path - BREAKING:
useLocationChange
will invoke callback withnull
ifbasePath
is provided and missing from path - BREAKING:
useLocationChange
optioninheritBasePath
now accepts any false value (previously requiredfalse
with===
) - BREAKING:
useRoutes
optionmatchTrailingSlash
default totrue
(wasfalse
) - BREAKING: removed
linkRef
prop fromLink
andActiveLink
, replaced with standard ReactforwardRef
- BREAKING:
useQueryParams
setter second argument changed fromreplace
to options param withreplace
property - BREAKING:
useRedirect
parameters changed to match properties onRedirect
component
Added
useFullPath
for getting the full path, ignoring any context-providedbasePath
- Support for Node 14
- Rollup-plugin-terser for builds
Removed
- Support for Node 8