valtio

💊 Valtio makes proxy-state simple for React and Vanilla

MIT License

Downloads
1.9M
Stars
8.5K
Committers
84

Bot releases are hidden (Show)

valtio - v1.7.6

Published by dai-shi almost 2 years ago

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

What's Changed

Full Changelog: https://github.com/pmndrs/valtio/compare/v1.7.5...v1.7.6

valtio - v1.7.5

Published by dai-shi almost 2 years ago

There are some improvements related with ESM.

What's Changed

Full Changelog: https://github.com/pmndrs/valtio/compare/v1.7.4...v1.7.5

valtio - v1.7.4

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.

What's Changed

Full Changelog: https://github.com/pmndrs/valtio/compare/v1.7.3...v1.7.4

valtio - v1.7.3

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.

What's Changed

New Contributors

Full Changelog: https://github.com/pmndrs/valtio/compare/v1.7.2...v1.7.3

valtio - v1.7.2

Published by dai-shi about 2 years ago

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

What's Changed

Full Changelog: https://github.com/pmndrs/valtio/compare/v1.7.1...v1.7.2

valtio - v1.7.1

Published by dai-shi about 2 years ago

This fixes some bugs in edge cases.

What's Changed

New Contributors

Full Changelog: https://github.com/pmndrs/valtio/compare/v1.7.0...v1.7.1

valtio - v1.7.0

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.

What's Changed

New Contributors

Full Changelog: https://github.com/pmndrs/valtio/compare/v1.6.4...v1.7.0

valtio - v1.6.4

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!

What's Changed

Full Changelog: https://github.com/pmndrs/valtio/compare/v1.6.3...v1.6.4

valtio - v1.6.3

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.

What's Changed

Full Changelog: https://github.com/pmndrs/valtio/compare/v1.6.2...v1.6.3

valtio - v1.6.2

Published by dai-shi over 2 years ago

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

What's Changed

New Contributors

Full Changelog: https://github.com/pmndrs/valtio/compare/v1.6.1...v1.6.2

valtio - v1.6.1

Published by dai-shi over 2 years ago

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

What's Changed

Full Changelog: https://github.com/pmndrs/valtio/compare/v1.6.0...v1.6.1

valtio - v1.6.0

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.

What's Changed

Full Changelog: https://github.com/pmndrs/valtio/compare/v1.5.2...v1.6.0

valtio - v1.5.2

Published by dai-shi over 2 years ago

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

What's Changed

Full Changelog: https://github.com/pmndrs/valtio/compare/v1.5.1...v1.5.2

valtio - v1.5.1

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.

What's Changed

Full Changelog: https://github.com/pmndrs/valtio/compare/v1.5.0...v1.5.1

valtio - v1.5.0

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.

What's Changed

New Contributors

Full Changelog: https://github.com/pmndrs/valtio/compare/v1.4.0...v1.5.0

valtio - v1.4.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.

What's Changed

New Contributors

Full Changelog: https://github.com/pmndrs/valtio/compare/v1.3.1...v1.4.0

valtio - v1.3.1

Published by dai-shi over 2 years ago

This fixes Maximum call stack size exceeded error in DEV.

What's Changed

New Contributors

Full Changelog: https://github.com/pmndrs/valtio/compare/v1.3.0...v1.3.1

valtio - v1.3.0

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).

What's Changed

Full Changelog: https://github.com/pmndrs/valtio/compare/v1.2.12...v1.3.0

valtio - v1.2.12

Published by dai-shi over 2 years ago

This is just a small release to fix a bug in proxyWithHistory util.

What's Changed

Full Changelog: https://github.com/pmndrs/valtio/compare/v1.2.11...v1.2.12

valtio - v1.2.11

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.

What's Changed

New Contributors

Full Changelog: https://github.com/pmndrs/valtio/compare/v1.2.10...v1.2.11

Package Rankings
Top 0.81% on Npmjs.org
Top 6.74% on Proxy.golang.org
Top 14.93% on Deno.land
Badges
Extracted from project README
Build Status Build Size Version Downloads Discord Shield
Related Projects