Skip to content

Bump recoil from 0.6.1 to 0.7.0#84

Closed
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/npm_and_yarn/recoil-0.7.0
Closed

Bump recoil from 0.6.1 to 0.7.0#84
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/npm_and_yarn/recoil-0.7.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Apr 9, 2022

Copy link
Copy Markdown
Contributor

Bumps recoil from 0.6.1 to 0.7.0.

Release notes

Sourced from recoil's releases.

0.7.0

New Features

  • The default value is now optional for atom() and atomFamily(). If not provided the atom will initialize to a pending state. (#1639)
  • Add getStoreID() method to Snapshot (#1612)
  • Publish RecoilLoadable.loading() factory for making an async Loadable which never resolves. (#1641)

Breaking Changes

  • Selector's get() and Atom's default can now accept a Loadable to put the node in that state. If you wish to store a Loadable, Promise, or RecoilValue directly you can wrap it with selector.value() or atom.value(). (#1640)
  • useRecoilCallback() now provides a snapshot for the latest state when the callback is called instead of the latest rendered state, which had issues (#1610, #1604)

Improvements / Optimizations

  • Automatically retain snapshots for the duration of async callbacks. (#1632)
  • Optimization for more selector dependencies. 2x improvement with 100 dependencies, 4x with 1,000, and now able to support 10,000+. (#1651, #1515, #914)
  • Better error reporting when selectors provide inconsistent results (#1696)

Fixes

  • Avoid spurious console errors from effects when calling setSelf() from onSet() handlers. (#1589, #1582)
  • Freezing user values in dev mode now works in JS environments without the Window interface. (#1571)
Changelog

Sourced from recoil's changelog.

Change Log

UPCOMING

Add new changes here as they land

  • Avoid dev-mode console error with React 18 when using shared async selectors across multiple <RecoilRoot>'s. (#1712)
  • Update typing for family parameters to better support Map, Set, and classes with toJSON(). (#1709, #1703)
  • Cleanup potential memory leak when using async selectors (#1714)
  • Fix potentially hung async selectors when shared across multiple roots that depend on atoms initialized with promises that don't resolve (#1714)

0.7 (2022-03-31)

New Features

  • The default value is now optional for atom() and atomFamily(). If not provided the atom will initialize to a pending state. (#1639)
  • Add getStoreID() method to Snapshot (#1612)
  • Publish RecoilLoadable.loading() factory for making an async Loadable which never resolves. (#1641)

Breaking Changes

  • Selector's get() and Atom's default can now accept a Loadable to put the node in that state. If you wish to store a Loadable, Promise, or RecoilValue directly you can wrap it with selector.value() or atom.value(). (#1640)
  • useRecoilCallback() now provides a snapshot for the latest state instead of the latest rendered state, which had bugs (#1610, #1604)

Improvements / Optimizations

  • Automatically retain snapshots for the duration of async callbacks. (#1632)
  • Optimization for more selector dependencies. 2x improvement with 100 dependencies, 4x with 1,000, and now able to support 10,000+. (#1651, #1515, #914)
  • Better error reporting when selectors provide inconsistent results (#1696)

Fixes

  • Avoid spurious console errors from effects when calling setSelf() from onSet() handlers. (#1589, #1582)
  • Freezing user values in dev mode now works in JS environments without the Window interface. (#1571)
Commits
  • d922baa Typing fixes for 0.7 (#1690)
  • 252e1f4 fix: Correct typo in no-fb-only.js (#1680)
  • c5939d3 Comment 'recoil_infer_component_names' code (#1673)
  • 63cb39c 0.7 Release (#1687)
  • 3670d6b remove new from functions that are not classes
  • 74cf6e4 Display selector key when an error occurs (#1669)
  • 248e2b3 Publish RecoilLoadable.loading() (#1641)
  • 6cb9f2d Unwrap Loadables and allow atoms/selector to have Promise/Loadable/Atom value...
  • 9f966d4 Retain snapshots for async callbacks (#1632)
  • 4b8fa30 Back out "remove new from functions that are not classes"
  • Additional commits viewable in compare view

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 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)

@dependabot dependabot Bot requested a review from unasuke as a code owner April 9, 2022 09:06
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Apr 9, 2022
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/recoil-0.7.0 branch from 2af815b to 91dfa5c Compare April 9, 2022 09:24
Bumps [recoil](https://github.com/facebookexperimental/Recoil) from 0.6.1 to 0.7.0.
- [Release notes](https://github.com/facebookexperimental/Recoil/releases)
- [Changelog](https://github.com/facebookexperimental/Recoil/blob/main/CHANGELOG.md)
- [Commits](facebookexperimental/Recoil@0.6.1...0.7.0)

---
updated-dependencies:
- dependency-name: recoil
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/recoil-0.7.0 branch from 91dfa5c to f79d56b Compare April 9, 2022 09:26
@dependabot @github

dependabot Bot commented on behalf of github Apr 16, 2022

Copy link
Copy Markdown
Contributor Author

Superseded by #86.

@dependabot dependabot Bot closed this Apr 16, 2022
@dependabot dependabot Bot deleted the dependabot/npm_and_yarn/recoil-0.7.0 branch April 16, 2022 01:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants