react-router-redux v2.0.2 Release Notes

  • ๐Ÿ”– Versions 2.0.0 and 2.0.1 were test releases for the 2.* series. 2.0.2 is the first public release.

    A whole new API, with many breaking changes:

    • ๐Ÿ”€ syncReduxAndRouter is gone. Instead, call syncHistory with just the history object, which returns a middleware that you need to apply. (#141)
    • ๐Ÿ”€ If you use redux devtools, you need to call middleware.listenForReplays(store) on the middleware returned from syncHistory. Create the store first with the middleware, then call this function with the store.
    • Action creators are now contained in a single object called routeActions. go, goBack, and goForward action creators have been added.
    • โšก๏ธ UPDATE_PATH is now UPDATE_LOCATION.
    • ๐Ÿ“œ The fully parsed location object is now stored in the state instead of a URL string. To access the path, use state.routing.location.pathname instead of state.routing.path.

    ๐Ÿ“„ View the new docs