Skip to content

Version 3.3.0

Choose a tag to compare

@nhunzaker nhunzaker released this 30 Mar 12:54
· 1824 commits to master since this release

This release tweaks the way transactions occur when an action is dispatched. Instead of non-destructively merging a change-set into the old state, it is now cloned. This should pave the way for future updates that provide undo behavior.

  • mapBy internal function now accepts an initial value
  • Changed Microcosm::dispatch copy strategy. Instead of merging a change set, it now directly modifies a clone of the previous state.
  • Added Microcosm::clone. This method defines how state is copied before dispatching an action.