heckenmann / docker-swarm-dashboard

Dashboard for Docker Swarm Cluster
MIT License
38 stars 7 forks source link

Bump jotai from 2.7.2 to 2.8.0 in /app-src #417

Closed dependabot[bot] closed 7 months ago

dependabot[bot] commented 7 months ago

Bumps jotai from 2.7.2 to 2.8.0.

Release notes

Sourced from jotai's releases.

v2.8.0

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: https://github.com/pmndrs/jotai/compare/v2.7.2...v2.8.0

Commits


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)