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

fix(deps): update dependency jotai to v2 #99

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

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Aug 11, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
jotai ^1.7.1 -> ^2.0.0 age adoption passing confidence

Release Notes

pmndrs/jotai (jotai)

v2.7.0

Compare Source

We've improved the use of WeakMap for better memory management. Please report to us if any regressions are found.

What's Changed

Full Changelog: pmndrs/jotai@v2.6.5...v2.7.0

v2.6.5

Compare Source

Some type improvements!

What's Changed

New Contributors

Full Changelog: pmndrs/jotai@v2.6.4...v2.6.5

v2.6.4

Compare Source

Performance improvement! Check it out!

What's Changed
New Contributors

Full Changelog: pmndrs/jotai@v2.6.3...v2.6.4

v2.6.3

Compare Source

Some improvements in core and utils 👏

What's Changed

New Contributors

Full Changelog: pmndrs/jotai@v2.6.2...v2.6.3

v2.6.2

Compare Source

Some improvements for atomWithStorage. Feedback is welcome.

What's Changed

New Contributors

Full Changelog: pmndrs/jotai@v2.6.1...v2.6.2

v2.6.1

Compare Source

This version has two minor improvements for library authors. It's wonderful to see Jotai ecosystem growing. No major bugs have been reported lately. It's fairly okay to say the current version is pretty stable.

What's Changed

New Contributors

Full Changelog: pmndrs/jotai@v2.6.0...v2.6.1

v2.6.0

Compare Source

We can now directly use <Provider> in React Server Components. 🎉

What's Changed

New Contributors

Full Changelog: pmndrs/jotai@v2.5.1...v2.6.0

v2.5.1

Compare Source

This fixes some small issues in jotai/utils.

What's Changed

New Contributors

Full Changelog: pmndrs/jotai@v2.5.0...v2.5.1

v2.5.0

Compare Source

This fixes some bugs, one of which was critical for jotai-effect. It also adds a new internal capability that may help extensions such as jotai-scope.

What's Changed

New Contributors

Full Changelog: pmndrs/jotai@v2.4.3...v2.5.0

v2.4.3

Compare Source

This fixes a regression in an edge case, which has existed since v2.1.1.

What's Changed

New Contributors

Full Changelog: pmndrs/jotai@v2.4.2...v2.4.3

v2.4.2

Compare Source

There was a bug in v2.4.0 (and v2.4.1) in an edge case, which is now fixed.

What's Changed

New Contributors

Full Changelog: pmndrs/jotai@v2.4.1...v2.4.2

v2.4.1

Compare Source

There was a regression in v2.3.0, which is fixed.

What's Changed

New Contributors

Full Changelog: pmndrs/jotai@v2.4.0...v2.4.1

v2.4.0

Compare Source

This version fixes an edge case in core that has existed since v2.0.0.

What's Changed

New Contributors

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

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

v2.0.4

Compare Source

This includes some small improvements. One of them is to improve Deno compatibility.

What's Changed

New Contributors

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

v2.0.3

Compare Source

v2.0.2

Compare Source

This version add some small improvements, mostly for some minor cases.

What's Changed

New Contributors

Full Changelog: pmndrs/jotai@v2.0.1...v2.0.2

v2.0.1

Compare Source

This adds various small improvements. Docs are also updated.

What's Changed

New Contributors

Full Changelog: pmndrs/jotai@v2.0.0...v2.0.1

v2.0.0

Compare Source

🎉 🎉 🎉 Jotai v2 is here! 🍾 🍾 🍾

Backward compatible for JS users without async atoms

Async atom behavior is revisited and changed. TypeScript types are changed and improved.

New Store API

Exposes createStore which opens up new usages. With its power, it can be misused. Let's look for best practice. Feedback is appreciated.

Migration Guide

https://github.com/pmndrs/jotai/blob/v2.0.0/docs/guides/migrating-to-v2-api.mdx

What's Changed

New Contributors

Full Changelog: pmndrs/jotai@v1.13.1...v2.0.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.

@vercel
Copy link

vercel bot commented Aug 11, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
regex-vis ❌ Failed (Inspect) Aug 11, 2023 1:19pm

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.

None yet

0 participants