Commit Graph

151 Commits

Author SHA1 Message Date
Pascal Hartig
adf183f65d Dep bump
Summary:
allow-large-files

The semi-regular bumps are back!

Reviewed By: mweststrate

Differential Revision: D29427165

fbshipit-source-id: 0d23487f807e67cccb62cfb3717245a122db8f6e
2021-06-28 06:31:54 -07:00
dependabot[bot]
da6e6705ac Bump @types/node from 15.12.2 to 15.12.4 in /desktop (#2490)
Summary:
Bumps [types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 15.12.2 to 15.12.4.
<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=15.12.2&new-version=15.12.4)](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/2490

Reviewed By: nikoant

Differential Revision: D29264230

Pulled By: mweststrate

fbshipit-source-id: 646d31335ed728211de35e4038544c0d9f18a5d9
2021-06-22 03:02:28 -07:00
Pascal Hartig
34c862d5f2 Wednesday dep bump
Summary:
Includes most of the PRs currently open.

allow-large-files for antd

Reviewed By: mweststrate

Differential Revision: D29160385

fbshipit-source-id: b9e6d3b16a806cf615b7b0e24ba3395f3ed44822
2021-06-16 06:38:03 -07:00
Pascal Hartig
15d052af52 Monday dep bump
Summary: All patch bumps.

Reviewed By: muraziz

Differential Revision: D29098776

fbshipit-source-id: 7cfb9774ddebaa6b1c61c597869bf0f9cf0c2687
2021-06-15 08:41:18 -07:00
Pascal Hartig
4fd8e0b8ca Tuesday dep bump
Summary: Paying forward for my upcoming oncall.

Reviewed By: nikoant

Differential Revision: D28960593

fbshipit-source-id: fb257c451b666191d8443f992d95d5d136ed22ff
2021-06-09 01:59:12 -07:00
Pascal Hartig
ce7b709908 Monday dep bump
Summary:
More safe bumps.

allow-large-files

Reviewed By: cekkaewnumchai

Differential Revision: D28929951

fbshipit-source-id: ade2919e2968446692fc88d6b6ae24644c30c137
2021-06-08 11:01:02 -07:00
Pascal Hartig
baf38809e6 Dep bump
Summary:
Bump a day, doctor away, etc.

allow-large-files

Reviewed By: nikoant

Differential Revision: D28897147

fbshipit-source-id: be2473462b566ec02575d06d10c1a191dfda4d77
2021-06-04 11:48:39 -07:00
Pascal Hartig
5b59ae099f Dep bump
Summary: You know the drill.

Reviewed By: nikoant

Differential Revision: D28867596

fbshipit-source-id: dd3487a918dd75ffd47947a32f0f22f511a5f3d4
2021-06-04 08:41:16 -07:00
Pascal Hartig
0fb5ef1de8 Dep bump
Summary: I was in the groove. Here's some more.

Reviewed By: nikoant

Differential Revision: D28831742

fbshipit-source-id: 3314c0c2ba89b513a62b7c62683aaf5eeace5610
2021-06-02 13:27:31 -07:00
Arthur Lee
80feff1615 Fix search by passing query to search request (#2377)
Summary:
When publishing a new flipper plugin, I realized my plugin wasn't showing up in the Plugin Installer search. This was due to a bug where we are only grabbing 50 plugins from NPM and filtering through them locally, instead of passing the search term to the search query. There are 59 plugins that match the keyword filter on npm so 9 plugins never get surfaced.

## Changelog

Fix missing plugins in plugin manager's NPM search

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

Test Plan:
Test the search feature in Plugin Manager

Search for the previously missing package:
![image](https://user-images.githubusercontent.com/1904616/119906244-b4daa580-bf02-11eb-8545-c8cf0663ae92.png)

Previously working searches continue to work:
![image](https://user-images.githubusercontent.com/1904616/119906274-c02dd100-bf02-11eb-938a-d84b27c6bd81.png)

Reviewed By: nikoant

Differential Revision: D28831054

Pulled By: passy

fbshipit-source-id: 84442459cd760c3f593b3df5bb3d89d51852e1c4
2021-06-02 05:47:54 -07:00
dependabot[bot]
85157fb948 Bump typescript from 4.2.4 to 4.3.2 in /desktop (#2401)
Summary:
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.2.4 to 4.3.2.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/Microsoft/TypeScript/releases">typescript's releases</a>.</em></p>
<blockquote>
<h2>TypeScript 4.3.2</h2>
<p>For release notes, check out the <a href="https://devblogs.microsoft.com/typescript/announcing-typescript-4-3">release announcement</a>.</p>
<p>For the complete list of fixed issues, check out the</p>
<ul>
<li><a href="https://github.com/Microsoft/TypeScript/issues?utf8=%E2%9C%93&amp;q=is%3Aissue+milestone%3A%22TypeScript+4.3.0%22+is%3Aclosed+">fixed issues query for TypeScript v4.3.0 (Beta)</a>.</li>
<li><a href="https://github.com/Microsoft/TypeScript/issues?utf8=%E2%9C%93&amp;q=is%3Aissue+milestone%3A%22TypeScript+4.3.1%22+is%3Aclosed+">fixed issues query for TypeScript v4.3.1 (RC)</a>.</li>
<li><a href="https://github.com/Microsoft/TypeScript/issues?utf8=%E2%9C%93&amp;q=is%3Aissue+milestone%3A%22TypeScript+4.3.2%22+is%3Aclosed+">fixed issues query for TypeScript v4.3.2</a>.</li>
</ul>
<p>Downloads are available on:</p>
<ul>
<li><a href="https://www.npmjs.com/package/typescript">npm</a></li>
<li><a href="https://marketplace.visualstudio.com/items?itemName=TypeScriptTeam.TypeScript-43">Visual Studio 2017/2019</a> (<a href="https://github.com/Microsoft/TypeScript/wiki/Updating-TypeScript-in-Visual-Studio-2017">Select new version in project options</a>)</li>
<li><a href="https://www.nuget.org/packages/Microsoft.TypeScript.MSBuild">NuGet package</a></li>
</ul>
<h2>TypeScript 4.3 RC</h2>
<p>For release notes, check out the <a href="https://devblogs.microsoft.com/typescript/announcing-typescript-4-3-rc">release announcement</a>.</p>
<p>For the complete list of fixed issues, check out the</p>
<ul>
<li><a href="https://github.com/Microsoft/TypeScript/issues?utf8=%E2%9C%93&amp;q=is%3Aissue+milestone%3A%22TypeScript+4.3.0%22+is%3Aclosed+">fixed issues query for TypeScript v4.3.0 (Beta)</a>.</li>
<li><a href="https://github.com/Microsoft/TypeScript/issues?utf8=%E2%9C%93&amp;q=is%3Aissue+milestone%3A%22TypeScript+4.3.1%22+is%3Aclosed+">fixed issues query for TypeScript v4.3.1 (RC)</a>.</li>
</ul>
<p>Downloads are available on:</p>
<ul>
<li><a href="https://www.npmjs.com/package/typescript">npm</a></li>
<li><a href="https://marketplace.visualstudio.com/items?itemName=TypeScriptTeam.TypeScript-43">Visual Studio 2017/2019</a> (<a href="https://github.com/Microsoft/TypeScript/wiki/Updating-TypeScript-in-Visual-Studio-2017">Select new version in project options</a>)</li>
<li><a href="https://www.nuget.org/packages/Microsoft.TypeScript.MSBuild">NuGet package</a></li>
</ul>
<h2>TypeScript 4.3 Beta</h2>
<p>For release notes, check out the <a href="https://devblogs.microsoft.com/typescript/announcing-typescript-4-3-beta/">release announcement</a>.</p>
<p>For the complete list of fixed issues, check out the</p>
<ul>
<li><a href="https://github.com/Microsoft/TypeScript/issues?q=milestone%3A%22TypeScript+4.3.0%22">fixed issues query for Typescript 4.3.0 (Beta)</a>.</li>
</ul>
<p>Downloads are available on:</p>
<ul>
<li><a href="https://www.npmjs.com/package/typescript">npm</a></li>
<li><a href="https://marketplace.visualstudio.com/items?itemName=TypeScriptTeam.TypeScript-43beta">Visual Studio 2017/2019</a> (<a href="https://github.com/Microsoft/TypeScript/wiki/Updating-TypeScript-in-Visual-Studio-2017">Select new version in project options</a>)</li>
<li><a href="https://www.nuget.org/packages/Microsoft.TypeScript.MSBuild">NuGet package</a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="28e3e6ff2f"><code>28e3e6f</code></a> � Pick PR <a href="https://github-redirect.dependabot.com/Microsoft/TypeScript/issues/44219">#44219</a> (Properly remove generic types that ...) into release-4.3 (#...</li>
<li><a href="d6e6fa728e"><code>d6e6fa7</code></a> Cherry-pick PR <a href="https://github-redirect.dependabot.com/Microsoft/TypeScript/issues/44129">#44129</a> into release-4.3 (<a href="https://github-redirect.dependabot.com/Microsoft/TypeScript/issues/44240">#44240</a>)</li>
<li><a href="27d6e4490d"><code>27d6e44</code></a> Bump version to 4.3.2 and LKG</li>
<li><a href="fed2315062"><code>fed2315</code></a> Cherry-pick PR <a href="https://github-redirect.dependabot.com/Microsoft/TypeScript/issues/44186">#44186</a> into release-4.3 (<a href="https://github-redirect.dependabot.com/Microsoft/TypeScript/issues/44188">#44188</a>)</li>
<li><a href="dec8261174"><code>dec8261</code></a> Revert <a href="https://github-redirect.dependabot.com/Microsoft/TypeScript/issues/43460">#43460</a> and <a href="https://github-redirect.dependabot.com/Microsoft/TypeScript/issues/40884">#40884</a> (<a href="https://github-redirect.dependabot.com/Microsoft/TypeScript/issues/44175">#44175</a>) (<a href="https://github-redirect.dependabot.com/Microsoft/TypeScript/issues/44177">#44177</a>)</li>
<li><a href="22c3c24cf0"><code>22c3c24</code></a> Cherry-pick PR <a href="https://github-redirect.dependabot.com/Microsoft/TypeScript/issues/44125">#44125</a> into release-4.3 (<a href="https://github-redirect.dependabot.com/Microsoft/TypeScript/issues/44136">#44136</a>)</li>
<li><a href="1d850c0927"><code>1d850c0</code></a> Cherry-pick PR <a href="https://github-redirect.dependabot.com/Microsoft/TypeScript/issues/44008">#44008</a> into release-4.3 (<a href="https://github-redirect.dependabot.com/Microsoft/TypeScript/issues/44029">#44029</a>)</li>
<li><a href="d805ce877a"><code>d805ce8</code></a> Bump version to 4.3.1-rc and LKG</li>
<li><a href="bab601b5e6"><code>bab601b</code></a> Merge remote-tracking branch 'origin/master' into release-4.3</li>
<li><a href="5b1e873b03"><code>5b1e873</code></a> Update diagnostic message and quickfix for parameter property (<a href="https://github-redirect.dependabot.com/Microsoft/TypeScript/issues/44010">#44010</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/Microsoft/TypeScript/compare/v4.2.4...v4.3.2">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=typescript&package-manager=npm_and_yarn&previous-version=4.2.4&new-version=4.3.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/2401

Reviewed By: nikoant

Differential Revision: D28795376

Pulled By: passy

fbshipit-source-id: 95156c5b85ff8dfd9eb0aaa51e75cff33779ff74
2021-06-02 03:45:58 -07:00
Pascal Hartig
be2f15b71f Dep bump
Summary: Daily bump for low-risk deps.

Reviewed By: cekkaewnumchai

Differential Revision: D28707008

fbshipit-source-id: 453351387a9a7a05a1c30294f2712956da6ecc49
2021-05-26 08:35:12 -07:00
Pascal Hartig
4dd3b3e8ba Dep bump
Summary: A daily bump keeps the dependabot away.

Reviewed By: fabiomassimo

Differential Revision: D28602154

fbshipit-source-id: 058789faaa3d00a60273c1944bef0dbebd591946
2021-05-23 11:40:52 -07:00
Anton Nikolaev
5ae104cc59 Merge plugin package.json from public and fb-internal parts
Summary: Allow splitting package.json to public one and fb-internal one located in "fb/package.json". When plugin is packaged, fields in package.json are overwritten by fields from "fb/package.json" if they exist. This give us a way to specify additional metadata which only make sense internally (e.g. oncall and internal links to docs and support).

Reviewed By: mweststrate

Differential Revision: D28542101

fbshipit-source-id: c0167461897a994e5731aaf0fe625de052eda864
2021-05-21 07:15:28 -07:00
Anton Nikolaev
a4eb2a56d6 Option for "yarn start" and "yarn build" scripts to pre-install default plugin packages instead of bundling them
Summary:
Sorry for long diff! I can try to split it if necessary, but many changes here are 1-1 replacements / renames.

**Preambule**
Currently we bundle default plugins into the Flipper main bundle. This helps us to reduce bundle size, because of plugin dependencies re-use. E.g. if multiple plugins use "lodash" when they are bundled together, only one copy of "lodash" added. When they are bundled separately, the same dependency might be added to each of them. However as we're not going to include most of plugins into Flipper distributive anymore and going to rely on Marketplace instead, this bundling doesn't provide significant size benefits anymore. In addition to that, bundling makes it impossible to differentiate whether thrown errors are originated from Flipper core or one of its plugins.

Why don't we remove plugin bundling at all? Because for "dev mode" it actually quite useful. It makes dev build start much faster and also enables using of Fast Refresh for plugin development (fast refresh won't work for plugins loaded from disk).

**Changes**
This diff introduces new option "no-bundled-plugins" for "yarn start" and "yarn build" commands. For now, by default, we will continue bundling default plugins into the Flipper main bundle, but if this option provided then we will build each default plugin separately and include their packages into the Flipper distributive as "pre-installed" to be able to load them from disk even without access to Marketplace.

For "yarn start", we're adding symlinks to plugin folders in "static/defaultPlugins" and then they are loaded by Flipper. For "yarn build" we are dereferencing these symlinks to include physical files of plugins into folder "defaultPlugins" of the produced distributive. Folder "defaultPlugins" is excluded from asar, because loading of plugins from asar archive might introduce some unexpected issues depending on their implementation.

Reviewed By: mweststrate

Differential Revision: D28431838

fbshipit-source-id: f7757e9f5ba9183ed918d70252de3ce0e823177d
2021-05-18 08:08:30 -07:00
Anton Nikolaev
a8ca142c9a Load only compatible plugins on startup
Summary: We currently filtering out incompatible versions from marketplace. This diff also add filtering for incompatible installed plugins on Flipper startup to ensure we always load the latest compatible version.

Reviewed By: passy

Differential Revision: D28341891

fbshipit-source-id: 83afc14a3c07e1763e1bd146251e6d3b71a66248
2021-05-12 07:49:13 -07:00
Anton Nikolaev
28fd8da615 Install only compatible plugins
Summary: Currently, when user installs a new plugin which was not installed before that, Flipper always takes the latest available version of it. This is not correct, because the latest version might be incompatible with the currently running version of Flipper. To avoid that, instead of always using just the latest version we will be using the most recent version which is compatible with the current Flipper version.

Reviewed By: passy

Differential Revision: D28306505

fbshipit-source-id: 4258a456d6a5d92cbf48af55c0efb17ecf560b57
2021-05-12 07:49:13 -07:00
Pascal Hartig
92bed19131 Bump fs-extra
Summary: Nothing crazy in the changelog.

Reviewed By: mweststrate

Differential Revision: D28228756

fbshipit-source-id: 0f71badee0312dcb479ab1f20b25fc0e45e18c10
2021-05-06 05:53:48 -07:00
Pascal Hartig
c97e422e5f Bump deps
Summary: Bump a few more devDeps that are safe.

Reviewed By: mweststrate

Differential Revision: D28227971

fbshipit-source-id: 3b35b098230b604930d875ddf8867cfc6f56a9c7
2021-05-06 05:53:48 -07:00
Pascal Hartig
c3f3b35a31 Mass-bump deps
Summary:
Trying to get ahead of dependabot by bumping a bunch of things at once
that are minor or patch level bumps.

Reviewed By: muraziz

Differential Revision: D28094201

fbshipit-source-id: b6b53ae2d582686201124b82fed4f436a60b3172
2021-04-29 11:33:57 -07:00
dependabot[bot]
dc33b3f627 Bump mock-fs from 4.13.0 to 4.14.0 in /desktop (#2240)
Summary:
Bumps [mock-fs](https://github.com/tschaub/mock-fs) from 4.13.0 to 4.14.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/tschaub/mock-fs/releases">mock-fs's releases</a>.</em></p>
<blockquote>
<h2>v4.14.0</h2>
<ul>
<li>Attempt to fix logging when using <code>mock-fs</code> with <code>tape</code> (see <a href="https://github-redirect.dependabot.com/tschaub/mock-fs/issues/322">https://github.com/facebook/flipper/issues/322</a>)</li>
<li>Minor fix for <code>bypass()</code> (thanks <a href="https://github.com/3cp"><code>@​3cp</code></a>, see <a href="https://github-redirect.dependabot.com/tschaub/mock-fs/issues/320">https://github.com/facebook/flipper/issues/320</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/tschaub/mock-fs/blob/main/changelog.md">mock-fs's changelog</a>.</em></p>
<blockquote>
<h2>4.14.0</h2>
<ul>
<li>Attempt to fix logging when using <code>mock-fs</code> with <code>tape</code> (see <a href="https://github-redirect.dependabot.com/tschaub/mock-fs/issues/322">https://github.com/facebook/flipper/issues/322</a><a href="https://github-redirect.dependabot.com/tschaub/mock-fs/issues/322">https://github.com/facebook/flipper/issues/322</a>)</li>
<li>Minor fix for <code>bypass()</code> (thanks <a href="https://github.com/3cp"><code>@​3cp</code></a>, see <a href="https://github-redirect.dependabot.com/tschaub/mock-fs/issues/320">https://github.com/facebook/flipper/issues/320</a><a href="https://github-redirect.dependabot.com/tschaub/mock-fs/issues/320">https://github.com/facebook/flipper/issues/320</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="74e36f68ff"><code>74e36f6</code></a> 4.14.0</li>
<li><a href="af65aa6f6d"><code>af65aa6</code></a> Log changes</li>
<li><a href="d530fd46b7"><code>d530fd4</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/tschaub/mock-fs/issues/323">https://github.com/facebook/flipper/issues/323</a> from tschaub/updates</li>
<li><a href="3a21f5eacd"><code>3a21f5e</code></a> Transitive dependency updates</li>
<li><a href="cb3ad219b2"><code>cb3ad21</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/tschaub/mock-fs/issues/322">https://github.com/facebook/flipper/issues/322</a> from tschaub/std</li>
<li><a href="648d2997da"><code>648d299</code></a> test: nodejs v12 and v14 is still not patched</li>
<li><a href="0078d4c81f"><code>0078d4c</code></a> test: nodejs v14+ silently ignores closing closed file descriptor</li>
<li><a href="fb70713318"><code>fb70713</code></a> fix: support old nodejs without Promise.prototype.finally</li>
<li><a href="3327f80738"><code>3327f80</code></a> test: fix wrong usage of assert.fail</li>
<li><a href="1731bff3da"><code>1731bff</code></a> test: try nodejs v12 and v14</li>
<li>Additional commits viewable in <a href="https://github.com/tschaub/mock-fs/compare/v4.13.0...v4.14.0">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=mock-fs&package-manager=npm_and_yarn&previous-version=4.13.0&new-version=4.14.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/2240

Reviewed By: passy

Differential Revision: D27999681

Pulled By: priteshrnandgaonkar

fbshipit-source-id: e81a62d21c2aabb2b4688420014d1e4495585f51
2021-04-26 12:13:44 -07:00
dependabot[bot]
a19b470efe Bump algoliasearch from 4.8.6 to 4.9.0 in /desktop (#2212)
Summary:
Bumps [algoliasearch](https://github.com/algolia/algoliasearch-client-javascript) from 4.8.6 to 4.9.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/algolia/algoliasearch-client-javascript/releases">algoliasearch's releases</a>.</em></p>
<blockquote>
<h2>4.9.0</h2>
<h2><a href="https://github.com/algolia/algoliasearch-client-javascript/compare/4.8.6...4.9.0">v4.9.0</a></h2>
<ul>
<li>feat(dictionaries): adds methods and tests (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1253">https://github.com/facebook/flipper/issues/1253</a>) (<a href="https://github.com/algolia/algoliasearch-client-javascript/commit/aed6554">aed6554</a>), closes <a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1253">https://github.com/facebook/flipper/issues/1253</a></li>
<li>feat(types): support <code>type</code> and <code>facet</code> in search methods (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1263">https://github.com/facebook/flipper/issues/1263</a>) (<a href="https://github.com/algolia/algoliasearch-client-javascript/commit/54c1cb7">54c1cb7</a>), closes <a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1263">https://github.com/facebook/flipper/issues/1263</a></li>
<li>fix(findAnswers): omit removeWordsIfNoResults correctly (<a href="https://github.com/algolia/algoliasearch-client-javascript/commit/3aec216">3aec216</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/algolia/algoliasearch-client-javascript/blob/master/CHANGELOG.md">algoliasearch's changelog</a>.</em></p>
<blockquote>
<h2><a href="https://github.com/algolia/algoliasearch-client-javascript/compare/4.8.6...4.9.0">v4.9.0</a></h2>
<ul>
<li>feat(dictionaries): adds methods and tests (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1253">https://github.com/facebook/flipper/issues/1253</a>) (<a href="https://github.com/algolia/algoliasearch-client-javascript/commit/aed6554">aed6554</a>), closes <a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1253">https://github.com/facebook/flipper/issues/1253</a></li>
<li>feat(types): support <code>type</code> and <code>facet</code> in search methods (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1263">https://github.com/facebook/flipper/issues/1263</a>) (<a href="https://github.com/algolia/algoliasearch-client-javascript/commit/54c1cb7">54c1cb7</a>), closes <a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1263">https://github.com/facebook/flipper/issues/1263</a></li>
<li>fix(findAnswers): omit removeWordsIfNoResults correctly (<a href="https://github.com/algolia/algoliasearch-client-javascript/commit/3aec216">3aec216</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="cd39284a20"><code>cd39284</code></a> chore: release v4.9.0 (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1264">https://github.com/facebook/flipper/issues/1264</a>)</li>
<li><a href="832cad8304"><code>832cad8</code></a> fix(dictionary): generates random objectID (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1265">https://github.com/facebook/flipper/issues/1265</a>)</li>
<li><a href="aed6554f79"><code>aed6554</code></a> feat(dictionaries): adds methods and tests (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1253">https://github.com/facebook/flipper/issues/1253</a>)</li>
<li><a href="54c1cb7e83"><code>54c1cb7</code></a> feat(types): support <code>type</code> and <code>facet</code> in search methods (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1263">https://github.com/facebook/flipper/issues/1263</a>)</li>
<li><a href="3aec216a97"><code>3aec216</code></a> fix(findAnswers): omit removeWordsIfNoResults correctly</li>
<li>See full diff in <a href="https://github.com/algolia/algoliasearch-client-javascript/compare/4.8.6...4.9.0">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=algoliasearch&package-manager=npm_and_yarn&previous-version=4.8.6&new-version=4.9.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/2212

Reviewed By: mweststrate

Differential Revision: D27945525

Pulled By: passy

fbshipit-source-id: be5bd5991017a9f9dd5ff5e7d92946758cb2fec1
2021-04-23 06:35:58 -07:00
dependabot[bot]
49a5842c7b Bump @types/node from 14.14.37 to 14.14.41 in /desktop (#2207)
Summary:
Bumps [types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.37 to 14.14.41.
<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.37&new-version=14.14.41)](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/2207

Reviewed By: mweststrate

Differential Revision: D27945782

Pulled By: passy

fbshipit-source-id: a54055baefc11614cc0f546c53a0b7c418468b4e
2021-04-23 05:48:58 -07:00
dependabot[bot]
bea6794867 Bump @algolia/client-search from 4.8.6 to 4.9.0 in /desktop (#2206)
Summary:
Bumps [algolia/client-search](https://github.com/algolia/algoliasearch-client-javascript) from 4.8.6 to 4.9.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/algolia/algoliasearch-client-javascript/releases"><code>@​algolia/client-search</code>'s releases</a>.</em></p>
<blockquote>
<h2>4.9.0</h2>
<h2><a href="https://github.com/algolia/algoliasearch-client-javascript/compare/4.8.6...4.9.0">v4.9.0</a></h2>
<ul>
<li>feat(dictionaries): adds methods and tests (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1253">https://github.com/facebook/flipper/issues/1253</a>) (<a href="https://github.com/algolia/algoliasearch-client-javascript/commit/aed6554">aed6554</a>), closes <a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1253">https://github.com/facebook/flipper/issues/1253</a></li>
<li>feat(types): support <code>type</code> and <code>facet</code> in search methods (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1263">https://github.com/facebook/flipper/issues/1263</a>) (<a href="https://github.com/algolia/algoliasearch-client-javascript/commit/54c1cb7">54c1cb7</a>), closes <a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1263">https://github.com/facebook/flipper/issues/1263</a></li>
<li>fix(findAnswers): omit removeWordsIfNoResults correctly (<a href="https://github.com/algolia/algoliasearch-client-javascript/commit/3aec216">3aec216</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/algolia/algoliasearch-client-javascript/blob/master/CHANGELOG.md"><code>@​algolia/client-search</code>'s changelog</a>.</em></p>
<blockquote>
<h2><a href="https://github.com/algolia/algoliasearch-client-javascript/compare/4.8.6...4.9.0">v4.9.0</a></h2>
<ul>
<li>feat(dictionaries): adds methods and tests (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1253">https://github.com/facebook/flipper/issues/1253</a>) (<a href="https://github.com/algolia/algoliasearch-client-javascript/commit/aed6554">aed6554</a>), closes <a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1253">https://github.com/facebook/flipper/issues/1253</a></li>
<li>feat(types): support <code>type</code> and <code>facet</code> in search methods (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1263">https://github.com/facebook/flipper/issues/1263</a>) (<a href="https://github.com/algolia/algoliasearch-client-javascript/commit/54c1cb7">54c1cb7</a>), closes <a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1263">https://github.com/facebook/flipper/issues/1263</a></li>
<li>fix(findAnswers): omit removeWordsIfNoResults correctly (<a href="https://github.com/algolia/algoliasearch-client-javascript/commit/3aec216">3aec216</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="cd39284a20"><code>cd39284</code></a> chore: release v4.9.0 (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1264">https://github.com/facebook/flipper/issues/1264</a>)</li>
<li><a href="832cad8304"><code>832cad8</code></a> fix(dictionary): generates random objectID (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1265">https://github.com/facebook/flipper/issues/1265</a>)</li>
<li><a href="aed6554f79"><code>aed6554</code></a> feat(dictionaries): adds methods and tests (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1253">https://github.com/facebook/flipper/issues/1253</a>)</li>
<li><a href="54c1cb7e83"><code>54c1cb7</code></a> feat(types): support <code>type</code> and <code>facet</code> in search methods (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1263">https://github.com/facebook/flipper/issues/1263</a>)</li>
<li><a href="3aec216a97"><code>3aec216</code></a> fix(findAnswers): omit removeWordsIfNoResults correctly</li>
<li>See full diff in <a href="https://github.com/algolia/algoliasearch-client-javascript/compare/4.8.6...4.9.0">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@algolia/client-search&package-manager=npm_and_yarn&previous-version=4.8.6&new-version=4.9.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/2206

Reviewed By: mweststrate

Differential Revision: D27945840

Pulled By: passy

fbshipit-source-id: d132e364abf329ba1823915b2432a22f7832c40a
2021-04-23 04:30:35 -07:00
Anton Nikolaev
b3274a8450 Plugin folders re-structuring
Summary:
Here I'm changing plugin repository structure to allow re-using of shared packages between both public and fb-internal plugins, and to ensure that public plugins has their own yarn.lock as this will be required to implement reproducible jobs checking plugin compatibility with released flipper versions.

Please note that there are a lot of moved files in this diff, make sure to click "Expand all" to see all that actually changed (there are not much of them actually).

New proposed structure for plugin packages:
```
- root
- node_modules - modules included into Flipper: flipper, flipper-plugin, react, antd, emotion
-- plugins
 --- node_modules - modules used by both public and fb-internal plugins (shared libs will be linked here, see D27034936)
 --- public
---- node_modules - modules used by public plugins
---- pluginA
----- node_modules - modules used by plugin A exclusively
---- pluginB
----- node_modules - modules used by plugin B exclusively
 --- fb
---- node_modules - modules used by fb-internal plugins
---- pluginC
----- node_modules - modules used by plugin C exclusively
---- pluginD
----- node_modules - modules used by plugin D exclusively
```
I've moved all public plugins under dir "plugins/public" and excluded them from root yarn workspaces. Instead, they will have their own yarn workspaces config and yarn.lock and they will use flipper modules as peer dependencies.

Reviewed By: mweststrate

Differential Revision: D27034108

fbshipit-source-id: c2310e3c5bfe7526033f51b46c0ae40199fd7586
2021-04-09 05:22:00 -07:00
Pascal Hartig
e4a814502a Mass bump deps
Summary:
Bumping everything that's just a patch version behind or safe-looking minor change.

Just hoping to get ahead of dependabot's next run.

Reviewed By: fabiomassimo

Differential Revision: D27367567

fbshipit-source-id: 1bf8bad02e5a9f07f5982466254f9906581230cf
2021-03-27 04:25:57 -07:00
Pascal Hartig
8c85da5bc8 Bump deps
Summary: Just trying to get ahead of dependabot and bump some easy dependencies all at once.

Reviewed By: fabiomassimo

Differential Revision: D27326687

fbshipit-source-id: 0c724c8e3a688aa9777945fcd46061284fd77969
2021-03-25 12:28:29 -07:00
Anton Nikolaev
f468f0e07d Produce tsc typings for "flipper" package
Summary: This diffs refactors tsc projects structure and structure of our custom typings to allow producing typescript typings for "flipper" package. In next diffs I'm going to use the produced typings to check compatibility of plugins with certain versions of Flipper, e.g. to check whether plugin is compatible with current "stable" and "insiders" version.

Reviewed By: passy

Differential Revision: D26997158

fbshipit-source-id: a0416c7139bf08ec9d175730da4c4c2a8768eeb7
2021-03-17 14:03:38 -07: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]
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]
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
Anton Nikolaev
899fcd0783 Device plugin management (1/n): use static metadata for checking plugin compatibility with devices
Summary:
*Stack summary*: this stack adds ability to manage device plugins in the same way as client plugins: install, update, uninstall, enable (star) and disable (unstar) them.

*Diff summary*: changed the way how plugin compatibility with devices is checked from dynamic call to "supportsDevice" to static checks of "supportedDevices" metadata property which make it possible to check compatibility without even downloading plugin from Marketplace.

Changelog: plugin compatibility with devices is now checked according to metadata in property "supportedDevices" in package.json

Reviewed By: mweststrate

Differential Revision: D26315848

fbshipit-source-id: 6e4b052c4ea0507ee185fc17999b6211cdb11093
2021-02-16 10:50:18 -08:00
dependabot[bot]
800759c384 Bump algoliasearch from 4.4.0 to 4.8.4 in /desktop (#1911)
Summary:
Bumps [algoliasearch](https://github.com/algolia/algoliasearch-client-javascript) from 4.4.0 to 4.8.4.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/algolia/algoliasearch-client-javascript/releases">algoliasearch's releases</a>.</em></p>
<blockquote>
<h2>4.8.4</h2>
<h2><a href="https://github.com/algolia/algoliasearch-client-javascript/compare/4.8.3...4.8.4">v4.8.4</a></h2>
<ul>
<li>feat(ts): add decompoundQuery (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1240">https://github.com/facebook/flipper/issues/1240</a>) (<a href="https://github.com/algolia/algoliasearch-client-javascript/commit/446c9a0">446c9a0</a>), closes <a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1240">https://github.com/facebook/flipper/issues/1240</a></li>
<li>feat(ts): add the attributesToTransliterate setting (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1244">https://github.com/facebook/flipper/issues/1244</a>) (<a href="https://github.com/algolia/algoliasearch-client-javascript/commit/b91c035">b91c035</a>), closes <a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1244">https://github.com/facebook/flipper/issues/1244</a></li>
</ul>
<h2>4.8.3</h2>
<h2><a href="https://github.com/algolia/algoliasearch-client-javascript/compare/4.8.2...4.8.3">v4.8.3</a></h2>
<ul>
<li>fix(ts): correct type for listIndices response (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1236">https://github.com/facebook/flipper/issues/1236</a>) (<a href="https://github.com/algolia/algoliasearch-client-javascript/commit/0bb6bba">0bb6bba</a>), closes <a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1236">https://github.com/facebook/flipper/issues/1236</a></li>
</ul>
<h2>4.8.2</h2>
<h2><a href="https://github.com/algolia/algoliasearch-client-javascript/compare/4.8.1...4.8.2">v4.8.2</a></h2>
<ul>
<li>fix(findAnswers): fix typing (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1233">https://github.com/facebook/flipper/issues/1233</a>) (<a href="https://github.com/algolia/algoliasearch-client-javascript/commit/a935d88">a935d88</a>), closes <a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1233">https://github.com/facebook/flipper/issues/1233</a></li>
<li>fix(ts): don't require every attribute to be highlighted (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1234">https://github.com/facebook/flipper/issues/1234</a>) (<a href="https://github.com/algolia/algoliasearch-client-javascript/commit/4591d0e">4591d0e</a>), closes <a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1234">https://github.com/facebook/flipper/issues/1234</a></li>
</ul>
<h2>4.8.1</h2>
<h2><a href="https://github.com/algolia/algoliasearch-client-javascript/compare/4.8.0...4.8.1">v4.8.1</a></h2>
<ul>
<li>fix(ts): correct search response for facets_stats (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1229">https://github.com/facebook/flipper/issues/1229</a>) (<a href="https://github.com/algolia/algoliasearch-client-javascript/commit/ac732d1">ac732d1</a>), closes <a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1229">https://github.com/facebook/flipper/issues/1229</a></li>
</ul>
<h2>4.8.0</h2>
<h2><a href="https://github.com/algolia/algoliasearch-client-javascript/compare/4.7.0...4.8.0">v4.8.0</a></h2>
<ul>
<li>feat(saveSynonyms): replaceExistingSynonyms -&gt; clearExistingSynonyms (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1226">https://github.com/facebook/flipper/issues/1226</a>) (<a href="https://github.com/algolia/algoliasearch-client-javascript/commit/2fcf485">2fcf485</a>), closes <a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1226">https://github.com/facebook/flipper/issues/1226</a> <a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1224">https://github.com/facebook/flipper/issues/1224</a></li>
<li>fix(findAnswers): expose in lite version (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1227">https://github.com/facebook/flipper/issues/1227</a>) (<a href="https://github.com/algolia/algoliasearch-client-javascript/commit/6cb1d0a">6cb1d0a</a>), closes <a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1227">https://github.com/facebook/flipper/issues/1227</a></li>
</ul>
<h2>4.7.0</h2>
<h2><a href="https://github.com/algolia/algoliasearch-client-javascript/compare/4.6.0...4.7.0">v4.7.0</a></h2>
<ul>
<li>feat(findAnswers): implement the new method (experimental) (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1219">https://github.com/facebook/flipper/issues/1219</a>) (<a href="https://github.com/algolia/algoliasearch-client-javascript/commit/8d962ea">8d962ea</a>), closes <a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1219">https://github.com/facebook/flipper/issues/1219</a></li>
<li>feat(analytics &amp; recommendation): allow creation of clients (initAnalytics, initRecommendation) with their own credentials (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1223">https://github.com/facebook/flipper/issues/1223</a>) (<a href="https://github.com/algolia/algoliasearch-client-javascript/commit/a7938b0">a7938b0</a>)</li>
</ul>
<h2>4.6.0</h2>
<h2><a href="https://github.com/algolia/algoliasearch-client-javascript/compare/4.5.1...4.6.0">v4.6.0</a></h2>
<ul>
<li>fix(node): allow passing requesterOptions (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1215">https://github.com/facebook/flipper/issues/1215</a>) (<a href="https://github.com/algolia/algoliasearch-client-javascript/commit/4348b38">4348b38</a>), closes <a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1215">https://github.com/facebook/flipper/issues/1215</a></li>
<li>fix(node): reuse http agent across client (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1216">https://github.com/facebook/flipper/issues/1216</a>) (<a href="https://github.com/algolia/algoliasearch-client-javascript/commit/f6e9e56">f6e9e56</a>), closes <a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1216">https://github.com/facebook/flipper/issues/1216</a></li>
<li>feat(client-search): add personalization field to RankingInfo (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1213">https://github.com/facebook/flipper/issues/1213</a>) (<a href="https://github.com/algolia/algoliasearch-client-javascript/commit/50b78a3">50b78a3</a>), closes <a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1213">https://github.com/facebook/flipper/issues/1213</a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/algolia/algoliasearch-client-javascript/blob/master/CHANGELOG.md">algoliasearch's changelog</a>.</em></p>
<blockquote>
<h2><a href="https://github.com/algolia/algoliasearch-client-javascript/compare/4.8.3...4.8.4">v4.8.4</a></h2>
<ul>
<li>feat(ts): add decompoundQuery (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1240">https://github.com/facebook/flipper/issues/1240</a>) (<a href="https://github.com/algolia/algoliasearch-client-javascript/commit/446c9a0">446c9a0</a>), closes <a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1240">https://github.com/facebook/flipper/issues/1240</a></li>
<li>feat(ts): add the attributesToTransliterate setting (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1244">https://github.com/facebook/flipper/issues/1244</a>) (<a href="https://github.com/algolia/algoliasearch-client-javascript/commit/b91c035">b91c035</a>), closes <a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1244">https://github.com/facebook/flipper/issues/1244</a></li>
</ul>
<h2><a href="https://github.com/algolia/algoliasearch-client-javascript/compare/4.8.2...4.8.3">v4.8.3</a></h2>
<ul>
<li>fix(ts): correct type for listIndices response (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1236">https://github.com/facebook/flipper/issues/1236</a>) (<a href="https://github.com/algolia/algoliasearch-client-javascript/commit/0bb6bba">0bb6bba</a>), closes <a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1236">https://github.com/facebook/flipper/issues/1236</a></li>
</ul>
<h2><a href="https://github.com/algolia/algoliasearch-client-javascript/compare/4.8.1...4.8.2">v4.8.2</a></h2>
<ul>
<li>fix(findAnswers): fix typing (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1233">https://github.com/facebook/flipper/issues/1233</a>) (<a href="https://github.com/algolia/algoliasearch-client-javascript/commit/a935d88">a935d88</a>), closes <a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1233">https://github.com/facebook/flipper/issues/1233</a></li>
<li>fix(ts): don't require every attribute to be highlighted (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1234">https://github.com/facebook/flipper/issues/1234</a>) (<a href="https://github.com/algolia/algoliasearch-client-javascript/commit/4591d0e">4591d0e</a>), closes <a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1234">https://github.com/facebook/flipper/issues/1234</a></li>
</ul>
<h2><a href="https://github.com/algolia/algoliasearch-client-javascript/compare/4.8.0...4.8.1">v4.8.1</a></h2>
<ul>
<li>fix(ts): correct search response for facets_stats (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1229">https://github.com/facebook/flipper/issues/1229</a>) (<a href="https://github.com/algolia/algoliasearch-client-javascript/commit/ac732d1">ac732d1</a>), closes <a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1229">https://github.com/facebook/flipper/issues/1229</a></li>
</ul>
<h2><a href="https://github.com/algolia/algoliasearch-client-javascript/compare/4.7.0...4.8.0">v4.8.0</a></h2>
<ul>
<li>feat(saveSynonyms): replaceExistingSynonyms -&gt; clearExistingSynonyms (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1226">https://github.com/facebook/flipper/issues/1226</a>) (<a href="https://github.com/algolia/algoliasearch-client-javascript/commit/2fcf485">2fcf485</a>), closes <a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1226">https://github.com/facebook/flipper/issues/1226</a> <a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1224">https://github.com/facebook/flipper/issues/1224</a></li>
<li>fix(findAnswers): expose in lite version (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1227">https://github.com/facebook/flipper/issues/1227</a>) (<a href="https://github.com/algolia/algoliasearch-client-javascript/commit/6cb1d0a">6cb1d0a</a>), closes <a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1227">https://github.com/facebook/flipper/issues/1227</a></li>
</ul>
<h2><a href="https://github.com/algolia/algoliasearch-client-javascript/compare/4.6.0...4.7.0">v4.7.0</a></h2>
<ul>
<li>feat(findAnswers): implement the new method (experimental) (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1219">https://github.com/facebook/flipper/issues/1219</a>) (<a href="https://github.com/algolia/algoliasearch-client-javascript/commit/8d962ea">8d962ea</a>), closes <a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1219">https://github.com/facebook/flipper/issues/1219</a></li>
<li>feat(analytics &amp; recommendation): allow creation of clients (initAnalytics, initRecommendation) with their own credentials (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1223">https://github.com/facebook/flipper/issues/1223</a>) (<a href="https://github.com/algolia/algoliasearch-client-javascript/commit/a7938b0">a7938b0</a>)</li>
</ul>
<h2><a href="https://github.com/algolia/algoliasearch-client-javascript/compare/4.5.1...4.6.0">v4.6.0</a></h2>
<ul>
<li>fix(node): allow passing requesterOptions (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1215">https://github.com/facebook/flipper/issues/1215</a>) (<a href="https://github.com/algolia/algoliasearch-client-javascript/commit/4348b38">4348b38</a>), closes <a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1215">https://github.com/facebook/flipper/issues/1215</a></li>
<li>fix(node): reuse http agent across client (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1216">https://github.com/facebook/flipper/issues/1216</a>) (<a href="https://github.com/algolia/algoliasearch-client-javascript/commit/f6e9e56">f6e9e56</a>), closes <a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1216">https://github.com/facebook/flipper/issues/1216</a></li>
<li>feat(client-search): add personalization field to RankingInfo (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1213">https://github.com/facebook/flipper/issues/1213</a>) (<a href="https://github.com/algolia/algoliasearch-client-javascript/commit/50b78a3">50b78a3</a>), closes <a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1213">https://github.com/facebook/flipper/issues/1213</a></li>
</ul>
<h2><a href="https://github.com/algolia/algoliasearch-client-javascript/compare/4.5.0...4.5.1">v4.5.1</a></h2>

</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="74972a1c86"><code>74972a1</code></a> chore: release v4.8.4 (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1245">https://github.com/facebook/flipper/issues/1245</a>)</li>
<li><a href="c87424b7e1"><code>c87424b</code></a> ci: remove inbetween tests</li>
<li><a href="f50af182bc"><code>f50af18</code></a> chore: remove flaky test</li>
<li><a href="b91c0358f9"><code>b91c035</code></a> feat(ts): add the attributesToTransliterate setting (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1244">https://github.com/facebook/flipper/issues/1244</a>)</li>
<li><a href="446c9a0862"><code>446c9a0</code></a> feat(ts): add decompoundQuery (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1240">https://github.com/facebook/flipper/issues/1240</a>)</li>
<li><a href="608f2ec45d"><code>608f2ec</code></a> chore: release v4.8.3 (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1237">https://github.com/facebook/flipper/issues/1237</a>)</li>
<li><a href="0bb6bbadbd"><code>0bb6bba</code></a> fix(ts): correct type for listIndices response (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1236">https://github.com/facebook/flipper/issues/1236</a>)</li>
<li><a href="cd9c879020"><code>cd9c879</code></a> chore: release v4.8.2 (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1235">https://github.com/facebook/flipper/issues/1235</a>)</li>
<li><a href="4591d0eb02"><code>4591d0e</code></a> fix(ts): don't require every attribute to be highlighted (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1234">https://github.com/facebook/flipper/issues/1234</a>)</li>
<li><a href="a935d88a7d"><code>a935d88</code></a> fix(findAnswers): fix typing (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1233">https://github.com/facebook/flipper/issues/1233</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/algolia/algoliasearch-client-javascript/compare/4.4.0...4.8.4">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=algoliasearch&package-manager=npm_and_yarn&previous-version=4.4.0&new-version=4.8.4)](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/1911

Reviewed By: mweststrate

Differential Revision: D26341281

Pulled By: passy

fbshipit-source-id: d34ea27adb4e01842b9e33ca066a6a2e70040ebb
2021-02-10 05:51:51 -08:00
Michel Weststrate
bf7599e574 Bumped some deps to fix parsing of template literal types
Summary:
I want to use TypesScipt type literals in a next diff (e.g.

```
type Percentage = `${number}%`
```

But to be able to use that typescript, prettier and eslint needed bumps :)

Reviewed By: nikoant

Differential Revision: D26321133

fbshipit-source-id: a4891246ef8c654f324c6daf303c5c4b2f54496e
2021-02-10 02:52:22 -08:00
Anton Nikolaev
d7cfcb5d8e Extend device plugin metadata to include supported devices
Summary: Plugin metadata format extended to include type of each plugin (client / device) and list of supported devices (android/ios/..., emulator/physical, etc). This will allow to detect plugins supported by device even if they are not installed and only available on Marketplace.

Reviewed By: mweststrate

Differential Revision: D26073531

fbshipit-source-id: e331f1be1af1046cd4220a286a1d52378c26cc53
2021-01-27 17:31:41 -08:00
Anton Nikolaev
a6599963ec Fix the issue with plugin installation from npm
Summary: https://github.com/facebook/flipper/issues/1818

Reviewed By: jknoxville

Differential Revision: D25870562

fbshipit-source-id: 0d62626355b35505089990cfdb592b0ea4b84fda
2021-01-11 10:50:42 -08:00
Anton Nikolaev
bd01b58566 Sandy-based plugin auto-update UI
Summary:
New UX/UI for plugin auto-updates based on Sandy:
- disabled plugins auto-updated silently without any notifications as there is no active state for them so there is nothing to loose.
- enabled plugins can have some state and user can actually work with them, so we cannot reload them automatically. Instead, we show notification in the top of the plugin container asking user to reload the plugin when she is ready.
- if the auto-updated plugin failed to reload - show error notification.
- for non-sandy we continue using notifications as before.

Reviewed By: mweststrate

Differential Revision: D25530384

fbshipit-source-id: de3d0565ef0b930c9343b9e0ed07a4acb51885be
2020-12-15 09:31:57 -08:00
Anton Nikolaev
5383017299 Separate interfaces for installed, bundled and downloadable plugins
Summary:
I've re-designed interfaces describing plugins as I found that mental overhead working with them became too expensive because of slightly flawed design. However this cascaded changes in many files so you can see how extensively these interfaces used in our codebase.

Before this change we had one interface PluginDetails which described three different entities: 1) plugins installed on the disk 2) plugins bundled into Flipper 3) plugins available on Marketplace. It's hard to use this "general" PluginDetails interface because of this as you always need to think about all three use cases everywhere.

After this change we have 3 separate interfaces: InstalledPluginDetails, BundledPluginDetails and DownloadablePluginDetails and things became much type-safer now.

Reviewed By: mweststrate

Differential Revision: D25530383

fbshipit-source-id: b93593916a980c04e36dc6ffa168797645a0ff9c
2020-12-15 09:31:57 -08:00
Anton Nikolaev
c3d61cc32d Persist uninstalled plugins list
Summary: This diff changes uninstallation procedure for plugins. Instead of deleting plugin files immediately we are keeping them, but mark them as "uninstalled". This makes it possible to re-install plugins quickly in case when user clicked "delete" by mistake.

Reviewed By: mweststrate

Differential Revision: D25493479

fbshipit-source-id: 9ff29d717cdd5401c55388f24d479599579c8dd3
2020-12-15 09:31:56 -08:00
Anton Nikolaev
df03ccbeab Uninstall plugins from sidebar
Summary: Added UI for uninstalling plugins from sidebar. To avoid confusion between "disable" and "uninstall" and to reduce possibility of errors when plugins uninstalled accidentally by misclicks, I made it only possible to uninstall plugins after they are disabled. So for enabled plugins two steps are required for uninstalling.

Reviewed By: mweststrate

Differential Revision: D25454117

fbshipit-source-id: 28e67dc1ff2d39ad67e6d2770302a996affd9723
2020-12-15 09:31:56 -08:00
Anton Nikolaev
ab441d8226 Tests for plugin installer with in-memory file system (#1761)
Summary:
Pull Request resolved: https://github.com/facebook/flipper/pull/1761

Plugin installed logic is quite complex and heavily relies on file system. So I added integration tests which uses in-memory file system. Here I've covered complex functions added in the previous diff of this stack.

Reviewed By: mweststrate

Differential Revision: D25393473

fbshipit-source-id: a823eb7d6707152a1c3717a6da25b6beee85801d
2020-12-15 09:31:55 -08:00
Anton Nikolaev
02d695cb28 Keep multiple installed versions of each plugin
Summary:
This diff changes directory structure for installed plugins to allow installation of multiple versions simultaneously, e.g. to to allow downloading new plugin version while user is still using the previous one, and to have possibility of fast rollback to the previous installed if necessary. The new folder for installed plugins is located in `~/.flipper/installed-plugins` and has the following structure:

  flipper-plugin-reactotron
    1.0.0
      ...
      package.json
    1.0.1
      ...
      package.json
  flipper-plugin-network
    0.67.1
      ...
      package.json
    0.67.2
      ...
      package.json

The tricky part here is that we also need to migrate already installed plugins from the old folder `~/.flipper/thirdparty` to the new folder and maintain the new structure for them.

Another tricky part is that we need to periodically cleanup old versions. For now we will just keep 2 versions of each plugin. Cleanup is performed in background right after Flipper startup.

Reviewed By: mweststrate

Differential Revision: D25393474

fbshipit-source-id: 26617ac26114148f797cc3d6765a42242edc205e
2020-12-15 09:31:54 -08:00
Anton Nikolaev
5b26f36672 Plugin Marketplace API
Summary: Extracted plugin marketplace API to a separate file and updated it to load full plugin manifests.

Reviewed By: passy

Differential Revision: D25181759

fbshipit-source-id: a63f9ce16249ccc170df148cef5c209fdc6d4d6d
2020-12-15 09:31:54 -08:00
Michel Weststrate
092a286bc8 Update several deps at once
Summary: Fixes #1771, #1770, #1769, #1768, #1767, #1766

Reviewed By: nikoant

Differential Revision: D25533717

fbshipit-source-id: 86b90e1ec93f0255edcf1cf3cf5fb2311f0ca23f
2020-12-14 09:14:23 -08:00
dependabot[bot]
23751b45f3 Bump @types/node from 14.14.6 to 14.14.10 in /desktop (#1749)
Summary:
[//]: # (dependabot-start)
{emoji:26a0}  **Dependabot is rebasing this PR** {emoji:26a0}

If you make any changes to it yourself then they will take precedence over the rebase.

 ---

[//]: # (dependabot-end)

Bumps [types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.6 to 14.14.10.
<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.6&new-version=14.14.10)](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/1749

Reviewed By: mweststrate

Differential Revision: D25373220

Pulled By: passy

fbshipit-source-id: a9f69a8c29f3c0d04939e68341f36fc26cc609a7
2020-12-08 09:22:40 -08:00
Anton Nikolaev
dbc888613b Do not bump every package version for every release
Summary:
This diff sets all package version to "0.0.0" except of the root package and changes the bump script to only bump version in the root package. This should reduce possibility of conflicts on release diffs. Anyway we always use the same version for all of our packages, so we can only set it to the root.

Before npm publishing we will set all package versions to the same number as in the root package (we actually already do that) so there will be no differences except we won't need to bump version in  more than 100 packages each release.

Reviewed By: mweststrate

Differential Revision: D25162373

fbshipit-source-id: 02fe401bee72845339c67925c130027bdaee559d
2020-12-02 02:38:47 -08:00
generatedunixname89002005306973
3a733a10df Flipper Release: v0.67.0
Summary: Releasing version 0.67.0

Reviewed By: passy

Differential Revision: D25217536

fbshipit-source-id: 489cba736a847ea9f864b594646014a6d7279161
2020-11-30 10:13:36 -08:00
Michel Weststrate
8025c49768 Upgrade to TypeScript 4.1
Summary:
allow-large-files

Upgrade to TypeScript 4.1

Reviewed By: nikoant

Differential Revision: D25122073

fbshipit-source-id: 7d2bc6f97595c825c9527b0c6ecab07698d5f981
2020-11-26 04:22:05 -08:00
generatedunixname89002005306973
ad8e8fbb24 Flipper Release: v0.66.0
Summary: Releasing version 0.66.0

Reviewed By: nikoant

Differential Revision: D25052024

fbshipit-source-id: 5ef39431905ca3bc2c4870bff2f8ae917ed1e81e
2020-11-18 03:13:31 -08:00
dependabot[bot]
acd2cf25ec Bump @algolia/client-search from 4.5.1 to 4.6.0 in /desktop (#1682)
Summary:
Bumps [algolia/client-search](https://github.com/algolia/algoliasearch-client-javascript) from 4.5.1 to 4.6.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/algolia/algoliasearch-client-javascript/releases">algolia/client-search's releases</a>.</em></p>
<blockquote>
<h2>4.6.0</h2>
<h2><a href="https://github.com/algolia/algoliasearch-client-javascript/compare/4.5.1...4.6.0">v4.6.0</a></h2>
<ul>
<li>fix(node): allow passing requesterOptions (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1215">https://github.com/facebook/flipper/issues/1215</a>) (<a href="https://github.com/algolia/algoliasearch-client-javascript/commit/4348b38">4348b38</a>), closes <a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1215">https://github.com/facebook/flipper/issues/1215</a></li>
<li>fix(node): reuse http agent across client (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1216">https://github.com/facebook/flipper/issues/1216</a>) (<a href="https://github.com/algolia/algoliasearch-client-javascript/commit/f6e9e56">f6e9e56</a>), closes <a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1216">https://github.com/facebook/flipper/issues/1216</a></li>
<li>feat(client-search): add personalization field to RankingInfo (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1213">https://github.com/facebook/flipper/issues/1213</a>) (<a href="https://github.com/algolia/algoliasearch-client-javascript/commit/50b78a3">50b78a3</a>), closes <a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1213">https://github.com/facebook/flipper/issues/1213</a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/algolia/algoliasearch-client-javascript/blob/master/CHANGELOG.md">algolia/client-search's changelog</a>.</em></p>
<blockquote>
<h2><a href="https://github.com/algolia/algoliasearch-client-javascript/compare/4.5.1...4.6.0">v4.6.0</a></h2>
<ul>
<li>fix(node): allow passing requesterOptions (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1215">https://github.com/facebook/flipper/issues/1215</a>) (<a href="https://github.com/algolia/algoliasearch-client-javascript/commit/4348b38">4348b38</a>), closes <a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1215">https://github.com/facebook/flipper/issues/1215</a></li>
<li>fix(node): reuse http agent across client (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1216">https://github.com/facebook/flipper/issues/1216</a>) (<a href="https://github.com/algolia/algoliasearch-client-javascript/commit/f6e9e56">f6e9e56</a>), closes <a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1216">https://github.com/facebook/flipper/issues/1216</a></li>
<li>feat(client-search): add personalization field to RankingInfo (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1213">https://github.com/facebook/flipper/issues/1213</a>) (<a href="https://github.com/algolia/algoliasearch-client-javascript/commit/50b78a3">50b78a3</a>), closes <a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1213">https://github.com/facebook/flipper/issues/1213</a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="da500fb2be"><code>da500fb</code></a> chore: release v4.6.0 (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1217">https://github.com/facebook/flipper/issues/1217</a>)</li>
<li><a href="c3f5d7200e"><code>c3f5d72</code></a> chore: update bundlesize</li>
<li><a href="4348b3887b"><code>4348b38</code></a> fix(node): allow passing requesterOptions (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1215">https://github.com/facebook/flipper/issues/1215</a>)</li>
<li><a href="f6e9e5620c"><code>f6e9e56</code></a> fix(node): reuse http agent across client (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1216">https://github.com/facebook/flipper/issues/1216</a>)</li>
<li><a href="5207d68ff6"><code>5207d68</code></a> chore(TypeScript): avoid ts-ignore (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1190">https://github.com/facebook/flipper/issues/1190</a>)</li>
<li><a href="f82bd48684"><code>f82bd48</code></a> chore: migrate release process to Ship.js (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1210">https://github.com/facebook/flipper/issues/1210</a>)</li>
<li><a href="50b78a3e7f"><code>50b78a3</code></a> feat(client-search): add personalization field to RankingInfo (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1213">https://github.com/facebook/flipper/issues/1213</a>)</li>
<li>See full diff in <a href="https://github.com/algolia/algoliasearch-client-javascript/compare/4.5.1...4.6.0">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@algolia/client-search&package-manager=npm_and_yarn&previous-version=4.5.1&new-version=4.6.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/configuring-github-dependabot-security-updates)

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/1682

Reviewed By: passy

Differential Revision: D24994065

Pulled By: mweststrate

fbshipit-source-id: 3b4b12a5540e611edc879cc2525dee811e73955c
2020-11-17 02:39:13 -08:00