💊 Valtio makes proxy-state simple for React and Vanilla
MIT License
Bot releases are hidden (Show)
Published by dai-shi almost 2 years ago
There was a small regression in types since v1.7.3, which is fixed.
Full Changelog: https://github.com/pmndrs/valtio/compare/v1.7.5...v1.7.6
Published by dai-shi almost 2 years ago
There are some improvements related with ESM.
Full Changelog: https://github.com/pmndrs/valtio/compare/v1.7.4...v1.7.5
Published by dai-shi about 2 years ago
There was an issue in v1.7.3 with ESM, like in Next.js. This version fixes it.
Full Changelog: https://github.com/pmndrs/valtio/compare/v1.7.3...v1.7.4
Published by dai-shi about 2 years ago
⚠️ 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.
Full Changelog: https://github.com/pmndrs/valtio/compare/v1.7.2...v1.7.3
Published by dai-shi about 2 years ago
This fixes a type issue in v1.7.1. It also improves old ts version support.
Full Changelog: https://github.com/pmndrs/valtio/compare/v1.7.1...v1.7.2
Published by dai-shi about 2 years ago
This fixes some bugs in edge cases.
Full Changelog: https://github.com/pmndrs/valtio/compare/v1.7.0...v1.7.1
Published by dai-shi about 2 years ago
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.
Full Changelog: https://github.com/pmndrs/valtio/compare/v1.6.4...v1.7.0
Published by dai-shi about 2 years ago
For quite a while, there has been a performance issue with many useSnapshot
hooks with a single state, which is now fixed!
Full Changelog: https://github.com/pmndrs/valtio/compare/v1.6.3...v1.6.4
Published by dai-shi about 2 years ago
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.
Full Changelog: https://github.com/pmndrs/valtio/compare/v1.6.2...v1.6.3
Published by dai-shi over 2 years ago
This changes TypeScript types a little bit. Please report issues if something goes wrong.
Full Changelog: https://github.com/pmndrs/valtio/compare/v1.6.1...v1.6.2
Published by dai-shi over 2 years ago
There was a regression since v1.5.0 introduced in #234, which is now fixed.
Full Changelog: https://github.com/pmndrs/valtio/compare/v1.6.0...v1.6.1
Published by dai-shi over 2 years ago
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.
Full Changelog: https://github.com/pmndrs/valtio/compare/v1.5.2...v1.6.0
Published by dai-shi over 2 years ago
This fixes an issue with server rendering such as with Next.js.
Full Changelog: https://github.com/pmndrs/valtio/compare/v1.5.1...v1.5.2
Published by dai-shi over 2 years ago
There was an issue in ESM build in v1.5.0, which caused a problem to Next.js users. It's fixed.
Full Changelog: https://github.com/pmndrs/valtio/compare/v1.5.0...v1.5.1
Published by dai-shi over 2 years ago
This uses useSyncExternalStore
from React 18. It uses a shim when it's with pre-18, so nothing is breaking.
Full Changelog: https://github.com/pmndrs/valtio/compare/v1.4.0...v1.5.0
Published by dai-shi over 2 years ago
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.
Full Changelog: https://github.com/pmndrs/valtio/compare/v1.3.1...v1.4.0
Published by dai-shi over 2 years ago
This fixes Maximum call stack size exceeded error in DEV.
Full Changelog: https://github.com/pmndrs/valtio/compare/v1.3.0...v1.3.1
Published by dai-shi over 2 years ago
This fixes some build issues. UMD/SystemJS builds are completely renewed. Exported functions are refactored for TypeScript and we have an easier option to loosen useSnapshot
typing (#357).
__DEV__
to control development mode by @dai-shi in https://github.com/pmndrs/valtio/pull/338
Full Changelog: https://github.com/pmndrs/valtio/compare/v1.2.12...v1.3.0
Published by dai-shi over 2 years ago
This is just a small release to fix a bug in proxyWithHistory
util.
Full Changelog: https://github.com/pmndrs/valtio/compare/v1.2.11...v1.2.12
Published by dai-shi over 2 years ago
v1.2.10 has two serious issues: a) TS types for useSnapshot
and proxyWithComputed
are broken. b) derive
has a bug. They should be fixed in v1.2.11, but there can still be some bugs. Please feel free to open issues.
Full Changelog: https://github.com/pmndrs/valtio/compare/v1.2.10...v1.2.11