unmaintaineddirectory has been created to move packages which are no longer maintained.
deku-router5has been added to it: if you are interested in maintaining it, I'm happy to consider transferring ownership.
onTransitionSuccess, etc.): it will be called when a plugin is removed.
useMiddlewareno 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.
usePluginno 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.
hasPluginmethod has been removed, and
pluginNameis no longer needed
cloneRouterfunction, and it no longer re-uses existing dependencies
reloadnavigate option is set to
fromStateis no longer set to
transitionPathhas been updated to take into account this change, if you have middleware or plugins with custom logic, make sure you update them.
Linkhas been renamed to
BaseLinkhas been renamed to
RouteProviderhas been renamed to
RouterProvider: there is now only one provider
react-router5now requires React version 16.3.0 or above: it no longer uses the old context API. The migration path is quite easy:
react-router5-hocshas 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)
redirecthelper has been removed: it's no longer needed with