[Snyk] Upgrade valtio from 1.7.0 to 1.11.2 #3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was automatically created by Snyk using the credentials of a real user.
Snyk has created this PR to upgrade valtio from 1.7.0 to 1.11.2.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
Release notes
Package name: valtio
This improves some TypeScript issues.
What's Changed
New Contributors
Full Changelog: v1.11.1...v1.11.2
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
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
This adds a new behavior to trap
defineProperty
for certain cases.What's Changed
New Contributors
Full Changelog: v1.10.7...v1.11.0
Some improvements for edge cases.
What's Changed
New Contributors
Full Changelog: v1.10.6...v1.10.7
It comes with some improvements.
What's Changed
New Contributors
Full Changelog: v1.10.5...v1.10.6
This may improve performance in some edge cases.
What's Changed
New Contributors
Full Changelog: v1.10.4...v1.10.5
The first one is a small improvement/fix. The second one is hoping to to support Deno, but unconfirmed.
What's Changed
New Contributors
Full Changelog: v1.10.3...v1.10.4
v1.10.1 had a regression in some edge cases, which is fixed in this version.
What's Changed
New Contributors
Full Changelog: v1.10.2...v1.10.3
Read more
Read more
Commit messages
Package name: valtio
Compare
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs