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

v3.0 pre

Pre-release
Pre-release

Choose a tag to compare

@sergeysova sergeysova released this 06 Nov 15:12
· 40 commits to master since this release

v2.6.0...v3.0.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 library, ex. redux-observable. See discussion in #14

dc3ff3c Code was full rewrited

All library code was rewrited without changing API.