unmaintained
directory has been created to move packages which are no longer maintained. deku-router5
has been added to it: if you are interested in maintaining it, I'm happy to consider transferring ownership.teardown
method (alongside onStart
, onStop
, onTransitionSuccess
, etc.): it will be called when a plugin is removed.router5-plugin-browser
router5-plugin-logger
router5-plugin-listeners
router5-plugin-persistent-params
useMiddleware
no longer returns your router instance, but a function to remove the added middleware. You can still pass multiple middleware, in which case calling the teardown function will remove all of them.usePlugin
no longer returns your router instance, but a function to remove the added plugin. You can still pass multiple plugins, in which case calling the teardown function will remove all of them.hasPlugin
method has been removed, and pluginName
is no longer neededcloneRouter
function, and it no longer re-uses existing dependenciesreload
navigate option is set to true
, fromState
is no longer set to null
: transitionPath
has been updated to take into account this change, if you have middleware or plugins with custom logic, make sure you update them.useRoute
, useRouteNode
and useRouter
Link
has been renamed to ConnectedLink
, and BaseLink
has been renamed to Link
RouteProvider
has been renamed to RouterProvider
: there is now only one providerreact-router5
now requires React version 16.3.0 or above: it no longer uses the old context API. The migration path is quite easy:react-router5-hocs
has been added: it is a drop-in replacement for react-router5
(Link component names stil need changed, see point above)react-router5
(see breaking changes above)router5Reducer
from redux-router5-immutable
redirect
helper has been removed: it's no longer needed with forwardTo
.