Commit Graph
687 Commits
Author SHA1 Message Date
Dan AbramovandGitHub eee769a6fc Run Jest tests with "development" environment (#11612) 2017-11-21 16:28:42 +00:00
Dan AbramovandGitHub 3be0867637 Remove mentions of module map in Jest config (#11611) 2017-11-21 16:01:10 +00:00
Bryce KalowandDan Abramov 0de96c9499 Fixes typo in eslint script (#11607) 2017-11-21 02:46:57 +00:00
Brian VaughnandGitHub 6f7ec1445b Read debugRenderPhaseSideEffects from GK (#11603)
* Forked ReactFeatureFlags for React Native to enable debugRenderPhaseSideEffects GK
* Changed debugRenderPhaseSideEffects in www feature flags to be runtime as well
2017-11-20 14:05:53 -08:00
Andy DaviesandNathan Hunzaker a78269c488 Re-enable UMD build for TestUtils (#11599)
Fixes #11111
2017-11-20 12:41:01 -05:00
Soo Jae HwangandDan Abramov db1ae55908 Improve formatting of errors when building (#11456)
* Improve formatting of errors when building

* Remove undefined from the header when error.plugin is undefined

* Add babel-code-frame and syntax highlighting in error message

* Run yarn prettier and fix code format
2017-11-19 14:23:33 +00:00
Soo Jae HwangandDan Abramov 1cd96705d7 Upgrade rollup dependency (#11591)
* Record build results before upgrading rollup

* Upgrade rollup and record new results.json
2017-11-18 13:49:40 +00:00
Brian VaughnandGitHub 40e278cb27 New feature flags to help detect unexpected lifecycle side effects (#11587)
Added `debugRenderPhaseSideEffects` feature flag to help detect unexpected side effects in pre-commit lifecycle hooks and `setState` reducers.
2017-11-17 10:49:54 -08:00
Andrew ClarkandGitHub f9465022c5 Use requestIdleCallback timeout to force expiration (#11548)
* Don't call idle callback unless there's time remaining

* Expiration fixture

Fixture that demonstrates how async work expires after a certain interval.
The fixture clogs the main thread with animation work, so it only works if the
`timeout` option is provided to `requestIdleCallback`.

* Pass timeout option to requestIdleCallback

Forces `requestIdleCallback` to fire if too much time has elapsed, even if the
main thread is busy. Required to make expiration times work properly. Otherwise,
async work can expire, but React never has a chance to flush it because the
browser never calls into React.
2017-11-15 13:46:17 -08:00
Brian VaughnandGitHub e78d9b1be9 Re-add haste modules for ReactTypes and ReactNativeRTTypes shims (#11557)
* Re-add haste module for ReactNativeRTTypes

* Re-added ReactTypes @providesModule annotation as well

* Updated expected provides modules list

* Improved clarity of check_modules.sh error message

* Added ReactTypes to provides module whitelist
2017-11-15 08:17:15 -08:00
HardikModhaandDan Abramov 8fc35e3d2f Reading package.json safely in the build script by ignoring the system files. #11544 (#11546) 2017-11-13 18:21:17 +00:00
JohnsonandDan Abramov e72ca3598d lint task: update scripts/eslint.js sharing code with linc.js; (#11518)
* (build infrastructure): unify lint and linc buid task;

* Fail on warnings

* Fail on warnings
2017-11-13 17:07:35 +00:00
Dan Abramov 864130edbb Update bundle sizes for 16.1.1 release 2017-11-13 16:11:15 +00:00
Brian VaughnandGitHub 46e8df7792 Release script tweaks (#11504)
* Added missing params object to execUnlessDry call

* Public package names are no longer hard-coded

* Added "v" prefix to git tag

* Show more accurate in-progress duration

* Properly bucket-bridage params

* Prettier

* Publish command logs stack with error
2017-11-09 16:29:51 +00:00
Clement HoangandGitHub 06a2aed1b7 Enable createRoot API in www (#11501) 2017-11-09 15:33:49 +00:00
Dan Abramov 9c9d3c2801 Fix the release script 2017-11-09 15:16:24 +00:00
Dan Abramov a3fd03f0b2 Update bundle sizes for 16.1.0 release 2017-11-09 14:55:57 +00:00
Dan Abramov 726cafb8cc Update bundle sizes for 16.1.0-rc release 2017-11-08 22:59:38 +00:00
Dan AbramovandGitHub 897eaffb57 Consolidate build process with GCC (#11483)
* Consolidate build process with GCC

* Record sizes

* Refactor header and footer wrapping

It is easier to understand if we just explicitly type them out.
2017-11-08 22:37:11 +00:00
Brian VaughnandGitHub 8c4ee30381 Release script follow-up (#11482)
* Add a timeout before querying npm right after publish

* Conditionally log some post publish steps

* Print ready-to-paste 'yarn add' instructions for CRA prerelease testing
2017-11-08 19:59:26 +00:00
Clement HoangandGitHub 2b009a7478 Update prettier to 1.8.1 (#10785)
* Change prettier dependency in package.json version 1.8.1

* Update yarn.lock

* Apply prettier changes

* Fix ReactDOMServerIntegration-test.js

* Fix test for ReactDOMComponent-test.js
2017-11-07 18:09:33 +00:00
Dan AbramovandGitHub fa62b5b203 Add react-call-return to publish list 2017-11-07 16:16:46 +00:00
Dan Abramov 93e56cdc1a Fix error reporting in release script 2017-11-07 15:03:08 +00:00
Dan Abramov ef262ecb5b Update bundle sizes for 16.1.0-beta.1 release 2017-11-07 14:53:31 +00:00
Dan Abramov a2376cf101 Update error codes for 16.1.0-beta.1 release 2017-11-07 14:53:31 +00:00
Kiho · ChamandDan Abramov 097d4b3ea6 minor typo (#11477)
concurently --> concurrently
2017-11-07 09:39:15 +00:00
Dan AbramovandGitHub 3fe0c4d3c5 Correctly replace shims using relative requires (#11472) 2017-11-06 16:53:13 +00:00
Dan AbramovandGitHub b809696ed4 Split static and dynamic www feature flags (#11471) 2017-11-06 16:17:43 +00:00
Dan AbramovandGitHub db77e97a91 Put perf integration behind a feature flag (#11455)
* Enable User Timing API integration with a feature flag

* Expose a way to toggle user timing flag in www

* Update ReactNativeCSFeatureFlags.js

* Update ReactFeatureFlags.js
2017-11-06 16:07:08 +00:00
Dan Abramov 0c6630d1c4 Record sizes 2017-11-06 15:34:42 +00:00
Dan AbramovandGitHub 58510e7864 Fix dead code elimination for feature flags (#11453)
* Fix dead code elimination for feature flags

Turning flags into named exports fixes dead code elimination.

This required some restructuring of how we verify that flag types match up. I used the Check<> trick combined with import typeof, as suggested by @calebmer.

For www, we can no longer re-export `require('ReactFeatureFlags')` directly, and instead destructure it. This means flags have to be known at init time. This is already the case so it's not a problem. In fact it may be better since it removes extra property access in tight paths.

For things that we *want* to be dynamic on www (currently, only performance flag) we can export a function to toggle it, and then put it on the secret exports. In fact this is better than just letting everyone mutate the flag at arbitrary times since we can provide, e.g., a ref counting interface to it.

* Record sizes
2017-11-06 14:14:48 +00:00
Dan AbramovandGitHub a640d36f4b Use Rollup legacy mode for www builds (#11469) 2017-11-06 13:57:15 +00:00
Joe LimandDan Abramov 160673cc40 Handle prettier error (#11466)
* handle prettier error

* error if prettier fail
2017-11-06 11:17:51 +00:00
Joe LimandDan Abramov b5a5eae1b9 Use prettier api (#11458)
* use prettier-api

* fix string to boolean

* fix eslint

* fix typo

* cleanup

* use object assign
2017-11-05 21:06:08 +00:00
Dan AbramovandGitHub 765fd78bad Use named exports in more places (#11457)
* Convert EventPlugin{Hub,Registry} to named exports

* Convert EventPluginUtils to named exports

* Convert EventPropagators to named exports

* Convert ReactControlledComponent to named exports

* Convert ReactGenericBatching to named exports

* Convert ReactDOMComponentTree to named exports

* Convert ReactNativeComponentTree to named exports

* Convert ReactNativeRTComponentTree to named exports

* Convert FallbackCompositionState to named exports

* Convert ReactEventEmitterMixin to named exports

* Convert ReactBrowserEventEmitter to named exports

* Convert ReactNativeEventEmitter to named exports

* Convert ReactDOMEventListener to named exports

* Convert DOMMarkupOperations to named exports

* Convert DOMProperty to named exports

* Add suppression for existing Flow violation

Flow didn't see it before.

* Update sizes
2017-11-05 11:58:36 +00:00
Joe LimandDan Abramov d0b2450044 make linc script cross platform (#11447)
* make linc script cross platform

* fix typo

* attempt to fix long command error

* use eslint node api

* Update linc.js
2017-11-04 18:09:28 +00:00
Dan Abramov 6f2ecf2834 Tweak the bundle validation script
Exit on error, and minor nits.
2017-11-04 13:00:49 +00:00
Soo Jae HwangandDan Abramov 60441eaaba Validate built bundles exists (#11452) 2017-11-04 12:57:48 +00:00
Brian VaughnandGitHub 425a4faf3a Release script follow-up work after 16.1.0-beta release (#11437)
* Build script creates git tag

* Build script post instructions print better relative paths

* Pre-release (<1.0) version numbers also include pre-release suffix (eg '-beta.0')

* Post-NPM-publish step properly handles minor rev comparison check

* Release script also updates @next tag when publishing @latest

* Fixed a typo. Improved inline comment.
2017-11-03 13:19:32 -07:00
Dan Abramov fa6d2b986c Record sizes and fix bundle lint 2017-11-03 18:01:53 +00:00
Brian Vaughn 204a08982f Update bundle sizes for 16.1.0-beta release 2017-11-02 15:34:31 -07:00
Brian Vaughn 593a09bed1 Update error codes for 16.1.0-beta release 2017-11-02 15:34:31 -07:00
Brian VaughnandGitHub e92802bdae Auto-install (or update) release script Yarn deps before running (#11434) 2017-11-02 15:21:28 -07:00
Dan Abramov 2d74e92981 Record sizes 2017-11-02 19:54:58 +00:00
Dan AbramovandGitHub 38f1974d79 Convert the Source to ES Modules (#11389)
* Update transforms to handle ES modules

* Update Jest to handle ES modules

* Convert react package to ES modules

* Convert react-art package to ES Modules

* Convert react-call-return package to ES Modules

* Convert react-test-renderer package to ES Modules

* Convert react-cs-renderer package to ES Modules

* Convert react-rt-renderer package to ES Modules

* Convert react-noop-renderer package to ES Modules

* Convert react-dom/server to ES modules

* Convert react-dom/{client,events,test-utils} to ES modules

* Convert react-dom/shared to ES modules

* Convert react-native-renderer to ES modules

* Convert react-reconciler to ES modules

* Convert events to ES modules

* Convert shared to ES modules

* Remove CommonJS support from transforms

* Move ReactDOMFB entry point code into react-dom/src

This is clearer because we can use ES imports in it.

* Fix Rollup shim configuration to work with ESM

* Fix incorrect comment

* Exclude external imports without side effects

* Fix ReactDOM FB build

* Remove TODOs I don’t intend to fix yet
2017-11-02 19:50:03 +00:00
Dan AbramovandGitHub e8edd7dd2b Update Rollup (#11427)
* Update Rollup

* Strip "use strict" in individual modules

* Record sizes
2017-11-02 16:56:12 +00:00
Dan Abramov 3d4f6db1d8 Record sizes 2017-11-02 16:26:54 +00:00
Dan AbramovandGitHub 2be8f4c909 Validate built bundles with a few ESLint rules (#11432) 2017-11-02 15:50:25 +00:00
Dan AbramovandGitHub 4706f11c4e Depend on prop-types/checkPropTypes, not prop-types itself (#11420)
* Remove prop-types/checkPropTypes reimplementation

* Remove renderer dependency on top-level PropTypes

This annotation is unnecessary because we already warn for bad event listener types.

* Record sizes
2017-11-01 10:57:24 +00:00
Dan Abramov fdd2a194d7 Record sizes 2017-10-31 22:14:22 +00:00