diff --git a/CHANGELOG.md b/CHANGELOG.md index a6b0e35c..12d81d5e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 0.0.38 (2023-02-01) +- **core**: 增加flushSync接口 + ## 0.0.37 (2023-01-31) - **core**: 增加jsxs方法 diff --git a/libs/horizon/index.ts b/libs/horizon/index.ts index 90d62f6e..5fffa7c9 100644 --- a/libs/horizon/index.ts +++ b/libs/horizon/index.ts @@ -66,6 +66,8 @@ import { unmountComponentAtNode, } from './src/dom/DOMExternal'; +import { syncUpdates as flushSync } from './src/renderer/TreeBuilder'; + const Horizon = { Children, createRef, @@ -98,6 +100,7 @@ const Horizon = { findDOMNode, unmountComponentAtNode, act, + flushSync, createStore, useStore, clearStore, @@ -147,6 +150,7 @@ export { findDOMNode, unmountComponentAtNode, act, + flushSync, // 状态管理器HorizonX接口 createStore, useStore, diff --git a/libs/horizon/package.json b/libs/horizon/package.json index 2c9aeeff..c9a179bc 100644 --- a/libs/horizon/package.json +++ b/libs/horizon/package.json @@ -4,7 +4,7 @@ "keywords": [ "horizon" ], - "version": "0.0.37", + "version": "0.0.38", "homepage": "", "bugs": "", "main": "index.js",