Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Snyk] Upgrade valtio from 1.7.0 to 1.11.2 #3

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

yaseenaljamal
Copy link
Owner

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.


  • The recommended version is 21 versions ahead of your current version.
  • The recommended version was released a month ago, on 2023-08-12.
Release notes
Package name: valtio
  • 1.11.2 - 2023-08-12

    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

    Full Changelog: v1.11.1...v1.11.2

  • 1.11.1 - 2023-07-27

    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

  • 1.11.0 - 2023-07-20

    This adds a new behavior to trap defineProperty for certain cases.

    What's Changed

    New Contributors

    Full Changelog: v1.10.7...v1.11.0

  • 1.10.7 - 2023-07-10

    Some improvements for edge cases.

    What's Changed

    New Contributors

    Full Changelog: v1.10.6...v1.10.7

  • 1.10.6 - 2023-06-21

    It comes with some improvements.

    What's Changed

    New Contributors

    Full Changelog: v1.10.5...v1.10.6

  • 1.10.5 - 2023-05-04

    This may improve performance in some edge cases.

    What's Changed

    New Contributors

    Full Changelog: v1.10.4...v1.10.5

  • 1.10.4 - 2023-04-04

    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

  • 1.10.3 - 2023-02-25

    v1.10.1 had a regression in some edge cases, which is fixed in this version.

    What's Changed

    • fix(vanilla): Improve Snapshot type so that it respects builtin objects by @ octet-stream in #672
    • fix(vanilla): proxy can be created from snapshot by @ dai-shi in #673
    • fix(build): possibly improve ESM for production build by @ dai-shi in #674

    New Contributors

    Full Changelog: v1.10.2...v1.10.3

  • 1.10.2 - 2023-02-14
    Read more
  • 1.10.1 - 2023-02-07
    Read more
  • 1.10.0 - 2023-02-04
  • 1.9.0 - 2023-01-15
  • 1.8.2 - 2023-01-05
  • 1.8.1 - 2023-01-05
  • 1.8.0 - 2022-12-27
  • 1.7.6 - 2022-11-18
  • 1.7.5 - 2022-10-29
  • 1.7.4 - 2022-10-15
  • 1.7.3 - 2022-10-15
  • 1.7.2 - 2022-10-09
  • 1.7.1 - 2022-10-07
  • 1.7.0 - 2022-09-05
  • from valtio GitHub release notes
    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

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    None yet
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    2 participants