This repository has been archived by the owner on Sep 16, 2020. It is now read-only.
Releases: sergeysova/redux-symbiote
Releases Β· sergeysova/redux-symbiote
v3.4
v3.3
v3.2
v3.1
v3.0.2
v3.0.1
- b7d9e18 Just move to another workspace
v3 π²
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.
v3.0 pre
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.