Commit Graph

473 Commits

Author SHA1 Message Date
Dominic Gannaway 794e0b908e moved around plugin order to try and fix deadcode requires as per https://github.com/rollup/rollup/issues/855 2017-03-30 20:31:17 +01:00
Dominic Gannaway 589305637a per bundle property mangling added 2017-03-30 18:08:17 +01:00
Dominic Gannaway e1fbc7a39d Merge branch 'rollup' of github.com:trueadm/react into rollup 2017-03-30 17:26:59 +01:00
Dominic Gannaway 221b611070 added basic mangle support (disbaled by default) 2017-03-30 17:26:52 +01:00
Dan Abramov d86e827de1 Ensure requires stay at the top 2017-03-29 18:37:47 +01:00
Dan Abramov 7e7ca633b5 Remove TEST env 2017-03-29 17:20:23 +01:00
Dominic Gannaway 272a6d4cb0 adds -test to provides module name 2017-03-29 16:52:40 +01:00
Dominic Gannaway ee37df120b allows both ReactCurrentOwner and react/lib/ReactCurrentOwner 2017-03-29 16:50:50 +01:00
Dominic Gannaway 33fa7c3e6f adds a FB_TEST bundle 2017-03-29 16:43:11 +01:00
Dominic Gannaway 0e0bb5ae74 added a WIP solution for ReactCurrentOwner on FB DEV 2017-03-29 16:06:09 +01:00
Dominic Gannaway 024881150e fixed an issue with stubbed modules not properly being replaced due to greedy replacement 2017-03-29 14:50:06 +01:00
Dominic Gannaway 99df11dfcb Merge branch 'rollup' of github.com:trueadm/react into rollup 2017-03-29 14:12:19 +01:00
Dominic Gannaway 1ed2b030f2 Fixes Jest so it run tests correctly 2017-03-29 14:12:07 +01:00
Dan Abramov 77add81e28 Merge branch 'master' into rollup 2017-03-29 13:59:44 +01:00
Dominic Gannaway 28e9cb240f fixed fixtures and updated cjs/umd paths 2017-03-29 13:00:00 +01:00
Dominic Gannaway 607b021d49 added external babel helpers plugin 2017-03-29 11:42:07 +01:00
Sasha Aickin aaabd655a6 Added jest-cli to the package.json for the Fiber record-tests script. (#9270) 2017-03-28 22:55:22 +01:00
Dominic Gannaway f79b32a6af keeps comments in prod 2017-03-27 19:21:07 +01:00
Dan Abramov 02a0b8c7bc Use right haste names 2017-03-27 18:35:17 +01:00
Nathan Hunzaker 29d9710892 Fix Chrome number input backspace and invalid input issue (#7359)
* Only re-assign defaultValue if it is different

* Do not set value if it is the same

* Properly cover defaultValue

* Use coercion to be smart about value assignment

* Add explanation of loose type checks in value assignment.

* Add test coverage for setAttribute update.

* Only apply loose value check to text inputs

* Fix case where empty switches to zero

* Handle zero case in controlled input

* Correct mistake with default value assignment after rebase

* Do not assign bad input to number input

* Only trigger number input value attribute updates on blur

* Remove reference to LinkedValueUtils

* Record new fiber tests

* Add tests for blurred number input behavior

* Replace onBlur wrapper with rule in ChangeEventPlugin

* Sift down to only number inputs

* Re-record fiber tests

* Add test case for updating attribute on uncontrolled inputs. Make related correction

* Handle uncontrolled inputs, integrate fiber

* Reorder boolean to mitigate DOM checks

* Only assign value if it is different

* Add number input browser test fixtures

During the course of the number input fix, we uncovered many edge
cases. This commit adds browser test fixtures for each of those instances.

* Address edge case preventing number precision lower than 1 place

0.0 coerces to 0, however they are not the same value when doing
string comparision. This prevented controlled number inputs from
inputing the characters `0.00`.

Also adds test cases.

* Accommodate lack of IE9 number input support

IE9 does not support number inputs. Number inputs in IE9 fallback to
traditional text inputs. This means that accessing `input.value` will
report the raw text, rather than parsing a numeric value.

This commit makes the ReactDOMInput wrapper check to see if the `type`
prop has been configured to `"number"`. In those cases, it will
perform a comparison based upon `parseFloat` instead of the raw input
value.

* Remove footnotes about IE exponent issues

With the recent IE9 fix, IE properly inserts `e` when it produces an
invalid number.

* Address exception in IE9/10 ChangeEventPlugin blur event

On blur, inputs have their values assigned. This is so that number
inputs do not conduct unexpected behavior in
Chrome/Safari. Unfortunately, there are cases where the target
instance might be undefined in IE9/10, raising an exception.

* Migrate over ReactDOMInput.js number input fixes to Fiber

Also re-record tests

* Update number fixtures to use latest components

* Add number input test case for dashes and negative numbers

* Replace trailing dash test case with replace with dash

Also run prettier
2017-03-27 11:39:18 -05:00
Dominic Gannaway ceeebd8e56 added __DEV__ flag behind a footer/header 2017-03-27 16:53:39 +01:00
Dominic Gannaway 65aae08bd1 added a __DEV__ wrapping code to FB_DEV 2017-03-27 16:38:13 +01:00
Dominic Gannaway 88293c7180 added shims for DEV only code so it does not get included in prod bundles 2017-03-27 16:02:42 +01:00
Dominic Gannaway b025c43487 Added init() dev block to ReactTestUtils 2017-03-27 15:46:18 +01:00
Dominic Gannaway 4e81eac859 Merge branch 'rollup' of github.com:trueadm/react into rollup 2017-03-27 15:26:00 +01:00
Dominic Gannaway c95ee10aee should no longer mangle FB_PROD output 2017-03-27 15:25:50 +01:00
Dan Abramov 5f994ee71b Remove deps on specific builds from shims 2017-03-27 15:23:30 +01:00
Dominic Gannaway 9e5271ab45 splits FB into FB_DEV and FB_PROD 2017-03-27 15:07:47 +01:00
Dominic Gannaway d526452b0b fixed merge conflicts with upstream master 2017-03-27 12:32:58 +01:00
Dominic Gannaway 7afb09ea00 updated error codes 2017-03-27 11:52:09 +01:00
Sasha Aickin c51411c812 Adding new SSR tests for context, refs, and reviving markup. (#9257) 2017-03-26 13:32:23 -07:00
Dan Abramov 9347ca0115 Work around Jest issue with CurrentOwner shared state in www 2017-03-25 00:55:10 +00:00
Dan Abramov 56c42b53fd Revert "😭😭😭"
This reverts commit 7dba33b2cf.
2017-03-25 00:05:18 +00:00
Sasha Aickin 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
Sasha Aickin 25deff6203 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 13:31:15 -07: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
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
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