From de2328827bda114086679f6bfe225f4ad673f6eb Mon Sep 17 00:00:00 2001 From: * <*> Date: Wed, 1 Feb 2023 11:07:23 +0800 Subject: [PATCH] Match-id-64d8ec9cf05e0338f4d584bf7221bcfb50cbe776 --- CHANGELOG.md | 3 +++ libs/horizon/index.ts | 4 ++++ libs/horizon/package.json | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) 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",