3.1.0
版本发布时间: 2016-06-26 07:38:28
pburtchaell/redux-promise-middleware最新发布版本:6.2.0(2023-12-28 03:07:18)
The rejected parameter for a promise is now an error object. This change is not breaking.
// before
Promise.reject('foo').catch(error => {
console.log(error instanceof Error); // => false
});
// after
Promise.reject('foo').catch(error => {
console.log(error instanceof Error); // => true
});
// error object keys remain the same as 3.0.x
Promise.reject('foo').catch(({ reason, action }) => {
console.log(reason); // => 'foo'
});