Skip to content

Commit

Permalink
bump 2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
errorrik committed Dec 28, 2022
1 parent c506b94 commit 7e15d23
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
2.2.0
2.2.0 (2022-12-28)
---------

- [新特性] 新的组件连接函数 connect([store, ]mapStates[, mapActions])
Expand All @@ -8,45 +8,45 @@
- [废弃] connect.createConnector 废弃,使用 connect([store, ]mapStates[, mapActions]) 替代


2.1.3
2.1.3 (2021-9-13)
---------

- [新特性] connect 的 mapStates 项为 function 时,增加组件实例对象的传入。该特性支持根据组件实例决定 connect 的 state 项。


2.1.2
2.1.2 (2021-5-20)
---------

- [修复] template 被编译成 aPack 的组件,被 connect 后可能渲染失败


2.1.1
2.1.1 (2021-3-12)
---------

- [修复] action 完成后,使用 action 内部的 dispatch 方法,会导致运行时错误。该问题为 2.1.0 引入


2.1.0
2.1.0 (2021-1-30)
---------

- [变更] store 的 log 配置,默认值由 true 更改为 false
- [优化] action dispatch 后增加对象清除逻辑,优化内存占用


2.0.3
2.0.3 (2020-8-28)
---------

- [优化] 优化 action 流转的效率
- [新特性] 增加 store-dispatch 的 emitDevtool 点,以便于开发工具对 action dispatch 过程的跟踪


2.0.2
2.0.2 (2020-4-9)
---------

- [优化] connect 支持 ES class 继承的组件经过 babel transform 后的类形态


2.0.1
2.0.1 (2020-4-8)
---------

connect 返回派生类,不在原组件类上注入行为,产生了一些额外问题。此版本进行了一些优化
Expand All @@ -55,7 +55,7 @@ connect 返回派生类,不在原组件类上注入行为,产生了一些额
- [优化] connect 时,复制组件的 static 成员,否则组件信息会丢失


2.0.0
2.0.0 (2020-1-2)
---------

- [变更] connect 返回组件的派生类,不在当前组件进行 connect
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "san-store",
"version": "2.1.3",
"version": "2.2.0",
"description": "Application State Management for San",
"scripts": {
"build": "rm -rf dist && rollup --config && uglifyjs dist/san-store.source.js -mco dist/san-store.js && uglifyjs dist/san-store-use.source.js -mco dist/san-store-use.js && cp types/*.d.ts dist",
Expand Down

0 comments on commit 7e15d23

Please sign in to comment.