[Snyk] Upgrade jotai from 2.7.1 to 2.9.3 #2347
Open
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.
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
This fixes a regression in an edge case that is introduced in v2.6.4.
What's Changed
New Contributors
Full Changelog: v2.9.2...v2.9.3
A small improvement in atomFamily for edge use cases.
What's Changed
New Contributors
Full Changelog: v2.9.1...v2.9.2
This patch version includes various fixes. Huge thanks to contributors!
What's Changed
New Contributors
Full Changelog: v2.9.0...v2.9.1
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:
What's Changed
Full Changelog: v2.8.4...v2.9.0
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
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
This fixes another edge case and improves utils for more flexibility.
What's Changed
New Contributors
Full Changelog: v2.8.1...v2.8.2
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
This version introduces a new feature
atomWithLazy
and deprecatesuseReducerAtom
andfreezeAtomCreator
. It also introduces an experimental store implementation injotai/experimental
.Migration Guide
selectAtom
selectAtom
will no longer internally unwrap promises. To migrate to the new api, use theunwrap
utility fromjotai/utils
package.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 atomimport { 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
store2.ts
by @ dai-shi in #2463New Contributors
Full Changelog: v2.7.2...v2.8.0
Mostly refactors.
What's Changed
Full Changelog: v2.7.1...v2.7.2
Important
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: