Skip to content

Commit eb6da4e

Browse files
Orta Theroxanandaroop
authored andcommitted
Merge master
Signed-off-by: Anandaroop Roy <[email protected]>
2 parents 46eb94e + d906de7 commit eb6da4e

File tree

514 files changed

+40541
-27098
lines changed

Some content is hidden

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

514 files changed

+40541
-27098
lines changed

.circleci/config.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
version: 2
2+
jobs:
3+
build:
4+
5+
docker:
6+
- image: circleci/node:8
7+
8+
environment:
9+
TZ: /usr/share/zoneinfo/America/Los_Angeles
10+
TRAVIS_REPO_SLUG: facebook/react
11+
12+
parallelism: 4
13+
14+
steps:
15+
- checkout
16+
17+
- run: echo $CIRCLE_COMPARE_URL | cut -d/ -f7
18+
19+
- restore_cache:
20+
name: Restore node_modules cache
21+
keys:
22+
- v1-node-{{ arch }}-{{ .Branch }}-{{ checksum "yarn.lock" }}
23+
- v1-node-{{ arch }}-{{ .Branch }}-
24+
- v1-node-{{ arch }}-
25+
26+
- run:
27+
name: Nodejs Version
28+
command: node --version
29+
30+
- run:
31+
name: Install Packages
32+
command: yarn install
33+
34+
- run:
35+
name: Test Packages
36+
command: ./scripts/circleci/test_entry_point.sh
37+
38+
- save_cache:
39+
name: Save node_modules cache
40+
key: v1-node-{{ arch }}-{{ .Branch }}-{{ checksum "yarn.lock" }}
41+
paths:
42+
- node_modules

.eslintrc.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ const ERROR = 2;
66
module.exports = {
77
extends: 'fbjs',
88

9+
// Stop ESLint from looking for a configuration file in parent folders
10+
'root': true,
11+
912
plugins: [
1013
'react',
1114
'react-internal',
@@ -59,6 +62,8 @@ module.exports = {
5962
},
6063

6164
globals: {
62-
expectDev: true,
65+
spyOnDev: true,
66+
spyOnDevAndProd: true,
67+
spyOnProd: true,
6368
},
6469
};

.flowconfig

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22

33
<PROJECT_ROOT>/fixtures/.*
44
<PROJECT_ROOT>/build/.*
5-
<PROJECT_ROOT>/scripts/.*
5+
<PROJECT_ROOT>/scripts/bench/.*
6+
7+
# These shims are copied into external projects:
8+
<PROJECT_ROOT>/scripts/rollup/shims/facebook-www/.*
9+
<PROJECT_ROOT>/scripts/rollup/shims/react-native/.*
10+
611
<PROJECT_ROOT>/.*/node_modules/y18n/.*
712
<PROJECT_ROOT>/node_modules/chrome-devtools-frontend/.*
813
<PROJECT_ROOT>/node_modules/devtools-timeline-model/.*
@@ -28,10 +33,10 @@ suppress_type=$FlowFixMe
2833
suppress_type=$FixMe
2934
suppress_type=$FlowExpectedError
3035

31-
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(3[0-3]\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*www[a-z,_]*\\)?)\\)
32-
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(3[0-3]\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*www[a-z,_]*\\)?)\\)?:? #[0-9]+
36+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe
37+
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue
3338
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
3439
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
3540

3641
[version]
37-
^0.53.1
42+
^0.57.3

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
2. Run `yarn` in the repository root.
55
3. If you've fixed a bug or added code that should be tested, add tests!
66
4. Ensure the test suite passes (`yarn test`). Tip: `yarn test --watch TestName` is helpful in development.
7-
5. Format your code with [prettier](https://github.com/prettier/prettier) (`yarn prettier`).
8-
6. Make sure your code lints (`yarn lint`). Tip: `yarn linc` to only check changed files.
9-
7. Run the [Flow](https://flowtype.org/) typechecks (`yarn flow`).
10-
8. If you haven't already, complete the CLA.
7+
5. Run `yarn test-prod` to test in the production environment. It supports the same options as `yarn test`.
8+
6. If you need a debugger, run `yarn debug-test --watch TestName`, open `chrome://inspect`, and press "Inspect".
9+
7. Format your code with [prettier](https://github.com/prettier/prettier) (`yarn prettier`).
10+
8. Make sure your code lints (`yarn lint`). Tip: `yarn linc` to only check changed files.
11+
9. Run the [Flow](https://flowtype.org/) typechecks (`yarn flow`).
12+
10. If you haven't already, complete the CLA.
1113

1214
**Learn more about contributing:** https://reactjs.org/docs/how-to-contribute.html

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ chrome-user-data
2020
*.iml
2121
.vscode
2222
*.swp
23-
*.swo
23+
*.swo

.watchmanconfig

Whitespace-only changes.

CHANGELOG.md

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

8+
### React
9+
10+
* Fix a false positive warning in IE11 when using `React.Fragment`. ([@XaveScor](https://github.com/XaveScor) in [#11823](https://github.com/facebook/react/pull/11823))
11+
12+
### React DOM
13+
14+
* Fix minor DOM input bugs in IE and Safari. ([@nhunzaker](https://github.com/nhunzaker) in [#11534](https://github.com/facebook/react/pull/11534))
15+
* Fix containing elements getting focused on SSR markup mismatch. ([@koba04](https://github.com/koba04) in [#11737](https://github.com/facebook/react/pull/11737))
16+
* Fix `value` and `defaultValue` to ignore Symbol values. ([@nhunzaker](https://github.com/nhunzaker) in [#11741](https://github.com/facebook/react/pull/11741))
17+
* Throw with a meaningful message if the component runs after jsdom has been destroyed. ([@gaearon](https://github.com/gaearon) in [#11677](https://github.com/facebook/react/pull/11677))
18+
* Deduplicate warning messages about `<option selected>`. ([@watadarkstar](https://github.com/watadarkstar) in [#11821](https://github.com/facebook/react/pull/11821))
19+
* Deprecate `ReactDOM.unstable_createPortal()` in favor of `ReactDOM.createPortal()`. ([@prometheansacrifice](https://github.com/prometheansacrifice) in [#11747](https://github.com/facebook/react/pull/11747))
20+
21+
### React DOM Server
22+
23+
* Prevent an infinite loop when attempting to render portals with SSR. ([@gaearon](https://github.com/gaearon) in [#11709](https://github.com/facebook/react/pull/11709))
24+
25+
</details>
26+
27+
## 16.2.0 (November 28, 2017)
28+
29+
### React
30+
31+
* Add `Fragment` as named export to React. ([@clemmy](https://github.com/clemmy) in [#10783](https://github.com/facebook/react/pull/10783))
32+
* Support experimental Call/Return types in `React.Children` utilities. ([@MatteoVH](https://github.com/MatteoVH) in [#11422](https://github.com/facebook/react/pull/11422))
33+
34+
### React DOM
35+
36+
* Fix radio buttons not getting checked when using multiple lists of radios. ([@landvibe](https://github.com/landvibe) in [#11227](https://github.com/facebook/react/pull/11227))
37+
* Fix radio buttons not receiving the `onChange` event in some cases. ([@jquense](https://github.com/jquense) in [#11028](https://github.com/facebook/react/pull/11028))
38+
39+
### React Test Renderer
40+
41+
* Fix `setState()` callback firing too early when called from `componentWillMount`. ([@accordeiro](https://github.com/accordeiro) in [#11507](https://github.com/facebook/react/pull/11507))
42+
43+
### React Reconciler
44+
45+
* Expose `react-reconciler/reflection` with utlities useful to custom renderers. ([@rivenhk](https://github.com/rivenhk) in [#11683](https://github.com/facebook/react/pull/11683))
46+
47+
### Internal Changes
48+
49+
* Many tests were rewritten against the public API. Big thanks to [everyone who contributed](https://github.com/facebook/react/issues/11299)!
50+
51+
## 16.1.1 (November 13, 2017)
52+
53+
### React
54+
55+
* Improve the warning about undefined component type. ([@selbekk](https://github.com/selbekk) in [#11505](https://github.com/facebook/react/pull/11505))
56+
57+
### React DOM
58+
59+
* Support string values for the `capture` attribute. ([@maxschmeling](https://github.com/maxschmeling) in [#11424](https://github.com/facebook/react/pull/11424))
60+
61+
### React DOM Server
62+
63+
* Don't freeze the `ReactDOMServer` public API. ([@travi](https://github.com/travi) in [#11531](https://github.com/facebook/react/pull/11531))
64+
* Don't emit `autoFocus={false}` attribute on the server. ([@gaearon](https://github.com/gaearon) in [#11543](https://github.com/facebook/react/pull/11543))
65+
66+
### React Reconciler
67+
68+
* Change the hydration API for better Flow typing. ([@sebmarkbage](https://github.com/sebmarkbage) in [#11493](https://github.com/facebook/react/pull/11493))
69+
70+
## 16.1.0 (November 9, 2017)
71+
872
### Discontinuing Bower Releases
973

1074
Starting with 16.1.0, we will no longer be publishing new releases on Bower. You can continue using Bower for old releases, or point your Bower configs to the [React UMD builds hosted on unpkg](https://reactjs.org/docs/installation.html#using-a-cdn) that mirror npm releases and will continue to be updated.
@@ -33,6 +97,7 @@ Starting with 16.1.0, we will no longer be publishing new releases on Bower. You
3397
* Fix a crash rendering into shadow root. ([@gaearon](https://github.com/gaearon) in [#11037](https://github.com/facebook/react/pull/11037))
3498
* Fix false positive warning about hydrating mixed case SVG tags. ([@gaearon](http://github.com/gaearon) in [#11174](https://github.com/facebook/react/pull/11174))
3599
* Suppress the new unknown tag warning for `<dialog>` element. ([@gaearon](http://github.com/gaearon) in [#11035](https://github.com/facebook/react/pull/11035))
100+
* Warn when defining a non-existent `componentDidReceiveProps` method. ([@iamtommcc](https://github.com/iamtommcc) in [#11479](https://github.com/facebook/react/pull/11479))
36101
* Warn about function child no more than once. ([@andreysaleba](https://github.com/andreysaleba) in [#11120](https://github.com/facebook/react/pull/11120))
37102
* Warn about nested updates no more than once. ([@anushreesubramani](https://github.com/anushreesubramani) in [#11113](https://github.com/facebook/react/pull/11113))
38103
* Deduplicate other warnings about updates. ([@anushreesubramani](https://github.com/anushreesubramani) in [#11216](https://github.com/facebook/react/pull/11216))
@@ -45,6 +110,7 @@ Starting with 16.1.0, we will no longer be publishing new releases on Bower. You
45110

46111
### React DOM Server
47112

113+
* Add a new `suppressHydrationWarning` attribute for intentional client/server text mismatches. ([@sebmarkbage](http://github.com/sebmarkbage) in [#11126](https://github.com/facebook/react/pull/11126))
48114
* Fix markup generation when components return strings. ([@gaearon](http://github.com/gaearon) in [#11109](https://github.com/facebook/react/pull/11109))
49115
* Fix obscure error message when passing an invalid style value. ([@iamdustan](https://github.com/iamdustan) in [#11173](https://github.com/facebook/react/pull/11173))
50116
* Include the `autoFocus` attribute into SSR markup. ([@gaearon](http://github.com/gaearon) in [#11192](https://github.com/facebook/react/pull/11192))
@@ -66,13 +132,12 @@ Starting with 16.1.0, we will no longer be publishing new releases on Bower. You
66132
### React Reconciler (Experimental)
67133

68134
* First release of the [new experimental package](https://github.com/facebook/react/blob/master/packages/react-reconciler/README.md) for creating custom renderers. ([@iamdustan](https://github.com/iamdustan) in [#10758](https://github.com/facebook/react/pull/10758))
135+
* Add support for React DevTools. ([@gaearon](https://github.com/gaearon) in [#11463](https://github.com/facebook/react/pull/11463))
69136

70137
### React Call Return (Experimental)
71138

72139
* First release of the [new experimental package](https://github.com/facebook/react/tree/master/packages/react-call-return) for parent-child communication. ([@gaearon](https://github.com/gaearon) in [#11364](https://github.com/facebook/react/pull/11364))
73140

74-
</details>
75-
76141
## 16.0.0 (September 26, 2017)
77142

78143
### New JS Environment Requirements

CODE_OF_CONDUCT.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Code of Conduct
2+
3+
Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please [read the full text](https://code.facebook.com/pages/876921332402685/open-source-code-of-conduct) so that you can understand what actions will and will not be tolerated.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# [React](https://reactjs.org/) &middot; [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/facebook/react/blob/master/LICENSE) [![npm version](https://img.shields.io/npm/v/react.svg?style=flat)](https://www.npmjs.com/package/react) [![Coverage Status](https://img.shields.io/coveralls/facebook/react/master.svg?style=flat)](https://coveralls.io/github/facebook/react?branch=master) [![CircleCI Status](https://circleci.com/gh/facebook/react.svg?style=shield&circle-token=:circle-token)](https://circleci.com/gh/facebook/react) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](CONTRIBUTING.md#pull-requests)
1+
# [React](https://reactjs.org/) &middot; [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/facebook/react/blob/master/LICENSE) [![npm version](https://img.shields.io/npm/v/react.svg?style=flat)](https://www.npmjs.com/package/react) [![Coverage Status](https://img.shields.io/coveralls/facebook/react/master.svg?style=flat)](https://coveralls.io/github/facebook/react?branch=master) [![CircleCI Status](https://circleci.com/gh/facebook/react.svg?style=shield&circle-token=:circle-token)](https://circleci.com/gh/facebook/react) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://reactjs.org/docs/how-to-contribute.html#your-first-pull-request)
22

33
React is a JavaScript library for building user interfaces.
44

appveyor.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
image: Visual Studio 2017
2+
3+
# Fix line endings in Windows. (runs before repo cloning)
4+
init:
5+
- git config --global core.autocrlf input
6+
7+
environment:
8+
matrix:
9+
- nodejs_version: 8
10+
11+
# Finish on first failed build
12+
matrix:
13+
fast_finish: true
14+
15+
platform:
16+
- x64
17+
18+
branches:
19+
only:
20+
- master
21+
22+
# Disable Visual Studio build and deploy
23+
build: off
24+
deploy: off
25+
26+
install:
27+
- ps: Install-Product node $env:nodejs_version $env:platform
28+
- yarn install
29+
30+
test_script:
31+
- node --version
32+
- yarn lint
33+
# - yarn flow (TODO: investigate why it fails on Windows)
34+
- yarn build
35+
- yarn test
36+
37+
cache:
38+
- node_modules
39+
- "%LOCALAPPDATA%/Yarn"

0 commit comments

Comments
 (0)