npm valtio 1.11.1
v1.11.1

latest releases: 2.0.0, 2.0.0-rc.2, 2.0.0-rc.1...
14 months ago

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

Full Changelog: v1.11.0...v1.11.1

Don't miss a new valtio release

NewReleases is sending notifications on new releases.