All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
2.0.0 - 2018-02-09
- Update to flux-standard-action 2.0.0 (#14), drops support for Symbols as action types
1.0.0 - 2017-05-17
Releasing 0.3.2 as 1.0.0 with no changes.
0.3.2 - 2017-05-16
- Add documentation for the each of the utility functions to the README. (#11)
0.3.1 - 2017-05-12
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)
0.3.0 - 2016-12-14
- 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)
- 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)
- Cleaned non-essential files out of the npm package to reduce package size. (#8)
0.2.0 - 2016-12-14
- 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)
0.1.1 - 2016-12-01
- [Internal only] Tests for
createActionTypes
andcreateReducer
- Welcome to the world!
- Add
createActionTypes
for creating namespaced Redux action type constants. - Add
createReducer
for creating Redux reducers without using case statements.