- feat: Add
getComputed
to module, support callgetComputed
in a method builder
- fix: Add
index.d.ts
file, update module resolve setting forts5
bundler resolver, Thanks contribution from black7375
- fix: readme typo
- chore: add type inference utility
InferModule
- fix: InfiniteXyy#6 react-native bundle issue, refactor release file structure
- feat: Add
getStore
,useStore
function to module - feat: Add
subscribe
for module - chore: Remove deprecated
setState
, prefer$setState
- chore: update dependencies
- chore: remove deprecated type def, update dependencies
- feat: make
action.setState
fallback to$setState
, but it's deprecated, will be removed in next version
- breaking-changes: rename
action.setState
toaction.$setState
- feat: add
$reset
to reset state to default value - feat: stricter type checking with actions
- fix: update peer dependency semver define, fix npm install issue
- chore: add error msg for using getActions in methods builder function
- feat: support new object style methods builder, with support of
this
.
- feat:
computed
now will only be triggered when it's deps updated (based on react-tracked). - feat: add
useModule
&useModuleActions
shortcut hooks
- feat:
module.use
will returncomputed
as third value - feat: support
react-tracked
withuseTrackedModule
- chore: refactor type definitions
- refactor:
effect
function is now moved tozoov/effect
- chore: use
zustand
v4 - chore: update cjs,mjs export map, it may fix some bundler related issues.
- fix:
computed
value will now only be triggered once through all the components - feat: module now have
getActions
getState
export
- fix package json utils type
- use unbuild for lib bundle, move
utils
(rxjs helper) to another entry - fix zustand type issues
- [experimental] useActions 'setState' function updated type definitions
- remove
rxjs
, to reduce required size - [experimental] useActions will include a 'setState' function by default, similar to solid-js/store
- export
effect
inzoov
module (remove frommethods
params) - zustand stores are now lazy initialized when used in React Component