recoil
Advanced tools
Comparing version 0.7.0 to 0.7.1
@@ -6,4 +6,15 @@ # Change Log | ||
## 0.7 (2022-03-25) | ||
## 0.7.1 (2022-04-12) | ||
### Typing | ||
- Add explict `children` prop to `<RecoilRoot>` and `useRecoilBridgeAcrossReactRoots_UNSTABLE()` for TypeScript for `@types/react` with React 18 (#1718, #1717, #1726, #1731) | ||
- Update typing for family parameters to better support Map, Set, and classes with `toJSON()`. (#1709, #1703) | ||
### Fixes | ||
- Avoid dev-mode console error with React 18 when using shared async selectors across multiple `<RecoilRoot>`'s. (#1712) | ||
- 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 | ||
@@ -10,0 +21,0 @@ - The `default` value is now optional for `atom()` and `atomFamily()`. If not provided the atom will initialize to a pending state. (#1639) |
@@ -32,3 +32,7 @@ // Minimum TypeScript Version: 3.7 | ||
override?: true, | ||
} | {override: false}; | ||
children: React.ReactNode, | ||
} | { | ||
override: false, | ||
children: React.ReactNode, | ||
}; | ||
@@ -308,3 +312,3 @@ /** | ||
// useRecoilBridgeAcrossReactRoots.d.ts | ||
export const RecoilBridge: React.FC; | ||
export const RecoilBridge: React.FC<{children: React.ReactNode}>; | ||
/** | ||
@@ -395,7 +399,10 @@ * Returns a component that acts like a <RecoilRoot> but shares the same store | ||
type Primitive = undefined | null | boolean | number | symbol | string; | ||
interface HasToJSON { toJSON(): SerializableParam; } | ||
export type SerializableParam = | ||
| Primitive | ||
| {toJSON: () => string} | ||
| HasToJSON | ||
| ReadonlyArray<SerializableParam> | ||
| ReadonlySet<SerializableParam> | ||
| ReadonlyMap<SerializableParam, SerializableParam> | ||
| Readonly<{[key: string]: SerializableParam}>; | ||
@@ -402,0 +409,0 @@ |
{ | ||
"name": "recoil", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"description": "Recoil - A state management library for React", | ||
@@ -5,0 +5,0 @@ "main": "cjs/recoil.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
2151200
30013