Skip to content

Releases: pmndrs/valtio

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

v1.5.1

02 Apr 02:08
Compare
Choose a tag to compare

There was an issue in ESM build in v1.5.0, which caused a problem to Next.js users. It's fixed.

What's Changed

  • refactor(utils): small refactor in devtools by @dai-shi in #409
  • fix(build): temporary workaround for ESM by @dai-shi in #411

Full Changelog: v1.5.0...v1.5.1

v1.5.0

30 Mar 11:59
Compare
Choose a tag to compare

This uses useSyncExternalStore from React 18. It uses a shim when it's with pre-18, so nothing is breaking.

What's Changed

  • fix(utils): avoid infinite loop with mutual derive usage by @dai-shi in #399
  • fix(utils/devtools): enabled option and supress warning by @dai-shi in #400
  • feat: use-sync-external-store by @dai-shi in #234
  • refactor(vanilla): Use the default parameters by @ahaoboy in #405

New Contributors

Full Changelog: v1.4.0...v1.5.0

v1.4.0

16 Mar 11:24
Compare
Choose a tag to compare

This release adds valtio/macro/vite to enable useProxy macro for vite users. It's pretty new and may contain bugs. Feel free to report issues.
It also includes various non-trivial bug fixes.

What's Changed

New Contributors

Full Changelog: v1.3.1...v1.4.0