Skip to content

Commit

Permalink
Version 0.2.0
Browse files Browse the repository at this point in the history
Summary:
* Bumped package.json version
* Added commits to the CHANGELOG
* Turned on the recoil_hamt_2020 GK for open-source.

Reviewed By: drarmstr

Differential Revision: D27179128

fbshipit-source-id: ec076ccd7075db5b5b5a023e4492888e7a12d367
  • Loading branch information
davidmccabe authored and facebook-github-bot committed Mar 31, 2021
1 parent cf1d0d3 commit ec0c743
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 4 deletions.
35 changes: 32 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,42 @@
- Performance optimization to suppress re-rendering components:
- When subscribed selectors evaluate to the same value. (#749)
- On initial render when not using React Concurrent Mode (#820)
- Memory management
- Selector cache configuration

## NEXT

- Added useGetRecoilValueInfo_UNSTABLE() hook for dev tools. (#713, #714)
- Bug Fix: Ensuring that throwing non Error (and non Promise) objects is supported and puts the selector into a hasError state
- (Add new changes here as they land)

## 0.2.0 (2021-3-18)

### Major improvements

- More reliable async selectors
- Improved performance using HAMT data structures (b7d1cfddec66dae).

### Other improvements

- Changed semantics of waitForAny() such that it will always return loadables unless everything is loading. This better aligns behaviour of waitForAny() and waitForNone()
- Bug Fix: Ensured that the Batcher (within RecoilRoot) cannot have its state updated after it is unmounted. (#917)
- Added a waitForAllSettled helper analogous to Promise.allSettled. (4c95591)
- Friendly error message for misuse of useRecoilCallback (#870)
- Friendly error message if you try to use an async function as a selector setter, which is not uspported. (#777)
- Improved React Native support. (#748, #702)
- Added useGetRecoilValueInfo_UNSTABLE() hook for dev tools. (#713, #714)

### Bug fixes

- Selectors now treat any non-Promise that is thrown as an error, rather than only instances of Error. (f0e66f727)
- A child of RecoilRoot could sometimes have its state updated after being unmounted. (#917)
- The error message for missing RecoilRoot wasn't displayed on React experimental releases. (#712)
- IE 11 compatibility (#894, d27c800d8)
- Errors shouldn't be frozen (#852)
- Atom effects could fail to initialize atoms in certain cases (#775).
- Async selectors would fail with multiple React roots (a618a3).

## 0.1.3 (2021-3-2)

- Fixed peer dependencies

## 0.1.2 (2020-10-30)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "recoil",
"version": "0.1.3",
"version": "0.2.0",
"description": "Recoil - A state management library for React",
"main": "cjs/recoil.js",
"module": "es/recoil.js",
Expand Down

0 comments on commit ec0c743

Please sign in to comment.