All notable changes to this project will be documented in this file.
- Add
arePathsEqual
option and make the default one more aware of URL encodings and semantics.
- Add
transformPathInActions
option to complement existingpathFromRoutesToWindow
andpathFromWindowToRoutes
.
- Fix it really.
- Fix bug where we didn't take
urlOptions
into account when history and location weren't explicitly passed.
- Add
ActiveA
tag - Pass
newLocation
toRouterBeforeUnloadInterceptor
- Works without needing to run
resetContext({plugins:[routerPlugin()]})
explicitly
- Add
beforeUnload
builder. @benjackwhite
- Kea v3 support
- Add
currentLocation
selector torouter
, which contains bothsearch
andsearchParams
unlikelocation
that doesn't contain the params. - Add
previousLocation
as the 5th argument tourlToAction
functions.
- Add
lastMethod
value to easily check if the back button was pressed (POP
) or not (PUSH
orREPLACE
).
- Pass the payload of the
router.actions.locationChagned
action as the 4th parameter tourlToAction
.
- Change build from
rollup
totsc
- Fix package.json paths.
- Fix
combineUrl
util's type's fix
- Fix
combineUrl
util's type
- This library is stable enough, bumping to 1.0! 🎉
- Add option to return
{ replace: true }
as the 4th array element fromactionToUrl
, which willreplace
the last location in the stack instead ofpush
ing a new one.
- Add
<A href='/url'>text</A>
tag which hijacksonClick
and delegates the rest to an<a>
tag.
- Adds
urlPatternOptions
torouterPlugin
options. Use the following to match emails in url segments:
routerPlugin({
urlPatternOptions: {
segmentValueCharset: 'a-zA-Z0-9-_~ %.@', // adds '@' to default
},
}),
- Fix type issues
- Requires Kea 2.2.1 to work
- Added types
- Works with passing objects (
{}
) toactionsToUrl
andurlToActions
. Passing functions (() => ({})
) no longer strictly needed.
- Support for url parameters
- Don't change the URL if actionToUrl returns undefined
- First version