6.0.0
版本发布时间: 2019-02-04 04:04:10
pburtchaell/redux-promise-middleware最新发布版本:6.2.0(2023-12-28 03:07:18)
Breaking Changes
Previously, the middleware need to be instantiated with an optional configuration.
import promiseMiddleware from 'redux-promise-middleware'
applyMiddleware(
promiseMiddleware({
// Optional configuration
}),
)(createStore)
This implementation enabled custom configuration, but, for most implementations, it is uncessary overhead.
Now, the default export is preconfigured and ready to go.
import promise from 'redux-promise-middleware'
applyMiddleware(
promise,
)(createStore)
We still support custom configuration. Check the upgrading guide for more help.
Thanks to @rahulbdominic and @zhanyuzhang for assisting on this release.
New
- Updated TypeScript definitions with more robust types to use for async action creators (#234)