Skip to content

@ruanyl ruanyl released this Mar 4, 2020 · 5 commits to master since this release

release 0.11.2
Assets 2

@ruanyl ruanyl released this Mar 1, 2020

  • Update dependencies
Assets 2

@ruanyl ruanyl released this Mar 1, 2020

  • Breaking change: subscriber now gets the whole action object
  • Removed react, react-redux, react-dom from peer dependencies
Assets 2

@ruanyl ruanyl released this Dec 10, 2019 · 15 commits to master since this release

0.10.2

release 0.10.2
Assets 2

@ruanyl ruanyl released this Dec 5, 2019 · 19 commits to master since this release

minor updates:
1. add immutable to peerDependencies
2. update peerDependency version of react-redux

Assets 2

@ruanyl ruanyl released this Nov 9, 2019 · 23 commits to master since this release

release 0.10.0

Breaking change

Removed reducers and sagas from App config which passed into the App constructor when App is initialized.

This causes issues when migrating existing react/redux application to use Reapex. There will be circulation import issue if the existing application has references to Reapex created model

To register existing sagas and reducers, use:
app.runSaga()
app.setExternalReducers()

New feature

Reapex by default creates action type with / separated strings internally.
For example: 'SomeModelName/MutationName'. When Reapex binding action types to sagas by the calling effect(effectMap), it will check if the effectMap key has a namespace(e.g. SomeModelName) and it will prefix the key with a namespace when binding sagas if no namespace presents. This expects the key to be separated by /

However, when migrating existing react/redux application to use Reapex, the action types of existing application could be in any pattern, for example, . or _ separated, or even just a random string.

For Reapex to recognize such action types when binding actions to sagas, now it allows to pass App config like this:

const app = new App({
  actionTypeHasNamespace: (actionType: string) => actionType.includes('.')
})
Assets 2

@ruanyl ruanyl released this Nov 9, 2019

Added a new API setExternalReducers to accept a reducer map.
This is intended to register existing reducers when migrating current React/Redux application to use Reapex

Assets 2

@ruanyl ruanyl released this Oct 31, 2019 · 28 commits to master since this release

Move to:
Typescript 3.6
redux-saga 1.1.0

Assets 2

@ruanyl ruanyl released this Oct 31, 2019 · 30 commits to master since this release

Update the type signature of Saga to compatible with typescript --strictFunctionTypes

Assets 2

@ruanyl ruanyl released this May 17, 2019

changed the way how external sagas and external reducers work
Assets 2
You can’t perform that action at this time.