Commit Graph

425 Commits

Author SHA1 Message Date
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 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 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
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 Shergin 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
Dan Abramov 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 Abramov 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
Dominic Gannaway 6aa9936529 improved how bundles are built by exposing externals and making the process less "magical", also tidied up code and added more comments 2017-03-20 14:52:03 +00:00
Sasha Aickin 78761c387f Add unit tests for props to attribute mapping in SSR. (#9106)
* Added a handful of SSR unit tests, ported from a previous pull request.

* Fixing linting errors

* Fixed a test helper function to properly report errors.

* Un-nested the new rendering tests. Updated the fiber test passing/not passing lists.

* Edited to comply with the react/jsx-space-before-closing eslint rule, which will soon be merged into master.

* Response to code review from @spicyj. Moved tests to separate file, reworked wording of test names, corrected use of canUseDom, and simplified tests against tagName. Thanks for the help, @spicyj!

* Converted the unit tests to use async-await style.

* Moved async-await babel transform for tests from .babelrc to preprocessor.js.

* Response to code review in PR #9089. Thanks, @spicyj!

* Fixing some bugs in the SSR unit tests.

* Missed deleting some repeated code in the last commit.

* Adding unit tests for property to attribute mapping in SSR.

* Removing some redundant unit tests.

* Oops. I forgot to re-run record-tests after c593dbc; fixing that here.

* Reformatting for prettier so that the build will pass.
2017-03-19 16:08:55 +00:00
Dominic Gannaway d5b91d36a2 further improved and tidied up build process 2017-03-18 21:04:08 +00:00
Sebastian Markbåge 096975afab Record fiber tests (#9195) 2017-03-16 16:29:05 -07:00
Dan Abramov 8fa5d94cd3 Merge branch 'master' into rollup 2017-03-16 19:44:14 +00:00
Dan Abramov e4fcbecc1e Add a working RN build 2017-03-16 19:10:46 +00:00
Andrew Clark 0e5be287f7 Exit with failing code if prettier throws to ensure CI is blocked 2017-03-16 11:53:44 -07:00
Andrew Clark 7cf2950ebb Pass args as an array 2017-03-16 11:53:44 -07:00
Andrew Clark ecf2e44908 CI should fail if prettier wasn't run 2017-03-16 11:53:44 -07:00
Andrew Clark f365e52dd7 Add prettier script
`scripts/prettier/index.js write` will run prettier on source files.
Run using `yarn prettier`.

`scripts/prettier/index.js` will throw if any source files are not
formatted with prettier. We'll use this to block CI.

Based on similar script in Jest repo.
2017-03-16 11:53:44 -07:00
Dominic Gannaway 04972cde8e tidied up the options for bundles, so they can define what types they output and exclude 2017-03-15 21:48:41 +00:00
Dan Abramov 7a2819042f Work in progress: start adding ReactNative bundle 2017-03-15 21:29:39 +00:00
Dan Abramov 2c9ea97f5e Merge branch 'master' into rollup 2017-03-15 20:09:13 +00:00
Ben Alpert a2716d087e Fix two bugs in version bump script (#9165)
* Fix version bump script when files are missing

* Add noop renderer to version bump script

Without this, grunt build fails due to the version mismatch.
2017-03-13 10:04:14 -07:00
Dan Abramov 1eed4e133a Merge branch 'master' into rollup 2017-03-11 23:39:37 +00:00
Dan Abramov 32eccd55fe Add ReactDOMServer bundle 2017-03-11 21:00:44 +00:00
Dan Abramov d93b8e3cb5 Add ReactART builds 2017-03-11 20:12:25 +00:00
Dan Abramov 3d27a04b2a Add missing forwarding module (oops) 2017-03-11 19:15:12 +00:00
Dan Abramov ae1f7622ca Add all injection necessary for error logging 2017-03-11 03:26:12 +00:00
Dan Abramov 8a92f3347d Remove forwarding modules with implementations
Instead I'm adding them to react-fb in my diff.
2017-03-11 02:33:15 +00:00
Dan Abramov 76ee978f82 Externalize feature flags
This lets www specify them dynamically.
2017-03-11 02:17:49 +00:00
Dan Abramov f102045440 Add DOMProperty to hidden exports 2017-03-11 01:44:00 +00:00
Ben Alpert 19c2649e02 Use fiber by default (#9155)
Affects our builds. But not in tests yet.
2017-03-10 17:06:02 -08:00
Dan Abramov 1cc4278acd Add even more forwarding modules that are used on www 2017-03-11 00:52:48 +00:00
Dan Abramov c2ffdcb2b5 Add more forwarding modules that are used on www 2017-03-10 23:45:39 +00:00
Dan Abramov 4580b6b630 Revert "Work around internal FB transform require() issue"
This reverts commit 0a50b6a90b.
2017-03-10 19:36:53 +00:00
Dan Abramov 3f89a779d5 Merge branch 'master' into rollup 2017-03-10 19:29:46 +00:00
Dan Abramov 95a4fbba62 Fix circular dependencies now that ReactDOM-fb is a GK switch 2017-03-10 18:34:51 +00:00
Dan Abramov b82ba7126d Rename ReactDOM-fb to ReactDOMStack-fb 2017-03-10 18:17:29 +00:00
Dominic Gannaway bd4d7ecb3e improved the build tool 2017-03-10 17:05:03 +00:00
Dan Abramov 1f66be3be1 Fix onlyChild module 2017-03-10 15:58:55 +00:00
Dan Abramov 063067d323 Expose more internal modules to www 2017-03-10 15:30:46 +00:00
Dominic Gannaway 71d6c3b1b5 moved ReactInstanceMap out of React and into ReactDOM and ReactDOMFiber 2017-03-10 15:29:23 +00:00
Dan Abramov 0a50b6a90b Work around internal FB transform require() issue 2017-03-10 15:10:09 +00:00
Dan Abramov b34e7cf7c7 Revert "should improve console output"
This breaks the FB bundles.

This reverts commit 65f11ee64f.
2017-03-10 15:09:54 +00:00