Skip to content
This repository was archived by the owner on Sep 16, 2020. It is now read-only.

v3 🐲

Compare
Choose a tag to compare
@sergeysova sergeysova released this 20 Nov 11:35
· 39 commits to master since this release

v2.6.0...v3.0.0

Major changes

f62c9af Changed format of plain action (PR #19)

Before that change, arguments of action creator passed to payload:

const { actions } = createSymbiote({ value: 0 }, {
  example: (state, a, b) => ({ value: state.value + a + b }),
})

actions.example(5, 6)
// { type: 'example', payload: [5, 6] }

Now payload contains only first argument. All arguments passed to "symbiote-payload":

actions.example(5, 6)
// { type: 'example', payload: 5, 'symbiote-payload': [5, 6] }

That change can ease interop with other libraries, ex. redux-observable. See discussion in #14

dc3ff3c Code was full rewrited

All library code was rewrited without changing API.