Commit Graph
1333 Commits
Author SHA1 Message Date
d13433c2fe Attach Listeners Eagerly to Roots and Portal Containers (#19659)
* Failing test for #19608

* Attach Listeners Eagerly to Roots and Portal Containers

* Forbid createEventHandle with custom events

We can't support this without adding more complexity. It's not clear that this is even desirable, as none of our existing use cases need custom events. This API primarily exists as a deprecation strategy for Flare, so I don't think it is important to expand its support beyond what Flare replacement code currently needs. We can later revisit it with a better understanding of the eager/lazy tradeoff but for now let's remove the inconsistency.

* Reduce risk by changing condition only under the flag

Co-authored-by: koba04 <[email protected]>
2020-08-24 16:50:20 +01:00
Julien GilliandGitHub 24b8c2a66d provide profiling bundle for react-reconciler (#19559) 2020-08-19 14:11:27 +01:00
Timothy YungandGitHub 2a00a30b07 Append text string to <Text> error message (#19581)
* Append text string to <Text> error message

* Truncate text in <Text> error message

* Regenerate `codes.json`
2020-08-17 10:47:49 -07:00
2bf141b574 refactor fb.me redirect link to reactjs.org/link (#19598)
* refactor fb.me url to reactjs.org/link

* Update ESLintRuleExhaustiveDeps-test.js

* Update ReactDOMServerIntegrationUntrustedURL-test.internal.js

* Update createReactClassIntegration-test.js

* Update ReactDOMServerIntegrationUntrustedURL-test.internal.js

Co-authored-by: Dan Abramov <[email protected]>
2020-08-17 13:25:50 +01:00
Toru KobayashiandGitHub ef7ec502ba fix: leak strict mode with UMD builds (#19614) 2020-08-15 14:42:49 +01:00
Andrew ClarkandGitHub c3c5f85dd5 [Scheduler] Call postTask directly (#19551)
This updates the experimental Scheduler postTask build to call postTask
directly, instead of managing our own custom queue and work loop.

We still use a deadline 5ms mechanism to implement `shouldYield`.

The main thing that postTask is currently missing is the continuation
feature — when yielding to the main thread, the yielding task is sent
to the back of the queue, instead of maintaining its position.

While this would be nice to have, even without it, postTask may be good
enough to replace our userspace implementation.

We'll run some tests to see.
2020-08-12 08:39:47 -05:00
Andrew ClarkandGitHub 082ba4fa61 Parallelize Jest in CI (#19552)
Uses CircleCI's `parallelism` key to split our test jobs across multiple
processes, like we do for the build job.
2020-08-07 16:32:59 -04:00
Dan Abramov da936f89c5 Indent a command 2020-08-07 19:24:49 +01:00
Dan Abramov 5b16347122 Fix command 2020-08-07 19:23:43 +01:00
Dominic GannawayandGitHub cd2ab43b72 Remove the deprecated React Flare event system (#19520) 2020-08-05 15:13:29 +01:00
Halit OguncandGitHub 48cfe4b2d3 fix: typo in React Release Scripts (#19524) 2020-08-04 13:22:50 -04:00
RickyandGitHub e237cd732b Use RN fork in default branch of feature flags (#19522) 2020-08-03 17:40:58 -04:00
RickyandGitHub f5c6351a77 Turn off new component stacks for React Native (#19521) 2020-08-03 14:45:50 -04:00
Dan AbramovandGitHub 4d84d769e5 Support untagged releases (#19509) 2020-07-31 20:47:28 +01:00
Dan AbramovandGitHub a647a5db98 Revert "Support untagged releases (#19507)" (#19508)
This reverts commit 3ad5a6ce45.
2020-07-31 19:57:32 +01:00
Dan AbramovandGitHub 3ad5a6ce45 Support untagged releases (#19507)
* Support untagged releases

* Fix
2020-07-31 19:18:37 +01:00
Dan AbramovandGitHub aaf1aeeef7 Allow publishing untagged releases (#19505) 2020-07-31 16:10:01 +01:00
RickyandGitHub 491069d2d9 Use feature flags for React Native in the test renderer (#19486) 2020-07-29 16:31:05 -04:00
RickyandGitHub 0cd84ab286 Add postTask browser scheduler implementation (#19479)
* Reduce code to necessities

* Switch to postTask API

* Add SchedulerPostTask tests

* Updates from review

* Fix typo from review

* Generate build of unstable_post_task
2020-07-29 15:27:59 -04:00
RickyandGitHub 821558fdb9 Add SchedulerHostConfig fork for post task (#19470) 2020-07-28 11:11:31 -04:00
RickyandGitHub b741ff63f2 Generate RN renderers for stable builds (#19421)
* Generate RN renderers for experimental builds

* Don't generate FB builds for experimental channels
2020-07-20 17:15:06 -04:00
Sebastian MarkbågeandGitHub a610d6a78d isFBBundle should be true if it's FB for www or FB for RN (#19420)
This ensures that the .fb.js override files kick in for RN. Otherwise we
won't have FB specific exports in the isomorphic modules.
2020-07-20 10:37:04 -07:00
RickyandGitHub 40adf8ea46 Use jest-environment-jsdom-sixteen (#19288)
* Use jest-environment-jsdom-sixteen

* Update yarn.lock

* Dedupe new jest packages in yarn.lock

* Pull upstream changes
2020-07-16 10:17:31 -04:00
Dan Abramov c64c999ba9 Don't build shallow renderer UMD bundles 2020-07-15 16:53:02 +01:00
Dan Abramov 549d613298 Tweak wording 2020-07-10 14:56:28 +01:00
Brian VaughnandGitHub c8d62c859b Fixed test script for DevTools build config (#19295) 2020-07-09 10:49:33 -04:00
Dominic GannawayandGitHub 894eeff0ea Refactor createEventHandle signature (#19174) 2020-07-07 13:05:06 +01:00
Dominic GannawayandGitHub 4bbe79bcfa Handle test-cli failure case for CI (#19265) 2020-07-06 22:05:51 +01:00
Dan AbramovandGitHub 20a1753cee Fork legacy-events folder into react-dom and react-native (#19228) 2020-07-01 16:37:13 +01:00
Dan AbramovandGitHub d8653ee0fc Move responder tests and remove dead code (#19226) 2020-07-01 16:20:49 +01:00
Dominic GannawayandGitHub 96a726eeb4 Remove React Flare Keyboard responder (#19222) 2020-07-01 15:43:16 +01:00
Dan AbramovandGitHub 455f1bd1cc Revert "Add regression test for #18497 (#18538)" (#19215)
This reverts commit 7ef0785791.
2020-06-30 13:38:31 +01:00
Vetrivel ChinnasamyandGitHub f247ad56ad make link https (#19147) 2020-06-30 12:43:52 +01:00
Sophie AlpertandGitHub 7ef0785791 Add regression test for #18497 (#18538) 2020-06-30 12:09:05 +01:00
Brian VaughnandGitHub 62f46bed52 Fixed test script handling of unknown/additional args (#19209) 2020-06-29 15:36:45 -04:00
RickyandGitHub 8b1c33f50d Add new test cli (#19184)
* Add new test cli

* Remove --variant accidentally added to test-persist

* s/test/tests

* Updates from review

* Update package.json tests

* Missed a release channel in circle.yaml

* Update config.yml to use just run: with test commands

* Update release-channel options and add build dir checks

* Update test args to use the new release-channel options

* Fix error in circle config.yml

* Fix a wrong condition for the --variant check

* Fix a wrong condition for the --persistent check

* Prettier

* Require build check for devtool tests as well
2020-06-25 20:39:50 -04:00
Brian VaughnandGitHub bb6dff5b51 Updates the DevTools test script to make it easier to test other URLs. (#19179) 2020-06-23 11:48:35 -04:00
RickyandGitHub 7c9c5ff51c Fix spelling errors and typos (#19138) 2020-06-15 19:59:44 -04:00
Andrew ClarkandGitHub 83672c676b Land Lanes implementation in old fork (#19108)
* Add autofix to cross-fork lint rule

* replace-fork: Replaces old fork contents with new

For each file in the new fork, copies the contents into the
corresponding file of the old fork, replacing what was already there.

In contrast to merge-fork, which performs a three-way merge.

* Replace old fork contents with new fork

First I ran  `yarn replace-fork`.

Then I ran `yarn lint` with autofix enabled. There's currently no way to
do that from the command line (we should fix that), so I had to edit the
lint script file.

* Manual fix-ups

Removes dead branches, removes prefixes from internal fields.  Stuff
like that.

* Fix DevTools tests

DevTools tests only run against the old fork, which is why I didn't
catch these earlier.

There is one test that is still failing. I'm fairly certain it's related
to the layout of the Suspense fiber: we no longer conditionally wrap the
primary children. They are always wrapped in an extra fiber.

Since this has been running in www for weeks without major issues, I'll
defer fixing the remaining test to a follow up.
2020-06-11 20:05:15 -07:00
Dominic GannawayandGitHub a9f8b24b8e Remove synamic modern event system flag for FB (#19059)
* Remove synamic modern event system flag for FB
2020-06-11 19:49:45 +01:00
Sebastian MarkbågeandGitHub 41ce07f3b0 Build FB specific Isomorphic Bundles (#19049)
We need this so we can version them separately and use different
feature flags than we use for OSS RN.

I put them in a separate facebook-react-native folder which won't go
into the RN GH repo. I plan on moving the renderers there too but not yet.
2020-05-29 15:32:38 -07:00
Sebastian MarkbågeandGitHub dfba7a2c60 Upgrade Closure Compiler (#19041)
The Symbol bug has now been fixed so we can remove the hack that renames
the global variable.
2020-05-29 09:17:14 -07:00
Sebastian MarkbågeandGitHub d2de54c0ef Revert autofix lint (#19040)
I accidentally committed this since I had it on locally so I didn't have
to manually convert things to const.

However, this causes things to always pass lint since CI also runs this.
2020-05-28 20:32:34 -07:00
Sebastian MarkbågeandGitHub b5a5ca008f Remove www builds of fetch (#19038)
I don't think we'll ever use this just because we have such a unique set up
for network delivery so we'll use something custom for this case.

Also, we don't need a profiling build for this since it doesn't have an
entry point.
2020-05-28 16:12:37 -07:00
Sebastian MarkbågeandGitHub 0e5051e0b5 Add simple Node build (#19022)
The webpack plugin doesn't really need a separate prod and dev build.
It also needs to be ES2015 otherwise we can't extend native classes.
2020-05-28 15:56:34 -07:00
Sebastian MarkbågeandGitHub 7c7658de71 Lint bundles using the bundle config instead of scanning for files (#19025)
* Lint bundles using the bundle config instead of scanning for files

This ensures that we look for all the files that we expect to see there.
If something doesn't get built we wouldn't detect it.

However, this doesn't find files that aren't part of our builds such as
indirection files in the root. This will need to change with ESM anyway
since indirection files doesn't work. Everything should be built anyway.

This ensures that we can use the bundles.js config to determine special
cases instead of relying on file system conventions.

* Run lint with flag
2020-05-28 15:04:25 -07:00
Sebastian MarkbågeandGitHub 5cc3117eff Delete Entries without Build Output from package.json and the build directory (#19029)
* Gate test

* Delete entrypoints without Build Outputs from package.json and build output

If an entry point exists in bundles.js but doesn't have any bundleTypes,
I delete that entry point file from the build directory. I also remove it
from the files field in package.json if it exists.

This allows us to remove bundles from being built in the stable release
channel.
2020-05-27 19:43:08 -07:00
Sebastian MarkbågeandGitHub 71f6d45308 Remove regenerator from noop (#19024)
This isn't used and it wouldn't work anyway.
2020-05-27 16:14:46 -07:00
Sebastian MarkbågeandGitHub 75cab5defd Lint classic www build (#19023) 2020-05-27 14:13:54 -07:00
Toru KobayashiandGitHub 5f26fa73bb Fix rollup validate script (#18900)
* Revert "Revert "deps: update ESLint version to v7 (#18897)" (#18899)"

This reverts commit cb3ee55f87.

* fix rollup validate script
2020-05-27 01:19:32 +01:00