Commit Graph
9350 Commits
Author SHA1 Message Date
Dan AbramovandGitHub cdba19b8ca Fix React.createFactory() crash (#11484)
* Add a failing test for createFactory in production

* Fix createFactory() in production

* Add more prod-only tests

* Fix prettier

* Run prettier 1.8.1
2017-11-08 00:02:07 +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
Andrew ClarkandGitHub 0fec6fd1c1 Performance tool: Warn when interrupting an in-progress tree (#11480)
* Performance tool: Warn when interrupting an in-progress tree

* Include the name of the component that caused the interruption
2017-11-07 16:52:48 +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
Dan Abramov 6e4f8f5061 Updating package versions for release 16.1.0-beta.1 2017-11-07 14:51:36 +00:00
Dan Abramov 1c9d552bb9 Add missing "files" field to react-call-return package 2017-11-07 14:07:37 +00:00
Dan AbramovandGitHub 9eeec6ec9e Amend changelog 2017-11-07 14:02:15 +00:00
TomandDan Abramov 29bc62e9e8 Add warning for componentDidReceiveProps() (#11479)
* Add warning for componentDidReceiveProps()

* Adjust message for componentDidReceiveProps() warning
2017-11-07 14:00: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 e5a221dcfb Amend changelog 2017-11-06 16:19:35 +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
Dan AbramovandGitHub b59c21a397 Expose injectIntoDevTools() to renderers (#11463) 2017-11-06 13:09:02 +00:00
Raphael AmorimandDan Abramov e486b293f7 Use const/let in more places (#11467)
* Convert ReactDOM to const/let
* Convert ReactDOMComponentTree to const/let
* Convert ReactDOMComponentTree to const/let
* Convert getNodeForCharacterOffset to const/let
* Convert getTextContentAccessor to const/let
* Convert inputValueTracking to const/let
* Convert setInnerHTML to const/let
* Convert setTextContent to const/let
* Convert validateDOMNesting to const/let
2017-11-06 11:30:03 +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
Joe LimandDan Abramov 079b554a32 switch ordering of logical and (#11462) 2017-11-05 14:46:46 +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
Jonathan SilvestriandDan Abramov b4d2250569 Rewrite setInnerHTML tests to use Public API. (#11385)
* Rewrite setInnerHTML tests to use Public API.

* Rename variables and drop unnecessary variable assignments.

* Rename testfile to dangerouslySetInnerHTML-test.js

* Properly prettify test file.

* Rewrite SVG tests to verify we recover from missing innerHTML
2017-11-04 18:04:13 +00:00
Mike WilcoxandDan Abramov 37609168db Update getEventKey tests to use public API (#11299) (#11317)
* Add flow annotation to getEventKey.

* Remove Simulate and SimulateNative for native events.

* Style nits

* Oops
2017-11-04 17:11:49 +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
Dan AbramovandGitHub 21450a532e Update changelog 2017-11-04 00:26:29 +00:00
Dan AbramovandGitHub d5e388b4a6 Add a way to suppress DevTools logs and warnings (#11448) 2017-11-04 00:21:12 +00:00
Iacami GevaerdandDan Abramov 2373f551fd Use only public api for ReactDOMEventListener-test.js (#11327)
* Use only public api for ReactDOMEventListener-test.js

* Use less confusing naming

There was no need to extract React elements into separate variables.

* Replace the "disappearance" test

I could not get it to fail on master so it was probably testing something specific to Stack implementation details. It was also already broken because it didn't look at the right argument and never actually called `unmountComponentAtNode`.

Instead I replaced it with original repro case from https://github.com/facebook/react/issues/1105 which is when it was introduced.

* Tweak naming and add comments

* Missed this one
2017-11-03 20:43:56 +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
Alex CordeiroandDan Abramov 45eedaa4d9 Use only public API for EnterLeaveEventPlugin Tests (#11316)
* Use only public API for EnterLeaveEventPlugin Tests (#11299)

* Trigger native event to test EnterLeaveEventPlugin (#11299)

* Rewrite EnterLeaveEventPlugin tests to use dispatchEvent

* Update EnterLeaveEventPlugin test to use OnMouseLeave event

* Add coverage for onMouseEnter too
2017-11-03 19:18:23 +00:00
Dan AbramovandGitHub e532eb4d52 Refer people to "good first issue"
This tag is highlighted by GH. We can still tag them with difficulty.
2017-11-03 18:35:36 +00:00
Dan Abramov fa6d2b986c Record sizes and fix bundle lint 2017-11-03 18:01:53 +00:00
Dan AbramovandGitHub 9ba6a4588e Remove support for passing badly typed elements to shallow renderer (#11442) 2017-11-03 16:16:56 +00:00
Toru KobayashiandDan Abramov 13c5f48dd1 Fix to reset the forceUpdate flag after the update (#11440)
* Fix to reset the forceUpdate flag after the update

* Add support for PureComponent and mirror real behavior closer
2017-11-03 14:29:14 +00:00
Michał MatyasandDan Abramov 85e2de0aeb Fix ReactShallowRenderer not rerendering when calling forceUpdate() (#11439)
* Fix ReactShallowRenderer not rerendering when calling forceUpdate()

* Style nit
2017-11-03 11:03:06 +00:00
Dan AbramovandGitHub 5807091972 Fix typo 2017-11-03 01:17:51 +00:00
Dan AbramovandGitHub ac88223e74 Add a link to RCR explanation 2017-11-03 00:47:54 +00:00
Dan AbramovandGitHub 2474a8fb7b Update changelog 2017-11-03 00:45:22 +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 Vaughn a9a00347bd Updating package versions for release 16.1.0-beta 2017-11-02 15:32:36 -07:00
Brian Vaughn c8376cc0f0 Updating yarn.lock file for 16.1.0-beta release 2017-11-02 15:31:08 -07:00
Brian VaughnandGitHub e92802bdae Auto-install (or update) release script Yarn deps before running (#11434) 2017-11-02 15:21:28 -07:00
Clement HoangandAndrew Clark 358f04eb26 Put createRoot export under a feature flag (#11426) 2017-11-02 15:21:06 -07:00
Dan AbramovandGitHub e78981542d Remove unnecessary 'use strict' in the source (#11433)
* Remove use strict from ES modules

* Delete unused file

This was unused since Stack.
2017-11-02 20:32:48 +00:00