Releases: CodingZeal/zeal-redux-utils
Releases · CodingZeal/zeal-redux-utils
v2.0.0
v1.0.0
Releasing 0.3.2 as 1.0.0 with no changes.
v0.3.2
v0.3.1
Changed
createReducer
now allows the caller to specify a whitelist function that can bypass the flux standard action (FSA) check. Some external libraries dispatch actions that do not conform to the FSA spec and we don't want those to trigger theNonStandardAction
exception. The whitelist function should take an action and returntrue
if it should bypass the FSA check, or false if it should be checked. Use it as follows:createReducer(initialState, actionHandlers, { allowNonStandardActionIf: whitelistFunction })
. (#9)
v0.3.0
Changed
- Check for flux standard actions (FSAs) in reducers created by
createReducer
. The check is performed only in development mode. Non-FSA actions raise aNonStandardAction
exception. See flux-standard-action for a definition of what is an FSA. (#6)
Added
- Add
nullAction
for use in reducer specs. AnullAction
is a flux-standard-action-compliant action that shouldn't match any of your normal actions. It can be used to initialize the state in a reducer spec. e.gconst initialState = reducer(undefined, nullAction)
(#7)
Removed
- Cleaned non-essential files out of the npm package to reduce package size. (#8)
Internal
v0.2.0
Added
- Add
globalizeSelectors
for adapting selectors that work on a slice of the state tree to allow them to work on the entire state tree. See Globalizing Redux Selectors for more information. (#2, #5)
v0.1.1
Added
- [Internal only] Tests for
createActionTypes
andcreateReducer
v0.1.0
Added
- Welcome to the world!
- Add
createActionTypes
for creating namespaced Redux action type constants. - Add
createReducer
for creating Redux reducers without using case statements.