Commit Graph
8456 Commits
Author SHA1 Message Date
Brian VaughnandDan Abramov 71a87bcfee Updating packages for 16.0.0-alpha.6 release 2017-03-24 23:16:34 +00:00
Brian VaughnandDan Abramov c5156eb0be ReactElementValidator uses temporary ReactNative View propTypes getter (#9256) 2017-03-24 23:16:24 +00:00
Sasha AickinandDan Abramov 60e78e37b8 Add more SSR unit tests for elements and children. (#9221)
* Adding more SSR unit tests for elements and children.

* Some of my SSR tests were testing for react-text and react-empty elements that no longer exist in Fiber. Fixed the tests so that they expect correct markup in Fiber.

* Tweaked some test names after @gaearon review comment https://github.com/facebook/react/pull/9221#discussion_r107045673 . Also realized that one of the tests was essentially a direct copy of another, so deleted it.

* Responding to code review https://github.com/facebook/react/pull/9221#pullrequestreview-28996315 . Thanks @spicyj!
2017-03-24 23:16:24 +00:00
Dan Abramov 7dba33b2cf 😭😭😭 2017-03-24 23:16:19 +00:00
Dan Abramov 4691521ccb Merge branch 'master' into rollup 2017-03-24 18:19:44 +00:00
Dan AbramovandGitHub 0a41890eaa Remove rethrowCaughtError injection (#9252) 2017-03-24 18:19:12 +00:00
Dominic Gannaway 0fd8aa604f removed react-native-renderer package and made build make a react-native build dir instead 2017-03-24 18:01:18 +00:00
Dominic Gannaway b5bdf70036 Merge branch 'rollup' of github.com:trueadm/react into rollup 2017-03-24 17:40:16 +00:00
Dominic Gannaway b4f9895c9c building facebook-www/build is now all sync to prevent IO issues plus handles extra facebook-www src assets 2017-03-24 17:25:01 +00:00
Dominic Gannaway beaf32c0a9 removed unnecessary resolve 2017-03-24 16:57:10 +00:00
Dominic Gannaway 8af3ca2274 facebook-www shims now get copied over correctly to build 2017-03-24 16:56:23 +00:00
Dan Abramov bd4ff9d6bf Unflowify shims 2017-03-24 16:22:05 +00:00
Johan TinglöfandBrandon Dail 38d8f3ee6b Updated Router import for example (#9233)
Updated import in order to be a correct working example as in accordance with the docs
2017-03-24 09:37:32 -05:00
Dan Abramov a57e1403d9 Tweak reactComponentExpect to make it standalone-ish in www 2017-03-23 21:25:59 +00:00
Dan Abramov c84f4e03bc Add missing ReactErrorUtils shim 2017-03-23 21:15:30 +00:00
Dan Abramov 05bd00af2e More descriptive filenames 2017-03-23 20:32:36 +00:00
Dan Abramov 4458f156ad Move files around 2017-03-23 20:32:05 +00:00
Dan Abramov d09410ba97 Fix Haste name 2017-03-23 20:22:13 +00:00
Dan Abramov 779d5bd040 Fix merge conflict 2017-03-23 19:55:23 +00:00
Dan Abramov f082e35b36 Fix up invariant import to be from fbjs/lib/ 2017-03-23 19:45:10 +00:00
Dan AbramovandDan Abramov 4d1584b055 Fix ReactErrorUtils injection (#9247) 2017-03-23 19:43:22 +00:00
Dan AbramovandDan Abramov 26fa2cdedc Add dynamic injection to ReactErrorUtils (#9246) 2017-03-23 19:43:22 +00:00
Brian VaughnandDan Abramov 07a963a5f4 Updated ReactNative findNodeHandle() to handle number case (#9238) 2017-03-23 19:43:22 +00:00
Dan AbramovandGitHub d6a2c669d2 Fix ReactErrorUtils injection (#9247) 2017-03-23 19:13:07 +00:00
Dan AbramovandGitHub 1c9dcd53d5 Add dynamic injection to ReactErrorUtils (#9246) 2017-03-23 18:45:38 +00:00
Dominic Gannaway 700894a202 updated release doc to reflect some rollup changes 2017-03-23 17:20:26 +00:00
Dominic Gannaway 47e805711d changed pathing to use build rather than build/rollup 2017-03-23 16:46:04 +00:00
Dominic Gannaway dd0ae1a233 moved shims to shims directory in rollup scripts 2017-03-23 16:21:36 +00:00
Dominic Gannaway 37d334b314 added extractErrors warning 2017-03-23 16:20:25 +00:00
Dominic Gannaway c81f2fbd7f added extract-errors support 2017-03-23 16:15:28 +00:00
Dominic Gannaway b4100edba2 fixed fixture path changes 2017-03-23 15:36:23 +00:00
Brian VaughnandGitHub c8897f8382 Updated ReactNative findNodeHandle() to handle number case (#9238) 2017-03-23 08:16:52 -07:00
Dominic Gannaway 02b70bc3c5 renamed bundles and paths 2017-03-23 15:02:44 +00:00
Dominic Gannaway e8a2318d0c added react-test-renderer bundles 2017-03-23 13:45:22 +00:00
Dominic Gannaway feda028b80 removed all react/lib/* dependencies from appearing in bundles created on build 2017-03-22 19:31:37 +00:00
Dominic Gannaway 373e15b4a7 fixed merge conflict 2017-03-22 19:14:19 +00:00
Dominic Gannaway 39a8b69230 updated internal modules (WIP) 2017-03-22 19:13:01 +00:00
Dominic Gannaway e8f49c4679 Improved UMD bundles, added better fixture testing and doc plus prod builds 2017-03-22 19:01:11 +00:00
Dan Abramov b0b9f37960 Fix up Flow syntax 2017-03-22 18:41:42 +00:00
Dan AbramovandGitHub 8de9c6c12c Add injection for error dialog (#9235) 2017-03-22 18:21:12 +00:00
Bernard LinandBrandon Dail fbc6977fbc Conferences (#9234)
* standard format for React Rally

* move React Conf 2017 to past conferences
2017-03-22 10:40:13 -05:00
Brian Vaughn 8ce5fe97b5 Bumped React version to 16.0.0-alpha.5 2017-03-21 13:04:08 -07:00
Dominic Gannaway 0e2f67168b added NPM package creation and copying into build chain 2017-03-21 18:57:51 +00:00
Dominic Gannaway 4a578dbc65 Fixed merge conflicts in ReactNative.js and ReactMethodsMixin.js 2017-03-21 14:10:04 +00:00
Dominic Gannaway 14324bc927 added NODE_DEV and NODE_PROD 2017-03-21 13:56:52 +00:00
Valentin SherginandBen Alpert 97ab3f5ef8 Removed optimization for events without target in ReactNativeEventEmitter (#9219)
* Removed optimization for events without target in ReactNativeEventEmitter

This PR fixes the problem originally introduced in https://github.com/facebook/react/pull/6590
The problem is that `ResponderEventPlugin` (and `ResponderTouchHistoryStore`) relies on that fact that touch events are balanced.
So if one `startish` event happened, should be coming `endish` event. Otherwise there is no way to maintain internal `trackedTouchCount` counter. So, if we drop some events, we break this logic.

Moreover, that optimization clearly contradict with this statement from `ResponderEventPlugin`:
```
We must be resilient to `targetInst` being `null` on `touchMove` or
`touchEnd`. On certain platforms, this means that a native scroll has
assumed control and the original touch targets are destroyed.
```

This issue causes several major problems in React Native, and one of them (finally!) is easy to reproduce: https://github.com/facebook/react-native/issues/12976 .

The test also illustrates this problem.

* Prettier
2017-03-20 17:07:28 -07:00
Brian VaughnandGitHub 7f665da0ee ReactNative upstream sync (#9197)
* Addresses a circular dependency between NativeMethodsMixin and ReactNativeFiber:

* Created new ReactNativeFiberHostComponent with similar interface but without unnecessary call to findNodeHandle.
* Created new Flow interface for mixins to ensure ReactNativeFiberHostComponent and NativeMethodsMixinUtils stay synced.
* Moved helper methods to NativeMethodsMixinUtils to be shared between the 2 wrappers.

This diff was submitted and reviewed internally along with some other ReactNative changes. This is the React-only portion.

* Removed unused Flow type import

* Copied a Flow fix from internal
2017-03-20 13:50:31 -07:00
Dan AbramovandGitHub e15a481773 Re-add tests unintentionally deleted in #9209 (#9225)
These tests are useful and don't test addons specifically.
I moved them to appropriate places in the codebase.
2017-03-20 19:38:54 +00:00
Dominic Gannaway 9255c6483d better handling of bundling ReactCurrentOwner and accessing it from renderer modules 2017-03-20 16:51:13 +00:00
Dan AbramovandGitHub 34e4352cba Delete addons (#9209)
* Delete addons

* Remove ReactFragment dependency from tests

* Remove addons testing from fixtures

* Don't mention createFragment() in a warning

* Address feedback

* Remove unused variables

* Remove mention of deleted file

* Add a missing key to the test

* Fix lint
2017-03-20 16:15:01 +00:00