Skip to content
This repository has been archived by the owner on Jan 1, 2025. It is now read-only.

Commit

Permalink
Changelog and package bump for 0.3.0 (#1021)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #1021

Changelog and package bump for 0.3.0

Reviewed By: davidmccabe

Differential Revision: D28448131

fbshipit-source-id: 441e2ad236cd7517613477b8190d873999752e71
  • Loading branch information
drarmstr authored and facebook-github-bot committed May 14, 2021
1 parent e7d4f2d commit f5dae49
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 12 deletions.
33 changes: 22 additions & 11 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,32 @@
# Change Log

## LATER
## UPCOMING

- Memory management
- Selector cache configuration

## NEXT
* Add new changes here as they land*

- (Add new changes here as they land)
- Performance optimization 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)
- Improved TypeScript and Flow typing for `Loadable`s (#966)
- Added override prop to RecoilRoot
- Fix for Atom Effects onSet() not being called when triggered from setSelf() initializing a Promise or from the same onSet() handler. (#974, #979, #953, #986)
- Add getCallback() to selector evaluation interface (#989)
- Removed some undocumented legacy features.
- Memory management
- Selector cache configuration

## 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)

### New Features / Improvements
- Add `override` prop to `<RecoilRoot>` (#973)
- Add `getCallback()` to selector evaluation interface (#989)
- Improved TypeScript and Flow typing for `Loadable`s (#966, #1022)

### Performance Optimizations
- Improve scalability (time and memory) of Atom families by cleaning up a legacy feature.

### Bug Fixes
- Throwing an error in an async selector should be properly caught by `<ErrorBoundary>`'s (#998, #1017)
- Fix for Atom Effects `onSet()` should not be called when triggered from `setSelf()` initializing with a Promise or from the same `onSet()` handler. (#974, #979, #953, #986)
- Improved support for Safari (#967, #609)
- Objects stored in selectors are properly frozen in dev mode (#911)

## 0.2.0 (2021-3-18)

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.2.0",
"version": "0.3.0",
"description": "Recoil - A state management library for React",
"main": "cjs/recoil.js",
"module": "es/recoil.js",
Expand Down

0 comments on commit f5dae49

Please sign in to comment.