Skip to content

Commit 2b317d1

Browse files
acdlitebvaughn
authored andcommitted
Merge changes from master into Gatsby branch (#10853)
* Update changelog for unreleased 16.0 changes (#10730) * First shot at updating changelog for 16.0 **what is the change?:** Added an 'unreleased' section to the changelog with info from #10294 **why make this change?:** To get things set for the 16.0 release. **test plan:** Visual inspection **issue:** #8854 * Fix typos and formatting errors in changelog * Add requestAnimationFrame and remove "New helpful warnings" **what is the change?:** In response to helpful code review - - Add mention of dependency on `requestAnimationFrame` and need to polyfill that as well as `Map` and `Set` - Remove "New helpful warnings" section; it was incomplete, and there are so many new and updated warnings that it might not be reasonable to cover them in the changelog. **why make this change?:** Accuracy **test plan:** Visual inspection **issue:** issue #8854 * Improve wording * Improve wording and fix missing links * Add backticks to file names & code; wording tweak * Break "Major Changes" into "New Feature" and "Breaking Changes" * Add server side render changes to 16.0 changelog * Change gist link from mine to gaearons * Add note about returning fragments * fix misc nits * Misc. formatting/wording fixes to changelog **what is the change?:** Thanks to the kind code review comments of @gaearon and @nhunzaker we have - removed the non-deterministic bold styling on some bullet points - improved wording of the bullet points for portals, attribute whitelist changes, and server rendering changes - Add note about error boundaries including a breaking change to error handling behavior. - punctuation and capitalization fixes **why make this change?:** Clarity and correctness **test plan:** Visual inspection **issue:** #8854 * fix broken link * Fixes #9667: Updated createTextInstance to create the text node on correct document (#10723) * Record sizes * Add a changelog for elements having the same key (#10811) * Add a changelog for elements having the same key * Reword * Markdown fixs on "DOM Attributes in React 16" post (#10816) * Include tag name into the table snapshot (#10818) * Update DOM warning wording and link (#10819) * Update DOM warning wording and link * Consistently use "Invalid" for known misspellings * Update license headers BSD+Patents -> MIT Did find and replace in TextMate. ``` find: (?:( \*)( ))?Copyright (?:\(c\) )?(\d{4})\b.+Facebook[\s\S]+(?:this source tree|the same directory)\.$ replace: $1$2Copyright (c) $3-present, Facebook, Inc.\n$1\n$1$2This source code is licensed under the MIT license found in the\n$1$2LICENSE file in the root directory of this source tree. ``` * Change license and remove references to PATENTS Only remaining references: ``` docs/_posts/2014-10-28-react-v0.12.md 51:You can read the full text of the [LICENSE](https://github.com/facebook/react/blob/master/LICENSE) and [`PATENTS`](https://github.com/facebook/react/blob/master/PATENTS) files on GitHub. docs/_posts/2015-04-17-react-native-v0.4.md 20:* **Patent Grant**: Many of you had concerns and questions around the PATENTS file. We pushed [a new version of the grant](https://code.facebook.com/posts/1639473982937255/updating-our-open-source-patent-grant/). src/__mocks__/vendor/third_party/WebComponents.js 8: * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt ``` * Version bumps to use MIT license * Add ReactTestRenderer documentations (#10692) * Add ReactTestRenderer documentations * Add TestRenderer documentations * TestRenderer is not experiment * Add a link for jsdom * Use ES Modules syntax * Twaek * Add a Link component * Use Jest assertions * Move a documentation for createNodeMock to Idea section * Renamed * Tweak * Rename * More explicit * Add a usecase for createNodeMock * Add changelog for 15.6.2 * Add 15.6.2 blog post to master * Add Nate to authors on master * Bump object-assign patch range to match main package.json * Flow should ignore node_modules/create-react-class * Update error codes * Update CHANGELOG for React 16 * v16.0.0 * Doc updates for React 16 + blog post (#10824) * Doc updates for React 16 + blog post * Add link to Sophie's post * Fix React links on the website (#10837) * Fix React links on the website * Fix code editor * Fix code editor, attempt 2 * Doc change for prevContext removal in CDU (#10836) * Doc change for prevContext removal in CDU Ref: #8631 * Minor rewording * Fix note formatting * React.createPortal is not a function (#10843) * Update Portals Documentation (#10840) * Update Portals Documentation Correct some grammar to be more explicit and clear. Update example CodePen to better match code found in documentation. Update code example styles to match other code examples (ie. 'State and Lifecycle', 'Handling Events'). * Clean up comment to be accurate to example There was a small comment overlooked when reviewing the documentation. This fixes it to be accurate to the example as well as grammatically correct. * Update portals.md * More fixes * Update name of property initializer proposal (#10812) The proposal for property initializers is called [Public Class Fields](https://tc39.github.io/proposal-class-public-fields/) now (part of the combined [Class Fields](https://github.com/tc39/proposal-class-fields) proposal). * Fix portal link (#10845) * Update docs for React 16 (#10846) * Minor doc edit * Rename urls
1 parent 57e3b54 commit 2b317d1

File tree

109 files changed

+875
-432
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+875
-432
lines changed

.flowconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<PROJECT_ROOT>/node_modules/chrome-devtools-frontend/.*
88
<PROJECT_ROOT>/node_modules/devtools-timeline-model/.*
99
<PROJECT_ROOT>/www/node_modules/.*
10+
<PROJECT_ROOT>/node_modules/create-react-class/.*
1011
<PROJECT_ROOT>/.*/__mocks__/.*
1112
<PROJECT_ROOT>/.*/__tests__/.*
1213

CHANGELOG.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55
Click to see more.
66
</summary>
77

8+
No unreleased changes yet.
9+
10+
</details>
11+
12+
## 16.0.0 (September 26, 2017)
13+
814
### New JS Environment Requirements
915

1016
* React 16 depends on the collection types [Map](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) and [Set](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set), as well as [requestAnimationFrame](https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame). If you support older browsers and devices which may not yet provide these natively (e.g. <IE11), [you may want to include a polyfill](https://gist.github.com/gaearon/9a4d54653ae9c50af6c54b4e0e56b583).
@@ -47,8 +53,6 @@
4753
- There is no `react-with-addons.js` build anymore. All compatible addons are published separately on npm, and have single-file browser versions if you need them.
4854
- The deprecations introduced in 15.x have been removed from the core package. `React.createClass` is now available as create-react-class, `React.PropTypes` as prop-types, `React.DOM` as react-dom-factories, react-addons-test-utils as react-dom/test-utils, and shallow renderer as react-test-renderer/shallow. See [15.5.0](https://facebook.github.io/react/blog/2017/04/07/react-v15.5.0.html) and [15.6.0](https://facebook.github.io/react/blog/2017/06/13/react-v15.6.0.html) blog posts for instructions on migrating code and automated codemods.
4955

50-
</details>
51-
5256
## 15.6.2 (September 25, 2017)
5357

5458
### All Packages

docs/_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ sass:
6060
gems:
6161
- jekyll-redirect-from
6262
- jekyll-paginate
63-
react_version: 15.4.0
63+
react_version: 16.0.0
6464
react_hashes:
6565
dev: buVLzxzBI8Ps3svVMSUurNdb5dozNidH5Ow4H0YgZeia3t6Oeui2VLpvtAq1fwtK
6666
prod: nCjsa0kjNQPQdxWm12/ReVJzfBJaVubEwwDswyQDGMKYJmeWv3qShMuETfU5fisu

docs/_data/nav_docs.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@
4646
title: Reconciliation
4747
- id: context
4848
title: Context
49+
- id: portals
50+
title: Portals
4951
- id: web-components
5052
title: Web Components
5153
- id: higher-order-components
@@ -65,8 +67,6 @@
6567
title: ReactDOM
6668
- id: react-dom-server
6769
title: ReactDOMServer
68-
- id: react-dom-node-stream
69-
title: ReactDOMNodeStream
7070
- id: dom-elements
7171
title: DOM Elements
7272
- id: events
@@ -77,3 +77,5 @@
7777
title: Shallow Renderer
7878
- id: test-renderer
7979
title: Test Renderer
80+
- id: javascript-environment-requirements
81+
title: JS Environment Requirements

docs/_js/live_editor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ var IS_MOBILE = (
88
|| navigator.userAgent.match(/Windows Phone/i)
99
);
1010

11-
var CodeMirrorEditor = React.createClass({
11+
var CodeMirrorEditor = createReactClass({
1212
propTypes: {
1313
lineNumbers: PropTypes.bool,
1414
onChange: PropTypes.func,
@@ -74,7 +74,7 @@ var selfCleaningTimeout = {
7474
},
7575
};
7676

77-
var ReactPlayground = React.createClass({
77+
var ReactPlayground = createReactClass({
7878
mixins: [selfCleaningTimeout],
7979

8080
MODES: {JSX: 'JSX', JS: 'JS'}, //keyMirror({JSX: true, JS: true}),

docs/_layouts/default.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,9 @@
4949
<script src="https://unpkg.com/[email protected]/mode/xml/xml.js"></script>
5050
<script src="https://unpkg.com/[email protected]/mode/jsx/jsx.js"></script>
5151
<script src="https://unpkg.com/prop-types/prop-types.min.js"></script>
52-
<script src="https://unpkg.com/react/dist/react.min.js"></script>
53-
<script src="https://unpkg.com/react-dom/dist/react-dom.min.js"></script>
52+
<script src="https://unpkg.com/react/umd/react.production.min.js"></script>
53+
<script src="https://unpkg.com/react-dom/umd/react-dom.production.min.js"></script>
54+
<script src="https://unpkg.com/create-react-class/create-react-class.min.js"></script>
5455
<script src="https://unpkg.com/[email protected]/babel.min.js"></script>
5556
<script src="/react/js/live_editor.js"></script>
5657
</head>

docs/_posts/2013-06-05-why-react.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ to render views, which we see as an advantage over templates for a few reasons:
3030
**no manual string concatenation** and therefore less surface area for XSS
3131
vulnerabilities.
3232

33-
We've also created [JSX](/react/docs/jsx-in-depth.html), an optional syntax
33+
We've also created [JSX](/docs/jsx-in-depth.html), an optional syntax
3434
extension, in case you prefer the readability of HTML to raw JavaScript.
3535

3636
## Reactive updates are dead simple.

docs/_posts/2013-06-12-community-roundup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ It looks like [Sophie Alpert](http://sophiebits.com/) is the first person outsid
3838
3939
## Origins of React
4040

41-
[Pete Hunt](http://www.petehunt.net/blog/) explained what differentiates React from other JavaScript libraries in [a previous blog post](/react/blog/2013/06/05/why-react.html). [Lee Byron](http://leebyron.com/) gives another perspective on Quora:
41+
[Pete Hunt](http://www.petehunt.net/blog/) explained what differentiates React from other JavaScript libraries in [a previous blog post](/blog/2013/06/05/why-react.html). [Lee Byron](http://leebyron.com/) gives another perspective on Quora:
4242

4343
> React isn't quite like any other popular JavaScript libraries, and it solves a very specific problem: complex UI rendering. It's also intended to be used along side many other popular libraries. For example, React works well with Backbone.js, amongst many others.
4444
>

docs/_posts/2013-06-19-community-roundup-2.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Mozilla and Google are actively working on Web Components. [Vjeux](http://blog.v
6464

6565
Many of you pointed out differences between JSX and HTML. In order to clear up some confusion, we have added some documentation that covers the four main differences:
6666

67-
- [Whitespace removal](/react/docs/jsx-is-not-html.html)
68-
- [HTML Entities](/react/docs/jsx-is-not-html.html)
69-
- [Comments](/react/docs/jsx-is-not-html.html)
70-
- [Custom HTML Attributes](/react/docs/jsx-is-not-html.html)
67+
- [Whitespace removal](/docs/jsx-is-not-html.html)
68+
- [HTML Entities](/docs/jsx-is-not-html.html)
69+
- [Comments](/docs/jsx-is-not-html.html)
70+
- [Custom HTML Attributes](/docs/jsx-is-not-html.html)

docs/_posts/2013-07-03-community-roundup-4.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ The best part is the demo of how React reconciliation process makes live editing
2323

2424
## React Snippets
2525

26-
Over the past several weeks, members of our team, [Pete Hunt](http://www.petehunt.net/) and [Paul O'Shannessy](http://zpao.com/), answered many questions that were asked in the [React group](https://groups.google.com/forum/#!forum/reactjs). They give a good overview of how to integrate React with other libraries and APIs through the use of [Mixins](/react/docs/reusable-components.html) and [Lifecycle Methods](/react/docs/working-with-the-browser.html).
26+
Over the past several weeks, members of our team, [Pete Hunt](http://www.petehunt.net/) and [Paul O'Shannessy](http://zpao.com/), answered many questions that were asked in the [React group](https://groups.google.com/forum/#!forum/reactjs). They give a good overview of how to integrate React with other libraries and APIs through the use of [Mixins](/docs/reusable-components.html) and [Lifecycle Methods](/docs/working-with-the-browser.html).
2727

2828
> [Listening Scroll Event](https://groups.google.com/forum/#!topic/reactjs/l6PnP8qbofk)
2929
>

0 commit comments

Comments
 (0)