Skip to content

Releases: pmndrs/valtio

v1.7.6

18 Nov 02:46
Compare
Choose a tag to compare

There was a small regression in types since v1.7.3, which is fixed.

What's Changed

Full Changelog: v1.7.5...v1.7.6

v1.7.5

29 Oct 15:08
Compare
Choose a tag to compare

There are some improvements related with ESM.

What's Changed

  • fix(build): use *.d.mts for esm ('import' condition only) by @dai-shi in #581
  • fix(build): no import.meta for "module" condition by @dai-shi in #582

Full Changelog: v1.7.4...v1.7.5

v1.7.4

15 Oct 11:20
Compare
Choose a tag to compare

There was an issue in v1.7.3 with ESM, like in Next.js. This version fixes it.

What's Changed

  • fix(react): a workaround for missing named exports by @dai-shi in #573

Full Changelog: v1.7.3...v1.7.4

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