Commit Graph

224 Commits

Author SHA1 Message Date
greenkeeper[bot]
8cb56a7740 Update flow-bin to the latest version � (#602)
Summary:
## The devDependency [flow-bin](https://github.com/flowtype/flow-bin) was updated from `0.110.0` to `0.110.1`.
This version is **not covered** by your **current version range**.

If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.

 ---

**Publisher:** [gabelevi](https://www.npmjs.com/~gabelevi)
**License:** MIT

[Find out more about this release](https://github.com/flowtype/flow-bin).

 ---

<details>
  <summary>FAQ and help</summary>

  There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html). If those don’t help, you can always [ask the humans behind Greenkeeper](https://github.com/greenkeeperio/greenkeeper/issues/new).
</details>

 ---

Your [Greenkeeper](https://greenkeeper.io) bot 🌴
Pull Request resolved: https://github.com/facebook/flipper/pull/602

Reviewed By: jknoxville

Differential Revision: D18169249

Pulled By: passy

fbshipit-source-id: bdffb1c439dbe3daf2120bf77027209080fb6213
2019-10-28 05:19:22 -07:00
greenkeeper[bot]
2576e00992 Update react to the latest version � (#598)
Summary:
## There have been updates to the *react* monorepo:

- The `dependency` [react](https://github.com/facebook/react) was updated from `16.10.2` to `16.11.0`.
- The `dependency` [react-dom](https://github.com/facebook/react) was updated from `16.10.2` to `16.11.0`.
- The `dependency` [react-test-renderer](https://github.com/facebook/react) was updated from `16.10.2` to `16.11.0`.

These versions are **not covered** by your **current version range**.

If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.

This monorepo update includes releases of one or more dependencies which all belong to the [react group definition](https://github.com/greenkeeperio/monorepo-definitions).

 ---

**Publisher:** [acdlite](https://www.npmjs.com/~acdlite)
**License:** MIT

[Find out more about this release](https://github.com/facebook/react).

 ---

<details>
  <summary>FAQ and help</summary>

  There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html). If those don’t help, you can always [ask the humans behind Greenkeeper](https://github.com/greenkeeperio/greenkeeper/issues/new).
</details>

 ---

Your [Greenkeeper](https://greenkeeper.io) bot 🌴
Pull Request resolved: https://github.com/facebook/flipper/pull/598

Reviewed By: jknoxville

Differential Revision: D18083376

Pulled By: passy

fbshipit-source-id: aeec94f1fa1c2d097b525824bf38b1db65f90401
2019-10-23 07:20:11 -07:00
Pascal Hartig
6c900d4f5f Upgrade all deps in range
Summary:
Another attempt of D17736468. This time all the breaking
deps should have been found and fixed by greenkeeper.

Reviewed By: jknoxville

Differential Revision: D18059567

fbshipit-source-id: c7f1225af6d7d2842f0a1488637f52651b341598
2019-10-23 05:51:56 -07:00
Pascal Hartig
d54b341192 Upgrade which / simplify use
Summary:
It's already a promise. With the next upgrade this otherwise causes
some nasty type errors due to overloading.

Reviewed By: jknoxville

Differential Revision: D18059641

fbshipit-source-id: 93cee95d7bbf767ff6276a0946262bf83587c728
2019-10-23 05:51:55 -07:00
greenkeeper[bot]
a22d2937d4 Update flow-bin to the latest version � (#597)
Summary:
## The devDependency [flow-bin](https://github.com/flowtype/flow-bin) was updated from `0.109.0` to `0.110.0`.
This version is **not covered** by your **current version range**.

If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.

 ---

**Publisher:** [gabelevi](https://www.npmjs.com/~gabelevi)
**License:** MIT

[Find out more about this release](https://github.com/flowtype/flow-bin).

 ---

<details>
  <summary>FAQ and help</summary>

  There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html). If those don’t help, you can always [ask the humans behind Greenkeeper](https://github.com/greenkeeperio/greenkeeper/issues/new).
</details>

 ---

Your [Greenkeeper](https://greenkeeper.io) bot 🌴
Pull Request resolved: https://github.com/facebook/flipper/pull/597

Reviewed By: jknoxville

Differential Revision: D18058618

Pulled By: passy

fbshipit-source-id: 725a80e04df811a7e2d6ed7161cf8a940002694c
2019-10-23 04:45:09 -07:00
Chaiwat Ekkaewnumchai
9775e5b0e0 Update rsocket
Summary: Update `rsocket-core` and `rsocket-tcp-server` dependencies. Remove them from Greenkeeper's blacklist

Reviewed By: jknoxville

Differential Revision: D18058154

fbshipit-source-id: ed28c5f0e97a98f43f9b6988d1e2af3b2d3fe2be
2019-10-22 03:20:41 -07:00
greenkeeper[bot]
fba79e7e52 Update ws in group main to the latest version � (#595)
Summary:
## The dependency [ws](https://github.com/websockets/ws) was updated from `7.1.2` to `7.2.0`.
This version is **not covered** by your **current version range**.

If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.

 ---

**Publisher:** [lpinca](https://www.npmjs.com/~lpinca)
**License:** MIT

[Find out more about this release](https://github.com/websockets/ws).

 ---

<details>
  <summary>FAQ and help</summary>

  There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html). If those don’t help, you can always [ask the humans behind Greenkeeper](https://github.com/greenkeeperio/greenkeeper/issues/new).
</details>

 ---

Your [Greenkeeper](https://greenkeeper.io) bot 🌴
Pull Request resolved: https://github.com/facebook/flipper/pull/595

Reviewed By: jknoxville

Differential Revision: D18036025

Pulled By: passy

fbshipit-source-id: fc897470cbd05fb6605a7816fc8bd72476192957
2019-10-21 07:22:35 -07:00
John Knox
781344f7de Fix jest mocking in tests (#592)
Summary:
Pull Request resolved: https://github.com/facebook/flipper/pull/592

Finally we can join the 21st century and use `jest.mock` in tests!

I'm enabling the ts-jest transform to `*/__tests__/*.tsx` files. This takes care of transforming the typescript, and preserves jest mock capabilities.
I have left the existing custom transform on all other files, so they will continue to work as usual.

Caveats:
* Our existing custom transforms will no longer be applied in tests.
  * With our current suite this makes no difference. But bear in mind things like importing directly from 'flipper' instead of the actual files, won't work. However, I don't see this being a problem, as I think they'll only be needed inside the actual product code.

Reviewed By: passy

Differential Revision: D17978753

fbshipit-source-id: df7b312b5dd5592e4aa4f8df605f5952ea3158e9
2019-10-18 07:17:40 -07:00
Pascal Hartig
818c7ed2c1 Update React to 16.10
Summary: Per title.

Reviewed By: jknoxville

Differential Revision: D17978882

fbshipit-source-id: 68ea07ac81b9b5e651680f9e9d902f5d689c2b16
2019-10-17 08:31:56 -07:00
greenkeeper[bot]
78b093118d Update dependencies to enable Greenkeeper � (#591)
Summary:
Let’s get started with automated dependency management for flipper 💪

🔒 Greenkeeper has found a `yarn.lock` file in this repository. Greenkeeper supports lockfile updates for public packages. If you use private packages in your repository, please use [greenkeeper-lockfile](https://github.com/greenkeeperio/greenkeeper-lockfile) to make sure these can get updated as well.

This pull request **updates all your dependencies to their latest version**. Having them all up to date really is the best starting point for keeping up with new releases. Greenkeeper will look out for further dependency updates and make sure to handle them in isolation and in real-time, but only after **you merge this pull request**.

**Important: Greenkeeper will only start watching this repository’s dependency updates after you merge this initial pull request**.

📦 📦  Greenkeeper has detected multiple `package.json` files. Since this repo already has a `greenkeeper.json` config file with defined groups, Greenkeeper has only checked whether they’re still valid.

 ---
<details>
<summary>🏷 How to check the status of this repository</summary>

Greenkeeper adds a badge to your README which indicates the status of this repository.

This is what your badge looks like right now 👉  ![Greenkeeper badge](https://badges.greenkeeper.io/facebook/flipper.svg)
</details>
<details>
<summary>🙈 How to ignore certain dependencies</summary>

You may have good reasons for not wanting to update to a certain dependency right now. In this case, you can [change the dependency’s version string in the `package.json` file back to whatever you prefer](https://github.com/facebook/flipper/edit/greenkeeper/initial/package.json).

To make sure Greenkeeper doesn’t nag you again on the next update, add a `greenkeeper.ignore` field to your `package.json`, containing a list of dependencies you don’t want to update.

```js
// package.json
{
  …
  "greenkeeper": {
    "ignore": [
      "package-names",
      "you-want-me-to-ignore"
    ]
  }
}
```
</details>
<details>
<summary>👩‍💻 How to update this pull request</summary>

```bash
  # Change into your repository’s directory
  git fetch --all
  git checkout greenkeeper/initial
  npm install-test
  # Adapt your code until everything works again
  git commit -m 'chore: adapt code to updated dependencies'
  git push https://github.com/facebook/flipper.git greenkeeper/initial
```
</details>
<details>
<summary> How do dependency updates work with Greenkeeper?</summary>

After you merge this pull request, **Greenkeeper will create a new branch whenever a  dependency is updated**, with the new version applied. The branch creation should trigger your testing services and check whether your code still works with the new dependency version. Depending on the the results of these tests Greenkeeper will try to open meaningful and helpful pull requests and issues, so your dependencies remain working and up-to-date.

```diff
-  "underscore": "^1.6.0"
+  "underscore": "^1.7.0"
```

The above example shows an in-range update. `1.7.0` is included in the old `^1.6.0` range, because of the [caret `^` character ](https://docs.npmjs.com/misc/semver#ranges).
When the test services report success Greenkeeper will silently delete the branch again, because no action needs to be taken – everything is fine.

However, should the tests fail, Greenkeeper will create an issue to inform you about the problem immediately.

This way, you’ll never be surprised by a dependency breaking your code. As long as everything still works, Greenkeeper will stay out of your way, and as soon as something goes wrong, you’ll be the first to know.

```diff
-  "lodash": "^3.0.0"
+  "lodash": "^4.0.0"
```

In this example, the new version `4.0.0` is _not_ included in the old `^3.0.0` range.
For version updates like these – let’s call them “out of range” updates – you’ll receive a pull request.

This means that **you no longer need to check for new versions manually** – Greenkeeper will keep you up to date automatically.

These pull requests not only serve as reminders to update: If you have solid tests and good coverage, and the pull requests passes those tests, you can very likely just merge it and release a new version of your software straight away :shipit:

To get a better idea of which ranges apply to which releases, check out the extremely useful [semver calculator](https://semver.npmjs.com/) provided by npm.
</details>
<details>
<summary>FAQ and help</summary>

There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html). If those don’t help, you can always [ask the humans behind Greenkeeper](https://github.com/greenkeeperio/greenkeeper/issues/new).
</details>

 ---

Good luck with your project and see you soon 

Your [Greenkeeper](https://greenkeeper.io) bot 🌴
Pull Request resolved: https://github.com/facebook/flipper/pull/591

Reviewed By: jknoxville

Differential Revision: D17951583

Pulled By: passy

fbshipit-source-id: 6ad2bfe7d4a9f7ed4920e50af36e194dc5b1cb93
2019-10-16 08:01:03 -07:00
Pascal Hartig
aa1f03a643 Upgrade redux-persist
Summary:
Last one blocking Greenkeeper.

Only change affecting us appears to be where to import from.

Reviewed By: jknoxville

Differential Revision: D17932089

fbshipit-source-id: b913defdabd99721886557d7c92afb8181ca1803
2019-10-16 02:32:31 -07:00
Pascal Hartig
c9d1d2c444 Lock down more dependencies
Summary:
Newer rsocket packages are borked; don't have a `main` attribute anymore.
Need to be looked into separately. This is to unblock greenkeeper activation.

Based on https://github.com/facebook/flipper/pull/587/files

Reviewed By: jknoxville

Differential Revision: D17928918

fbshipit-source-id: 3ec38c5740f115883e8534776a96d8a8d6ea6b1e
2019-10-15 07:03:53 -07:00
Pascal Hartig
4bdccb22fa Enable greenkeeper
Summary:
Close https://github.com/facebook/flipper/pull/580

This enables Greenkeeper with some caveats:

- I disabled a bunch of upgrades we know currently break:
  - React
  - Emotion
  - Electron/Electron-Builder
- The bot isn't CLA-whitelisted yet, so we won't be able to directly import yet.
- It might actually be better to have automatic tasks created for the dependencies above breaking.
- Something changed in the prop types and required `StatusBar` to have its signature changed.

allow-large-files

Reviewed By: jknoxville

Differential Revision: D17906693

fbshipit-source-id: f73fe231518f56a6f6114f761d5e5e5528d0d487
2019-10-14 09:42:56 -07:00
Pascal Hartig
a2bdf4e0dd Bump flow
Summary: We still use it in some places. Up to 109 before we get kicked off Sandcastle.

Reviewed By: jknoxville

Differential Revision: D17906687

fbshipit-source-id: 391e29add37b6cf5c5dbb9dd9c0743e130cc4381
2019-10-14 08:28:37 -07:00
Pascal Hartig
874e590b96 Upgrade eslint and prettier
Summary: Not a fan of the long lines, but if that's where prettier is going, let's roll with it.

Reviewed By: jknoxville

Differential Revision: D17905599

fbshipit-source-id: c4232d46d2ec0b7c743f6afd8349106c85f013b9
2019-10-14 05:27:27 -07:00
Pascal Hartig
d86b8caa2d Add react testing library
Summary:
The existing rendering library doesn't work properly
with hooks. This one provides some pretty powerful
DOM-based testing APIs like waiting for elements to
appear and clicking, which we can use in various
areas.

Reviewed By: jknoxville

Differential Revision: D17787423

fbshipit-source-id: 9eb12f34ae2bc76b679fd28ee25262ce01a5e772
2019-10-08 08:45:05 -07:00
Pascal Hartig
03dd7a5981 Add types for react test renderer
Summary: Per title

Reviewed By: jknoxville

Differential Revision: D17786831

fbshipit-source-id: 4db054dcbe239653094a87b16f14c08fe0e24789
2019-10-08 00:23:28 -07:00
John Knox
44ab23557e Disable settings "Apply" button when no changes have been made
Summary: It's a bit nicer to be able to see if there are any changes made, and save restarting flipper when nothing has changed.

Reviewed By: passy

Differential Revision: D17738036

fbshipit-source-id: 3d7cdc5be1bf948094c3df54439625e5052a9a2f
2019-10-07 08:51:07 -07:00
Pascal Hartig
0039d5be4a Use 'open' module to open stuff
Summary:
Instead of our ad-hoc mechanism. There's quite a bit
of trickery involved to make this work reliably on Windows
so I'd rather take an off-the-shelf solution than reimplement this
myself.

Reviewed By: jknoxville

Differential Revision: D17628949

fbshipit-source-id: 98806b60a107231d9ee07b721ebb70f2cbd8aec1
2019-09-30 03:49:06 -07:00
Daniel Büchele
2c66e3d4d0 install dependencies
Summary:
In the previous implementation plugins were downloaded from npm, but dependencies weren't. This diff uses the `live-plugin-manager` which does mostly what we want. It install a package from NPM with all its dependencies.
live-plugin-manager puts the plugin and its dependencies in the same folder. We expect the plugins to be in `node_modules`. For this reason, we are installing the plugin into `$pluginName/node_modules` and move the plugin after the installation out of the `node_modules` folder.

* Fixed plugin loading path for thirdparty plugins.
* Disabled hot reloading for plugins in the flipper folder to prevent reloads when moving around files and installing dependencies here.
* an empty `.watchmanconfig` is created, because metro requires it
* tsx files are added to the list of supported extensions for metro

Reviewed By: passy

Differential Revision: D17570413

fbshipit-source-id: ecbedc60841b36188fec9c83da41ef1f27e5e155
2019-09-26 07:57:54 -07:00
Pascal Hartig
2a6462641b Limit concurrency during plugin compilation
Summary:
My MBP just crashed again during startup. I would like to
understand why every plugin compilation appears to start
up a new electron process, but until that's understood
and hopefully fixed, it's probably best to limit the number
of processes we spawn by setting an upper bound here.

N.B. My Linux box doesn't mind this at all.

Reviewed By: jknoxville, danielbuechele

Differential Revision: D17419289

fbshipit-source-id: a11562a21a984059dc35e826eb20d869df218546
2019-09-17 12:21:15 -07:00
Daniel Büchele
109e871a76 UI
Summary: Setting up a sheet to list plugins that can be installed from NPM

Reviewed By: jknoxville

Differential Revision: D17394824

fbshipit-source-id: 26c6ffea9de9cf3fe8488ea1a757eae7b7aaa7ef
2019-09-17 06:21:28 -07:00
Daniel Büchele
e33f72bb21 use adbkit instead of adbkit-fb
Summary: Finally we are able to switch back from our adbkit-fb fork to the original `adbkit`. Replacing all imports

Reviewed By: jknoxville

Differential Revision: D17343236

fbshipit-source-id: e6dd328f1a956544e8be2ab768aa270972463c6b
2019-09-13 05:28:31 -07:00
Pascal Hartig
57444fc3a7 Add types for redux-mock-store
Summary: Per titles

Reviewed By: danielbuechele

Differential Revision: D17314439

fbshipit-source-id: 3d8ed55c4e9eb19f338e6830bf1761cdfa020a23
2019-09-11 07:39:36 -07:00
Daniel Büchele
ac120aa59c [strict[ ScreenCaptureButton
Summary: _typescript_

Reviewed By: jknoxville

Differential Revision: D17282357

fbshipit-source-id: 6ddd912978faa30195f59971f19d29d3ea79342b
2019-09-11 03:04:52 -07:00
Viktor Patrushev
f3691bec7b Converted QPL plugin to TypeScript
Summary: Converted QPL plugin to TypeScript

Reviewed By: danielbuechele

Differential Revision: D17184095

fbshipit-source-id: 2a841bd8bc746cab70e6a03b0ccc8ffbdbda43c6
2019-09-10 04:12:26 -07:00
Pascal Hartig
b90200e2aa Replace child-process promise version
Summary:
This one is in TS, so we get types for free.
`promisify` makes it rather awkward to work with overloaded
functions like `spawn`, so there's still value in having
a proper library for this.

Reviewed By: jknoxville

Differential Revision: D17204471

fbshipit-source-id: 3d07edfe2bb8c1e4c4f3134b53a0c4a0d9be383b
2019-09-09 07:04:54 -07:00
Pascal Hartig
dbab2d1d6d Add types for which
Summary:
Used by

src/dispatcher/androidDevice.tsx
src/chrome/DevicesButton.tsx

Reviewed By: jknoxville

Differential Revision: D17204335

fbshipit-source-id: 40fa266d7301d2ddceea8b884f26b3e4741d7797
2019-09-09 07:04:54 -07:00
Chaiwat Ekkaewnumchai
f4bb0f987f DataDescription
Summary: _typescript_

Reviewed By: danielbuechele

Differential Revision: D17174253

fbshipit-source-id: d2ad87954a4fe49626f35234c2a9db180093fc54
2019-09-05 03:36:47 -07:00
John Knox
4f671847ba Fix prefetcher types
Reviewed By: passy

Differential Revision: D17164305

fbshipit-source-id: edc52a0708e2a46a3fe2aa9752fd94fa0b1909be
2019-09-04 11:01:44 -07:00
Daniel Büchele
c18ea6bf52 typescript-eslint update
Summary: upgrading eslint dependencies. especially `typescript-eslint/parser@2.1.1-alpha.4` Which fixes the incompatibility warning with TS 3.6.2

Reviewed By: passy

Differential Revision: D17182109

fbshipit-source-id: 44e8a7324778353cff0af65df3aa38483ff786fc
2019-09-04 10:06:02 -07:00
Pascal Hartig
31307c89d7 Upgrade to eslint 3.6
Summary: Should fix the tsc issue.

Reviewed By: danielbuechele

Differential Revision: D17165314

fbshipit-source-id: 4d52d2d186ac5ec14b5a8a7969893c26cc28fef8
2019-09-04 03:00:53 -07:00
Pascal Hartig
9202e96018 Upgrade to TypeScript 3.6.2
Summary:
It's new. We should use it, probably.

allow-large-files

Reviewed By: danielbuechele

Differential Revision: D17111469

fbshipit-source-id: fd982aedb7d5d53e9cd5d6744890bf6fda812892
2019-09-03 06:29:50 -07:00
Daniel Büchele
5868946818 certificate provider
Summary: _typescript_

Reviewed By: passy

Differential Revision: D17096517

fbshipit-source-id: a6e69e8b9a82fe76bb1de51a3a93182f35f40b3f
2019-08-28 20:34:59 -07:00
dependabot[bot]
fe87fd9346 Bump eslint-utils from 1.4.0 to 1.4.2 (#526)
Summary:
Bumps [eslint-utils](https://github.com/mysticatea/eslint-utils) from 1.4.0 to 1.4.2.
<details>
<summary>Commits</summary>

- [`4e1bc07`](4e1bc077c2) 1.4.2
- [`e4cb014`](e4cb01498d) 🐛 add null test
- [`230a4e2`](230a4e2275) 1.4.1
- [`08158db`](08158db1c9) 🐛 fix getStaticValue security issue
- [`587cca2`](587cca2f82) 🐛 fix getStringIfConstant to handle literals correctly
- [`c119e83`](c119e83295) 🐛 fix getStaticValue to handle bigint correctly
- See full diff in [compare view](https://github.com/mysticatea/eslint-utils/compare/v1.4.0...v1.4.2)
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=eslint-utils&package-manager=npm_and_yarn&previous-version=1.4.0&new-version=1.4.2)](https://help.github.com/articles/configuring-automated-security-fixes)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

 ---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `dependabot rebase` will rebase this PR
- `dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `dependabot merge` will merge this PR after your CI passes on it
- `dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `dependabot cancel merge` will cancel a previously requested merge and block automerging
- `dependabot reopen` will reopen this PR if it is closed
- `dependabot ignore this [patch|minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language

You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/facebook/flipper/network/alerts).

</details>
Pull Request resolved: https://github.com/facebook/flipper/pull/526

Reviewed By: danielbuechele

Differential Revision: D17074295

Pulled By: passy

fbshipit-source-id: f416d2c5b5f300c60694a3e411f16c585fb52afb
2019-08-28 07:37:39 -07:00
Pascal Hartig
78a7789f49 Add types for promise-retry
Summary: Per title.

Reviewed By: danielbuechele

Differential Revision: D17073128

fbshipit-source-id: 0c93a63f0419dcbef209f0ae203906457481529f
2019-08-28 03:01:57 -07:00
Brian Vaughn
85d098e695 React DevTools v4 integration
Summary:
This Diff is being posted for discussion purposes. It will not be ready to land until React DevTools v4 has been published to NPM.

Update React Native to be compatible with the [new version 4 React DevTools extension](https://github.com/bvaughn/react-devtools-experimental).

**Note that this is a breaking change**, as the version 3 and version 4 backends are **not compatible**. Once this update ships (in React Native) users will be required to update their version of the [`react-devtools` NPM package](https://www.npmjs.com/package/react-devtools). The same will be true for IDEs like Nuclide as well as other developer tools like Flipper and [React Native Debugger](https://github.com/jhen0409/react-native-debugger).

Related changes also included in this diff are:
* Pass an explicit whitelist of style props for the React Native style editor (to improve developer experience when adding new styles).
* Update `YellowBox` console patching to coordinate with DevTools own console patching.
  * Also improved formatting slightly by not calling `stringifySafe` for strings (since this adds visible quotation marks).

Regarding the console patching- component stacks will be appended by default when there's no DevTools frontend open. The frontend will provide an option to turn this behavior off though:

{F168852162}

React DevTools will detect if the new version is used with an older version of React Native, and offer inline upgrade instructions:

{F169306863}

**Note that the change to the `RCTEnableTurboModule` will not be included in this Diff**. I've just turned those off temporarily so I can use v8+Chrome for debugging.

Reviewed By: rickhanlonii

Differential Revision: D15973709

fbshipit-source-id: bb9d83fc829af4693e7a10a622acc95a411a48e4
2019-08-26 23:56:55 -07:00
Daniel Büchele
0ec48d4fc9 index
Summary:
This converts the index file to TypeScript which is used as an export for all plugins. Alongside, I had to fix a couple of errors in various files to make sure everything works correctly.

For plugins using flow, we define an interface which uses the type definition for FlipperPlugin and types all UI components as `any`.

Reviewed By: passy

Differential Revision: D16936890

fbshipit-source-id: dacd9a63a82b9f0bbb530b06072186874cba7b6f
2019-08-22 10:02:27 -07:00
Daniel Büchele
4c4169063d table
Summary: _typescript_

Reviewed By: priteshrnandgaonkar

Differential Revision: D16807180

fbshipit-source-id: dcba794351eee69c0574dc224cf7bd2732bea447
2019-08-20 05:45:48 -07:00
Daniel Büchele
62a204bdbe Searchable
Summary: _typescript_

Reviewed By: passy

Differential Revision: D16807182

fbshipit-source-id: 68bc8365bc5b0d8075d0a93d5963c824c0d66769
2019-08-20 05:45:48 -07:00
Daniel Büchele
d0da0d66a5 main folder
Summary: _typescript_

Reviewed By: passy

Differential Revision: D16762117

fbshipit-source-id: b6ee32e0bb3fc686fc69cfccab703e2ef4989571
2019-08-15 03:33:06 -07:00
Daniel Büchele
5f53087c7e client server
Summary: Migrating Server, Client and UninitializedClient to TypeScript

Reviewed By: passy

Differential Revision: D16687855

fbshipit-source-id: 402e4dbcd5d283d3e280d4d8b312662829457886
2019-08-08 11:00:38 -07:00
Daniel Büchele
64cefd0f84 migrate redux store
Summary: Migrating redux stores to TypeScript

Reviewed By: passy

Differential Revision: D16579796

fbshipit-source-id: e3e507f17f1bdd57eb45e30cb0b28aaee6c4521c
2019-08-08 08:07:21 -07:00
Benjamin Elo
3597f56c94 Added @types/react-dom dependency
Summary: We need this as part of the migration for react-dom types.

Reviewed By: jknoxville

Differential Revision: D16668683

fbshipit-source-id: c50be446ada5539961c89da9f3bd3f240db4ec4c
2019-08-08 06:03:24 -07:00
Pascal Hartig
8b2009b2c7 Upgrade deps within range
Summary:
This is the result of a `yarn upgrade`. While this *shouldn't* break
anything, it easily can just as this broke the babel transform
because a previously transitively depended upon library was no
longer included.

It seems like a good idea to stay as close as possible to the upstream of all
the dependencies we have and with the release yesterday we now have one week to
check if the rest works as expected.

allow-large-files

Reviewed By: danielbuechele

Differential Revision: D16579807

fbshipit-source-id: f26d4536abd80f428e94b71e0fa98df612cbd809
2019-08-03 03:33:43 -07:00
Pascal Hartig
81fddbaff4 Bump lodash from 4.17.10 to 4.17.15
Summary: This is just to clear a security warning.

Reviewed By: danielbuechele

Differential Revision: D16542869

fbshipit-source-id: 910c421292efeff2d65769e0c00cea7e4653233d
2019-07-30 02:38:29 -07:00
Pascal Hartig
e84b03f8c3 Upgrade Flow to 104
Summary: No breaking changes affecting us, just one FlowFixMe that's no longer necessary. Yay.

Reviewed By: jknoxville

Differential Revision: D16541069

fbshipit-source-id: 12d1fadf57daf1ec23d043206f99b0eb61b28e5b
2019-07-29 08:04:32 -07:00
Daniel Büchele
2c7371d264 typescript eslint plugin
Summary: This is required to properly run eslint in Atom/VSCode on TypeScript files

Reviewed By: jknoxville

Differential Revision: D16201418

fbshipit-source-id: 31da04c2d313e9147e0f868c1af15bf3115e6d6a
2019-07-29 06:39:11 -07:00
Brian Vaughn
f6a4ad59c0 Update react-devtools-core to 3.6.3 to fix React Inspector
Summary:
It appears that Electron (or the version of Chromium it uses) has a bug that causes a `webview` process to crash if `URL.createObjectURL` is used.

Before releasing `react-devtools-core` 3.5.0, we updated Webpack and the loaders we used. Apparently the version of `style-loader` we now use makes use of the `URL.createObjectURL` API for CSS source maps. This triggers the `webview` crash I mentioned above.

The fix for this is to disable CSS source maps, in which case the loader just uses a `<style>` tag. This diff updates Nuclide to pull in this fixed version.

Reviewed By: bestander

Differential Revision: D16518772

fbshipit-source-id: a779b7d310f869793fa05988d138ce6a46840d8c
2019-07-26 14:47:03 -07:00
John Knox
d0a61d6455 Back out "[flipper] Add 1h tolerance to ssl certs"
Summary:
Original commit changeset: bdbd61bce1bc

That change appears to be causing some issues for open source users: https://github.com/facebook/flipper/issues/498

To mitigate the issue I'm reverting it, the change turns out to be unnecessary anyway.

Reviewed By: passy

Differential Revision: D16486136

fbshipit-source-id: 70decca6e017a6a2903cc484641fb2e736dc5d7c
2019-07-25 04:11:59 -07:00