Skip to content

Releases: pmndrs/valtio

v.1.2.4

01 Oct 13:55
Compare
Choose a tag to compare

v1.2.3 accidentally requires newer node.js versions. v1.2.4 fixes it by reverting exports format.

  • #247 fix(package): avoid subpath pattern in exports

v1.2.3

18 Sep 11:57
Compare
Choose a tag to compare

⚠️ Minimum Node.js requirements (for server-side usage like Next.js): v14.13.0, v12.20.0

This improves devtools in valtio/utils.

  • #223 refactor: stricter tsconfig
  • #232 fix(utils): remove useless internal info in devtools
  • #236 chore(build): simplify exports and support nested subpath

v1.2.2

29 Aug 09:42
Compare
Choose a tag to compare

This fixes ESM exports for some environments. Some utils are also improved.

  • #215 fix(utils): fixing subscribeKey typing
  • #221 refactor(core): eliminate any with new useMutableSource emulation
  • #216 fix(build): use .mjs for import condition in exports
  • #227 fix(utils): Adds skipSubscribe option to proxyWithHistory

v1.2.1

13 Aug 09:20
Compare
Choose a tag to compare

As reported in #210, there was an issue with ESM build. This version fixes it by updating the dependency.

  • #211 fix: update proxy-compare

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