Skip to content

Commit 80a0f48

Browse files
committed
Merge remote-tracking branch 'upstream/master' into iframes-16
2 parents f8041eb + 2b35923 commit 80a0f48

File tree

298 files changed

+4137
-3208
lines changed

Some content is hidden

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

298 files changed

+4137
-3208
lines changed

.flowconfig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
./scripts/flow
1818

1919
[options]
20-
module.system=haste
21-
2220
esproposal.class_static_fields=enable
2321
esproposal.class_instance_fields=enable
2422
unsafe.enable_getters_and_setters=true

.github/ISSUE_TEMPLATE.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
<!--
2+
Note: if the issue is about documentation or the website, please file it at:
3+
https://github.com/reactjs/reactjs.org/issues/new
4+
-->
5+
16
**Do you want to request a *feature* or report a *bug*?**
27

38
**What is the current behavior?**

README.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# [React](https://reactjs.org/) &middot; [![CircleCI Status](https://circleci.com/gh/facebook/react.svg?style=shield&circle-token=:circle-token)](https://circleci.com/gh/facebook/react) [![Coverage Status](https://img.shields.io/coveralls/facebook/react/master.svg?style=flat)](https://coveralls.io/github/facebook/react?branch=master) [![npm version](https://img.shields.io/npm/v/react.svg?style=flat)](https://www.npmjs.com/package/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)](CONTRIBUTING.md#pull-requests)
22

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

@@ -8,6 +8,20 @@ React is a JavaScript library for building user interfaces.
88

99
[Learn how to use React in your own project](https://reactjs.org/docs/getting-started.html).
1010

11+
## Documentation
12+
13+
You can find the React documentation [on the website](https://reactjs.org/docs).
14+
It is divided into several sections:
15+
16+
* [Quick Start](https://reactjs.org/docs/hello-world.html)
17+
* [Advanced Guides](https://reactjs.org/docs/jsx-in-depth.html)
18+
* [API Reference](https://reactjs.org/docs/react-api.html)
19+
* [Tutorial](https://reactjs.org/tutorial/tutorial.html)
20+
* [Where to Get Support](https://reactjs.org/community/support.html)
21+
* [Contributing Guide](https://reactjs.org/docs/how-to-contribute.html)
22+
23+
You can improve it by sending pull requests to [this repository](https://github.com/reactjs/reactjs.org).
24+
1125
## Examples
1226

1327
We have several examples [on the website](https://reactjs.org/). Here is the first one to get you started:
@@ -49,7 +63,7 @@ The main purpose of this repository is to continue to evolve React core, making
4963

5064
Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read [the full text](https://code.facebook.com/codeofconduct) so that you can understand what actions will and will not be tolerated.
5165

52-
### Contributing Guide
66+
### [Contributing Guide](https://reactjs.org/contributing/how-to-contribute.html)
5367

5468
Read our [contributing guide](https://reactjs.org/contributing/how-to-contribute.html) to learn about our development process, how to propose bugfixes and improvements, and how to build and test your changes to React.
5569

circle.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
machine:
33
timezone: America/Los_Angeles
44
node:
5-
version: 6
5+
version: 8
66
ruby:
77
version: 2.2.3
88
environment:
99
TRAVIS_REPO_SLUG: facebook/react
10-
YARN_VERSION: 0.17.8
10+
YARN_VERSION: 1.2.1
1111
PATH: "${PATH}:${HOME}/.yarn/bin"
1212

1313
dependencies:

fixtures/art/yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ arrify@^1.0.0:
7373
version "1.0.1"
7474
resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d"
7575

76+
art@^0.10.1:
77+
version "0.10.1"
78+
resolved "https://registry.yarnpkg.com/art/-/art-0.10.1.tgz#38541883e399225c5e193ff246e8f157cf7b2146"
79+
7680
asap@~2.0.3:
7781
version "2.0.6"
7882
resolved "https://registry.yarnpkg.com/asap/-/asap-2.0.6.tgz#e50347611d7e690943208bbdafebcbc2fb866d46"
@@ -1741,6 +1745,7 @@ rc@^1.1.7:
17411745
"react-art@file:../../build/packages/react-art":
17421746
version "16.0.0"
17431747
dependencies:
1748+
art "^0.10.1"
17441749
create-react-class "^15.6.2"
17451750
fbjs "^0.8.16"
17461751
loose-envify "^1.1.0"

fixtures/dom/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ A set of DOM test cases for quickly identifying browser issues.
44

55
## Setup
66

7-
To reference a local build of React, first run `npm run build` at the root
7+
To reference a local build of React, first run `yarn build` at the root
88
of the React project. Then:
99

1010
```
1111
cd fixtures/dom
12-
npm install
13-
npm start
12+
yarn
13+
yarn start
1414
```
1515

1616
The `start` command runs a script that copies over the local build of react into

fixtures/dom/yarn.lock

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2672,9 +2672,9 @@ fbjs@^0.8.1, fbjs@^0.8.4:
26722672
setimmediate "^1.0.5"
26732673
ua-parser-js "^0.7.9"
26742674

2675-
fbjs@^0.8.9:
2676-
version "0.8.12"
2677-
resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.12.tgz#10b5d92f76d45575fd63a217d4ea02bea2f8ed04"
2675+
fbjs@^0.8.16:
2676+
version "0.8.16"
2677+
resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.16.tgz#5e67432f550dc41b572bf55847b8aca64e5337db"
26782678
dependencies:
26792679
core-js "^1.0.0"
26802680
isomorphic-fetch "^2.1.1"
@@ -4203,6 +4203,12 @@ loose-envify@^1.0.0, loose-envify@^1.1.0:
42034203
dependencies:
42044204
js-tokens "^2.0.0"
42054205

4206+
loose-envify@^1.3.1:
4207+
version "1.3.1"
4208+
resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.3.1.tgz#d1a8ad33fa9ce0e713d65fdd0ac8b748d478c848"
4209+
dependencies:
4210+
js-tokens "^3.0.0"
4211+
42064212
loud-rejection@^1.0.0:
42074213
version "1.6.0"
42084214
resolved "https://registry.yarnpkg.com/loud-rejection/-/loud-rejection-1.6.0.tgz#5b46f80147edee578870f086d04821cf998e551f"
@@ -4605,7 +4611,7 @@ oauth-sign@~0.8.1:
46054611
version "0.8.2"
46064612
resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.8.2.tgz#46a6ab7f0aead8deae9ec0565780b7d4efeb9d43"
46074613

4608-
object-assign@4.1.1:
4614+
object-assign@4.1.1, object-assign@^4.1.1:
46094615
version "4.1.1"
46104616
resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863"
46114617

@@ -5257,11 +5263,13 @@ promise@^7.1.1:
52575263
dependencies:
52585264
asap "~2.0.3"
52595265

5260-
prop-types@^15.5.6:
5261-
version "15.5.6"
5262-
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.5.6.tgz#797a915b1714b645ebb7c5d6cc690346205bd2aa"
5266+
prop-types@^15.6.0:
5267+
version "15.6.0"
5268+
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.6.0.tgz#ceaf083022fc46b4a35f69e13ef75aed0d639856"
52635269
dependencies:
5264-
fbjs "^0.8.9"
5270+
fbjs "^0.8.16"
5271+
loose-envify "^1.3.1"
5272+
object-assign "^4.1.1"
52655273

52665274
proxy-addr@~1.1.2:
52675275
version "1.1.2"

package.json

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"babel-cli": "^6.6.5",
1111
"babel-core": "^6.0.0",
1212
"babel-eslint": "^7.1.0",
13-
"babel-jest": "21.2.0",
13+
"babel-jest": "^21.3.0-beta.4",
1414
"babel-plugin-check-es2015-constants": "^6.5.0",
1515
"babel-plugin-external-helpers": "^6.22.0",
1616
"babel-plugin-syntax-trailing-function-commas": "^6.5.0",
@@ -53,6 +53,7 @@
5353
"eslint-plugin-flowtype": "^2.25.0",
5454
"eslint-plugin-react": "^6.7.1",
5555
"eslint-plugin-react-internal": "file:./scripts/eslint-rules",
56+
"expect": "^21.3.0-beta.4",
5657
"fbjs": "^0.8.16",
5758
"fbjs-scripts": "^0.6.0",
5859
"filesize": "^3.5.6",
@@ -63,11 +64,10 @@
6364
"gzip-js": "~0.3.2",
6465
"gzip-size": "^3.0.0",
6566
"jasmine-check": "^1.0.0-rc.0",
66-
"jest": "21.2.1",
67-
"jest-config": "21.2.1",
68-
"jest-jasmine2": "21.2.1",
69-
"jest-matchers": "20.1.0-delta.1",
70-
"jest-runtime": "21.2.1",
67+
"jest": "^21.3.0-beta.4",
68+
"jest-config": "^21.3.0-beta.4",
69+
"jest-jasmine2": "^21.3.0-beta.4",
70+
"jest-runtime": "^21.3.0-beta.4",
7171
"merge-stream": "^1.0.0",
7272
"minimist": "^1.2.0",
7373
"ncp": "^2.0.0",
@@ -115,9 +115,6 @@
115115
"transform": {
116116
".*": "./scripts/jest/preprocessor.js"
117117
},
118-
"transformIgnorePatterns": [
119-
"/node_modules/(?!react)"
120-
],
121118
"setupFiles": [
122119
"./scripts/jest/setup.js",
123120
"./scripts/jest/environment.js"

packages/events/EventPluginHub.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,18 @@
33
*
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
6-
*
7-
* @providesModule EventPluginHub
86
*/
97

108
'use strict';
119

12-
var EventPluginRegistry = require('EventPluginRegistry');
13-
var EventPluginUtils = require('EventPluginUtils');
14-
var ReactErrorUtils = require('ReactErrorUtils');
15-
16-
var accumulateInto = require('accumulateInto');
17-
var forEachAccumulated = require('forEachAccumulated');
10+
var ReactErrorUtils = require('shared/ReactErrorUtils');
1811
var invariant = require('fbjs/lib/invariant');
1912

13+
var EventPluginRegistry = require('./EventPluginRegistry');
14+
var EventPluginUtils = require('./EventPluginUtils');
15+
var accumulateInto = require('./accumulateInto');
16+
var forEachAccumulated = require('./forEachAccumulated');
17+
2018
/**
2119
* Internal queue of events that have accumulated their dispatches and are
2220
* waiting to have their dispatches executed.

packages/events/EventPluginRegistry.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,23 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*
7-
* @providesModule EventPluginRegistry
87
* @flow
98
*/
109

1110
'use strict';
1211

13-
import type {DispatchConfig} from 'ReactSyntheticEventType';
12+
import type {DispatchConfig} from './ReactSyntheticEventType';
13+
import type {
14+
AnyNativeEvent,
15+
PluginName,
16+
PluginModule,
17+
} from './PluginModuleType';
1418

15-
import type {AnyNativeEvent, PluginName, PluginModule} from 'PluginModuleType';
19+
var invariant = require('fbjs/lib/invariant');
1620

1721
type NamesToPlugins = {[key: PluginName]: PluginModule<AnyNativeEvent>};
18-
1922
type EventPluginOrder = null | Array<PluginName>;
2023

21-
var invariant = require('fbjs/lib/invariant');
22-
2324
/**
2425
* Injectable ordering of event plugins.
2526
*/

0 commit comments

Comments
 (0)