Open
Conversation
Snyk has created this PR to upgrade recoil from 0.1.3 to 0.6.1. See this package in npm: https://www.npmjs.com/package/recoil See this project in Snyk: https://app.snyk.io/org/timcrooker/project/dabdef47-775f-46c6-a1ac-c5ac30c6e5ea?utm_source=github&utm_medium=referral&page=upgrade-pr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Snyk has created this PR to upgrade recoil from 0.1.3 to 0.6.1.
ℹ️ 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.
Release notes
Package name: recoil
-
0.6.1 - 2022-01-29
-
0.6.0 - 2022-01-29
- Leverage new React 18 APIs for improved safety and optimizations. (#1488)
- Fixes for
- Experimental support for
- 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.
- Add
- Callbacks from selector's
- Recoil StoreID's for
- Add
- 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
- Atom effects are cleaned up when initialized by a Snapshot which is released. (#1511, #1532)
- Unsubscribe
- Call
- Avoid extra re-renders in some cases when a component uses a different atom/selector. (#825)
- Lazily compute the properties of
- Memoize the results of lazy proxies. (#1548)
- Rename atom effects from
- Atom effect initialization takes precedence over initialization with
-
0.5.2 - 2021-11-07
-
0.5.1 - 2021-11-05
-
0.5.0 - 2021-11-04
- Added
- Atom effect improvements:
- Add
- Add
- Publish
- 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
-
0.3.1 - 2021-05-18
- Fix TypeScript exports
-
0.3.0 - 2021-05-14
-
0.2.0 - 2021-03-31
-
0.1.3 - 2021-03-02
from recoil GitHub release notesFix postInstall script
React 18
<StrictMode>(#1473, #1444, #1509).useTransition()using hooks with_TRANSITION_SUPPORT_UNSTABLEsuffix. (#1572, #1560)New Features
refresh()to theuseRecoilCallback()interface for refreshing selector caches. (#1413)getCallback()can now mutate, refresh, and transact Recoil state, in addition to reading it, for parity withuseRecoilCallback(). (#1498)<RecoilRoot>andSnapshotstores accessible viauseRecoilStoreID()hook (#1417) orstoreIDparameter for atom effects (#1414).RecoilLoadable.all()andRecoilLoadable.of()now accept either literal values, async Promises, or Loadables. (#1455, #1442).isRetained()method for Snapshots and check if snapshot is already released when using.retain()(#1546)Other Fixes and Optimizations
useRecoilTransaction_UNSTABLE()(#1466, #1569)onSet()handlers in atom effects when atoms are cleaned up. (#1509)onSet()when atoms are initialized with<RecoilRoot initializeState={...} >(#1519, #1511)<RecoilRoot>will only callinitializeState()once during the initial render. (#1372)useGetRecoilValueInfo_UNSTABLE()andSnapshot#getInfo_UNSTABLE()results (#1549)Breaking Changes
effects_UNSTABLEto justeffects, as the interface is mostly stabilizing. (#1520)<RecoilRoot initializeState={...} >. (#1509)useGetRecoilValueInfo_UNSTABLE()andSnapshot#getInfo_UNSTABLE()always report the nodetype. (#1547)TypeScript fixes
TypeScript fixes
useRecoilRefresher_UNSTABLE()hook which forces a selector to re-run it'sget(), and is a no-op for an atom. (#972, #1294, #1302)getLoadable(),getPromise(), andgetInfo_UNSTABLE()to Atom Effects interface for reading other atoms. (#1205, #1210)isResetparameter toonSet()callback to know if the atom is being reset or not. (#1358, #1345)Loadableimprovements:RecoilLoadableinterface with factories and type checking for Loadables. (#1263, #1264, #1312)Read more
Read more
Read more
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