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

Update dependency jotai to v2.3.1 #664

Merged
merged 1 commit into from
Aug 14, 2023
Merged

Update dependency jotai to v2.3.1 #664

merged 1 commit into from
Aug 14, 2023

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented May 15, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
jotai 2.0.4 -> 2.3.1 age adoption passing confidence

Release Notes

pmndrs/jotai (jotai)

v2.3.1

Compare Source

There was a bug in #​2061, which is fixed. It's about a dev-only warning.

What's Changed

New Contributors

Full Changelog: pmndrs/jotai@v2.3.0...v2.3.1

v2.3.0

Compare Source

Jotai v2's store API is framework-agnostic. The primary use case is for React, but the store can be used for other frameworks. One of the difficulties was handling promises, and there has been unstable_unwrap util since Jotai v2.0.0. Now, it's considered stable and becomes unwrap util (see docs for details).

What's Changed

Full Changelog: pmndrs/jotai@v2.2.3...v2.3.0

v2.2.3

Compare Source

This comes with some small improvements.

What's Changed

New Contributors

Full Changelog: pmndrs/jotai@v2.2.2...v2.2.3

v2.2.2

Compare Source

This includes some fixes for edge cases.

What's Changed

New Contributors

Full Changelog: pmndrs/jotai@v2.2.1...v2.2.2

v2.2.1

Compare Source

This includes some improvements in jotai/utils. Especially, unstable_unwrap is getting to be stable.

What's Changed

New Contributors

Full Changelog: pmndrs/jotai@v2.2.0...v2.2.1

v2.2.0

Compare Source

It includes a few improvements. Some utils are rewritten as there was a misconception when migrating from v1. ESM builds are optimized for Vite users.

Migration Guide for jotai/utils

atomWithDefault
// suppose we have this
const asyncAtom = atom(() => Promise.resolve(1))
const countAtom = atomWithDefault((get) => get(asyncAtom))
// and in component
const setCount = useSetAtom(countAtom)

// previously,
setCount((c) => c + 1) // it worked, but it will no longer work

// instead, you need to do this
setCount((countPromise) => countPromise.then((c) => c + 1))
atomWithStorage
// suppose we have async storage
const storage = createJSONStorage(() => AsyncStorage)
const countAtom = atomWithStorage('count-key', 0, storage)
  // in component
  const [count, setCount] = useAtom(countAom)

  // previously, countAtom is a sync atom, so you could update like this:
  setCount((c) => c + 1)

  // with the new version, it becomes async occasionally, so you need to resolve it:
  setCount(async (c) => (await c) + 1)

What's Changed

New Contributors

Full Changelog: pmndrs/jotai@v2.1.1...v2.2.0

v2.1.1

Compare Source

This version fixes some issues in edge cases.

What's Changed

New Contributors

Full Changelog: pmndrs/jotai@v2.1.0...v2.1.1

v2.1.0

Compare Source

This includes some improvements as well as some breaking changes in unstable features.

What's Changed
New Contributors

Full Changelog: pmndrs/jotai@v2.0.4...v2.1.0


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/jotai-2.x branch from 61df766 to a16babe Compare May 25, 2023 08:35
@renovate renovate bot changed the title Update dependency jotai to v2.1.0 Update dependency jotai to v2.1.1 Jun 3, 2023
@renovate renovate bot force-pushed the renovate/jotai-2.x branch from a16babe to 4225d83 Compare June 3, 2023 15:42
@renovate renovate bot changed the title Update dependency jotai to v2.1.1 Update dependency jotai to v2.2.0 Jun 13, 2023
@renovate renovate bot force-pushed the renovate/jotai-2.x branch from 4225d83 to cb3e31c Compare June 13, 2023 06:50
@renovate renovate bot changed the title Update dependency jotai to v2.2.0 Update dependency jotai to v2.2.1 Jun 19, 2023
@renovate renovate bot force-pushed the renovate/jotai-2.x branch from cb3e31c to f958c24 Compare June 19, 2023 03:10
@renovate renovate bot changed the title Update dependency jotai to v2.2.1 Update dependency jotai to v2.2.2 Jul 5, 2023
@renovate renovate bot force-pushed the renovate/jotai-2.x branch from f958c24 to 02a5b7e Compare July 5, 2023 16:44
@renovate renovate bot changed the title Update dependency jotai to v2.2.2 Update dependency jotai to v2.2.3 Jul 31, 2023
@renovate renovate bot force-pushed the renovate/jotai-2.x branch from 02a5b7e to 653bb3e Compare July 31, 2023 04:29
@renovate renovate bot changed the title Update dependency jotai to v2.2.3 Update dependency jotai to v2.3.0 Aug 7, 2023
@renovate renovate bot force-pushed the renovate/jotai-2.x branch from 653bb3e to 3934611 Compare August 7, 2023 05:08
@renovate renovate bot changed the title Update dependency jotai to v2.3.0 Update dependency jotai to v2.3.1 Aug 8, 2023
@renovate renovate bot force-pushed the renovate/jotai-2.x branch from 3934611 to ed02199 Compare August 8, 2023 04:54
@Jussiles Jussiles self-requested a review August 14, 2023 06:27
Copy link
Contributor

@Jussiles Jussiles left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works

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.

1 participant