Skip to content

Releases: pmndrs/valtio

v1.2.0

10 Aug 10:43
Compare
Choose a tag to compare

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.

  • #208 refactor(core): useMutableSource emulation without symbol and any
  • #201 feat: derive util

v1.1.3

01 Aug 13:26
Compare
Choose a tag to compare

This fixes an issue to handle promises (a.k.a. Suspense) in snapshots.

  • #200 chore(utils): split into files
  • #202 fix: return value in snapshot promise getter after promise is resolved

v1.1.2

30 Jul 13:15
Compare
Choose a tag to compare

v1.1.1 has a regression with some bundlers, which is fixed in this version.

  • #197 fix(pkg-exports): .mjs to .js

v1.1.1

29 Jul 13:14
Compare
Choose a tag to compare

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.

  • #193 fix(utils): Typescript declaration files for utils
  • #184 fix(build): Hybrid package change for ESM and CJS support
  • #195 fix(utils): proxyWithHistory to undo to initialValue

v1.1.0

24 Jul 23:23
Compare
Choose a tag to compare

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.

  • #177 feat: subscribe ops
  • #181 feat: proxyWithHistory

v1.0.7

09 Jul 14:30
Compare
Choose a tag to compare

This added "import" export entries for modern bundlers. It might also fix potential bugs in useProxy macro.

  • #169 fix: allow exports type import

v1.0.6

05 Jun 01:03
Compare
Choose a tag to compare

This is a maintenance release. It doesn't add any new features or fixes.

  • chore: refactor vanilla.ts and react.ts #163

v1.0.5

15 May 15:43
Compare
Choose a tag to compare

Add a new util watch and update upstream library.

  • #157 Add watch to valtio/utils
  • #156 chore: update proxy-compare

v1.0.4

28 Apr 13:08
Compare
Choose a tag to compare

This adds two improvements.

[BREAKING CHANGE in types] Exported type NonPromise is renamed to DeepResolveType.

  • fix: snapshot typing for ref #146
  • feat: allow import of json to devtools #148

v1.0.3

06 Apr 15:59
Compare
Choose a tag to compare

This fixes the "exports" inconsistency issue in build (#140).