Skip to content

dva@2.2.0

Compare
Choose a tag to compare
@sorrycc sorrycc released this 10 Apr 08:06
· 227 commits to master since this release

Improvement

  • support Typescript, #1248
  • new dva plugin: umi-immer, #1595
  • dva/dynamic support return Promise with model Array, #1355
  • update deps for react-router-redux and redux-saga,#1330
  • throw error when action's type is empty, #1607
  • Refact: update scripts, umd bundle with rollup, test with jest, es module, ..., #1594

Bugfix

  • 修复 dva/dynamic 在动态加载没完成但组件已被卸载时报 setState 警告,#1391
  • fix redux-saga bundled twice, #1610
  • fix model without reducers will lose state after it's injected, #1608
  • fix register the model will affecting itself, #1605
  • fix typo, extitraReducers to extraReducers, #1522
  • fix return Promises when trigger the same effect multiple times, #1602
  • fix the known root container, #1589, #1591

中文版 CHANGELOG :

改进

  • 新增 Typescript 支持, #1248
  • 新增 dva 插件 umi-immer,允许在 reducer 中直接修改对象进行更新,后续会写文章介绍, #1595
  • 新增 dva/dynamic 支持返回数组格式的 model Promise, #1355
  • 增加在 action type 为空时报错, #1607
  • 更新 react-router-redux 依赖版本,修复 peerDependencies 警告问题,#1330
  • Refact: update scripts, umd bundle with rollup, test with jest, es module, ..., #1594

Bugfix

  • 修复 dva/dynamic 在动态加载没完成但组件已被卸载时报 setState 警告,#1391
  • 修复 redux-saga 被打包两次的问题,压缩后尺寸减少 8K, #1610
  • 修复没有 reducers 的 model 在动态注入后会丢失 state 的问题, #1608
  • 修复 model 注册时会修改自己的问题, #1605
  • 修复 typo,extitraReducers -> extraReducers, #1522
  • 修复触发同一个 effect 多次返回的 Promise 不对的问题, #1602
  • 修复 root container 显示 known 的问题, #1589, #1591