Commit Graph

1106 Commits

Author SHA1 Message Date
Michel Weststrate
0dc1abdac4 Initial DataSource setup
Summary:
For context see https://fb.workplace.com/notes/470523670998369

This diff introduces the DataSource abstraction, that can store records. If a key is set a key -> record mapping is stored, to make it easy to update existing records using `upsert`, without knowing their exact index.

Internal storage will be slightly altered in upcoming diffs, so don't pay to much attention to that part.

Reviewed By: nikoant

Differential Revision: D25953337

fbshipit-source-id: 1c3b53a2fcf61abaf061946be4af21d2aecc6c6d
2021-03-16 15:03:42 -07:00
Anton Nikolaev
b2776f1c36 Fix for tests after call to "build-plugins"
Summary: After calling "bundle-all-plugins" locally, "yarn test" is failing with obscure message, because some tests are trying to import built bundles instead of "index.tsx". This diff fixes that.

Reviewed By: passy

Differential Revision: D26986246

fbshipit-source-id: cffe988dc642e2c5d2b2028581cd162350186e0c
2021-03-11 17:07:12 -08:00
generatedunixname89002005306973
59204328c3 Flipper Release: v0.80.0
Summary: Releasing version 0.80.0

Reviewed By: priteshrnandgaonkar

Differential Revision: D26979913

fbshipit-source-id: a309ac59160d2464931f06b978f535c7c712bf08
2021-03-11 08:45:12 -08:00
Anton Nikolaev
f508a35ff9 Fix patch release versioning for open-source version
Summary: Patch was always set to "0" for open source releases even if it is set to "1" in package.json

Reviewed By: passy

Differential Revision: D26975947

fbshipit-source-id: b3f127c9746797fbb5a79dfcd9bd52210c3a7df8
2021-03-11 04:32:21 -08:00
bizzguy
f61b5a1a86 Network plugin - support mocks in imported devices (#2040)
Summary:
It is not currently possible to create mock routes from imported network logs.  This PR will provide that functionality.

See this issue for more details: https://github.com/facebook/flipper/issues/1988

## Changelog

Network plugin - create mocks from imported network logs

Pull Request resolved: https://github.com/facebook/flipper/pull/2040

Test Plan:
Use sample app to create network activity
Export network activity
Import network activity
Create mocks from imported network activity
Verify that mocks work using sample app

Reviewed By: mweststrate

Differential Revision: D26947187

Pulled By: passy

fbshipit-source-id: 5e4e0197c49bb7a8227a70e574613381815e6d30
2021-03-11 03:08:08 -08:00
Anton Nikolaev
58b2daea02 Bundle all plugins script
Summary: New script which bundles all plugins. It is faster to bundle them all in one script rather than call "build-plugin" for each of them. The new script will be used in CI to catch regressions when some plugins cannot be bundled into standalone packages.

Reviewed By: passy

Differential Revision: D26918103

fbshipit-source-id: dbc5c4cd706e8d585718a198dbd7ae9ffd988e28
2021-03-10 08:09:02 -08:00
Anton Nikolaev
c065760d15 Stable babel transformation cache key
Summary:
This diff makes babel transformation cache key stable. With the previous approach it was changed on each CI build so it was not possible to persist cache between builds. Now it is computed from the transformation package content after each build. Because of that it is equal for every CI build while Babel transformations unchanged and so we could use same cache on different Sandcastle agents.

In addition to that, it makes it possible to specify directory for Metro cache so we can save/restore it in CI builds.

Reviewed By: mweststrate

Differential Revision: D26877989

fbshipit-source-id: 7cb04a177f86e61986585e5a74d9c7396ddddc18
2021-03-10 08:09:02 -08:00
Anton Nikolaev
baeb8ba5be Performance improvements for "build-plugin" task
Summary:
Few improvements for "build-plugin" task which together with Sandcastle command changes (D26872427) helps to build all plugins in CI ~30% faster if most of them has not changed (which is usually the case):
1) compute package checksum in the same script to not call additional yarn scripts for each plugin
2) avoid packaging plugin if it's checksum has not changed since last release

Reviewed By: mweststrate

Differential Revision: D26872253

fbshipit-source-id: 968102d32a1550ea7503f1169f0ef2863296383f
2021-03-10 08:09:02 -08:00
Pritesh Nandgaonkar
5df0fd6e52 Update the device name for DummyDevice type
Summary: This diff updates the device display name in the drop down for DummyDevice

Reviewed By: mweststrate

Differential Revision: D26945724

fbshipit-source-id: 6a82c6353f6d8dfe6d3a60e06f0f78d00c39ff59
2021-03-10 06:34:37 -08:00
Pritesh Nandgaonkar
50f31f9fe0 Update the device plugins supported devices arguments
Summary:
Device plugins won't work for DummyDevice type as the device id is a fake one for this.

This diff updates the "supportedDevices" for the plugins.

Reviewed By: mweststrate

Differential Revision: D26944601

fbshipit-source-id: a29acc288f8f0c564f52db02914e7b0491b211d2
2021-03-10 06:34:36 -08:00
Pritesh Nandgaonkar
60994bd41f Rename ClientDevice to DummyDevice
Summary: Rename ClientDevice to DummyDevice. It is being currently used in the case when we do cert exchange through WWW/Distillery. In this mode we are not able to figure out the exact device id(instead we create a fake one) and thus we would not like to use Android or IOSDevice for such cases.

Reviewed By: mweststrate

Differential Revision: D26944415

fbshipit-source-id: f9f76e8997cf5402ba5627ae1959f5a11e078bb1
2021-03-10 06:34:36 -08:00
dependabot[bot]
6531b1ff5c Bump @ant-design/icons from 4.4.0 to 4.5.0 in /desktop (#2019)
Summary:
Bumps [ant-design/icons](https://github.com/ant-design/ant-design-icons) from 4.4.0 to 4.5.0.
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a href="https://github.com/ant-design/ant-design-icons/commits">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@ant-design/icons&package-manager=npm_and_yarn&previous-version=4.4.0&new-version=4.5.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

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 close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor 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)

</details>

Pull Request resolved: https://github.com/facebook/flipper/pull/2019

Reviewed By: mweststrate

Differential Revision: D26889248

Pulled By: passy

fbshipit-source-id: 753cc63b9417b5e33eb0593122b248fc0c69b0f7
2021-03-10 04:39:03 -08:00
dependabot[bot]
f87cad5eca Bump @oclif/dev-cli from 1.22.2 to 1.26.0 in /desktop (#2016)
Summary:
Bumps [oclif/dev-cli](https://github.com/oclif/dev-cli) from 1.22.2 to 1.26.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/oclif/dev-cli/releases"><code>@​oclif/dev-cli's releases</code></a>.</em></p>
<blockquote>
<h2>v1.26.0</h2>
<h1><a href="https://github.com/oclif/dev-cli/compare/v1.25.1...v1.26.0">1.26.0</a> (2020-12-10)</h1>
<h3>Features</h3>
<ul>
<li>adding region, sslEnabled and s3ForcePathStyle through env vars (<a href="https://github-redirect.dependabot.com/oclif/dev-cli/issues/280">https://github.com/facebook/flipper/issues/280</a>) (<a href="9a317382e1">9a31738</a>)</li>
</ul>
<h2>v1.25.1</h2>
<h2><a href="https://github.com/oclif/dev-cli/compare/v1.25.0...v1.25.1">1.25.1</a> (2020-12-02)</h2>
<h3>Bug Fixes</h3>
<ul>
<li>find yarn.lock in a yarn workspace (<a href="https://github-redirect.dependabot.com/oclif/dev-cli/issues/156">https://github.com/facebook/flipper/issues/156</a>) (<a href="fd59d36b24">fd59d36</a>)</li>
</ul>
<h2>v1.25.0</h2>
<h1><a href="https://github.com/oclif/dev-cli/compare/v1.24.4...v1.25.0">1.25.0</a> (2020-12-02)</h1>
<h3>Features</h3>
<ul>
<li>add macos uninstaller (<a href="https://github-redirect.dependabot.com/oclif/dev-cli/issues/137">https://github.com/facebook/flipper/issues/137</a>) (<a href="6e3b34bba9">6e3b34b</a>)</li>
</ul>
<h2>v1.24.4</h2>
<h2><a href="https://github.com/oclif/dev-cli/compare/v1.24.3...v1.24.4">1.24.4</a> (2020-12-02)</h2>
<h3>Bug Fixes</h3>
<ul>
<li>delete the uninstall registry key (<a href="https://github-redirect.dependabot.com/oclif/dev-cli/issues/136">https://github.com/facebook/flipper/issues/136</a>) (<a href="0949b0d985">0949b0d</a>)</li>
</ul>
<h2>v1.24.3</h2>
<h2><a href="https://github.com/oclif/dev-cli/compare/v1.24.2...v1.24.3">1.24.3</a> (2020-12-02)</h2>
<h3>Reverts</h3>
<ul>
<li>Revert &quot;chore(deps): bump fs-extra from 8.1.0 to 9.0.1 (<a href="https://github-redirect.dependabot.com/oclif/dev-cli/issues/274">https://github.com/facebook/flipper/issues/274</a>)&quot; (<a href="https://github-redirect.dependabot.com/oclif/dev-cli/issues/275">https://github.com/facebook/flipper/issues/275</a>) (<a href="dbdbd8b05e">dbdbd8b</a>), closes <a href="https://github-redirect.dependabot.com/oclif/dev-cli/issues/274">https://github.com/facebook/flipper/issues/274</a> <a href="https://github-redirect.dependabot.com/oclif/dev-cli/issues/275">https://github.com/facebook/flipper/issues/275</a></li>
</ul>
<h2>v1.24.2</h2>
<h2><a href="https://github.com/oclif/dev-cli/compare/v1.24.1...v1.24.2">1.24.2</a> (2020-12-01)</h2>
<h3>Bug Fixes</h3>
<ul>
<li>restore command descriptions in README generation (<a href="https://github-redirect.dependabot.com/oclif/dev-cli/issues/268">https://github.com/facebook/flipper/issues/268</a>) (<a href="e02ebe7053">e02ebe7</a>), closes <a href="https://github-redirect.dependabot.com/oclif/dev-cli/issues/267">https://github.com/facebook/flipper/issues/267</a></li>
</ul>
<h2>v1.24.1</h2>
<h2><a href="https://github.com/oclif/dev-cli/compare/v1.24.0...v1.24.1">1.24.1</a> (2020-11-20)</h2>

</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/oclif/dev-cli/blob/master/CHANGELOG.md"><code>@​oclif/dev-cli's changelog</code></a>.</em></p>
<blockquote>
<h2><a href="https://github.com/oclif/dev-cli/compare/v1.25.0...v1.25.1">1.25.1</a> (2020-12-02)</h2>
<h3>Bug Fixes</h3>
<ul>
<li>find yarn.lock in a yarn workspace (<a href="https://github-redirect.dependabot.com/oclif/dev-cli/issues/156">https://github.com/facebook/flipper/issues/156</a>) (<a href="fd59d36b24">fd59d36</a>)</li>
</ul>
<h1><a href="https://github.com/oclif/dev-cli/compare/v1.24.4...v1.25.0">1.25.0</a> (2020-12-02)</h1>
<h3>Features</h3>
<ul>
<li>add macos uninstaller (<a href="https://github-redirect.dependabot.com/oclif/dev-cli/issues/137">https://github.com/facebook/flipper/issues/137</a>) (<a href="6e3b34bba9">6e3b34b</a>)</li>
</ul>
<h2><a href="https://github.com/oclif/dev-cli/compare/v1.24.3...v1.24.4">1.24.4</a> (2020-12-02)</h2>
<h3>Bug Fixes</h3>
<ul>
<li>delete the uninstall registry key (<a href="https://github-redirect.dependabot.com/oclif/dev-cli/issues/136">https://github.com/facebook/flipper/issues/136</a>) (<a href="0949b0d985">0949b0d</a>)</li>
</ul>
<h2><a href="https://github.com/oclif/dev-cli/compare/v1.24.2...v1.24.3">1.24.3</a> (2020-12-02)</h2>
<h3>Reverts</h3>
<ul>
<li>Revert &quot;chore(deps): bump fs-extra from 8.1.0 to 9.0.1 (<a href="https://github-redirect.dependabot.com/oclif/dev-cli/issues/274">https://github.com/facebook/flipper/issues/274</a>)&quot; (<a href="https://github-redirect.dependabot.com/oclif/dev-cli/issues/275">https://github.com/facebook/flipper/issues/275</a>) (<a href="dbdbd8b05e">dbdbd8b</a>), closes <a href="https://github-redirect.dependabot.com/oclif/dev-cli/issues/274">https://github.com/facebook/flipper/issues/274</a> <a href="https://github-redirect.dependabot.com/oclif/dev-cli/issues/275">https://github.com/facebook/flipper/issues/275</a></li>
</ul>
<h2><a href="https://github.com/oclif/dev-cli/compare/v1.24.1...v1.24.2">1.24.2</a> (2020-12-01)</h2>
<h3>Bug Fixes</h3>
<ul>
<li>restore command descriptions in README generation (<a href="https://github-redirect.dependabot.com/oclif/dev-cli/issues/268">https://github.com/facebook/flipper/issues/268</a>) (<a href="e02ebe7053">e02ebe7</a>), closes <a href="https://github-redirect.dependabot.com/oclif/dev-cli/issues/267">https://github.com/facebook/flipper/issues/267</a></li>
</ul>
<h2><a href="https://github.com/oclif/dev-cli/compare/v1.24.0...v1.24.1">1.24.1</a> (2020-11-20)</h2>
<h3>Bug Fixes</h3>

</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="81f28676e0"><code>81f2867</code></a> chore(release): 1.26.0 [skip ci]</li>
<li><a href="9a317382e1"><code>9a31738</code></a> feat: adding region, sslEnabled and s3ForcePathStyle through env vars (<a href="https://github-redirect.dependabot.com/oclif/dev-cli/issues/280">https://github.com/facebook/flipper/issues/280</a>)</li>
<li><a href="6b319b274c"><code>6b319b2</code></a> chore(release): 1.25.1 [skip ci]</li>
<li><a href="fd59d36b24"><code>fd59d36</code></a> fix: find yarn.lock in a yarn workspace (<a href="https://github-redirect.dependabot.com/oclif/dev-cli/issues/156">https://github.com/facebook/flipper/issues/156</a>)</li>
<li><a href="4da752ae48"><code>4da752a</code></a> chore(release): 1.25.0 [skip ci]</li>
<li><a href="6e3b34bba9"><code>6e3b34b</code></a> feat: add macos uninstaller (<a href="https://github-redirect.dependabot.com/oclif/dev-cli/issues/137">https://github.com/facebook/flipper/issues/137</a>)</li>
<li><a href="902ea696aa"><code>902ea69</code></a> chore(release): 1.24.4 [skip ci]</li>
<li><a href="0949b0d985"><code>0949b0d</code></a> fix: delete the uninstall registry key (<a href="https://github-redirect.dependabot.com/oclif/dev-cli/issues/136">https://github.com/facebook/flipper/issues/136</a>)</li>
<li><a href="c0a444e424"><code>c0a444e</code></a> chore(deps): bump tslib from 1.14.1 to 2.0.3 (<a href="https://github-redirect.dependabot.com/oclif/dev-cli/issues/278">https://github.com/facebook/flipper/issues/278</a>)</li>
<li><a href="447ea9782e"><code>447ea97</code></a> chore(deps-dev): bump oclif/test from 1.2.4 to 1.2.8 (<a href="https://github-redirect.dependabot.com/oclif/dev-cli/issues/276">https://github.com/facebook/flipper/issues/276</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/oclif/dev-cli/compare/v1.22.2...v1.26.0">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@oclif/dev-cli&package-manager=npm_and_yarn&previous-version=1.22.2&new-version=1.26.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

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 close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor 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)

</details>

Pull Request resolved: https://github.com/facebook/flipper/pull/2016

Reviewed By: mweststrate

Differential Revision: D26889217

Pulled By: passy

fbshipit-source-id: 0204a506af211567cb6153aa053967abb2440596
2021-03-10 04:39:03 -08:00
dependabot[bot]
6ac66a0d2d Bump @types/archiver from 3.1.1 to 5.1.0 in /desktop (#2020)
Summary:
Bumps [types/archiver](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/archiver) from 3.1.1 to 5.1.0.
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/archiver">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@types/archiver&package-manager=npm_and_yarn&previous-version=3.1.1&new-version=5.1.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

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 close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor 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)

</details>

Pull Request resolved: https://github.com/facebook/flipper/pull/2020

Reviewed By: mweststrate

Differential Revision: D26889183

Pulled By: passy

fbshipit-source-id: 60ab86160e29ebf53d8291bac14ef25da9c99e2e
2021-03-10 03:51:55 -08:00
dependabot[bot]
b9afadf4a4 Bump @types/node from 14.14.10 to 14.14.31 in /desktop (#2021)
Summary:
Bumps [types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.10 to 14.14.31.
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@types/node&package-manager=npm_and_yarn&previous-version=14.14.10&new-version=14.14.31)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

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 close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor 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)

</details>

Pull Request resolved: https://github.com/facebook/flipper/pull/2021

Reviewed By: mweststrate

Differential Revision: D26889123

Pulled By: passy

fbshipit-source-id: 1c7616e2556fec89db5d6a5b45bb75bcffef82f7
2021-03-09 11:23:26 -08:00
dependabot[bot]
27c5f2390e Bump @types/jest from 26.0.15 to 26.0.20 in /desktop (#2024)
Summary:
Bumps [types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 26.0.15 to 26.0.20.
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@types/jest&package-manager=npm_and_yarn&previous-version=26.0.15&new-version=26.0.20)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

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 close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor 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)

</details>

Pull Request resolved: https://github.com/facebook/flipper/pull/2024

Reviewed By: mweststrate

Differential Revision: D26843905

Pulled By: passy

fbshipit-source-id: b9537ff8c371ee9660943361e3eeafba23707928
2021-03-09 09:46:30 -08:00
dependabot[bot]
fe63f93306 Bump npm-api from 1.0.0 to 1.0.1 in /desktop (#2023)
Summary:
Bumps [npm-api](https://github.com/doowb/npm-api) from 1.0.0 to 1.0.1.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/doowb/npm-api/blob/master/CHANGELOG.md">npm-api's changelog</a>.</em></p>
<blockquote>
<h1>Changelog</h1>
<h2>key</h2>
<p>Changelog entries are classified using the following labels <em>(from [keep-a-changelog][]</em>):</p>
<ul>
<li><code>added</code>: for new features</li>
<li><code>changed</code>: for changes in existing functionality</li>
<li><code>deprecated</code>: for once-stable features removed in upcoming releases</li>
<li><code>removed</code>: for deprecated features removed in this release</li>
<li><code>fixed</code>: for any bug fixes</li>
</ul>
<h2>[Unreleased]</h2>
<h3>Added</h3>
<ul>
<li>Used <a href="https://github.com/generate/generate-log">generate-log</a> to add a CHANGELOG.md</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="54ed79976c"><code>54ed799</code></a> 1.0.1</li>
<li><a href="eb3a173fea"><code>eb3a173</code></a> run verb to generate README documentation</li>
<li><a href="45e73252e8"><code>45e7325</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/doowb/npm-api/issues/14">https://github.com/facebook/flipper/issues/14</a> from Hypnosphi/remove-request</li>
<li><a href="98281dfe6e"><code>98281df</code></a> Replace request with node-fetch</li>
<li><a href="5bc3fde2f7"><code>5bc3fde</code></a> update description and run verb to generate README documentation</li>
<li><a href="1ebcbadbe6"><code>1ebcbad</code></a> update code comments and generate README documentation with verb</li>
<li><a href="77ba08195e"><code>77ba081</code></a> use generate-log to create a changelog.md</li>
<li>See full diff in <a href="https://github.com/doowb/npm-api/compare/1.0.0...1.0.1">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=npm-api&package-manager=npm_and_yarn&previous-version=1.0.0&new-version=1.0.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

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 close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor 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)

</details>

Pull Request resolved: https://github.com/facebook/flipper/pull/2023

Reviewed By: mweststrate

Differential Revision: D26889073

Pulled By: passy

fbshipit-source-id: c78387d9c6764e605ac72d302f8f590ca96417a2
2021-03-09 05:29:05 -08:00
bizzguy
d07b74eed0 Network Plugin - Disable routes (#1969)
Summary:
Mock routes may contain quite a bit of data for header values and response bodies.  Currently, to turn off a mock a user must delete the mock and then go through the process of creating it when needed again.  This change will allow a user to temporarily disable a mock without deleting it.

A checkbox on the Routes list is used to enable/disable mocks.  As shown in this screenshot:

![image](https://user-images.githubusercontent.com/337874/109360670-3a3fb280-784d-11eb-83fd-724f0bb067d3.png)

## Changelog

Network Plugin - disable/enable mock routes

Pull Request resolved: https://github.com/facebook/flipper/pull/1969

Test Plan:
Create mocks using sample app
Verify that mocks are working as expected
Disable the mocks
Verify that the client has been updated with mocks (minus the disabled ones) user Flipper Messages plugin
Use the sample app to send the disabled requests again and verify that they are not mocked

Reviewed By: mweststrate

Differential Revision: D26888815

Pulled By: passy

fbshipit-source-id: cb8a05a27dd69ba4d2b60085a077efe795a99a7c
2021-03-08 11:52:36 -08:00
Pritesh Nandgaonkar
226e042e1d Fix the broken xcode detection due to space
Summary: Due to the space in the path, `fs.pathExists` returned false even if the path was existent. Thus added `.trim()` to fix it.

Reviewed By: passy

Differential Revision: D26869404

fbshipit-source-id: 146a96262353177e786f5100a1dad9af7c7d398b
2021-03-08 04:59:42 -08:00
Pritesh Nandgaonkar
a2d559c8c0 Detect Physical iOS device without Xcode
Summary:
This diff adds the support of detecting physical device in Flipper even if the xcode is not installed and there is no cli tool installed.

See the demo.

Reviewed By: timur-valiev

Differential Revision: D26816588

fbshipit-source-id: 5f052998fcbe5c51385222d16df0e1855177b552
2021-03-05 11:36:20 -08:00
Ostap Manastyrski
b26ca1502d Remove time display on android screen recordings
Summary:
Changelog: Creating an Android screen recording no longer includes meta information like frame rate.

Context: https://fb.workplace.com/groups/flippersupport/permalink/1088379648309359/

Before:
{F454408806}

Reviewed By: mweststrate

Differential Revision: D26765408

fbshipit-source-id: 560d7ba4ff4ccff1b4a17f1c1073efe7638e397a
2021-03-05 10:28:36 -08:00
Anton Nikolaev
095667b742 Fix "failed to find appMatchPatterns" error
Summary: Fixed an error which happens on second and subsequent device connection to Flipper

Reviewed By: passy

Differential Revision: D26829255

fbshipit-source-id: 17eb603647626a2168e330ec67f4a89783219356
2021-03-05 03:50:24 -08:00
generatedunixname89002005306973
85e5c33265 Flipper Release: v0.79.1
Summary: Releasing version 0.79.1

Reviewed By: passy

Differential Revision: D26820464

fbshipit-source-id: 8ca29bca6b011159e158c43806760f2a2056fc0b
2021-03-04 12:03:50 -08:00
Michel Weststrate
f8faeb2690 Fix incorrect assumption on device id's
Summary: In dev mode a (further harmless) error will be triggered if the self inspection plugin is loaded, since the device_id is empty. empty device id's however are fine; the represent the host device (Mac / Win devices)

Reviewed By: passy

Differential Revision: D26814269

fbshipit-source-id: 281fc591c1df47092011b4140099fc7138718b43
2021-03-04 06:01:48 -08:00
Michel Weststrate
163799cf89 Fix exception that happens on focus change
Summary:
Fixing the previous resulted in a next exception, where blur / focus might be triggered directly as side effect of some running logic. I think this happens when entering a debugger statement causing the window to loose focus in favor of the devtools.

Wrapped the logic in setImmediate to make sure that it runs on its own stack, since this will prevent any potential future issues with programmatically focussing / blurring as well.

Reviewed By: jknoxville

Differential Revision: D26814270

fbshipit-source-id: 5ca430653a219d3c98d8bf925277de67d8a9eb20
2021-03-04 06:01:48 -08:00
Michel Weststrate
67e87c2fa5 Fix gray screen crash that might happen when gathering usage stats
Reviewed By: jknoxville

Differential Revision: D26814271

fbshipit-source-id: bd857a42ae6b2528e42c96d0865ae2c532ea345f
2021-03-04 06:01:48 -08:00
Michel Weststrate
05a7451173 Killed pluginStateRecorder
Summary: The state recorder was never updated for Sandy, nor is that really needed since Sandy offers better testing abstractions, and this was a stop gap with potential privacy concerns (due to recording real data). The feature didn't result in any actual test cases, so it seems we won't be missing out with this :)

Reviewed By: passy

Differential Revision: D26813798

fbshipit-source-id: 48ec11516fbc1a47a349a5799713ad05a7e1c73a
2021-03-04 06:01:48 -08:00
Pascal Hartig
39f0fa86cc Fix idb test (#1996)
Summary:
Pull Request resolved: https://github.com/facebook/flipper/pull/1996

Erm, I'm a bit of a dummy. I didn't mock the access check, so it would actually
rely on idb being installed to run the tests correctly. Without, we'd fail like here
on GitHub: https://github.com/facebook/flipper/runs/2021551466

I couldn't quite figure out how to mock `fs.promises.access`, so I made the constructor
configurable, which doesn't seem that bad, actually.

Reviewed By: mweststrate

Differential Revision: D26778428

fbshipit-source-id: 120b8060ad3ccb1cecd8ce2b208733d5e1090a72
2021-03-03 08:06:42 -08:00
Pola Abram
d7fc17c12e Move list of valid origin prefixes for incoming WebSocket requests to a constant
Summary: Create a constant to hold all valid origin prefixes, for incoming WebSocket requests. This is to make it easier to add additional origins.

Reviewed By: mweststrate

Differential Revision: D26778708

fbshipit-source-id: b89bd8c8d8925b2863f12c319c6ecbeeb265fc42
2021-03-03 07:54:50 -08:00
generatedunixname89002005306973
47ff03fb96 Flipper Release: v0.79.0
Summary: Releasing version 0.79.0

Reviewed By: nikoant

Differential Revision: D26776798

fbshipit-source-id: 0e85fbad5024c7a794af71098a6b7d4953f4de34
2021-03-03 06:12:35 -08:00
Anton Nikolaev
fce723eaca Metro and Babel upgraded
Summary:
Upgraded Metro to 0.65.2 which contains the fix for regression which blocked us previously (https://github.com/facebook/metro/issues/641).
Also upgraded Babel to the latest available versions as anyway most of its packages were upgraded together with Metro.

Reviewed By: passy

Differential Revision: D26777168

fbshipit-source-id: f325e0ba46a95e15605a7b15a793d714b1027061
2021-03-03 04:42:43 -08:00
Michel Weststrate
90ac5f55a2 Add version number to error message
Summary: Minimal tweak to the soft crash error reporting: include the version number

Reviewed By: passy

Differential Revision: D26754416

fbshipit-source-id: d517d0bdb6bcf5c58b492c60b5bb8cc5f6b288f6
2021-03-03 03:17:34 -08:00
Anton Nikolaev
769b4d68bf Fix issue with migration producing undefined state for enabled plugins
Summary: I've modified migration to ensure it never produces "undefined" state. Before that this happened when migration is performed from version 0.75- to 0.77+ without 0.76 in between.

Reviewed By: mweststrate

Differential Revision: D26749830

fbshipit-source-id: 3a6599e80935060e8784103363abd617a7f1b7bd
2021-03-02 12:09:48 -08:00
Pascal Hartig
390f27a137 Start bridge abstraction
Summary: This is just an early start of centralising some ad-hoc logic we've got all over the place right now. Memoised do-we-have-idb calls with concatenated shell invocations. This gives us the opportunity to do a bit of testing, too.

Reviewed By: mweststrate

Differential Revision: D26694863

fbshipit-source-id: cd2b9883f90397802bbaae6030f7cb3881c565c2
2021-03-02 09:53:19 -08:00
Pascal Hartig
43242557aa Remove listDevices
Summary: Appears to be unused.

Reviewed By: mweststrate

Differential Revision: D26753922

fbshipit-source-id: 7a21b8242e4c8d2428a286bc6ef63adafe74a78c
2021-03-02 09:53:18 -08:00
Pola Abram
05bfaef75c Allow KaiOS apps (origin "app://") to connnect to the WebSocket server
Summary:
Packaged KaiOS apps have "app://" as their origin prefix (see the "origin" section in the documentation - https://developer.kaiostech.com/getting-started/main-concepts/manifest).

Accept WebSocket connections from any "app://" origin, so can connect to Flipper from apps running on KaiOS devices.

Reviewed By: priteshrnandgaonkar

Differential Revision: D26728925

fbshipit-source-id: 05f15fe464bf0dc977665fba1dd2b8d61a399fa6
2021-03-02 07:29:18 -08:00
Michel Weststrate
224ec4d5d6 Fix device cleanup
Summary:
Fixes https://github.com/facebook/flipper/issues/1989

We had some self healing side effect that would destroy devices when registering a new device with the same serial, if they weren't yet. Redux isn't too happy about that, causing the attached crash.

Instead introduced a utility to destroy devices, and log an error if the device life cycle isn't respected by the device implementations, rather than crashing we will now just waste some memory.

Changelog: Fix a crash when disconnecting metro devices

Reviewed By: passy

Differential Revision: D26749214

fbshipit-source-id: 4c185ac521d44c1337fac8a9145440123b8b784c
2021-03-02 03:58:55 -08:00
dependabot[bot]
2f3e671dca Bump @typescript-eslint/eslint-plugin from 4.14.2 to 4.15.2 in /desktop (#1983)
Summary:
Bumps [typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 4.14.2 to 4.15.2.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/typescript-eslint/typescript-eslint/releases"><code>@​typescript-eslint/eslint-plugin's releases</code></a>.</em></p>
<blockquote>
<h2>v4.15.2</h2>
<h2><a href="https://github.com/typescript-eslint/typescript-eslint/compare/v4.15.1...v4.15.2">4.15.2</a> (2021-02-22)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><strong>typescript-estree:</strong> correct issues in AST definition (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3083">#3083</a>) (<a href="509a11749f">509a117</a>)</li>
<li>add missing intrinsic keyword node to AST (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3081">#3081</a>) (<a href="409bf0bb3e">409bf0b</a>)</li>
<li><strong>eslint-plugin:</strong> [no-var-requires] report when used in type assertion (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3074">#3074</a>) (<a href="763a2520bf">763a252</a>)</li>
<li>correct test names on windows for semantic-diagnostics-enabled (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3060">#3060</a>) (<a href="885780d4a2">885780d</a>)</li>
</ul>
<h2>v4.15.1</h2>
<h2><a href="https://github.com/typescript-eslint/typescript-eslint/compare/v4.15.0...v4.15.1">4.15.1</a> (2021-02-15)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><strong>eslint-plugin:</strong> [explicit-module-boundary-types] check allowNames on function declarations and property methods (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3051">#3051</a>) (<a href="0ade469dc1">0ade469</a>)</li>
</ul>
<h2>v4.15.0</h2>
<h1><a href="https://github.com/typescript-eslint/typescript-eslint/compare/v4.14.2...v4.15.0">4.15.0</a> (2021-02-08)</h1>
<h3>Bug Fixes</h3>
<ul>
<li><strong>eslint-plugin:</strong> [no-extra-parens] handle ESLint 7.19.0 (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/2993">#2993</a>) (<a href="4615048d24">4615048</a>)</li>
<li><strong>eslint-plugin:</strong> [prefer-function-type] correct fixer when signature ends with a semi (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3002">#3002</a>) (<a href="898dd39619">898dd39</a>)</li>
<li><strong>scope-manager:</strong> fix visiting of TSImportType (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3008">#3008</a>) (<a href="ce4fcbf440">ce4fcbf</a>), closes <a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3006">#3006</a></li>
</ul>
<h3>Features</h3>
<ul>
<li><strong>typescript-estree:</strong> improve logic used to escape string literals in jsx (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/2995">#2995</a>) (<a href="3cb3aade28">3cb3aad</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md"><code>@​typescript-eslint/eslint-plugin's changelog</code></a>.</em></p>
<blockquote>
<h2><a href="https://github.com/typescript-eslint/typescript-eslint/compare/v4.15.1...v4.15.2">4.15.2</a> (2021-02-22)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><strong>typescript-estree:</strong> correct issues in AST definition (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3083">#3083</a>) (<a href="509a11749f">509a117</a>)</li>
<li>add missing intrinsic keyword node to AST (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3081">#3081</a>) (<a href="409bf0bb3e">409bf0b</a>)</li>
<li><strong>eslint-plugin:</strong> [no-var-requires] report when used in type assertion (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3074">#3074</a>) (<a href="763a2520bf">763a252</a>)</li>
</ul>
<h2><a href="https://github.com/typescript-eslint/typescript-eslint/compare/v4.15.0...v4.15.1">4.15.1</a> (2021-02-15)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><strong>eslint-plugin:</strong> [explicit-module-boundary-types] check allowNames on function declarations and property methods (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3051">#3051</a>) (<a href="0ade469dc1">0ade469</a>)</li>
</ul>
<h1><a href="https://github.com/typescript-eslint/typescript-eslint/compare/v4.14.2...v4.15.0">4.15.0</a> (2021-02-08)</h1>
<h3>Bug Fixes</h3>
<ul>
<li><strong>eslint-plugin:</strong> [no-extra-parens] handle ESLint 7.19.0 (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/2993">#2993</a>) (<a href="4615048d24">4615048</a>)</li>
<li><strong>eslint-plugin:</strong> [prefer-function-type] correct fixer when signature ends with a semi (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3002">#3002</a>) (<a href="898dd39619">898dd39</a>)</li>
<li><strong>scope-manager:</strong> fix visiting of TSImportType (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3008">#3008</a>) (<a href="ce4fcbf440">ce4fcbf</a>), closes <a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3006">#3006</a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="fc774f6377"><code>fc774f6</code></a> chore: publish v4.15.2</li>
<li><a href="509a11749f"><code>509a117</code></a> fix(typescript-estree): correct issues in AST definition (<a href="https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin/issues/3083">#3083</a>)</li>
<li><a href="409bf0bb3e"><code>409bf0b</code></a> fix: add missing intrinsic keyword node to AST (<a href="https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin/issues/3081">#3081</a>)</li>
<li><a href="763a2520bf"><code>763a252</code></a> fix(eslint-plugin): [no-var-requires] report when used in type assertion (<a href="https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin/issues/3074">#3074</a>)</li>
<li><a href="e9bdd07da2"><code>e9bdd07</code></a> test(eslint-plugin): [no-unsafe-assignment] add missing test cases (<a href="https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin/issues/3070">#3070</a>)</li>
<li><a href="f9980c25fa"><code>f9980c2</code></a> chore: publish v4.15.1</li>
<li><a href="d94c6c93eb"><code>d94c6c9</code></a> docs(eslint-plugin): [explicit-module-boundary-types] fix doc &amp; code examples...</li>
<li><a href="3dcedb81eb"><code>3dcedb8</code></a> chore: update remaining dependencies (<a href="https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin/issues/3057">#3057</a>)</li>
<li><a href="0ade469dc1"><code>0ade469</code></a> fix(eslint-plugin): [explicit-module-boundary-types] check allowNames on func...</li>
<li><a href="5e5d9b9dc4"><code>5e5d9b9</code></a> chore(eslint-plugin): remove no longer needed tools module (<a href="https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin/issues/3052">#3052</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/typescript-eslint/typescript-eslint/commits/v4.15.2/packages/eslint-plugin">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@typescript-eslint/eslint-plugin&package-manager=npm_and_yarn&previous-version=4.14.2&new-version=4.15.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

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 close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor 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)

</details>

Pull Request resolved: https://github.com/facebook/flipper/pull/1983

Reviewed By: passy

Differential Revision: D26724094

Pulled By: mweststrate

fbshipit-source-id: 506e04e4cc9cc78b3cfce5b4ae196ce3437f0eed
2021-03-02 01:23:06 -08:00
dependabot[bot]
d94b99b0ee Bump async-mutex from 0.2.6 to 0.3.1 in /desktop (#1984)
Summary:
Bumps [async-mutex](https://github.com/DirtyHairy/async-mutex) from 0.2.6 to 0.3.1.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/DirtyHairy/async-mutex/blob/master/CHANGELOG.md">async-mutex's changelog</a>.</em></p>
<blockquote>
<h2>0.3.1</h2>
<ul>
<li><code>withTimeout</code>: make Jest happy and cancel timer when the mutex is acquired.
Thanks to cantoine for the PR.</li>
</ul>
<h2>0.3.0</h2>
<ul>
<li>
<p>Deprecate <code>Mutex::release</code> / <code>Semaphore::release</code> and remove them from the
documentation. The methods are still available in 0.3.x, but will be removed in
0.4.0.</p>
<p>I don't like breaking existing APIs, but using those methods is inherently
dangerous as they can accidentially release locks acquired in a completely
different place. Furthermore, they are mostly useless for semaphores. I consider
adding them an unfortunate mistake on my end.</p>
<p>A safe alternative is the usage of <code>runExclusive</code> which allows to execute
blocks exclusively and automatically manages acquiring and releasing the
mutex or semaphore.</p>
</li>
<li>
<p>Add <code>Mutex::cancel</code> / <code>Semaphore::cancel</code> for rejecting all currently pending
locks.</p>
</li>
<li>
<p>Add <code>tryAcquire</code> decorator for lock-or-fail semantics.</p>
</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="93f1ff7d6d"><code>93f1ff7</code></a> Changelog, bump version.</li>
<li><a href="3aad9351d7"><code>3aad935</code></a> Bump version.</li>
<li><a href="eed47b0425"><code>eed47b0</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/DirtyHairy/async-mutex/issues/34">https://github.com/facebook/flipper/issues/34</a> from cantoine/clear-timeout-fix</li>
<li><a href="38e59ba3b4"><code>38e59ba</code></a> Add clearTimeout and tests</li>
<li><a href="76fb6185d3"><code>76fb618</code></a> Point badge to action on gh.</li>
<li><a href="330854af56"><code>330854a</code></a> Typo.</li>
<li><a href="73992fee3a"><code>73992fe</code></a> Ups.</li>
<li><a href="b3870af6b6"><code>b3870af</code></a> Badge.</li>
<li><a href="13ad461682"><code>13ad461</code></a> Another stab at coveralls.</li>
<li><a href="3e5daebbb7"><code>3e5daeb</code></a> Remove travis, add coveralls to github workflow.</li>
<li>Additional commits viewable in <a href="https://github.com/DirtyHairy/async-mutex/compare/v0.2.6...v0.3.1">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=async-mutex&package-manager=npm_and_yarn&previous-version=0.2.6&new-version=0.3.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

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 close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor 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)

</details>

Pull Request resolved: https://github.com/facebook/flipper/pull/1984

Reviewed By: passy

Differential Revision: D26724090

Pulled By: mweststrate

fbshipit-source-id: 71a59fe1df200198fc437d2a87f72dde82ba4fa4
2021-03-02 01:23:06 -08:00
dependabot[bot]
fa258605da Bump open from 7.3.1 to 7.4.2 in /desktop (#1985)
Summary:
Bumps [open](https://github.com/sindresorhus/open) from 7.3.1 to 7.4.2.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/sindresorhus/open/releases">open's releases</a>.</em></p>
<blockquote>
<h2>v7.4.2</h2>
<ul>
<li>WSL: Fix mount point issue (<a href="https://github-redirect.dependabot.com/sindresorhus/open/issues/224">https://github.com/facebook/flipper/issues/224</a>)  f4df68a</li>
</ul>
<p><a href="https://github.com/sindresorhus/open/compare/v7.4.1...v7.4.2">https://github.com/sindresorhus/open/compare/v7.4.1...v7.4.2</a></p>
<h2>v7.4.1</h2>
<ul>
<li>Windows: Fix error with forward slashes in path (<a href="https://github-redirect.dependabot.com/sindresorhus/open/issues/220">https://github.com/facebook/flipper/issues/220</a>)  db8eb8f</li>
<li>WSL: Get drives mount point from wsl.conf (<a href="https://github-redirect.dependabot.com/sindresorhus/open/issues/219">https://github.com/facebook/flipper/issues/219</a>)  36e9964</li>
</ul>
<p><a href="https://github.com/sindresorhus/open/compare/v7.4.0...v7.4.1">https://github.com/sindresorhus/open/compare/v7.4.0...v7.4.1</a></p>
<h2>v7.4.0</h2>
<ul>
<li>Remove usage of <code>wslu</code> (<a href="https://github-redirect.dependabot.com/sindresorhus/open/issues/217">https://github.com/facebook/flipper/issues/217</a>)  315a480</li>
</ul>
<p><a href="https://github.com/sindresorhus/open/compare/v7.3.1...v7.4.0">https://github.com/sindresorhus/open/compare/v7.3.1...v7.4.0</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="a9babe05b3"><code>a9babe0</code></a> 7.4.2</li>
<li><a href="f4df68ab2f"><code>f4df68a</code></a> WSL: Fix mount point issue (<a href="https://github-redirect.dependabot.com/sindresorhus/open/issues/224">https://github.com/facebook/flipper/issues/224</a>)</li>
<li><a href="f0533c0219"><code>f0533c0</code></a> 7.4.1</li>
<li><a href="db8eb8f30c"><code>db8eb8f</code></a> Windows: Fix error with forward slashes in path (<a href="https://github-redirect.dependabot.com/sindresorhus/open/issues/220">https://github.com/facebook/flipper/issues/220</a>)</li>
<li><a href="02bff0124b"><code>02bff01</code></a> Replace deprecated API regarding Electron tip (<a href="https://github-redirect.dependabot.com/sindresorhus/open/issues/221">https://github.com/facebook/flipper/issues/221</a>)</li>
<li><a href="36e9964505"><code>36e9964</code></a> WSL: Get drives mount point from wsl.conf (<a href="https://github-redirect.dependabot.com/sindresorhus/open/issues/219">https://github.com/facebook/flipper/issues/219</a>)</li>
<li><a href="5ce319c848"><code>5ce319c</code></a> 7.4.0</li>
<li><a href="315a48046b"><code>315a480</code></a> Remove usage of <code>wslu</code> (<a href="https://github-redirect.dependabot.com/sindresorhus/open/issues/217">https://github.com/facebook/flipper/issues/217</a>)</li>
<li>See full diff in <a href="https://github.com/sindresorhus/open/compare/v7.3.1...v7.4.2">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=open&package-manager=npm_and_yarn&previous-version=7.3.1&new-version=7.4.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

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 close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor 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)

</details>

Pull Request resolved: https://github.com/facebook/flipper/pull/1985

Reviewed By: passy

Differential Revision: D26724088

Pulled By: mweststrate

fbshipit-source-id: 00ac9ff0aa15b2bfc1742e2a9e73da693781eabf
2021-03-02 01:23:06 -08:00
dependabot[bot]
67135ec26a Bump @types/react-dom from 17.0.0 to 17.0.1 in /desktop (#1986)
Summary:
Bumps [types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom) from 17.0.0 to 17.0.1.
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@types/react-dom&package-manager=npm_and_yarn&previous-version=17.0.0&new-version=17.0.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

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 close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor 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)

</details>

Pull Request resolved: https://github.com/facebook/flipper/pull/1986

Reviewed By: passy

Differential Revision: D26724087

Pulled By: mweststrate

fbshipit-source-id: 7e6e2ec26fbd3aba794f4279e7ce4af016efa750
2021-03-02 01:23:06 -08:00
dependabot[bot]
10efc4dfa3 Bump react-color from 2.18.1 to 2.19.3 in /desktop (#1987)
Summary:
Bumps [react-color](https://github.com/casesandberg/react-color) from 2.18.1 to 2.19.3.
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a href="https://github.com/casesandberg/react-color/commits">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=react-color&package-manager=npm_and_yarn&previous-version=2.18.1&new-version=2.19.3)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

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 close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor 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)

</details>

Pull Request resolved: https://github.com/facebook/flipper/pull/1987

Reviewed By: passy

Differential Revision: D26724081

Pulled By: mweststrate

fbshipit-source-id: c7b136546206dadfbd1a793360953b14586b219b
2021-03-02 01:23:06 -08:00
Michel Weststrate
afa2c6322a make lint error on missing keys
Summary: When exploratory testing Flipper, I generally see quite some React key warnings. So it seems that plugin devs often miss them. This diff will configure linting more aggressively to address that (it's not fool proof, but will find the most common cases).

Reviewed By: nikoant

Differential Revision: D26722707

fbshipit-source-id: e0d2b56de2422e1147f52c8e9150d00c7ee64bd2
2021-03-02 01:17:13 -08:00
Harold Martin
4d8be35d1a Add plugin for LeakCanary 2 (#1959)
Summary:
Add plugin for LeakCanary 2 as requested various times: https://github.com/facebook/flipper/issues/1379 https://github.com/facebook/flipper/issues/832  https://github.com/square/leakcanary/issues/1777

## Changelog

* Adds a leakcanary2 plugin for Android
* Adds support for leakcanary2 to existing desktop plugin

Pull Request resolved: https://github.com/facebook/flipper/pull/1959

Test Plan:
* Docs updated to show new implementation
* Should old leakcanary plugin in sample be replaced?

Reviewed By: mweststrate

Differential Revision: D26691637

Pulled By: passy

fbshipit-source-id: 5e236fa6cc124f0720a6b21b5ee7c117ccf96fbf
2021-03-01 09:11:37 -08:00
Anton Nikolaev
5c9b06621f Re-applied patch for antd 4.12.2
Summary:
I've noticed a warning during Flipper build that the antd patch was created for an earlier version of antd, so I did what was suggested in the warning message to get rid of this warning:
```
Warning: patch-package detected a patch file version mismatch

  Don't worry! This is probably fine. The patch was still applied
  successfully. Here's the deets:

  Patch file created for

    antd@4.11.2

  applied to

    antd@4.12.2

  At path

    node_modules/antd

  This warning is just to give you a heads-up. There is a small chance of
  breakage even though the patch was applied successfully. Make sure the package
  still behaves like you expect (you wrote tests, right?) and then run

    patch-package antd

  to update the version in the patch file name and make this warning go away.
```

Reviewed By: fabiomassimo

Differential Revision: D26724100

fbshipit-source-id: 2f548c92f61e5d300d772913baf8b8e4f8fb87ef
2021-03-01 07:09:07 -08:00
generatedunixname89002005306973
31d0acc4b5 Flipper Release: v0.78.0
Summary: Releasing version 0.78.0

Reviewed By: mweststrate

Differential Revision: D26692601

fbshipit-source-id: edc7e1c91f613344e02772cf53c8868aa3a8cf4a
2021-02-26 13:15:34 -08:00
Michel Weststrate
4b91e83b0a Add tracking to legacy Tabs component
Summary:
Per title

As requested in https://fb.workplace.com/groups/flippersupport/permalink/1080030509144273/

Reviewed By: fabiomassimo

Differential Revision: D26691262

fbshipit-source-id: d7863749700c4a0f3af736f251c9c3f03d4f71b9
2021-02-26 07:27:54 -08:00
Michel Weststrate
357d2991d5 automatically select reconnected clients
Summary:
Changelog: Flipper will no automatically select any newly connected client

This reverts D26250896 (2df117923c) to V5, which is to aggressively select new clients. The current behavior was too conservative and caused Flipper to jump to a different client, without returning, after reconnecting a disconnected device.

As reported in https://fb.workplace.com/groups/flippersupport/permalink/1084676302013027/

Reviewed By: fabiomassimo

Differential Revision: D26691046

fbshipit-source-id: b16af2052f58dc1d4254eb1e6ebbb5848c53ed7e
2021-02-26 07:27:54 -08:00
Michel Weststrate
f2689d3a5d Add device level icons
Summary: Gave every device an icon, and use it as fallback in case we don't have a client icon. Added an icon for the Flipper client. This gets (largely) rid of the 'blank' icons

Reviewed By: fabiomassimo

Differential Revision: D26691054

fbshipit-source-id: d83012e755ae5edb230747e88f9b2eac45450b19
2021-02-26 07:27:54 -08:00
Michel Weststrate
a5cd18c289 Register Flipper self inspection client under its own device
Summary:
There is currently a separate device for the Flipper inspection plugin. Figured it would be simpler and more logical to directly put it under the host device.

Might clean this up further in the future by having a `host` device and turning this into a device plugin

Reviewed By: fabiomassimo

Differential Revision: D26691053

fbshipit-source-id: 4f2fe890a1fff559b19b1599cc02017c45a635b9
2021-02-26 07:27:53 -08:00