UNPKG

2.53 kBMarkdownView Raw
1
2## 2.0.3
3
4This version is just 2.0.2 re-published with a more recent version of npm to fix an issue where the `history` module was being published with the tarball. See [#133](https://github.com/rackt/redux-simple-router/issues/133).
5
6## [2.0.2](https://github.com/jlongster/redux-simple-router/compare/1.0.2...2.0.2)
7
8Versions 2.0.0 and 2.0.1 were test releases for the 2.* series. 2.0.2 is the first public release.
9
10**A whole new API, with many breaking changes:**
11
12* `syncReduxAndRouter` is gone. Instead, call `syncHistory` with just the `history` object, which returns a middleware that you need to apply. (#141)
13* 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.
14* Action creators are now contained in a single object called `routeActions`. `go`, `goBack`, and `goForward` action creators have been added.
15* `UPDATE_PATH` is now `UPDATE_LOCATION`.
16* The fully parsed [location object](https://github.com/rackt/history/blob/master/docs/Location.md) 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`.
17
18## [1.0.2](https://github.com/jlongster/redux-simple-router/compare/1.0.1...1.0.2)
19
20* Only publish relevant files to npm
21
22## [1.0.1](https://github.com/jlongster/redux-simple-router/compare/1.0.0...1.0.1)
23
24* Solve problem with `basename` causing infinite redirects (#103)
25* Switched to ES6 imports/exports internally, but should not affect outside users
26
27## [1.0.0](https://github.com/jlongster/redux-simple-router/compare/0.0.10...1.0.0)
28> 2015-12-09
29
30This release changes quite a bit so you'll have to update your code.
31
32**Breaking Changes:**
33
34* The `updatePath` action creator has been removed in favor of `pushPath` and `replacePath`. Use `pushPath` to get the same behavior as before. (#38)
35* We have added support for routing state (#38)
36* Our actions are now [FSA compliant](https://github.com/acdlite/flux-standard-action). This means if you are listening for the `UPDATE_PATH` action in a reducer you should get properties off the `payload` property. (#63)
37
38Other fixes:
39
40* Redux DevTools should now work as expected (#73)
41* As we no longer depend on `window.location`, `<base href="...">` should now work (#62)
42* We've done lots of work on finding the right way to stop cycles, so hopefully we shouldn't have any unnecessary location or store updates (#50)