Skip to content

[Snyk] Upgrade recoil from 0.1.3 to 0.6.1#3

Open
snyk-bot wants to merge 1 commit intomasterfrom
snyk-upgrade-4c26d1de966307c5dea1f0e326e190fb
Open

[Snyk] Upgrade recoil from 0.1.3 to 0.6.1#3
snyk-bot wants to merge 1 commit intomasterfrom
snyk-upgrade-4c26d1de966307c5dea1f0e326e190fb

Conversation

@snyk-bot
Copy link
Copy Markdown

Snyk has created this PR to upgrade recoil from 0.1.3 to 0.6.1.

merge advice
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


  • The recommended version is 10 versions ahead of your current version.
  • The recommended version was released 21 days ago, on 2022-01-29.
Release notes
Package name: recoil
  • 0.6.1 - 2022-01-29

    Fix postInstall script

  • 0.6.0 - 2022-01-29

    React 18

    • Leverage new React 18 APIs for improved safety and optimizations. (#1488)
    • Fixes for <StrictMode> (#1473, #1444, #1509).
    • Experimental support for useTransition() using hooks with _TRANSITION_SUPPORT_UNSTABLE suffix. (#1572, #1560)
    • Recoil updates now re-render earlier:
      • Recoil and React state changes from the same batch now stay in sync. (#1076)
      • Renders now occur before transaction observers instead of after.

    New Features

    • Add refresh() to the useRecoilCallback() interface for refreshing selector caches. (#1413)
    • Callbacks from selector's getCallback() can now mutate, refresh, and transact Recoil state, in addition to reading it, for parity with useRecoilCallback(). (#1498)
    • Recoil StoreID's for <RecoilRoot> and Snapshot stores accessible via useRecoilStoreID() hook (#1417) or storeID parameter for atom effects (#1414).
    • RecoilLoadable.all() and RecoilLoadable.of() now accept either literal values, async Promises, or Loadables. (#1455, #1442)
    • Add .isRetained() method for Snapshots and check if snapshot is already released when using .retain() (#1546)

    Other Fixes and Optimizations

    • Reduce overhead of snapshot cloning
      • Only clone the current snapshot for callbacks if the callback actually uses it. (#1501)
      • Cache the cloned snapshots from callbacks unless there was a state change. (#1533)
    • Fix transitive selector refresh for some cases (#1409)
    • Fix some corner cases with async selectors and multiple stores (#1568)
    • Atom Effects
      • Run atom effects when atoms are initialized from a set during a transaction from useRecoilTransaction_UNSTABLE() (#1466, #1569)
      • Atom effects are cleaned up when initialized by a Snapshot which is released. (#1511, #1532)
      • Unsubscribe onSet() handlers in atom effects when atoms are cleaned up. (#1509)
      • Call onSet() when atoms are initialized with <RecoilRoot initializeState={...} > (#1519, #1511)
    • Avoid extra re-renders in some cases when a component uses a different atom/selector. (#825)
    • <RecoilRoot> will only call initializeState() once during the initial render. (#1372)
    • Lazily compute the properties of useGetRecoilValueInfo_UNSTABLE() and Snapshot#getInfo_UNSTABLE() results (#1549)
    • Memoize the results of lazy proxies. (#1548)

    Breaking Changes

    • Rename atom effects from effects_UNSTABLE to just effects, as the interface is mostly stabilizing. (#1520)
    • Atom effect initialization takes precedence over initialization with <RecoilRoot initializeState={...} >. (#1509)
    • useGetRecoilValueInfo_UNSTABLE() and Snapshot#getInfo_UNSTABLE() always report the node type. (#1547)
  • 0.5.2 - 2021-11-07

    TypeScript fixes

  • 0.5.1 - 2021-11-05

    TypeScript fixes

  • 0.5.0 - 2021-11-04
    • Added useRecoilRefresher_UNSTABLE() hook which forces a selector to re-run it's get(), and is a no-op for an atom. (#972, #1294, #1302)
    • Atom effect improvements:
      • Add getLoadable(), getPromise(), and getInfo_UNSTABLE() to Atom Effects interface for reading other atoms. (#1205, #1210)
      • Add isReset parameter to onSet() callback to know if the atom is being reset or not. (#1358, #1345)
    • Loadable improvements:
      • Publish RecoilLoadable interface with factories and type checking for Loadables. (#1263, #1264, #1312)
      • Ability to map Loadables with other Loadables. (#1180)
      • Re-implement Loadable as classes. (#1315)
    • Improved dev-mode checks:
      • Atoms freeze default, initialized, and async values. Selectors should not freeze upstream dependencies. (#1261, #1259)
      • Perform runtime check that required options are provided when creating atoms and selectors. (#1324)
    • Allow class instances in family parameters for Flow
  • 0.4.1 - 2021-08-26
    • Performance optimizations to suppress re-rendering components:
      • When subscribed selectors evaluate to the same value. (#749, #952)
      • On initial render when not using React Concurrent Mode (#820)
      • When selector async deps resolve, but React re-renders before chained promises have executed.
    • Fixed #1072 where in some cases selectors with async deps would not update in response to state updates
  • 0.4.0 - 2021-07-29
    Read more
  • 0.3.1 - 2021-05-18
    • Fix TypeScript exports
  • 0.3.0 - 2021-05-14
    Read more
  • 0.2.0 - 2021-03-31
    Read more
  • 0.1.3 - 2021-03-02
from recoil GitHub release notes

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

🧐 View latest project report

🛠 Adjust upgrade PR settings

🔕 Ignore this dependency or unsubscribe from future upgrade PRs

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