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 jotai from 2.7.1 to 2.9.3 #2347

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

Conversation

NOUIY
Copy link
Owner

@NOUIY NOUIY commented Oct 2, 2024

snyk-top-banner

Snyk has created this PR to upgrade jotai from 2.7.1 to 2.9.3.

ℹ️ 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 10 versions ahead of your current version.

  • The recommended version was released on 2 months ago.

Release notes
Package name: jotai
  • 2.9.3 - 2024-08-13

    This fixes a regression in an edge case that is introduced in v2.6.4.

    What's Changed

    • fix(store): derived atom not updating when its value changes if another atom is read it conditionally by @ yuneco in #2700
    • experimental(core): expose unstable_derive by @ dai-shi in #2652

    New Contributors

    Full Changelog: v2.9.2...v2.9.3

  • 2.9.2 - 2024-08-07

    A small improvement in atomFamily for edge use cases.

    What's Changed

    • feat(utils): atomFamily supports getParams and unstable_listen api by @ dmaskasky in #2685

    New Contributors

    • @ junkboy0315 made their first contribution in #2694

    Full Changelog: v2.9.1...v2.9.2

  • 2.9.1 - 2024-07-23

    This patch version includes various fixes. Huge thanks to contributors!

    What's Changed

    • refactor(core): follow naming convention by @ dai-shi in #2662
    • refactor(core): store with Object.assign by @ dai-shi in #2663
    • fix(core): atom toString includes debugLabel in dev mode by @ dmaskasky in #2659
    • fix(core): Unmount an atom that is no longer dependent within a derived atom by @ nogaten in #2660
    • fix(types): add undefined initial value to Atom definition by @ rtritto in #2668

    New Contributors

    Full Changelog: v2.9.0...v2.9.1

  • 2.9.0 - 2024-07-09

    This version introduces a new core implementation. All tests are passing but there can be some regressions due to missing tests. Please feel free to report such cases and let's improve test coverage.

    The benefit with the new implementation:

    • Fix memory leak issue with vanilla store usage.
    • More readability of the core code.

    What's Changed

    Full Changelog: v2.8.4...v2.9.0

  • 2.8.4 - 2024-06-28

    This changes the behavior of async atom with abort signal on unmount to fix some use cases.

    What's Changed

    New Contributors

    Full Changelog: v2.8.3...v2.8.4

  • 2.8.3 - 2024-06-03

    The improvement for atomWithStorage in v2.8.2 contained a bug, which is fixed in this version.

    What's Changed

    New Contributors

    Full Changelog: v2.8.2...v2.8.3

  • 2.8.2 - 2024-05-27

    This fixes another edge case and improves utils for more flexibility.

    What's Changed

    • fix(store2): "stuck" derived atoms where some derivations may never resolve by @ backbone87 in #2448
    • feat(utils): allow providing a subscribe method to createJSONStorage util by @ mhsattarian in #2539
    • fix(vanilla): fix store.ts for an edge case by @ dai-shi in #2567

    New Contributors

    Full Changelog: v2.8.1...v2.8.2

  • 2.8.1 - 2024-05-22

    This fixes a regression in v2.6.4 and a regression in v2.7.0.

    What's Changed

    New Contributors

    Full Changelog: v2.8.0...v2.8.1

  • 2.8.0 - 2024-04-08

    This version introduces a new feature atomWithLazy and deprecates useReducerAtom and freezeAtomCreator. It also introduces an experimental store implementation in jotai/experimental.

    Migration Guide

    selectAtom

    selectAtom will no longer internally unwrap promises. To migrate to the new api, use the unwrap utility from jotai/utils package.

    // suppose we have this
    const baseAtom = atom(Promise.resolve({ id: 0, name: 'test' }))

    // previously selectAtom would internally unwrap promises.
    const idAtom = selectAtom(
    baseAtom,
    ({ name }) => name,
    (prev, curr) => prev.id === curr.id
    )

    // instead, you need to import unwrap from 'jotai/utils' and pass the unwrapped atom
    import { unwrap } from 'jotai/utils'
    ...
    const idAtom = selectAtom(
    unwrap(baseAtom),
    ({ name }) => name,
    (prev, curr) => prev.id === curr.id
    )

    useReducerAtom

    https://jotai.org/docs/recipes/use-reducer-atom

    freezeAtomCreator

    https://jotai.org/docs/guides/debugging#freezeatomcreator

    What's Changed

    New Contributors

    Full Changelog: v2.7.2...v2.8.0

  • 2.7.2 - 2024-03-29

    Mostly refactors.

    What's Changed

    Full Changelog: v2.7.1...v2.7.2

  • 2.7.1 - 2024-03-15
from jotai GitHub release notes

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.

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:

Snyk has created this PR to upgrade jotai from 2.7.1 to 2.9.3.

See this package in npm:
jotai

See this project in Snyk:
https://app.snyk.io/org/nexuscompute/project/921c3934-5dd3-43ac-b0c9-d9e83abb598d?utm_source=github&utm_medium=referral&page=upgrade-pr
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