Releases: pmndrs/valtio
v.1.2.4
v1.2.3
v1.2.2
This fixes ESM exports for some environments. Some utils are also improved.
v1.2.1
v1.2.0
We add a new util derive
, and deprecate addComputed
in favor of it.
In valtio, proxy objects are primitive subscription targets, and derive
is a better-fitting abstraction for creating derived / computed values. derive
is recommended for both React and Vanilla.
v1.1.3
v1.1.2
v1.1.1
There were some issues in valtio/utils
in v1.1.0, which is fixed in this version. It also improves ESM build to better work with various bundlers.
v1.1.0
This version adds a new feature in subscribe
. The subscribe callback receives the changes made. This is for expert users who know how valtio behaves internally. There's no docs for the feature (TS types might help).
It has a new util proxyWithHistory
based on the new feature. This is for ordinary users.
We encourage 3rd-party library authors to develop some utils based on this new feature.