Skip to content

Releases: pmndrs/valtio

v2.3.1

03 Mar 05:52

Choose a tag to compare

Reverted the useSnapshot change in v2.2.0 which seems to cause a problem in an edge case.

What's Changed

New Contributors

Full Changelog: v2.3.0...v2.3.1

v2.3.0

01 Jan 09:41

Choose a tag to compare

Improves performance by disabling an optional feature by default (now opt-in).

Migration Guide

To keep the previous behavior, you need to opt in the feature as follows:

import { unstable_enableOp } from 'valtio/vanilla';

unstable_enableOp(true);

What's Changed

  • feat(vanilla): make ops callback opt-in with unstable_enableOp by @dai-shi in #1189
  • deprecate watch and derive by @dai-shi in #1190

New Contributors

Full Changelog: v2.2.0...v2.3.0

v2.2.0

03 Nov 02:46

Choose a tag to compare

This release contains some refactors. While it should work in most cases, we have a slight concern that it may behave a little differently in very edge cases. Feel free to report if you encounter such cases.

What's Changed

Full Changelog: v2.1.8...v2.2.0

v2.1.8

25 Sep 14:25

Choose a tag to compare

This reverts one of the changes in v2.1.4.

⚠️ If you rely on the #1074 behavior of deepClone. This change is breaking. The migration path is to use unstable_deepProxy instead.

What's Changed

New Contributors

Full Changelog: v2.1.7...v2.1.8

v2.1.7

16 Aug 16:03

Choose a tag to compare

v2.1.6 has a regression in performance. This version fixes it.

What's Changed

Full Changelog: v2.1.6...v2.1.7

v2.1.6

16 Aug 08:39

Choose a tag to compare

This fixes a fundamental bug related with snapshot().

What's Changed

  • fix(vanilla): snapshot should change with subscription after deleting nested props by @pilaoda in #1153

New Contributors

Full Changelog: v2.1.5...v2.1.6

v2.1.5

09 May 13:52

Choose a tag to compare

This fixes module resolution issue for React Native users.

What's Changed

  • ci(.github/workflows): add 'test.yml' and* fix(package): react-native condition by @dai-shi in #1085

Full Changelog: v2.1.4...v2.1.5

v2.1.4

18 Mar 00:50

Choose a tag to compare

A small fix in utils.

What's Changed

  • refactor(vanilla): change all exported functions to 'function declarations' by @sukvvon in #1061
  • fix(utils): updated deepClone to handle proxyMap and proxySet by @overthemike in #1074

New Contributors

Full Changelog: v2.1.3...v2.1.4

v2.1.3

26 Jan 14:34

Choose a tag to compare

This version includes a fix in the proxySet util.

What's Changed

  • fix(proxySet): fix .symmetricDifference,.isDisjointFrom; add .difference by @magicdawn in #1040

New Contributors

Full Changelog: v2.1.2...v2.1.3

v2.1.2

05 Nov 11:38

Choose a tag to compare

There was some issues in v2.1.0 and v2.1.1, which are fixed.

What's Changed

Full Changelog: v2.1.1...v2.1.2