diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000000000..86fd8c7412554 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,42 @@ +version: 2 +jobs: + build: + + docker: + - image: circleci/node:8 + + environment: + TZ: /usr/share/zoneinfo/America/Los_Angeles + TRAVIS_REPO_SLUG: facebook/react + + parallelism: 4 + + steps: + - checkout + + - run: echo $CIRCLE_COMPARE_URL | cut -d/ -f7 + + - restore_cache: + name: Restore node_modules cache + keys: + - v1-node-{{ arch }}-{{ .Branch }}-{{ checksum "yarn.lock" }} + - v1-node-{{ arch }}-{{ .Branch }}- + - v1-node-{{ arch }}- + + - run: + name: Nodejs Version + command: node --version + + - run: + name: Install Packages + command: yarn install + + - run: + name: Test Packages + command: ./scripts/circleci/test_entry_point.sh + + - save_cache: + name: Save node_modules cache + key: v1-node-{{ arch }}-{{ .Branch }}-{{ checksum "yarn.lock" }} + paths: + - node_modules diff --git a/.eslintrc.js b/.eslintrc.js index ac446e7258025..4645e51855d48 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -6,6 +6,9 @@ const ERROR = 2; module.exports = { extends: 'fbjs', + // Stop ESLint from looking for a configuration file in parent folders + 'root': true, + plugins: [ 'react', 'react-internal', @@ -60,5 +63,7 @@ module.exports = { globals: { spyOnDev: true, + spyOnDevAndProd: true, + spyOnProd: true, }, }; diff --git a/.flowconfig b/.flowconfig index e67a199a5773f..473e96a77ffb9 100644 --- a/.flowconfig +++ b/.flowconfig @@ -8,9 +8,6 @@ /scripts/rollup/shims/facebook-www/.* /scripts/rollup/shims/react-native/.* -# Note: intentionally *don't* ignore /scripts/rollup/shims/rollup/ -# because it is part of the build and isn't external. - /.*/node_modules/y18n/.* /node_modules/chrome-devtools-frontend/.* /node_modules/devtools-timeline-model/.* @@ -42,4 +39,4 @@ suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError [version] -^0.57.3 +^0.61.0 diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 3e93a2c8988b6..b8a0139bd96c1 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -5,9 +5,10 @@ 3. If you've fixed a bug or added code that should be tested, add tests! 4. Ensure the test suite passes (`yarn test`). Tip: `yarn test --watch TestName` is helpful in development. 5. Run `yarn test-prod` to test in the production environment. It supports the same options as `yarn test`. -6. Format your code with [prettier](https://github.com/prettier/prettier) (`yarn prettier`). -7. Make sure your code lints (`yarn lint`). Tip: `yarn linc` to only check changed files. -8. Run the [Flow](https://flowtype.org/) typechecks (`yarn flow`). -9. If you haven't already, complete the CLA. +6. If you need a debugger, run `yarn debug-test --watch TestName`, open `chrome://inspect`, and press "Inspect". +7. Format your code with [prettier](https://github.com/prettier/prettier) (`yarn prettier`). +8. Make sure your code lints (`yarn lint`). Tip: `yarn linc` to only check changed files. +9. Run the [Flow](https://flowtype.org/) typechecks (`yarn flow`). +10. If you haven't already, complete the CLA. **Learn more about contributing:** https://reactjs.org/docs/how-to-contribute.html diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ee9e5014eef0..a84db321ef7d0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,8 +5,49 @@ Click to see more. +### React + +* 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)) + +### React DOM + +* Fix minor DOM input bugs in IE and Safari. ([@nhunzaker](https://github.com/nhunzaker) in [#11534](https://github.com/facebook/react/pull/11534)) +* Fix containing elements getting focused on SSR markup mismatch. ([@koba04](https://github.com/koba04) in [#11737](https://github.com/facebook/react/pull/11737)) +* Fix `value` and `defaultValue` to ignore Symbol values. ([@nhunzaker](https://github.com/nhunzaker) in [#11741](https://github.com/facebook/react/pull/11741)) +* 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)) +* Deduplicate warning messages about `