Releases: sheinsight/reactive
v0.2.5
v0.2.4
v0.2.3
🚀 Features
- Support React v19 & update deps - by Viki (c84d1)
View changes on GitHub
🚀 功能特性
- 支持 React v19 & 更新依赖项 - 由 Viki 提交 (c84d1)
在 GitHub 上查看变更
v0.2.2
v0.2.1
v0.2.0
Introducing Enhancers
Reactive is designed to be framework-agnostic, and to adapt to a variety of functional scenarios, Reactive introduces the concept of Enhancer. The internal differences in functionality between Vanilla and React are actually implemented by applying different enhancers.
For convenience and alignment with the original API, Reactive has built-in some enhancers and also provides some enhancer APIs, allowing users to enhance the functionality of stores. If needed, users can also write their own enhancers to expand the functionality of their stores.
See Enhancer for more details.
🚀 Features
- Add
snapshot
to get snapshot - by @vikiboss (99ab6) - Add
useReactive
React Hook from@shined/react-use
- by @vikiboss (24b9d) - Add
createSingleLoading
export from sub module path - by @vikiboss (7a8e6) - Deprecated
getSnapshot
,create
from vanilla,SubscribeCallback
, usesnapshot
,createVanilla
,SubscribeListener
instead - by @vikiboss (912aa)
🧩 Enhancers
- Add
withSubscribe
enhancer - by @vikiboss (4973c) - Add
withUseSubscribe
enhancer - by @vikiboss (4973c) - Add
withSnapshot
enhancer - by @vikiboss (ffdb4) - Add
withUseUseSnapshot
enhancer - by @vikiboss (dcbfc) - Add
withDerived
enhancer - by @vikiboss (2b383) - Add
withUseDerived
enhancer - by @vikiboss (ff106)
View changes on GitHub
引入增强器(Enhancers)
Reactive 设计为框架无关,以适应各种功能场景,引入了 增强器(Enhancer)的概念。Vanilla 与 React 之间的内部功能差异实际上是通过应用不同的增强器来实现的。
为了方便和与原始 API 保持一致,Reactive 内置了一些增强器,并且提供了一些增强器 API,允许用户增强 stores 的功能。如果需要,用户还可以编写自己的增强器来扩展其 stores 的功能。
详情请见 增强器(Enhancer)。
🚀 功能特性
- 新增
snapshot
用于获取快照 - 由 @vikiboss 提交 (99ab6) - 从
@shined/react-use
中新增useReactive
React Hook - 由 @vikiboss 提交 (24b9d) - 新增从子模块路径导出的
createSingleLoading
- 由 @vikiboss 提交 (7a8e6) - 废弃
getSnapshot
,create
(vanilla 版本),SubscribeCallback
,请改用snapshot
,createVanilla
,SubscribeListener
- 由 @vikiboss 提交 (912aa)
🧩 增强器
- 新增
withSubscribe
增强器 - 由 @vikiboss 提交 (4973c) - 新增
withUseSubscribe
增强器 - 由 @vikiboss 提交 (4973c) - 新增
withSnapshot
增强器 - 由 @vikiboss 提交 (ffdb4) - 新增
withUseUseSnapshot
增强器 - 由 @vikiboss 提交 (dcbfc) - 新增
withDerived
增强器 - 由 @vikiboss 提交 (2b383) - 新增
withUseDerived
增强器 - 由 @vikiboss 提交 (ff106)
在 GitHub 上查看更改
v0.1.4
v0.1.3
v0.1.3 Release Notes
feat: add CommonJS
outputs via tsup
fix: ignore devtools
in production
mode
chore: mark react
as optional
peerDependencies
chore: upgrade use-sync-external-store
to ^1.2.2
Full Changelog: v0.1.2...v0.1.3
v0.1.3-alpha.0
v0.1.3-alpha.0 Release Notes
feat: add CommonJS
outputs via tsup
.
chore: mark react
as optional
peerDependencies
chore: upgrade use-sync-external-store
to ^1.2.2
Full Changelog: v0.1.2...v0.1.3-alpha.0
v0.1.2
v0.1.2 Release Notes
fix: fix useSnapshot
arguments bug.
chore: optimize TypeScript types exports.
chore: optimize unit tests.
Full Changelog: v0.1.1...v0.1.2