- [bug] fix
MiddleWares.takeDebounce
problem. - [bug] fix
globalConfig
problem. If a global object can not be found,globalConfig
should not work. - [feature] add
nextExperience
inenv
config for experience next version features.MiddleWare
override order in next version:useMiddleWare
->middleWare
->createAgentReducer
. - [document] update document structure.
- [document] increase english language support.
- [unit test] update unit test structure.
- [bug] fix
useMiddleWare
reuse the MiddleWare fromcreateAgentReducer
problem. - [design]
applyMiddleWares
reassignruntime.cache
for eachMiddleWare
, in this version,runtime.cache
used in MiddleWare is independent. - [design]
MiddleWares.takeNone()
is a new MiddleWare, this MiddleWare can stop any state change. - [feature]
MiddleWare
override order in current version:useMiddleWare
->middleWare
->createAgentReducer
. - [feature]
Agent
objects based on the same object mode model updates state synchronously.
- [bug] fix when
use-agent-reducer
update state by its brothers, react throw error:Cannot update a component (
xxx) while rendering a different component (
xxx)
- [bug] fix when
use-agent-reducer
update state by its brothers, react throw error:Cannot update a component (
xxx) while rendering a different component (
xxx)
- [api] add
sharing
for generating a persistent model. - [api] add
weakSharing
for generating a weak persistent model.
- [compile] add import usage like
import {...} from 'agent-reducer\es'
. And this can decreaseagent-reducer
package size. See detail .
- [compile] make es package less.
- [bug] fix the problem when using model sharing, an expired reducer still can modify state.
- [bug] fix the problem about notify always runs in updateBy:'auto' env.
- [refactor] do refactor for
agent.ts
andreducer.ts
.
- [bug] fix the problem about when middle param is empty, cause
NPE
.
- [refactor] do refactor for
agent.ts
andreducer.ts
.
- [design] adopt the state changing strategy of
redux
, that means the model state is always updated immediately. - [design] when using the model sharing, the
middleWare states
are shared with each agent too.
- [bug] fix v3.6.0, weakSharing can not share inside middleWare caches.
- [bug] fix the state feedback problem, the outside state should not feedback from v3.6.0.
- [bug] fix the problem about state modified by a notified action.
- [design] the weakSharing agent can change model state whether it is destroyed or not, only when all the sharing agents are destroyed.
- [design] add the
initial
callback to the weakSharing API returns.
- [design] the current property in weakSharing ref will be reset when first usage about it appears.
- [design] add reconnect to reducer function property, that makes destroy can be reversed.
- [design] add
initial
function into apisharing
returns. - [update] prepare for
agent-reducer@4.0.0
- [bug] fix build problem about
module
inpackage.json
, and roll back the building config.
- [bug] fix bug about
MiddleWarePresets.takeLatest
, when a promise result rejected, there are two rejections.
- [optimize] optimize the code about
warningSet
.
- [optimize] optimize the code about state change processing
- [design] remove the bad designs
- [design] rename some API functions
- [design] simplify some API functions
- [document] use github docs
- [optimize] optimize the code building structure, and now the size optimization can be used into a windows system too, you can get this info from installion.
- [optimize] The promise process in MiddleWare has not dependenced to
ES6 Promise
API.
- [bug] repair bug from compile optimization in
4.0.1
, which makes the modules can not be found.