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

Releases: sergeysova/redux-symbiote

v2.4 🌵

06 Sep 09:52
Compare
Choose a tag to compare

v2.3.0...v2.4.0

Features

e1ea00d pass action to defaultReducer option

Now defaultReducer receives original action, passed to symbiote reducer.

You can handle any action type in symbiote.

import { createSymbiote } from 'redux-symbiote'
import { reset } from '../actions-types'

const initialState = {
  value: 0,
}

const defaultReducer = (prevState, { type }) => {
  if (type == reset) return initialState
  return prevState
}

export const { actions, reducer } = createSymbiote(initialState, {
  set: (prevState, value) => ({ value }),
}, { defaultReducer, namespace: 'example' })

91b8b26 upgrade babel (#15)

Babel was upgraded from 6.x to 7.0

e5b7c2f add typescript base typings (#13)

Thanks to @igorkamyshev

Tests

6aa4d65 defaultReducer: receive previous state

v2.3 🎋

21 Jun 02:48
v2.3.0
393b09d
Compare
Choose a tag to compare

Features

  • 52eed48 createSymbiote: add separator to options
  • 9c1a6f6 createSymbiote: add options. add defaultReducer to options

https://github.com/atomixinteractions/redux-symbiote/blob/393b09decf5e3bcfb4f7d94d2833bad9647e029a/README.md#options

v2.2.1

21 Jun 01:00
v2.2.1
c6d9080
Compare
Choose a tag to compare

Revert

Docs

v2.2 🎍

21 Jun 00:06
v2.2.0
519ad31
Compare
Choose a tag to compare

Features

v2.1 🍃

21 Jun 00:05
v2.1.0
221f25c
Compare
Choose a tag to compare

Features

Refactorings

  • cae631b (symbiote secret and extended action):

Docs

v2.0.3

04 Apr 20:30
v2.0.3
91d993d
Compare
Choose a tag to compare

Fixes

v2.0.2

04 Apr 20:25
v2.0.2
2c36957
Compare
Choose a tag to compare

Fixes

v2.0.1

22 Feb 11:34
v2.0.1
c3ebd2e
Compare
Choose a tag to compare

Changes

v2 🌲

22 Feb 11:22
v2.0.0
98ec773
Compare
Choose a tag to compare

BREAKING CHANGES

  • 4c047b7 refactor to single fn action creator #4

Changes

v1.1 🌴

21 Feb 19:16
Compare
Choose a tag to compare

Changes

Chore