Skip to content

Releases: CodingZeal/zeal-redux-utils

v2.0.0

09 Feb 17:42
Compare
Choose a tag to compare
  • Update to flux-standard-action 2.0.0 (#14), drops support for Symbols as action types

v1.0.0

17 May 16:41
Compare
Choose a tag to compare

Releasing 0.3.2 as 1.0.0 with no changes.

v0.3.2

16 May 21:11
Compare
Choose a tag to compare

Added

  • Add documentation for the each of the utility functions to the README. (#11)

v0.3.1

12 May 16:14
Compare
Choose a tag to compare

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 the NonStandardAction exception. The whitelist function should take an action and return true 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

16 Dec 00:05
Compare
Choose a tag to compare

Changed

  • Check for flux standard actions (FSAs) in reducers created by createReducer. The check is performed only in development mode. Non-FSA actions raise a NonStandardAction exception. See flux-standard-action for a definition of what is an FSA. (#6)

Added

  • Add nullAction for use in reducer specs. A nullAction 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.g const initialState = reducer(undefined, nullAction) (#7)

Removed

  • Cleaned non-essential files out of the npm package to reduce package size. (#8)

Internal

  • Use yarn for all building and scripting tasks. (#8)

v0.2.0

14 Dec 19:18
Compare
Choose a tag to compare

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

14 Dec 16:02
Compare
Choose a tag to compare

Added

  • [Internal only] Tests for createActionTypes and createReducer

v0.1.0

14 Dec 16:02
Compare
Choose a tag to compare

Added

  • Welcome to the world!
  • Add createActionTypes for creating namespaced Redux action type constants.
  • Add createReducer for creating Redux reducers without using case statements.