Releases: pmndrs/valtio
v1.12.1
Some improvements in valtio/utils.
What's Changed
- fix(utils): useProxy to avoid re-renders when no props are touched by @dai-shi in #809
- feat: Support promise in watch util by @LiamMartens in #825
New Contributors
- @loganvolkers made their first contribution in #807
- @LiamMartens made their first contribution in #825
Full Changelog: v1.12.0...v1.12.1
v1.12.0
This version moves derive to a dependency. Please open a new discussion if you find some problems.
What's Changed
- feat(utils): separate derive-valtio by @dai-shi in #802
- Apply publint recommendations by @dbritto-dev in #803
New Contributors
- @dbritto-dev made their first contribution in #803
Full Changelog: v1.11.3...v1.12.0
v1.11.3
This fixes some edge cases.
What's Changed
- fix(types): mitigate devtools typing by @dai-shi in #795
- fix(vanilla): respect property enumetrability by @alexander-entin in #800
New Contributors
Full Changelog: v1.11.2...v1.11.3
v1.11.2
This improves some TypeScript issues.
What's Changed
- fix: declare @types/react as peerDep to avoid phantom dep by @wjw99830 in #769
- fix(utils): improve devtools typing to avoid depending on @redux-devtools/extension by @fukumasuya in #777
New Contributors
- @shairez made their first contribution in #771
- @wjw99830 made their first contribution in #769
- @fukumasuya made their first contribution in #777
Full Changelog: v1.11.1...v1.11.2
v1.11.1
This reverts the change made in v1.11.0, which turns out to be troublesome for RN users.
It's basically the same as v1.10.7.
git diff v1.10.7...v1.11.1 src
diff --git a/src/vanilla.ts b/src/vanilla.ts
index dc19c87..86faef8 100644
--- a/src/vanilla.ts
+++ b/src/vanilla.ts
@@ -60,7 +60,7 @@ type ProxyState = readonly [
target: object,
ensureVersion: (nextCheckVersion?: number) => number,
createSnapshot: CreateSnapshot,
- addListener: AddListener
+ addListener: AddListener,
]
// shared state
diff --git a/src/vanilla/utils/derive.ts b/src/vanilla/utils/derive.ts
index 832f542..c9af01a 100644
--- a/src/vanilla/utils/derive.ts
+++ b/src/vanilla/utils/derive.ts
@@ -16,7 +16,7 @@ type SourceObjectEntry = [
subscriptions: Set<Subscription>,
unsubscribe: () => void,
pendingCount: number,
- pendingCallbacks: Set<() => void>
+ pendingCallbacks: Set<() => void>,
]
type DerivedObjectEntry = [subscriptions: Set<Subscription>]
diff --git a/src/vanilla/utils/proxyWithComputed.ts b/src/vanilla/utils/proxyWithComputed.ts
index 076d11b..f6d47a2 100644
--- a/src/vanilla/utils/proxyWithComputed.ts
+++ b/src/vanilla/utils/proxyWithComputed.ts
@@ -8,7 +8,7 @@ import type { INTERNAL_Snapshot as Snapshot } from '../../vanilla.ts'
*/
export function proxyWithComputed_DEPRECATED<
T extends object,
- U extends object
+ U extends object,
>(
initialObject: T,
computedFns: {
What's Changed
- Revert "feat(vanilla): Support class fields (defineProperty) (#760)" by @pastelmind in #766
Full Changelog: v1.11.0...v1.11.1
v1.11.0
This adds a new behavior to trap defineProperty
for certain cases.
What's Changed
- feat(vanilla): Support class fields (defineProperty) by @pastelmind in #760
New Contributors
- @troywith77 made their first contribution in #762
Full Changelog: v1.10.7...v1.11.0
v1.10.7
Some improvements for edge cases.
What's Changed
- fix(vanilla): Snapshot ignores branded primitive types by @pastelmind in #748
- fix(vanilla): Prevent adding new property on snapshot by @pastelmind in #752
New Contributors
- @pastelmind made their first contribution in #748
Full Changelog: v1.10.6...v1.10.7
v1.10.6
It comes with some improvements.
What's Changed
- Allow passthrough of Redux devtools options by @sarimarton in #713
- fix(proxyWithHistory): ref-aware deep clone by @dai-shi in #727
- fix(build): mode env for "import" condition" by @dai-shi in #734
New Contributors
- @arjunvegda made their first contribution in #729
- @DevSDK made their first contribution in #721
- @alexander-entin made their first contribution in #732
Full Changelog: v1.10.5...v1.10.6
v1.10.5
This may improve performance in some edge cases.
What's Changed
- update proxy-compare by @dai-shi in #722
- chore(tests): migrate to vitest by @Aslemammad in #646
New Contributors
Full Changelog: v1.10.4...v1.10.5
v1.10.4
The first one is a small improvement/fix. The second one is hoping to to support Deno, but unconfirmed.
What's Changed
- fix(react/utils): added useProxy parameter for opts #683 by @steve-py96 in #684
- chore: add extension in imports by @dai-shi in #644
New Contributors
- @devagja made their first contribution in #691
- @steve-py96 made their first contribution in #684
Full Changelog: v1.10.3...v1.10.4