Releases: pmndrs/valtio
v1.7.3
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
v1.7.1
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
- @kidonng made their first contribution in #548
- @kalwabed made their first contribution in #550
- @jluxenberg made their first contribution in #555
Full Changelog: v1.7.0...v1.7.1
v1.7.0
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
- @LukasSchwarz4202 made their first contribution in #531
Full Changelog: v1.6.4...v1.7.0
v1.6.4
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
- refactor(core): shave bytes by @dai-shi in #515
- fix(macro/vite): cjs import in vite macro by @Aslemammad in #517
- fix(deps): proxy-compare being slow for repetitive case by @dai-shi in #520
Full Changelog: v1.6.3...v1.6.4
v1.6.3
v1.6.2
This changes TypeScript types a little bit. Please report issues if something goes wrong.
What's Changed
- refactor(types): prefer interfaces by @dai-shi in #474
- fix(types): export INTERNAL interface by @dai-shi in #493
- chore(deps): update dependencies by @dai-shi in #494
- chore(utils): add links in deprecated messages by @dai-shi in #489
New Contributors
- @btea made their first contribution in #464
- @D3SOX made their first contribution in #477
- @sepehr-safari made their first contribution in #481
- @guigui64 made their first contribution in #472
Full Changelog: v1.6.1...v1.6.2
v1.6.1
There was a regression since v1.5.0 introduced in #234, which is now fixed.
What's Changed
- fix(react): nested component to update from parent (regression in #234) by @dai-shi in #461
- fix(build): dyn import in skypack (native ESM) by @ahaoboy in #456
- fix(react): re-implement for #461 by @dai-shi in #463
Full Changelog: v1.6.0...v1.6.1
v1.6.0
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