Skip to content

Commit

Permalink
Add React 16.3.0 changelog (#12488)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon authored Mar 29, 2018
1 parent 8e3d94f commit 2c3f5fb
Showing 1 changed file with 53 additions and 1 deletion.
54 changes: 53 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,77 @@
Changes that have landed in master but are not yet released.
Click to see more.
</summary>
</details>

## 16.3.0 (March 29, 2018)

### React

* Add a new `React.createRef()` API as an ergonomic alternative to callback refs. ([@trueadm](https:/trueadm) in [#12162](https:/facebook/react/pull/12162))
* Add a new `React.forwardRef()` API to let components forward their refs to a child. ([@bvaughn](https:/bvaughn) in [#12346](https:/facebook/react/pull/12346))
* Fix a false positive warning in IE11 when using `React.Fragment`. ([@XaveScor](https:/XaveScor) in [#11823](https:/facebook/react/pull/11823))
* Replace `React.unstable_AsyncComponent` with `React.unstable_AsyncMode`. ([@acdlite](https:/acdlite) in [#12117](https:/facebook/react/pull/12117))
* Improve the error message when calling `setState()` on an unmounted component. ([@sophiebits](https:/sophiebits) in [#12347](https:/facebook/react/pull/12347))

### React DOM

* Add a new officially supported context API. ([@acdlite](https:/acdlite) in [#11818](https:/facebook/react/pull/11818))
* Add a new `getDerivedStateFromProps()` lifecycle and `UNSAFE_` aliases for the legacy lifecycles. ([@bvaughn](https:/bvaughn) in [#12028](https:/facebook/react/pull/12028))
* Add a new `getSnapshotForUpdate()` lifecycle. ([@bvaughn](https:/bvaughn) in [#12404](https:/facebook/react/pull/12404))
* Add a new `<React.StrictMode>` wrapper to help prepare apps for async rendering. ([@bvaughn](https:/bvaughn) in [#12083](https:/facebook/react/pull/12083))
* Add support for `onLoad` and `onError` events on the `<link>` tag. ([@roderickhsiao](https:/roderickhsiao) in [#11825](https:/facebook/react/pull/11825))
* Add support for `noModule` boolean attribute on the `<script>` tag. ([@aweary](https:/aweary) in [#11900](https:/facebook/react/pull/11900))
* Fix minor DOM input bugs in IE and Safari. ([@nhunzaker](https:/nhunzaker) in [#11534](https:/facebook/react/pull/11534))
* Correctly detect Ctrl + Enter in `onKeyPress` in more browsers. ([@nstraub](https:/nstraub) in [#10514](https:/facebook/react/pull/10514))
* Fix containing elements getting focused on SSR markup mismatch. ([@koba04](https:/koba04) in [#11737](https:/facebook/react/pull/11737))
* Fix `value` and `defaultValue` to ignore Symbol values. ([@nhunzaker](https:/nhunzaker) in [#11741](https:/facebook/react/pull/11741))
* Fix refs to class components not getting cleaned up when the attribute is removed. ([@bvaughn](https:/bvaughn) in [#12178](https:/facebook/react/pull/12178))
* Throw with a meaningful message if the component runs after jsdom has been destroyed. ([@gaearon](https:/gaearon) in [#11677](https:/facebook/react/pull/11677))
* Don't crash if there is a global variable called `opera` with a `null` value. [@alisherdavronov](https:/alisherdavronov) in [#11854](https:/facebook/react/pull/11854))
* Don't check for old versions of Opera. ([@skiritsis](https:/skiritsis) in [#11921](https:/facebook/react/pull/11921))
* Deduplicate warning messages about `<option selected>`. ([@watadarkstar](https:/watadarkstar) in [#11821](https:/facebook/react/pull/11821))
* Deduplicate warning messages about invalid callback. ([@yenshih](https:/yenshih) in [#11833](https:/facebook/react/pull/11833))
* Deprecate `ReactDOM.unstable_createPortal()` in favor of `ReactDOM.createPortal()`. ([@prometheansacrifice](https:/prometheansacrifice) in [#11747](https:/facebook/react/pull/11747))
* Don't emit User Timing entries for context types. ([@abhaynikam](https:/abhaynikam) in [#12250](https:/facebook/react/pull/12250))
* Improve the error message when context consumer child isn't a function. ([@raunofreiberg](https:/raunofreiberg) in [#12267](https:/facebook/react/pull/12267))
* Improve the error message when adding a ref to a functional component. ([@skiritsis](https:/skiritsis) in [#11782](https:/facebook/react/pull/11782))

### React DOM Server

* Prevent an infinite loop when attempting to render portals with SSR. ([@gaearon](https:/gaearon) in [#11709](https:/facebook/react/pull/11709))
* Warn if a class doesn't extend `React.Component`. ([@wyze](https:/wyze) in [#11993](https:/facebook/react/pull/11993))
* Fix an issue with `this.state` of different components getting mixed up. ([@sophiebits](https:/sophiebits) in [#12323](https:/facebook/react/pull/12323))
* Provide a better message when component type is undefined. ([@HeroProtagonist](https:/HeroProtagonist) in [#11966](https:/facebook/react/pull/11966))

</details>
## React Test Renderer

* Fix handling of fragments in `toTree()`. ([@maciej-ka](https:/maciej-ka) in [#12107](https:/facebook/react/pull/12107) and [@gaearon](https:/gaearon) in [#12154](https:/facebook/react/pull/12154))
* Shallow renderer should assign state to `null` for components that don't set it. ([@jwbay](https:/jwbay) in [#11965](https:/facebook/react/pull/11965))
* Shallow renderer should filter legacy context according to `contextTypes`. ([@koba04](https:/koba04) in [#11922](https:/facebook/react/pull/11922))
* Add an unstable API for testing asynchronous rendering. ([@acdlite](https:/acdlite) in [#12478](https:/facebook/react/pull/12478))

### React Is (New)

* First release of the [new package](https:/facebook/react/tree/master/packages/react-is) that libraries can use to detect different React node types. ([@bvaughn](https:/bvaughn) in [#12199](https:/facebook/react/pull/12199))
* Add `ReactIs.isValidElementType()` to help higher-order components validate their inputs. ([@jamesreggio](https:/jamesreggio) in [#12483](https:/facebook/react/pull/12483))

### React Lifecycles Compat (New)

* First release of the [new package](https:/facebook/react/tree/master/packages/react-lifecycles-compat) to help library developers target multiple versions of React. ([@bvaughn](https:/bvaughn) in [#12105](https:/facebook/react/pull/12105))

### Create Subscription (New)

* First release of the [new package](https:/facebook/react/tree/master/packages/react-lifecycles-compat) to subscribe to external data sources safely for async rendering. ([@bvaughn](https:/bvaughn) in [#12325](https:/facebook/react/pull/12325))

### React Reconciler (Experimental)

* Expose `react-reconciler/persistent` for building renderers that use persistent data structures. ([@gaearon](https:/gaearon) in [#12156](https:/facebook/react/pull/12156))
* Pass host context to `finalizeInitialChildren()`. ([@jquense](https:/jquense) in [#11970](https:/facebook/react/pull/11970))
* Remove `useSyncScheduling` from the host config. ([@acdlite](https:/acdlite) in [#11771](https:/facebook/react/pull/11771))

### React Call Return (Experimental)

* Fix a crash on updates. ([@rmhartog](https:/rmhartog) in [#11955](https:/facebook/react/pull/11955))

## 16.2.0 (November 28, 2017)

Expand Down

1 comment on commit 2c3f5fb

@uneart
Copy link

@uneart uneart commented on 2c3f5fb May 2, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gaearon How are you generating these changelogs? Are you using a tool like lerna-changelog?

Please sign in to comment.