diff --git a/.flowconfig b/.flowconfig index 05e535b6cc1ca..8742e0abc790a 100644 --- a/.flowconfig +++ b/.flowconfig @@ -7,6 +7,7 @@ /node_modules/chrome-devtools-frontend/.* /node_modules/devtools-timeline-model/.* /www/node_modules/.* +/node_modules/create-react-class/.* /.*/__mocks__/.* /.*/__tests__/.* diff --git a/CHANGELOG.md b/CHANGELOG.md index cc79a6f18881b..173d696c613e9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ Click to see more. +No unreleased changes yet. + + + +## 16.0.0 (September 26, 2017) + ### New JS Environment Requirements * 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. - ## 15.6.2 (September 25, 2017) ### All Packages diff --git a/docs/_config.yml b/docs/_config.yml index 0b6d13d4dfc2c..2bc53ec7ff458 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -60,7 +60,7 @@ sass: gems: - jekyll-redirect-from - jekyll-paginate -react_version: 15.4.0 +react_version: 16.0.0 react_hashes: dev: buVLzxzBI8Ps3svVMSUurNdb5dozNidH5Ow4H0YgZeia3t6Oeui2VLpvtAq1fwtK prod: nCjsa0kjNQPQdxWm12/ReVJzfBJaVubEwwDswyQDGMKYJmeWv3qShMuETfU5fisu diff --git a/docs/_data/nav_docs.yml b/docs/_data/nav_docs.yml index c0ba59fd24c64..656e430a5dd15 100644 --- a/docs/_data/nav_docs.yml +++ b/docs/_data/nav_docs.yml @@ -46,6 +46,8 @@ title: Reconciliation - id: context title: Context + - id: portals + title: Portals - id: web-components title: Web Components - id: higher-order-components @@ -65,8 +67,6 @@ title: ReactDOM - id: react-dom-server title: ReactDOMServer - - id: react-dom-node-stream - title: ReactDOMNodeStream - id: dom-elements title: DOM Elements - id: events @@ -77,3 +77,5 @@ title: Shallow Renderer - id: test-renderer title: Test Renderer + - id: javascript-environment-requirements + title: JS Environment Requirements diff --git a/docs/_js/live_editor.js b/docs/_js/live_editor.js index 3a95ac5fbea26..f1d57b31e2ad0 100644 --- a/docs/_js/live_editor.js +++ b/docs/_js/live_editor.js @@ -8,7 +8,7 @@ var IS_MOBILE = ( || navigator.userAgent.match(/Windows Phone/i) ); -var CodeMirrorEditor = React.createClass({ +var CodeMirrorEditor = createReactClass({ propTypes: { lineNumbers: PropTypes.bool, onChange: PropTypes.func, @@ -74,7 +74,7 @@ var selfCleaningTimeout = { }, }; -var ReactPlayground = React.createClass({ +var ReactPlayground = createReactClass({ mixins: [selfCleaningTimeout], MODES: {JSX: 'JSX', JS: 'JS'}, //keyMirror({JSX: true, JS: true}), diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html index f40bec625e4dd..923eceeac6bf7 100644 --- a/docs/_layouts/default.html +++ b/docs/_layouts/default.html @@ -49,8 +49,9 @@ - - + + + diff --git a/docs/_posts/2013-06-05-why-react.md b/docs/_posts/2013-06-05-why-react.md index 6c397ac359510..b38ac97856637 100644 --- a/docs/_posts/2013-06-05-why-react.md +++ b/docs/_posts/2013-06-05-why-react.md @@ -30,7 +30,7 @@ to render views, which we see as an advantage over templates for a few reasons: **no manual string concatenation** and therefore less surface area for XSS vulnerabilities. -We've also created [JSX](/react/docs/jsx-in-depth.html), an optional syntax +We've also created [JSX](/docs/jsx-in-depth.html), an optional syntax extension, in case you prefer the readability of HTML to raw JavaScript. ## Reactive updates are dead simple. diff --git a/docs/_posts/2013-06-12-community-roundup.md b/docs/_posts/2013-06-12-community-roundup.md index 6f80e46259006..44fa10cc08bbd 100644 --- a/docs/_posts/2013-06-12-community-roundup.md +++ b/docs/_posts/2013-06-12-community-roundup.md @@ -38,7 +38,7 @@ It looks like [Sophie Alpert](http://sophiebits.com/) is the first person outsid ## Origins of React -[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: +[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: > 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. > diff --git a/docs/_posts/2013-06-19-community-roundup-2.md b/docs/_posts/2013-06-19-community-roundup-2.md index 18407dab51061..a7bb2721084ec 100644 --- a/docs/_posts/2013-06-19-community-roundup-2.md +++ b/docs/_posts/2013-06-19-community-roundup-2.md @@ -64,7 +64,7 @@ Mozilla and Google are actively working on Web Components. [Vjeux](http://blog.v 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: - - [Whitespace removal](/react/docs/jsx-is-not-html.html) - - [HTML Entities](/react/docs/jsx-is-not-html.html) - - [Comments](/react/docs/jsx-is-not-html.html) - - [Custom HTML Attributes](/react/docs/jsx-is-not-html.html) + - [Whitespace removal](/docs/jsx-is-not-html.html) + - [HTML Entities](/docs/jsx-is-not-html.html) + - [Comments](/docs/jsx-is-not-html.html) + - [Custom HTML Attributes](/docs/jsx-is-not-html.html) diff --git a/docs/_posts/2013-07-03-community-roundup-4.md b/docs/_posts/2013-07-03-community-roundup-4.md index 1172b17a08154..30bfde2186d2b 100644 --- a/docs/_posts/2013-07-03-community-roundup-4.md +++ b/docs/_posts/2013-07-03-community-roundup-4.md @@ -23,7 +23,7 @@ The best part is the demo of how React reconciliation process makes live editing ## React Snippets -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). +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). > [Listening Scroll Event](https://groups.google.com/forum/#!topic/reactjs/l6PnP8qbofk) > diff --git a/docs/_posts/2013-07-17-react-v0-4-0.md b/docs/_posts/2013-07-17-react-v0-4-0.md index d5da1f6272e07..f133a765a5e50 100644 --- a/docs/_posts/2013-07-17-react-v0-4-0.md +++ b/docs/_posts/2013-07-17-react-v0-4-0.md @@ -18,10 +18,10 @@ When you're ready, [go download it](/react/downloads.html)! * Switch from using `id` attribute to `data-reactid` to track DOM nodes. This allows you to integrate with other JS and CSS libraries more easily. * Support for more DOM elements and attributes (e.g., ``) * Improved server-side rendering APIs. `React.renderComponentToString(, callback)` allows you to use React on the server and generate markup which can be sent down to the browser. -* `prop` improvements: validation and default values. [Read our blog post for details...](/react/blog/2013/07/11/react-v0-4-prop-validation-and-default-values.html) -* Support for the `key` prop, which allows for finer control over reconciliation. [Read the docs for details...](/react/docs/multiple-components.html) -* Removed `React.autoBind`. [Read our blog post for details...](/react/blog/2013/07/02/react-v0-4-autobind-by-default.html) -* Improvements to forms. We've written wrappers around ``, `