Skip to content

Releases: pmndrs/valtio

v1.7.3

15 Oct 01:32
Compare
Choose a tag to compare

⚠️ Please use v1.7.4 instead.


This version includes some refactors. It should be safe to upgrade. Feel free to open issues/discussions if you find something.

What's Changed

  • fix(vanilla, react): use experimental_use and some refactors by @dai-shi in #545
  • fix(utils): Return accurate data at toJSON of proxySet/proxyMap by @chiefGui in #567

New Contributors

Full Changelog: v1.7.2...v1.7.3

v1.7.2

09 Oct 09:59
Compare
Choose a tag to compare

This fixes a type issue in v1.7.1. It also improves old ts version support.

What's Changed

  • fix(type): proxyWithHistory by @dai-shi in #565
  • fix(build): test with old typescript versions and fix for old ts versions by @dai-shi in #564

Full Changelog: v1.7.1...v1.7.2

v1.7.1

07 Oct 11:39
Compare
Choose a tag to compare

This fixes some bugs in edge cases.

What's Changed

  • fix(utils): revert subscribeKey impl to the original one (without ops) by @dai-shi in #554
  • fix: subscribers should not be called after unsubscribe by @jluxenberg in #555
  • refactor(types): rename internal types when importing by @dai-shi in #561

New Contributors

Full Changelog: v1.7.0...v1.7.1

v1.7.0

05 Sep 04:42
Compare
Choose a tag to compare

There are some refactors in the core of the library. It exposes a new experimental internal function. 99% of users wouldn't need it. Feel free to report issues if found. This also improves proxyWithHistory in valtio/utils.

What's Changed

  • refactor(vanilla): split createSnapshot function by @dai-shi in #533
  • feat(vanilla): unstable_buildProxyFunction instead of unstable_getHandler by @dai-shi in #528
  • fix(utils): fix proxyWithHistory behavibor with nested objects by @LukasSchwarz4202 in #531

New Contributors

Full Changelog: v1.6.4...v1.7.0

v1.6.4

18 Aug 22:25
Compare
Choose a tag to compare

For quite a while, there has been a performance issue with many useSnapshot hooks with a single state, which is now fixed!

What's Changed

Full Changelog: v1.6.3...v1.6.4

v1.6.3

19 Jul 11:26
Compare
Choose a tag to compare

TypeScript types in v1.6.2 wasn't ideal for some cases. This is to fix it. We are not 100% sure and there might still be some issues.

What's Changed

  • fix(types): use TS interfaces only for public api by @dai-shi in #499

Full Changelog: v1.6.2...v1.6.3

v1.6.2

13 Jul 14:34
Compare
Choose a tag to compare

This changes TypeScript types a little bit. Please report issues if something goes wrong.

What's Changed

New Contributors

Full Changelog: v1.6.1...v1.6.2

v1.6.1

20 May 12:32
Compare
Choose a tag to compare

There was a regression since v1.5.0 introduced in #234, which is now fixed.

What's Changed

Full Changelog: v1.6.0...v1.6.1

v1.6.0

21 Apr 14:14
Compare
Choose a tag to compare

This improves proxyWithComputed. No changes in API, but its behavior is changed and simplified. To have the same behavior as before, you need to wrap computed functions with memoize from proxy-memoize. It's more explicit and thus customizable.

What's Changed

  • fix(vanilla): use named symbol in DEV mode by @ahaoboy in #434
  • breaking(utils): make proxyWithComputed to work with optional proxy-memoize by @dai-shi in #436
  • fix(vanilla): support undefined property in proxy by @dai-shi in #440

Full Changelog: v1.5.2...v1.6.0

v1.5.2

07 Apr 12:21
Compare
Choose a tag to compare

This fixes an issue with server rendering such as with Next.js.

What's Changed

  • fix(react): do not omit getServerState in useSyncExternalStore by @dai-shi in #416

Full Changelog: v1.5.1...v1.5.2