UNPKG

4.2 kBMarkdownView Raw
1# Change Log
2
3## LATER
4
5- Performance optimization to suppress re-rendering components:
6 - When subscribed selectors evaluate to the same value. (#749)
7 - On initial render when not using React Concurrent Mode (#820)
8- Memory management
9- Selector cache configuration
10
11## NEXT
12
13- (Add new changes here as they land)
14
15## 0.2.0 (2021-3-18)
16
17### Major improvements
18
19- More reliable async selectors
20- Improved performance using HAMT data structures (b7d1cfddec66dae).
21
22### Other improvements
23
24- Changed semantics of waitForAny() such that it will always return loadables unless everything is loading. This better aligns behaviour of waitForAny() and waitForNone()
25- Added a waitForAllSettled helper analogous to Promise.allSettled. (4c95591)
26- Friendly error message for misuse of useRecoilCallback (#870)
27- Friendly error message if you try to use an async function as a selector setter, which is not uspported. (#777)
28- Improved React Native support. (#748, #702)
29- Added useGetRecoilValueInfo_UNSTABLE() hook for dev tools. (#713, #714)
30
31### Bug fixes
32
33- Selectors now treat any non-Promise that is thrown as an error, rather than only instances of Error. (f0e66f727)
34- A child of RecoilRoot could sometimes have its state updated after being unmounted. (#917)
35- The error message for missing RecoilRoot wasn't displayed on React experimental releases. (#712)
36- IE 11 compatibility (#894, d27c800d8)
37- Errors shouldn't be frozen (#852)
38- Atom effects could fail to initialize atoms in certain cases (#775).
39- Async selectors would fail with multiple React roots (a618a3).
40
41## 0.1.3 (2021-3-2)
42
43- Fixed peer dependencies
44
45## 0.1.2 (2020-10-30)
46
47- Fix TypeScript exports
48
49## 0.1.1 (2020-10-29)
50
51- Performance Improvements
52- Experimental React Native support
53- Experimental Atom Effects
54- Experimental Snapshot construction
55
56## 0.0.13 (2020-09-16)
57
58- Fix for bug affecting SSR
59
60## 0.0.12 (2020-09-15)
61
62- Fix for bug affecting SSR on development builds
63
64## 0.0.11 (2020-09-15)
65
66- Experimental React Concurrent Mode Support
67- Performance
68- Flow Types
69- ES, CommonJS, and UMD packages
70- Synchronization Across React Roots
71- Preliminary Developer Tools API
72- Test Infrastructure Fixes
73
74## 0.0.10 (2020-06-18)
75
76### Bug Fix
77
78- Fix exports for snapshot hooks
79
80## 0.0.9 (2020-06-17)
81
82### Features
83
84- TypeScript support now rolled into Recoil repository and package.
85- Recoil Snapshot API for observing and managing global Recoil state.
86
87### Improvements
88
89- Throw error with meaningful message if user doesn't use an atom or selector with most Recoil hooks (#205) - Thanks @alexandrzavalii
90- Improve testing (#321, #318, #294, #262, #295) - Thanks @aaronabramov, @Komalov, @mondaychen, @drarmstr, and @tyler-mitchell
91- Improve open-source build (#249, #203, #33) - Thanks to @tony-go, @acutmore, and @jaredpalmer
92
93### Bug Fixes
94
95- Some fixes for Server Side Rendering, though we do not officially support it yet. (#233, #220, #284) - Thanks @fyber-LJX, @Chrischuck, and @aulneau
96- Fix selectors recording dependency subscriptions in some cases (#296) - Thanks @drarmstr
97- Fix updaters in `useRecoilCallback()` getting current state (#260) - Thanks @drarmstr
98- Fix error messages when throwing certain errors in the open-source build. (#199) - Thanks @jonthomp
99- Reduce Flow errors for open-source builds (#308) - Thanks @Komalov
100
101## 0.0.8 (2020-05-30)
102
103### Bug Fixes
104
105- Build system and repository syncing fixed.
106- Fixed a bug where atoms that stored self-referential structures would cause an infinite loop. (#153)
107- Fixed bugs affecting Server-Side Rendering. (#53)
108
109### Features
110
111- TypeScript support is now available via DefinitelyTyped.
112- `atomFamily` and `selectorFamily`: these provide a standard way to create atoms and selectors using memoized functions. Compared with doing this yourself, in the future these will help with memory management.
113- `noWait`, `waitForNone`, `waitForAny`, `waitForAll`: helpers for concurrency and other advanced logic in async selectors.
114- `constSelector` and `errorSelector`: selectors that always evaluate to a constant or always throw an error.
115- `readOnlySelector`: wraps a read-write atom or selector in a read-only interface, for when you need type covariance.