TypeError
if the matches()
method of an action creator is called independently from the action creator object. Allows idioms such as filter(actionCreator.matches)
without having to resort to Function.prototype.bind
(actionCreator.matches.bind(actionCreator)
).createAction
action creators now have a matches()
method, which returns true if the passed action's type
matches that of the creator. In TypeScript, matches()
is defined as a type predicate.SimpleActionCreator
type is now called BasicActionCreator
. SimpleActionCreator
is kept as a type alias, but is deprecated.onAction
: Accept symbols and numbers as action types ([@judithhartman][https://github.com/judithhartmann])reduceActions
and reduceActionsFrom
.reduxPreboiled
.esnext
one) are now transpiled to ES5, which makes them work in older browsers (most notably Internet Explorer 11).reduceActionsFrom
. Like reduceActions
, but starting with a custom state (instead of the reducer's initial state).README.md
.