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

chore: update dependency jotai to v2 #77

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

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Feb 3, 2023

Mend Renovate

This PR contains the following updates:

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

Release Notes

pmndrs/jotai (jotai)

v2.8.3

Compare Source

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

What's Changed

New Contributors

Full Changelog: pmndrs/jotai@v2.8.2...v2.8.3

v2.8.2

Compare Source

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

What's Changed
New Contributors

Full Changelog: pmndrs/jotai@v2.8.1...v2.8.2

v2.8.1

Compare Source

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

What's Changed
New Contributors

Full Changelog: pmndrs/jotai@v2.8.0...v2.8.1

v2.8.0

Compare Source

v2.7.2

Compare Source

Mostly refactors.

What's Changed

Full Changelog: pmndrs/jotai@v2.7.1...v2.7.2

v2.7.1

Compare Source

This fixes a regression in v2.7.0.

What's Changed

New Contributors

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

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

v1.13.1

Compare Source

Following v1.13.0, this version drops jotai/react/devtools entry point which was for pre-released v2 API. The same feature will be provided from jotai-devtools package.

What's Changed
New Contributors

Full Changelog: pmndrs/jotai@v1.13.0...v1.13.1

v1.13.0

Compare Source

We are working on improving devtools for v2 API. To mitigate the migration, jotai/devtools is moved to jotai-devtools in this version. Please be aware that you need to manually install jotai-devtools.

What's Changed

New Contributors

Full Changelog: pmndrs/jotai@v1.12.1...v1.13.0

v1.12.1

Compare Source

This version adds a few improvements in v2 API pre-release.

What's Changed

Full Changelog: pmndrs/jotai@v1.12.0...v1.12.1

v1.12.0

Compare Source

We are getting ready for v2 release. What you can do now is to update to this version, and a) check deprecation messages and/or b) try/migrate pre-released v2 API. https://github.com/pmndrs/jotai/blob/v1.12.0/docs/guides/migrating-to-v2-api.mdx

What's Changed

New Contributors

Full Changelog: pmndrs/jotai@v1.11.2...v1.12.0

v1.11.2

Compare Source

This version includes some refactors and improvements to the v2 API pre-release. If you are still new to the v2 API, please check it out. https://jotai.org/docs/guides/migrating-to-v2-api

What's Changed

New Contributors

Full Changelog: pmndrs/jotai@v1.11.1...v1.11.2

v1.11.1

Compare Source

v1.11.0 added the pre-release of v2 API. This patch version adds some improvements in the v2 API. It's still unstable, but feedbacks are very welcome.

What's Changed

Full Changelog: pmndrs/jotai@v1.11.0...v1.11.1

v1.11.0

Compare Source

This includes the pre-release of Jotai v2 API. See RFC #​1514.
The v2 API in the pre-release is technically considered unstable, but it's highly recommended to try it before v2. Unless we get any feedback, we don't know what to improve and it will be finalized as is.
Please check the migration guide: https://github.com/pmndrs/jotai/blob/v1.11.0/docs/guides/migrating-to-v2-api.mdx
Feel free to open a new discussion for questions, ideas and so on.

This version has a little breaking change, which is the minimal version of node >=12.20.0 for server side usage.

What's Changed
New Contributors

Full Changelog: pmndrs/jotai@v1.10.0...v1.11.0

v1.10.0

Compare Source

We moved integrations to separate packages. They are peer dependencies now and you would need to install them to keep using the features. Eventually, soon they are deprecated and will be removed in jotai v2.0.0. There are no feature differences at this point, so the migration should be easy. Let us know if something goes wrong.

What's Changed

Full Changelog: pmndrs/jotai@v1.9.2...v1.10.0

v1.9.2

Compare Source

This fixes loadable util behavior.

What's Changed

New Contributors

Full Changelog: pmndrs/jotai@v1.9.1...v1.9.2

v1.9.1

Compare Source

Some fixes. We are still not very confident with ESM bundling. Please feel free to open issues/discussions.

What's Changed

New Contributors

Full Changelog: pmndrs/jotai@v1.9.0...v1.9.1

v1.9.0

Compare Source

There's one of big decisions made probably since the initial release. There has been many feature requests for jotai/query and jotai/urql which exceed original API design. We re-implemented them in separate repositories providing more features, and keep the existing functionality with wrappers (which will be deprecated in the future). Please check docs.

There are other changes with build for ESM. Please feel free to open issues and discussions if you have any.

What's Changed


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 is behind base branch, 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.

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