Comparing version 0.3.0 to 0.3.1
@@ -13,5 +13,9 @@ # Change Log | ||
## 0.3.1 (2021-5-18) | ||
- Fix TypeScript exports | ||
## 0.3.0 (2021-5-14) | ||
In the future to support garbage collection, there is a slight breaking change that `Snapshot`'s will only be valid for the duration of the callback or render. A new `retain()` API can be used to persist them longer. This is not enforced yet, but Recoil will now provide a warning in dev-mode if a `Snapshot` is used past its lifetime. (#1006) | ||
For supporting garbage collection in the future there is a slight breaking change that `Snapshot`'s will only be valid for the duration of the callback or render. A new `retain()` API can be used to persist them longer. This is not enforced yet, but Recoil will now provide a warning in dev-mode if a `Snapshot` is used past its lifetime. (#1006) | ||
@@ -18,0 +22,0 @@ ### New Features / Improvements |
@@ -58,2 +58,3 @@ // Minimum TypeScript Version: 3.7 | ||
asyncMap(cb: (mutableSnapshot: MutableSnapshot) => Promise<void>): Promise<Snapshot>; | ||
retain(): () => void; | ||
} | ||
@@ -60,0 +61,0 @@ |
{ | ||
"name": "recoil", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "Recoil - A state management library for React", | ||
@@ -5,0 +5,0 @@ "main": "cjs/recoil.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1584440
25790