Commit Graph

483 Commits

Author SHA1 Message Date
Chaiwat Ekkaewnumchai
9e83e93662 Move Static Fields to package.json: reactdevtools
Summary:
Flipper reads metadata to show on the sidebar from `package.json` and static fields (`id`, `title`, and `icon`) from `FlipperPlugin` class. If there are fields declared in both file, `FlipperPlugin` class takes precedences.

With Sandy (new Flipper plugin API), there is no static field available. In order to prevent unexpected scenario happening when migrating to Sandy, this codemod-ish is applied to plugins that contain static field.

The static fields are merged into `package.json` to get the same result. In addition, the static fields are also removed.

Reviewed By: mweststrate

Differential Revision: D22411845

fbshipit-source-id: b6f043e74358a9a66d5d466a17252820d712b71c
2020-07-08 03:14:17 -07:00
Chaiwat Ekkaewnumchai
8e7089fb4c Move Static Fields to package.json: navigation
Summary:
Flipper reads metadata to show on the sidebar from `package.json` and static fields (`id`, `title`, and `icon`) from `FlipperPlugin` class. If there are fields declared in both file, `FlipperPlugin` class takes precedences.

With Sandy (new Flipper plugin API), there is no static field available. In order to prevent unexpected scenario happening when migrating to Sandy, this codemod-ish is applied to plugins that contain static field.

The static fields are merged into `package.json` to get the same result. In addition, the static fields are also removed.

Reviewed By: mweststrate

Differential Revision: D22411856

fbshipit-source-id: 491d93fbe6393a7e9eded91208fdd71990402bb9
2020-07-08 03:14:17 -07:00
Chaiwat Ekkaewnumchai
288feafb25 Move Static Fields to package.json: kaios-allocations
Summary:
Flipper reads metadata to show on the sidebar from `package.json` and static fields (`id`, `title`, and `icon`) from `FlipperPlugin` class. If there are fields declared in both file, `FlipperPlugin` class takes precedences.

With Sandy (new Flipper plugin API), there is no static field available. In order to prevent unexpected scenario happening when migrating to Sandy, this codemod-ish is applied to plugins that contain static field.

The static fields are merged into `package.json` to get the same result. In addition, the static fields are also removed.

Reviewed By: eleweek

Differential Revision: D22411839

fbshipit-source-id: efce530bb25def9a10ba8d85c48b31ee8657daa7
2020-07-08 03:14:17 -07:00
Chaiwat Ekkaewnumchai
f7e7131a7b Move Static Fields to package.json: hermesdebuggerrn
Summary:
Flipper reads metadata to show on the sidebar from `package.json` and static fields (`id`, `title`, and `icon`) from `FlipperPlugin` class. If there are fields declared in both file, `FlipperPlugin` class takes precedences.

With Sandy (new Flipper plugin API), there is no static field available. In order to prevent unexpected scenario happening when migrating to Sandy, this codemod-ish is applied to plugins that contain static field.

The static fields are merged into `package.json` to get the same result. In addition, the static fields are also removed.

Reviewed By: rickhanlonii

Differential Revision: D22411862

fbshipit-source-id: cb381261f575313110b781c2fddd3a2099e6479a
2020-07-08 03:14:17 -07:00
Pritesh Nandgaonkar
2ce65c1b3c Solve the issue where the bottom view of Sidebar was pushed down
Summary: This fixes the issue raised [here](https://fb.workplace.com/groups/flippersupport/permalink/911822855965040/).

Reviewed By: nikoant

Differential Revision: D22411617

fbshipit-source-id: ca1078bf418532863823fb3748e9edea4526cbc2
2020-07-07 08:41:58 -07:00
dependabot[bot]
8c33c17bbc Bump eslint-plugin-import from 2.19.1 to 2.22.0 in /desktop (#1336)
Summary:
Bumps [eslint-plugin-import](https://github.com/benmosher/eslint-plugin-import) from 2.19.1 to 2.22.0.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/benmosher/eslint-plugin-import/blob/master/CHANGELOG.md">eslint-plugin-import's changelog</a>.</em></p>
<blockquote>
<h2>[2.22.0] - 2020-06-26</h2>
<h3>Added</h3>
<ul>
<li>[<code>no-unused-modules</code>]: consider exported TypeScript interfaces, types and enums (<a href="https://github-redirect.dependabot.com/benmosher/eslint-plugin-import/issues/1819">#1819</a>, thanks [<a href="https://github.com/nicolashenry">nicolashenry</a>])</li>
<li>[<code>no-cycle</code>]: allow <code>maxDepth</code> option to be <code>&quot;∞&quot;</code> (thanks [<a href="https://github.com/ljharb">ljharb</a>])</li>
</ul>
<h3>Fixed</h3>
<ul>
<li>[<code>order</code>]/TypeScript: properly support <code>import = object</code> expressions (<a href="https://github-redirect.dependabot.com/benmosher/eslint-plugin-import/issues/1823">#1823</a>, thanks [<a href="https://github.com/manuth">manuth</a>])</li>
<li>[<code>no-extraneous-dependencies</code>]/TypeScript: do not error when importing type from dev dependencies (<a href="https://github-redirect.dependabot.com/benmosher/eslint-plugin-import/issues/1820">#1820</a>, thanks [<a href="https://github.com/fernandopasik">fernandopasik</a>])</li>
<li>[<code>default</code>]: avoid crash with <code>export =</code> (<a href="https://github-redirect.dependabot.com/benmosher/eslint-plugin-import/issues/1822">#1822</a>, thanks [<a href="https://github.com/AndrewLeedham">AndrewLeedham</a>])</li>
<li>[<code>order</code>]/[<code>newline-after-import</code>]: ignore TypeScript's &quot;export import object&quot; (<a href="https://github-redirect.dependabot.com/benmosher/eslint-plugin-import/issues/1830">#1830</a>, thanks [<a href="https://github.com/be5invis">be5invis</a>])</li>
<li>[<code>dynamic-import-chunkname</code>]/TypeScript: supports <code>typescript-eslint/parser</code> (<a href="https://github-redirect.dependabot.com/benmosher/eslint-plugin-import/issues/1833">#1833</a>, thanks [<a href="https://github.com/noelebrun">noelebrun</a>])</li>
<li>[<code>order</code>]/TypeScript: ignore ordering of object imports (<a href="https://github-redirect.dependabot.com/benmosher/eslint-plugin-import/issues/1831">#1831</a>, thanks [<a href="https://github.com/manuth">manuth</a>])</li>
<li>[<code>namespace</code>]: do not report on shadowed import names (<a href="https://github-redirect.dependabot.com/benmosher/eslint-plugin-import/issues/518">https://github.com/facebook/flipper/issues/518</a>, thanks [<a href="https://github.com/ljharb">ljharb</a>])</li>
<li>[<code>export</code>]: avoid warning on <code>export * as</code> non-conflicts (<a href="https://github-redirect.dependabot.com/benmosher/eslint-plugin-import/issues/1834">#1834</a>, thanks [<a href="https://github.com/ljharb">ljharb</a>])</li>
</ul>
<h3>Changed</h3>
<ul>
<li>[<code>no-extraneous-dependencies</code>]: add tests for importing types (<a href="https://github-redirect.dependabot.com/benmosher/eslint-plugin-import/issues/1824">#1824</a>, thanks [<a href="https://github.com/taye">taye</a>])</li>
<li>[docs] [<code>no-default-export</code>]: Fix docs url (<a href="https://github-redirect.dependabot.com/benmosher/eslint-plugin-import/issues/1836">#1836</a>, thanks [<a href="https://github.com/beatrizrezener">beatrizrezener</a>])</li>
<li>[docs] [<code>imports-first</code>]: deprecation info and link to <code>first</code> docs (<a href="https://github-redirect.dependabot.com/benmosher/eslint-plugin-import/issues/1835">#1835</a>, thanks [<a href="https://github.com/beatrizrezener">beatrizrezener</a>])</li>
</ul>
<h2>[2.21.2] - 2020-06-09</h2>
<h3>Fixed</h3>
<ul>
<li>[<code>order</code>]: avoid a crash on TypeScript’s <code>export import</code> syntax (<a href="https://github-redirect.dependabot.com/benmosher/eslint-plugin-import/issues/1808">#1808</a>, thanks [<a href="https://github.com/ljharb">ljharb</a>])</li>
<li>[<code>newline-after-import</code>]: consider TypeScript <code>import =</code> syntax' (<a href="https://github-redirect.dependabot.com/benmosher/eslint-plugin-import/issues/1811">#1811</a>, thanks [<a href="https://github.com/ljharb">ljharb</a>])</li>
<li>[<code>no-internal-modules</code>]: avoid a crash on a named export declaration (<a href="https://github-redirect.dependabot.com/benmosher/eslint-plugin-import/issues/1814">#1814</a>, thanks [<a href="https://github.com/ljharb">ljharb</a>])</li>
</ul>
<h2>[2.21.1] - 2020-06-07</h2>
<h3>Fixed</h3>
<ul>
<li>TypeScript: [<code>import/named</code>]: avoid requiring <code>typescript</code> when not using TS (<a href="https://github-redirect.dependabot.com/benmosher/eslint-plugin-import/issues/1805">#1805</a>, thanks [<a href="https://github.com/ljharb">ljharb</a>])</li>
</ul>
<h2>[2.21.0] - 2020-06-07</h2>
<h3>Added</h3>
<ul>
<li>[<code>import/default</code>]: support default export in TSExportAssignment (<a href="https://github-redirect.dependabot.com/benmosher/eslint-plugin-import/issues/1528">#1528</a>, thanks [<a href="https://github.com/joaovieira">joaovieira</a>])</li>
<li>[<code>no-cycle</code>]: add <code>ignoreExternal</code> option (<a href="https://github-redirect.dependabot.com/benmosher/eslint-plugin-import/issues/1681">#1681</a>, thanks [<a href="https://github.com/sveyret">sveyret</a>])</li>
<li>[<code>order</code>]: Add support for TypeScript's &quot;import equals&quot;-expressions (<a href="https://github-redirect.dependabot.com/benmosher/eslint-plugin-import/issues/1785">#1785</a>, thanks [<a href="https://github.com/manuth">manuth</a>])</li>
<li>[<code>import/default</code>]: support default export in TSExportAssignment (<a href="https://github-redirect.dependabot.com/benmosher/eslint-plugin-import/issues/1689">#1689</a>, thanks [<a href="https://github.com/Maxim-Mazurok">Maxim-Mazurok</a>])</li>
<li>[<code>no-restricted-paths</code>]: add custom message support (<a href="https://github-redirect.dependabot.com/benmosher/eslint-plugin-import/issues/1802">#1802</a>, thanks [<a href="https://github.com/malykhinvi">malykhinvi</a>])</li>
</ul>
<h3>Fixed</h3>
<ul>
<li>[<code>group-exports</code>]: Flow type export awareness (<a href="https://github-redirect.dependabot.com/benmosher/eslint-plugin-import/issues/1702">#1702</a>, thanks [<a href="https://github.com/ernestostifano">ernestostifano</a>])</li>
<li>[<code>order</code>]: Recognize pathGroup config for first group (<a href="https://github-redirect.dependabot.com/benmosher/eslint-plugin-import/issues/1719">#1719</a>, <a href="https://github-redirect.dependabot.com/benmosher/eslint-plugin-import/issues/1724">#1724</a>, thanks [<a href="https://github.com/forivall">forivall</a>], [<a href="https://github.com/xpl">xpl</a>])</li>
<li>[<code>no-unused-modules</code>]: Fix re-export not counting as usage when used in combination with import (<a href="https://github-redirect.dependabot.com/benmosher/eslint-plugin-import/issues/1722">#1722</a>, thanks [<a href="https://github.com/Ephem">Ephem</a>])</li>
<li>[<code>no-duplicates</code>]: Handle TS import type (<a href="https://github-redirect.dependabot.com/benmosher/eslint-plugin-import/issues/1676">#1676</a>, thanks [<a href="https://github.com/kmui2">kmui2</a>])</li>
<li>[<code>newline-after-import</code>]: recognize decorators (<a href="https://github-redirect.dependabot.com/benmosher/eslint-plugin-import/issues/1139">https://github.com/facebook/flipper/issues/1139</a>, thanks [<a href="https://github.com/atos1990">atos1990</a>])</li>
<li>[<code>no-unused-modules</code>]: Revert &quot;[flow] <code>no-unused-modules</code>: add flow type support&quot; (<a href="https://github-redirect.dependabot.com/benmosher/eslint-plugin-import/issues/1770">#1770</a>, thanks [<a href="https://github.com/Hypnosphi">Hypnosphi</a>])</li>
<li>TypeScript: Add nested namespace handling (<a href="https://github-redirect.dependabot.com/benmosher/eslint-plugin-import/issues/1763">#1763</a>, thanks [<a href="https://github.com/julien1619">julien1619</a>])</li>
<li>[<code>namespace</code>]/<code>ExportMap</code>: Fix interface declarations for TypeScript (<a href="https://github-redirect.dependabot.com/benmosher/eslint-plugin-import/issues/1764">#1764</a>, thanks [<a href="https://github.com/julien1619">julien1619</a>])</li>
<li>[<code>no-unused-modules</code>]: avoid order-dependence (<a href="https://github-redirect.dependabot.com/benmosher/eslint-plugin-import/issues/1744">#1744</a>, thanks [<a href="https://github.com/darkartur">darkartur</a>])</li>
<li>[<code>no-internal-modules</code>]: also check <code>export from</code> syntax (<a href="https://github-redirect.dependabot.com/benmosher/eslint-plugin-import/issues/1691">#1691</a>, thanks [<a href="https://github.com/adjerbetian">adjerbetian</a>])</li>
<li>TypeScript: [<code>export</code>]: avoid a crash with <code>export =</code> (<a href="https://github-redirect.dependabot.com/benmosher/eslint-plugin-import/issues/1801">#1801</a>, thanks [<a href="https://github.com/ljharb">ljharb</a>])</li>
</ul>

</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="878ce6efd0"><code>878ce6e</code></a> Bump to v2.22.0</li>
<li><a href="36a535b6a6"><code>36a535b</code></a> fixup: [Tests] <code>export</code>: skip <code>export * as</code> tests in eslint &lt; 6</li>
<li><a href="7ceae48d31"><code>7ceae48</code></a> [Tests] <code>export</code>: skip <code>export * as</code> tests in eslint &lt; 6</li>
<li><a href="07dc92a223"><code>07dc92a</code></a> [Fix] <code>export</code>: avoid warning on <code>export * as</code> non-conflicts</li>
<li><a href="b944e941b5"><code>b944e94</code></a> [Fix] <code>namespace</code>: do not report on shadowed import names</li>
<li><a href="a963e8de03"><code>a963e8d</code></a> [Refactor] <code>namespace</code>: clean up the code a bit</li>
<li><a href="a6cd6bdc11"><code>a6cd6bd</code></a> [docs] <code>imports-first</code>: deprecation info and link to <code>first</code> docs</li>
<li><a href="2468f101da"><code>2468f10</code></a> [docs] <code>no-default-export</code>: Fix docs url</li>
<li><a href="c38b1699f8"><code>c38b169</code></a> [patch] <code>order</code>/TypeScript: ignore ordering of object imports</li>
<li><a href="bfc50b72d4"><code>bfc50b7</code></a> [New] <code>no-cycle</code>: allow <code>maxDepth</code> option to be <code>&quot;∞&quot;</code></li>
<li>Additional commits viewable in <a href="https://github.com/benmosher/eslint-plugin-import/compare/v2.19.1...v2.22.0">compare view</a></li>
</ul>
</details>
<br />

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

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

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

 ---

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

You can trigger Dependabot actions by commenting on this PR:
- `dependabot rebase` will rebase this PR
- `dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `dependabot merge` will merge this PR after your CI passes on it
- `dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `dependabot cancel merge` will cancel a previously requested merge and block automerging
- `dependabot reopen` will reopen this PR if it is closed
- `dependabot 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/1336

Reviewed By: nikoant

Differential Revision: D22409668

Pulled By: passy

fbshipit-source-id: c546ae843ffe0f695e2c9b2facd0aa6a43823837
2020-07-07 06:23:08 -07:00
dependabot[bot]
a923c87ec9 Bump @babel/parser from 7.9.4 to 7.10.4 in /desktop (#1334)
Summary:
Bumps [babel/parser](https://github.com/babel/babel/tree/HEAD/packages/babel-parser) from 7.9.4 to 7.10.4.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/babel/babel/releases">babel/parser's releases</a>.</em></p>
<blockquote>
<h2>v7.10.4 (2020-06-30)</h2>
<p>Thanks <a href="https://github.com/penguingovernor">penguingovernor</a>, <a href="https://github.com/sajadtorkamani">sajadtorkamani</a> and <a href="https://github.com/wojtekmaj">wojtekmaj</a> for their first PRs!</p>
<h4>👓 Spec Compliance</h4>
<ul>
<li><code>babel-helper-member-expression-to-functions</code>, <code>babel-plugin-proposal-class-properties</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11669">#11669</a> Add <code>delete obj?.#x.a</code> support (<a href="https://github.com/JLHwung">JLHwung</a>)</li>
</ul>
</li>
<li><code>babel-parser</code>, <code>babel-types</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11652">#11652</a> fix: implement early errors for record and tuple (<a href="https://github.com/JLHwung">JLHwung</a>)</li>
</ul>
</li>
</ul>
<h4>🐛 Bug Fix</h4>
<ul>
<li><code>babel-types</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11752">#11752</a> [regression] Don't validate file.comments in <code>babel/types</code> (<a href="https://github.com/nicolo-ribaudo">nicolo-ribaudo</a>)</li>
</ul>
</li>
<li><code>babel-plugin-proposal-do-expressions</code>, <code>babel-types</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11724">#11724</a> fix: do-statementlist behavior (<a href="https://github.com/wlawt">wlawt</a>)</li>
</ul>
</li>
</ul>
<h4>💅 Polish</h4>
<ul>
<li><code>babel-parser</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11722">#11722</a> Add better parser error when using jsx (<a href="https://github.com/penguingovernor">penguingovernor</a>)</li>
</ul>
</li>
<li><code>babel-core</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11544">#11544</a> Refine babel core types (<a href="https://github.com/JLHwung">JLHwung</a>)</li>
</ul>
</li>
</ul>
<h4>🏠 Internal</h4>
<ul>
<li><code>babel-core</code>, <code>babel-helper-fixtures</code>, <code>babel-standalone</code>, <code>babel-traverse</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11758">#11758</a> Replace non-inclusive &quot;whitelist&quot; and &quot;blacklist&quot; terms with &quot;allowlist&quot; etc. (<a href="https://github.com/wojtekmaj">wojtekmaj</a>)</li>
</ul>
</li>
<li><code>babel-parser</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11376">#11376</a> Add babel/eslint-plugin-development-internal (<a href="https://github.com/kaicataldo">kaicataldo</a>)</li>
</ul>
</li>
<li><code>babel-core</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11544">#11544</a> Refine babel core types (<a href="https://github.com/JLHwung">JLHwung</a>)</li>
</ul>
</li>
</ul>
<h4>Committers: 7</h4>
<ul>
<li>Huáng Jùnliàng (<a href="https://github.com/JLHwung">JLHwung</a>)</li>
<li>Jorge Henriquez (<a href="https://github.com/penguingovernor">penguingovernor</a>)</li>
<li>Kai Cataldo (<a href="https://github.com/kaicataldo">kaicataldo</a>)</li>
<li>Nicolò Ribaudo (<a href="https://github.com/nicolo-ribaudo">nicolo-ribaudo</a>)</li>
<li>Simon Kotwicz (<a href="https://github.com/simonkotwicz">simonkotwicz</a>)</li>
<li>William Law (<a href="https://github.com/wlawt">wlawt</a>)</li>
<li>Wojciech Maj (<a href="https://github.com/wojtekmaj">wojtekmaj</a>)</li>
</ul>
<h2>v7.10.3 (2020-06-19)</h2>
<p>Thanks <a href="https://github.com/AjayPoshak">AjayPoshak</a>, <a href="https://github.com/jessethomson">jessethomson</a>, <a href="https://github.com/sajadtorkamani">sajadtorkamani</a>, <a href="https://github.com/shaodahong">shaodahong</a> and <a href="https://github.com/wlawt">wlawt</a> for their first PRs!</p>
<h4>👓 Spec Compliance</h4>
<ul>
<li><code>babel-parser</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11676">#11676</a> Properly parse <code>export default from</code> when <code>exportDefaultFrom</code> is not enabled (<a href="https://github.com/JLHwung">JLHwung</a>)</li>
</ul>
</li>
<li><code>babel-helper-member-expression-to-functions</code>, <code>babel-plugin-proposal-class-properties</code>, <code>babel-plugin-proposal-optional-chaining</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11662">#11662</a> refactor: do not rely on AST extra properties in plugins (<a href="https://github.com/JLHwung">JLHwung</a>)</li>
</ul>
</li>
<li><code>babel-plugin-proposal-logical-assignment-operators</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11658">#11658</a> Perform NamedEvaluation of Anonymous Functions in Logical Assignment (<a href="https://github.com/jridgewell">jridgewell</a>)</li>
</ul>
</li>
<li><code>babel-helper-create-class-features-plugin</code>, <code>babel-helper-member-expression-to-functions</code>, <code>babel-plugin-proposal-class-properties</code>, <code>babel-plugin-proposal-optional-chaining</code></li>
</ul>

</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/babel/babel/blob/main/CHANGELOG.md">babel/parser's changelog</a>.</em></p>
<blockquote>
<h2>v7.10.4 (2020-06-30)</h2>
<h4>👓 Spec Compliance</h4>
<ul>
<li><code>babel-helper-member-expression-to-functions</code>, <code>babel-plugin-proposal-class-properties</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11669">#11669</a> Add <code>delete obj?.#x.a</code> support (<a href="https://github.com/JLHwung">JLHwung</a>)</li>
</ul>
</li>
<li><code>babel-parser</code>, <code>babel-types</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11652">#11652</a> fix: implement early errors for record and tuple (<a href="https://github.com/JLHwung">JLHwung</a>)</li>
</ul>
</li>
</ul>
<h4>🐛 Bug Fix</h4>
<ul>
<li><code>babel-types</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11752">#11752</a> [regression] Don't validate file.comments in <code>babel/types</code> (<a href="https://github.com/nicolo-ribaudo">nicolo-ribaudo</a>)</li>
</ul>
</li>
<li><code>babel-plugin-proposal-do-expressions</code>, <code>babel-types</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11724">#11724</a> fix: do-statementlist behavior (<a href="https://github.com/wlawt">wlawt</a>)</li>
</ul>
</li>
</ul>
<h4>💅 Polish</h4>
<ul>
<li><code>babel-parser</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11722">#11722</a> Add better parser error when using jsx (<a href="https://github.com/penguingovernor">penguingovernor</a>)</li>
</ul>
</li>
<li><code>babel-core</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11544">#11544</a> Refine babel core types (<a href="https://github.com/JLHwung">JLHwung</a>)</li>
</ul>
</li>
</ul>
<h4>🏠 Internal</h4>
<ul>
<li><code>babel-core</code>, <code>babel-helper-fixtures</code>, <code>babel-standalone</code>, <code>babel-traverse</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11758">#11758</a> Replace non-inclusive &quot;whitelist&quot; and &quot;blacklist&quot; terms with &quot;allowlist&quot; etc. (<a href="https://github.com/wojtekmaj">wojtekmaj</a>)</li>
</ul>
</li>
<li><code>babel-parser</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11376">#11376</a> Add babel/eslint-plugin-development-internal (<a href="https://github.com/kaicataldo">kaicataldo</a>)</li>
</ul>
</li>
<li><code>babel-core</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11544">#11544</a> Refine babel core types (<a href="https://github.com/JLHwung">JLHwung</a>)</li>
</ul>
</li>
</ul>
<h2>v7.10.3 (2020-06-19)</h2>
<h4>👓 Spec Compliance</h4>
<ul>
<li><code>babel-parser</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11676">#11676</a> Properly parse <code>export default from</code> when <code>exportDefaultFrom</code> is not enabled (<a href="https://github.com/JLHwung">JLHwung</a>)</li>
</ul>
</li>
<li><code>babel-helper-member-expression-to-functions</code>, <code>babel-plugin-proposal-class-properties</code>, <code>babel-plugin-proposal-optional-chaining</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11662">#11662</a> refactor: do not rely on AST extra properties in plugins (<a href="https://github.com/JLHwung">JLHwung</a>)</li>
</ul>
</li>
<li><code>babel-plugin-proposal-logical-assignment-operators</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11658">#11658</a> Perform NamedEvaluation of Anonymous Functions in Logical Assignment (<a href="https://github.com/jridgewell">jridgewell</a>)</li>
</ul>
</li>
<li><code>babel-helper-create-class-features-plugin</code>, <code>babel-helper-member-expression-to-functions</code>, <code>babel-plugin-proposal-class-properties</code>, <code>babel-plugin-proposal-optional-chaining</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11623">#11623</a> fix: ensure (a?.b)() has proper this (<a href="https://github.com/JLHwung">JLHwung</a>)</li>
</ul>
</li>
</ul>
<h4>🐛 Bug Fix</h4>
<ul>
<li><code>babel-parser</code>, <code>babel-plugin-transform-flow-comments</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11697">#11697</a> Fix innercomments (<a href="https://github.com/shaodahong">shaodahong</a>)</li>
</ul>
</li>
<li><code>babel-helper-member-expression-to-functions</code>, <code>babel-plugin-proposal-class-properties</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11703">#11703</a> fix:added check for forXstatement pattern (<a href="https://github.com/wlawt">wlawt</a>)</li>
</ul>
</li>
<li><code>babel-template</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11695">#11695</a> Allow templates to parse v8intrinsics (<a href="https://github.com/jridgewell">jridgewell</a>)</li>
</ul>
</li>
<li><code>babel-types</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11687">#11687</a> improve node type definitions to avoid any's in generated types (<a href="https://github.com/zxbodya">zxbodya</a>)</li>
</ul>
</li>
<li><code>babel-plugin-transform-react-pure-annotations</code></li>
</ul>

</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="7fd40d86a0"><code>7fd40d8</code></a> v7.10.4</li>
<li><a href="75c2300c28"><code>75c2300</code></a> Add babel/eslint-plugin-development-internal (<a href="https://github.com/babel/babel/tree/HEAD/packages/babel-parser/issues/11376">#11376</a>)</li>
<li><a href="beca7e2d8e"><code>beca7e2</code></a> Add better parser error when using jsx (<a href="https://github.com/babel/babel/tree/HEAD/packages/babel-parser/issues/11722">#11722</a>)</li>
<li><a href="30835f14db"><code>30835f1</code></a> fix: implement early errors for record and tuple (<a href="https://github.com/babel/babel/tree/HEAD/packages/babel-parser/issues/11652">#11652</a>)</li>
<li><a href="2787ee2f96"><code>2787ee2</code></a> v7.10.3</li>
<li><a href="eea156b2cb"><code>eea156b</code></a> Migrate from &quot;master&quot; branch to &quot;main&quot; (<a href="https://github.com/babel/babel/tree/HEAD/packages/babel-parser/issues/11715">#11715</a>)</li>
<li><a href="e15a5c7509"><code>e15a5c7</code></a> Fix innercomments (<a href="https://github.com/babel/babel/tree/HEAD/packages/babel-parser/issues/11697">#11697</a>)</li>
<li><a href="b27abd39a8"><code>b27abd3</code></a> fix: add optional: false to MemberExpression (<a href="https://github.com/babel/babel/tree/HEAD/packages/babel-parser/issues/11709">#11709</a>)</li>
<li><a href="4108524856"><code>4108524</code></a> Update prettier to v2 (<a href="https://github.com/babel/babel/tree/HEAD/packages/babel-parser/issues/11579">#11579</a>)</li>
<li><a href="71d3527ef5"><code>71d3527</code></a> Properly parse <code>export default from</code> when <code>exportDefaultFrom</code> is not enabled ...</li>
<li>Additional commits viewable in <a href="https://github.com/babel/babel/commits/v7.10.4/packages/babel-parser">compare view</a></li>
</ul>
</details>
<details>
<summary>Maintainer changes</summary>
<p>This version was pushed to npm by <a href="https://www.npmjs.com/~jlhwung">jlhwung</a>, a new releaser for babel/parser since your current version.</p>
</details>
<br />

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

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

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

 ---

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

You can trigger Dependabot actions by commenting on this PR:
- `dependabot rebase` will rebase this PR
- `dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `dependabot merge` will merge this PR after your CI passes on it
- `dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `dependabot cancel merge` will cancel a previously requested merge and block automerging
- `dependabot reopen` will reopen this PR if it is closed
- `dependabot 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/1334

Reviewed By: nikoant

Differential Revision: D22409655

Pulled By: passy

fbshipit-source-id: e1b918bbd55075d4e518299725cea18d78d1fb58
2020-07-07 06:23:08 -07:00
dependabot[bot]
e2b2d13a41 Bump @algolia/client-search from 4.1.0 to 4.3.0 in /desktop (#1331)
Summary:
Bumps [algolia/client-search](https://github.com/algolia/algoliasearch-client-javascript) from 4.1.0 to 4.3.0.
<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.2.0...4.3.0">v4.3.0</a></h2>
<h2>Added</h2>
<ul>
<li><code>naturalLanguages</code> option type (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/pull/1147">https://github.com/facebook/flipper/issues/1147</a>)</li>
<li><code>shouldStop</code> option to stop browse (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/pull/1029">https://github.com/facebook/flipper/issues/1029</a>)</li>
<li><code>inner_queries</code> property to <code>getLogs</code> response (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/pull/1109">https://github.com/facebook/flipper/issues/1109</a>, <a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/pull/1166">https://github.com/facebook/flipper/issues/1166</a>)</li>
<li><code>enablePersonalization</code> option to type <code>Settings</code> (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/pull/1151">https://github.com/facebook/flipper/issues/1151</a>)</li>
</ul>
<h2>Fixed</h2>
<ul>
<li>additional <code>clear</code>, <code>delete</code> &amp; <code>deleteObject</code> types for the <code>.batch</code> method (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/pull/1149">https://github.com/facebook/flipper/issues/1149</a>)</li>
<li>unhandled promise issue while using while using <code>accountCopyIndex</code> (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/pull/1154">https://github.com/facebook/flipper/issues/1154</a>)</li>
<li>node requester unicode characters being corrupted on large responses (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/pull/1164">https://github.com/facebook/flipper/issues/1164</a>)</li>
</ul>
<h2><a href="https://github.com/algolia/algoliasearch-client-javascript/compare/4.1.0...4.2.0">v4.2.0</a></h2>
<h3>Added</h3>
<ul>
<li>Improved <code>acl</code> property type in <code>GetApiKeyResponse</code> and <code>addApiKey</code> function param (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/pull/1126">https://github.com/facebook/flipper/issues/1126</a>)</li>
<li>Improved <code>AnalyticsClientOptions</code> property type region (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/pull/1085">https://github.com/facebook/flipper/issues/1085</a>)</li>
<li>Responses types can now be mutated (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/pull/1068">https://github.com/facebook/flipper/issues/1068</a>)</li>
</ul>
<h3>Fixed</h3>
<ul>
<li>Type <code>Log</code> (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/pull/1139">https://github.com/facebook/flipper/issues/1139</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="3991e821b4"><code>3991e82</code></a> release: 4.3.0</li>
<li><a href="2cffc9a4e3"><code>2cffc9a</code></a> docs: update changelog</li>
<li><a href="060c290b30"><code>060c290</code></a> docs: update changelog</li>
<li><a href="399d3f1a7f"><code>399d3f1</code></a> fix(requester-node-http): fix handling chunked responses fix <a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1161">https://github.com/facebook/flipper/issues/1161</a> (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1164">https://github.com/facebook/flipper/issues/1164</a>)</li>
<li><a href="a91bf8e611"><code>a91bf8e</code></a> docs: update changelog</li>
<li><a href="648b06f1df"><code>648b06f</code></a> fix(log-type-inner-queries): apply snake_case (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1166">https://github.com/facebook/flipper/issues/1166</a>)</li>
<li><a href="a8bb68a969"><code>a8bb68a</code></a> chore(tests): tests against node 14 (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1165">https://github.com/facebook/flipper/issues/1165</a>)</li>
<li><a href="3c0f426ef1"><code>3c0f426</code></a> docs: updates changelog</li>
<li><a href="4df09f0b42"><code>4df09f0</code></a> feat(settings-personalization): add enablePersonalization type (<a href="https://github-redirect.dependabot.com/algolia/algoliasearch-client-javascript/issues/1151">https://github.com/facebook/flipper/issues/1151</a>)</li>
<li><a href="c176129e87"><code>c176129</code></a> docs: update changelog</li>
<li>Additional commits viewable in <a href="https://github.com/algolia/algoliasearch-client-javascript/compare/4.1.0...4.3.0">compare view</a></li>
</ul>
</details>
<details>
<summary>Maintainer changes</summary>
<p>This version was pushed to npm by <a href="https://www.npmjs.com/~yannickcr">yannickcr</a>, a new releaser for algolia/client-search since your current version.</p>
</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.1.0&new-version=4.3.0)](https://help.github.com/articles/configuring-automated-security-fixes)

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

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

 ---

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

You can trigger Dependabot actions by commenting on this PR:
- `dependabot rebase` will rebase this PR
- `dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `dependabot merge` will merge this PR after your CI passes on it
- `dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `dependabot cancel merge` will cancel a previously requested merge and block automerging
- `dependabot reopen` will reopen this PR if it is closed
- `dependabot 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/1331

Reviewed By: mweststrate

Differential Revision: D22409643

Pulled By: passy

fbshipit-source-id: 0503c371c3edee83f47d8a548426d6c6e1556348
2020-07-07 04:42:14 -07:00
dependabot[bot]
ddd42960e8 Bump @types/uuid from 7.0.0 to 8.0.0 in /desktop (#1335)
Summary:
Bumps [types/uuid](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/uuid) from 7.0.0 to 8.0.0.
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/uuid">compare view</a></li>
</ul>
</details>
<br />

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

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

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

 ---

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

You can trigger Dependabot actions by commenting on this PR:
- `dependabot rebase` will rebase this PR
- `dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `dependabot merge` will merge this PR after your CI passes on it
- `dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `dependabot cancel merge` will cancel a previously requested merge and block automerging
- `dependabot reopen` will reopen this PR if it is closed
- `dependabot 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/1335

Reviewed By: mweststrate

Differential Revision: D22409664

Pulled By: passy

fbshipit-source-id: 0de34177f04f71b3e58de71027b37ccf4372e0c2
2020-07-07 04:37:18 -07:00
dependabot[bot]
29eb378b1a Bump flow-bin from 0.127.0 to 0.128.0 in /desktop (#1332)
Summary:
Bumps [flow-bin](https://github.com/flowtype/flow-bin) from 0.127.0 to 0.128.0.
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a href="https://github.com/flowtype/flow-bin/commits">compare view</a></li>
</ul>
</details>
<br />

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

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

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

 ---

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

You can trigger Dependabot actions by commenting on this PR:
- `dependabot rebase` will rebase this PR
- `dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `dependabot merge` will merge this PR after your CI passes on it
- `dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `dependabot cancel merge` will cancel a previously requested merge and block automerging
- `dependabot reopen` will reopen this PR if it is closed
- `dependabot 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/1332

Reviewed By: nikoant

Differential Revision: D22392634

Pulled By: passy

fbshipit-source-id: 15659ba36e2973e17d10bd635771ea36465b9541
2020-07-06 11:46:06 -07:00
dependabot[bot]
3cffaaa9b7 Bump envinfo from 7.4.0 to 7.5.1 in /desktop (#1323)
Summary:
Bumps [envinfo](https://github.com/tabrindle/envinfo) from 7.4.0 to 7.5.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/tabrindle/envinfo/releases">envinfo's releases</a>.</em></p>
<blockquote>
<h2>7.5.1</h2>
<ul>
<li>add support for edge on macOS</li>
<li>add support for erlang</li>
<li>fix package paths on windows</li>
<li>fix crash on alpine linux</li>
<li>fix --npmGlobalPackages on windows</li>
<li>fix home directory replacement with ~</li>
<li>fix rust version</li>
<li>update example in docs</li>
<li>remove unnecessary fs calls</li>
<li>add unit tests</li>
<li>add alpine to e2e tests</li>
<li>add node 12 + 13 to e2e tests</li>
</ul>
<p>Thanks to these contributors for this release:</p>
<ul>
<li><a href="https://github.com/ryhinchey">ryhinchey</a></li>
<li><a href="https://github.com/gengjiawen">gengjiawen</a></li>
</ul>
<h2>7.5.0</h2>
<p>No release notes provided.</p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="3ba596740e"><code>3ba5967</code></a> chore: adding more utils tests (<a href="https://github-redirect.dependabot.com/tabrindle/envinfo/issues/164">https://github.com/facebook/flipper/issues/164</a>)</li>
<li><a href="d5441fd709"><code>d5441fd</code></a> Parse package path windows support (<a href="https://github-redirect.dependabot.com/tabrindle/envinfo/issues/161">https://github.com/facebook/flipper/issues/161</a>)</li>
<li><a href="6b5c7f6c7b"><code>6b5c7f6</code></a> replace process.env.HOME with os.homedir() (<a href="https://github-redirect.dependabot.com/tabrindle/envinfo/issues/152">https://github.com/facebook/flipper/issues/152</a>)</li>
<li><a href="26c5e528ac"><code>26c5e52</code></a> lockfile updated after running yarn (<a href="https://github-redirect.dependabot.com/tabrindle/envinfo/issues/162">https://github.com/facebook/flipper/issues/162</a>)</li>
<li><a href="6b51535f66"><code>6b51535</code></a> add alpine to CI (<a href="https://github-redirect.dependabot.com/tabrindle/envinfo/issues/159">https://github.com/facebook/flipper/issues/159</a>)</li>
<li><a href="9622054f87"><code>9622054</code></a> fix --npmGlobalPackages on windows (<a href="https://github-redirect.dependabot.com/tabrindle/envinfo/issues/144">https://github.com/facebook/flipper/issues/144</a>)</li>
<li><a href="cc2f27003d"><code>cc2f270</code></a> fixing hang in alpine linux and adding test (<a href="https://github-redirect.dependabot.com/tabrindle/envinfo/issues/147">https://github.com/facebook/flipper/issues/147</a>)</li>
<li><a href="80df989d7e"><code>80df989</code></a> add edge support on macos (<a href="https://github-redirect.dependabot.com/tabrindle/envinfo/issues/148">https://github.com/facebook/flipper/issues/148</a>)</li>
<li><a href="00355861cc"><code>0035586</code></a> docs: update programmatic example (<a href="https://github-redirect.dependabot.com/tabrindle/envinfo/issues/146">https://github.com/facebook/flipper/issues/146</a>)</li>
<li><a href="9b761a9b8d"><code>9b761a9</code></a> updating travis config for node 12 and 13 (<a href="https://github-redirect.dependabot.com/tabrindle/envinfo/issues/150">https://github.com/facebook/flipper/issues/150</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/tabrindle/envinfo/compare/7.4.0...7.5.1">compare view</a></li>
</ul>
</details>
<br />

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

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

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

 ---

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

You can trigger Dependabot actions by commenting on this PR:
- `dependabot rebase` will rebase this PR
- `dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `dependabot merge` will merge this PR after your CI passes on it
- `dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `dependabot cancel merge` will cancel a previously requested merge and block automerging
- `dependabot reopen` will reopen this PR if it is closed
- `dependabot 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/1323

Reviewed By: nikoant

Differential Revision: D22389104

Pulled By: passy

fbshipit-source-id: 93716bf373ed55692ceacde2f8d679022b8a2f33
2020-07-06 05:20:15 -07:00
dependabot[bot]
97e0c8b442 Bump @babel/plugin-transform-flow-strip-types from 7.9.0 to 7.10.4 in /desktop (#1322)
Summary:
Bumps [babel/plugin-transform-flow-strip-types](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-flow-strip-types) from 7.9.0 to 7.10.4.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/babel/babel/releases">babel/plugin-transform-flow-strip-types's releases</a>.</em></p>
<blockquote>
<h2>v7.10.4 (2020-06-30)</h2>
<p>Thanks <a href="https://github.com/penguingovernor">penguingovernor</a>, <a href="https://github.com/sajadtorkamani">sajadtorkamani</a> and <a href="https://github.com/wojtekmaj">wojtekmaj</a> for their first PRs!</p>
<h4>👓 Spec Compliance</h4>
<ul>
<li><code>babel-helper-member-expression-to-functions</code>, <code>babel-plugin-proposal-class-properties</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11669">#11669</a> Add <code>delete obj?.#x.a</code> support (<a href="https://github.com/JLHwung">JLHwung</a>)</li>
</ul>
</li>
<li><code>babel-parser</code>, <code>babel-types</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11652">#11652</a> fix: implement early errors for record and tuple (<a href="https://github.com/JLHwung">JLHwung</a>)</li>
</ul>
</li>
</ul>
<h4>🐛 Bug Fix</h4>
<ul>
<li><code>babel-types</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11752">#11752</a> [regression] Don't validate file.comments in <code>babel/types</code> (<a href="https://github.com/nicolo-ribaudo">nicolo-ribaudo</a>)</li>
</ul>
</li>
<li><code>babel-plugin-proposal-do-expressions</code>, <code>babel-types</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11724">#11724</a> fix: do-statementlist behavior (<a href="https://github.com/wlawt">wlawt</a>)</li>
</ul>
</li>
</ul>
<h4>💅 Polish</h4>
<ul>
<li><code>babel-parser</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11722">#11722</a> Add better parser error when using jsx (<a href="https://github.com/penguingovernor">penguingovernor</a>)</li>
</ul>
</li>
<li><code>babel-core</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11544">#11544</a> Refine babel core types (<a href="https://github.com/JLHwung">JLHwung</a>)</li>
</ul>
</li>
</ul>
<h4>🏠 Internal</h4>
<ul>
<li><code>babel-core</code>, <code>babel-helper-fixtures</code>, <code>babel-standalone</code>, <code>babel-traverse</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11758">#11758</a> Replace non-inclusive &quot;whitelist&quot; and &quot;blacklist&quot; terms with &quot;allowlist&quot; etc. (<a href="https://github.com/wojtekmaj">wojtekmaj</a>)</li>
</ul>
</li>
<li><code>babel-parser</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11376">#11376</a> Add babel/eslint-plugin-development-internal (<a href="https://github.com/kaicataldo">kaicataldo</a>)</li>
</ul>
</li>
<li><code>babel-core</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11544">#11544</a> Refine babel core types (<a href="https://github.com/JLHwung">JLHwung</a>)</li>
</ul>
</li>
</ul>
<h4>Committers: 7</h4>
<ul>
<li>Huáng Jùnliàng (<a href="https://github.com/JLHwung">JLHwung</a>)</li>
<li>Jorge Henriquez (<a href="https://github.com/penguingovernor">penguingovernor</a>)</li>
<li>Kai Cataldo (<a href="https://github.com/kaicataldo">kaicataldo</a>)</li>
<li>Nicolò Ribaudo (<a href="https://github.com/nicolo-ribaudo">nicolo-ribaudo</a>)</li>
<li>Simon Kotwicz (<a href="https://github.com/simonkotwicz">simonkotwicz</a>)</li>
<li>William Law (<a href="https://github.com/wlawt">wlawt</a>)</li>
<li>Wojciech Maj (<a href="https://github.com/wojtekmaj">wojtekmaj</a>)</li>
</ul>
<h2>v7.10.3 (2020-06-19)</h2>
<p>Thanks <a href="https://github.com/AjayPoshak">AjayPoshak</a>, <a href="https://github.com/jessethomson">jessethomson</a>, <a href="https://github.com/sajadtorkamani">sajadtorkamani</a>, <a href="https://github.com/shaodahong">shaodahong</a> and <a href="https://github.com/wlawt">wlawt</a> for their first PRs!</p>
<h4>👓 Spec Compliance</h4>
<ul>
<li><code>babel-parser</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11676">#11676</a> Properly parse <code>export default from</code> when <code>exportDefaultFrom</code> is not enabled (<a href="https://github.com/JLHwung">JLHwung</a>)</li>
</ul>
</li>
<li><code>babel-helper-member-expression-to-functions</code>, <code>babel-plugin-proposal-class-properties</code>, <code>babel-plugin-proposal-optional-chaining</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11662">#11662</a> refactor: do not rely on AST extra properties in plugins (<a href="https://github.com/JLHwung">JLHwung</a>)</li>
</ul>
</li>
<li><code>babel-plugin-proposal-logical-assignment-operators</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11658">#11658</a> Perform NamedEvaluation of Anonymous Functions in Logical Assignment (<a href="https://github.com/jridgewell">jridgewell</a>)</li>
</ul>
</li>
<li><code>babel-helper-create-class-features-plugin</code>, <code>babel-helper-member-expression-to-functions</code>, <code>babel-plugin-proposal-class-properties</code>, <code>babel-plugin-proposal-optional-chaining</code></li>
</ul>

</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/babel/babel/blob/main/CHANGELOG.md">babel/plugin-transform-flow-strip-types's changelog</a>.</em></p>
<blockquote>
<h2>v7.10.4 (2020-06-30)</h2>
<h4>👓 Spec Compliance</h4>
<ul>
<li><code>babel-helper-member-expression-to-functions</code>, <code>babel-plugin-proposal-class-properties</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11669">#11669</a> Add <code>delete obj?.#x.a</code> support (<a href="https://github.com/JLHwung">JLHwung</a>)</li>
</ul>
</li>
<li><code>babel-parser</code>, <code>babel-types</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11652">#11652</a> fix: implement early errors for record and tuple (<a href="https://github.com/JLHwung">JLHwung</a>)</li>
</ul>
</li>
</ul>
<h4>🐛 Bug Fix</h4>
<ul>
<li><code>babel-types</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11752">#11752</a> [regression] Don't validate file.comments in <code>babel/types</code> (<a href="https://github.com/nicolo-ribaudo">nicolo-ribaudo</a>)</li>
</ul>
</li>
<li><code>babel-plugin-proposal-do-expressions</code>, <code>babel-types</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11724">#11724</a> fix: do-statementlist behavior (<a href="https://github.com/wlawt">wlawt</a>)</li>
</ul>
</li>
</ul>
<h4>💅 Polish</h4>
<ul>
<li><code>babel-parser</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11722">#11722</a> Add better parser error when using jsx (<a href="https://github.com/penguingovernor">penguingovernor</a>)</li>
</ul>
</li>
<li><code>babel-core</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11544">#11544</a> Refine babel core types (<a href="https://github.com/JLHwung">JLHwung</a>)</li>
</ul>
</li>
</ul>
<h4>🏠 Internal</h4>
<ul>
<li><code>babel-core</code>, <code>babel-helper-fixtures</code>, <code>babel-standalone</code>, <code>babel-traverse</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11758">#11758</a> Replace non-inclusive &quot;whitelist&quot; and &quot;blacklist&quot; terms with &quot;allowlist&quot; etc. (<a href="https://github.com/wojtekmaj">wojtekmaj</a>)</li>
</ul>
</li>
<li><code>babel-parser</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11376">#11376</a> Add babel/eslint-plugin-development-internal (<a href="https://github.com/kaicataldo">kaicataldo</a>)</li>
</ul>
</li>
<li><code>babel-core</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11544">#11544</a> Refine babel core types (<a href="https://github.com/JLHwung">JLHwung</a>)</li>
</ul>
</li>
</ul>
<h2>v7.10.3 (2020-06-19)</h2>
<h4>👓 Spec Compliance</h4>
<ul>
<li><code>babel-parser</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11676">#11676</a> Properly parse <code>export default from</code> when <code>exportDefaultFrom</code> is not enabled (<a href="https://github.com/JLHwung">JLHwung</a>)</li>
</ul>
</li>
<li><code>babel-helper-member-expression-to-functions</code>, <code>babel-plugin-proposal-class-properties</code>, <code>babel-plugin-proposal-optional-chaining</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11662">#11662</a> refactor: do not rely on AST extra properties in plugins (<a href="https://github.com/JLHwung">JLHwung</a>)</li>
</ul>
</li>
<li><code>babel-plugin-proposal-logical-assignment-operators</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11658">#11658</a> Perform NamedEvaluation of Anonymous Functions in Logical Assignment (<a href="https://github.com/jridgewell">jridgewell</a>)</li>
</ul>
</li>
<li><code>babel-helper-create-class-features-plugin</code>, <code>babel-helper-member-expression-to-functions</code>, <code>babel-plugin-proposal-class-properties</code>, <code>babel-plugin-proposal-optional-chaining</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11623">#11623</a> fix: ensure (a?.b)() has proper this (<a href="https://github.com/JLHwung">JLHwung</a>)</li>
</ul>
</li>
</ul>
<h4>🐛 Bug Fix</h4>
<ul>
<li><code>babel-parser</code>, <code>babel-plugin-transform-flow-comments</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11697">#11697</a> Fix innercomments (<a href="https://github.com/shaodahong">shaodahong</a>)</li>
</ul>
</li>
<li><code>babel-helper-member-expression-to-functions</code>, <code>babel-plugin-proposal-class-properties</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11703">#11703</a> fix:added check for forXstatement pattern (<a href="https://github.com/wlawt">wlawt</a>)</li>
</ul>
</li>
<li><code>babel-template</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11695">#11695</a> Allow templates to parse v8intrinsics (<a href="https://github.com/jridgewell">jridgewell</a>)</li>
</ul>
</li>
<li><code>babel-types</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/11687">#11687</a> improve node type definitions to avoid any's in generated types (<a href="https://github.com/zxbodya">zxbodya</a>)</li>
</ul>
</li>
<li><code>babel-plugin-transform-react-pure-annotations</code></li>
</ul>

</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="7fd40d86a0"><code>7fd40d8</code></a> v7.10.4</li>
<li><a href="88f57a7ea6"><code>88f57a7</code></a> v7.10.1</li>
<li><a href="242d9e0b20"><code>242d9e0</code></a> Use <code>repository.directory</code> field in <code>package.json</code> files (<a href="https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-flow-strip-types/issues/11625">#11625</a>)</li>
<li>See full diff in <a href="https://github.com/babel/babel/commits/v7.10.4/packages/babel-plugin-transform-flow-strip-types">compare view</a></li>
</ul>
</details>
<details>
<summary>Maintainer changes</summary>
<p>This version was pushed to npm by <a href="https://www.npmjs.com/~jlhwung">jlhwung</a>, a new releaser for babel/plugin-transform-flow-strip-types since your current version.</p>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@babel/plugin-transform-flow-strip-types&package-manager=npm_and_yarn&previous-version=7.9.0&new-version=7.10.4)](https://help.github.com/articles/configuring-automated-security-fixes)

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

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

 ---

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

You can trigger Dependabot actions by commenting on this PR:
- `dependabot rebase` will rebase this PR
- `dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `dependabot merge` will merge this PR after your CI passes on it
- `dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `dependabot cancel merge` will cancel a previously requested merge and block automerging
- `dependabot reopen` will reopen this PR if it is closed
- `dependabot 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/1322

Reviewed By: nikoant

Differential Revision: D22389121

Pulled By: passy

fbshipit-source-id: 46ad9e400b6251e1565d7faa0f99e7a7f8b8bff1
2020-07-06 05:17:16 -07:00
Anton Nikolaev
a2e77f5da0 Patch metro to avoid erasing "process" global var
Summary:
Patch for "metro" to avoid erasing of "process" global var during bundling.

Also removed "process" babel transform for main Electron process which was also made to workaround the same issue with "process" being erased.

Reviewed By: mweststrate

Differential Revision: D22389153

fbshipit-source-id: 569882e20534eedfca45509b8efe0186d335c681
2020-07-06 03:09:41 -07:00
Luc Oth
7c3d264803 ManagedTable: pass an innerRef to bypass debounceRender
Summary: The ref would point to the DebouncedComponent instead of the ManagedTable passing an innerRef and handling binding manually.

Reviewed By: mweststrate

Differential Revision: D22374912

fbshipit-source-id: d404931405939ef8bfbde31f9aec7d531a3b62e3
2020-07-03 09:34:43 -07:00
Anton Nikolaev
a8a16e24b3 Set exit code to 1 if script failed
Summary: Fixed scripts to return exit code 1 in case of error.

Reviewed By: passy

Differential Revision: D22357664

fbshipit-source-id: 1e067fe507e8f33cf21e70f3d15fd97175b9544e
2020-07-02 10:20:36 -07:00
Anton Nikolaev
70b87b70c7 Fix standalone package build for unity plugins
Summary: Fixed error on building standalone packages for "unity" apps. The error was because "immer" imports were not transformed to use "immer" from Flipper bundle.

Reviewed By: passy

Differential Revision: D22357571

fbshipit-source-id: 590321f36208c9ed02d56d2c0c085c7cd1878018
2020-07-02 10:20:36 -07:00
Anton Nikolaev
228d09d572 Script for resolving plugin directory by its package name
Summary:
Changed "build-plugin" script to allow triggering release by plugin name (required to enable triggering releases by button in Marketplace):
1) Added new script to resolve plugin dir by name
2) Allow passing either plugin dir or name to "build-plugin" script

Reviewed By: passy

Differential Revision: D22354643

fbshipit-source-id: b7aca57acefc81ca0b6d9c7f359f63d8f0599e39
2020-07-02 02:48:19 -07:00
Michel Weststrate
babc88e472 Convert Seammammals plugin to Sandy {emoji:1f389}
Summary:
Converted the Seammammals plugin to use Sandy plugin infra (but the old components). Also updated lock file.

Added unittests have been added as well. The UI snapshots in there are kinda overkill, but nice demo that it works.

This completes the full roundtrip of the new Sandy infra, so this will be the last diff of this stack. I promise. I think.

Reviewed By: nikoant

Differential Revision: D22308265

fbshipit-source-id: 260e91a1951d486f6689880fe25281e80a71806a
2020-07-01 09:12:37 -07:00
Michel Weststrate
581ddafd18 Fixed re-enabling a still selected plugin
Summary: While testing manually discovered the sandy plugin infra din't cover the case that a plugin can be selected but not enabled at the same time. Added test and fixed that.

Reviewed By: nikoant

Differential Revision: D22308597

fbshipit-source-id: 6cef2b543013ee81cee449396d523dd9a657ad1c
2020-07-01 09:12:37 -07:00
Michel Weststrate
d16c6061c1 Introduce createState which can be used in components to propagate updates
Summary:
Introduced a minimal state abstraction so that state can be maintained in the plugin instance, but subscribe to by the UI.

At a later point we could pick an off the shelve solution like Recoil or MobX, or introduce cursors to read something deep etc etc, but for now that doesn't seem to be needed at all, and I think this will be pretty comprehensible for plugin authors (see also the 25th diff in this stack).

The api

```
createState(initialValue): Atom

Atom {
   get() // returns current value
   set(newValue) // sets a new value
   update(draft => { }) // updates a complex value using Immer behind the scenes
}

// hook, subscribes to the updates of the Atom and always returns the current value
useValue(atom)
```

Reviewed By: nikoant

Differential Revision: D22306673

fbshipit-source-id: c49f5af85ae9929187e4d8a051311a07c1b88eb5
2020-07-01 09:12:37 -07:00
Michel Weststrate
159c0deaf1 Added usePlugin hooks
Summary:
`usePlugin(pluginFactory)` returns the current plugin instance's api that was exposed by the plugin directory.

Passing `pluginFactory` is technically strictly not needed, but having the user pass it, we can make sure it is strongly typed

Reviewed By: nikoant

Differential Revision: D22286293

fbshipit-source-id: 4268b6849b8cd3d524103de7eadbd6c0a65c7a61
2020-07-01 09:12:37 -07:00
Michel Weststrate
952e929699 Fix disabling a plugin nog clearing the message queue
Summary:
While writing unit tests discovered a bug that disabling a plugin doesn't guarantee cleaning the messagequeues (both the buffer in client and the messagequeue reducer).

Fixed that. That was thanks to @#%@#$@#%@ Redux a lot harder than it should be; as 'STAR_PLUGIN' reasons about a plugin + app name, while the message queue reducer would need to deduct the plugin keys from that, but it can't because that mapping is stored in the connections reducers. So I moved the `STAR_PLUGIN` action handling to the root reducer, sot that it can reason about the state of multiple reducers, which looked like the least of all evils. For more ranting about that and possible alternative solutions: https://twitter.com/mweststrate/status/1277556309706117122

Reviewed By: nikoant

Differential Revision: D22284043

fbshipit-source-id: 35d0a8ba3a21a5959d2bb6ef17da3ff5077f48fd
2020-07-01 09:12:36 -07:00
Michel Weststrate
bb0c8e0df0 Support receiving messages in Sandy plugins
Summary: This diffs adds the capability to listen to messages in Sandy plugins. Although API wise it looks more like the old `this.subscribe`, semantically it behaves like the `persistedStateReducer`; messages are queued if the plugin is enabled but not active.

Reviewed By: nikoant

Differential Revision: D22282711

fbshipit-source-id: 885faa702fe779ac8d593c1d224b2be13e688d47
2020-07-01 09:12:36 -07:00
Michel Weststrate
6c79408b0f Move plugin stats to their own file
Summary: Really nothing interesting to see here , just moved pluginStats out of messageQueue, as it started there and kept growing

Reviewed By: nikoant

Differential Revision: D22257318

fbshipit-source-id: 26be7efb4629fcef1b14de96a2b60f17f7d76785
2020-07-01 09:12:36 -07:00
Michel Weststrate
ec85dd5b01 Allow plugins to send messages
Summary: Sandy plugins can now send messages to plugins. The methods and params are strongly typed in implementation and unit tests, based on the <Methods> generic of FlipperClient.

Reviewed By: nikoant

Differential Revision: D22256972

fbshipit-source-id: 549523a402949b3eb6bb4b4ca160dedb5c5e722d
2020-07-01 09:12:36 -07:00
Michel Weststrate
8b2d8498e6 Upgrade to TypeScript 3.9
Summary:
Upgrading to TypeScript 3.9 so that we can use `// ts-expect-error`, that allows us to basically write unit tests for typings.

Fixed the typescript path in `settings.json`, because otherwise VSCode kept picking the built-in version (3.8.3 atm) of ts when opening the `sonar` folder as workspace.

Reviewed By: passy

Differential Revision: D22255818

fbshipit-source-id: ae54aedb237445f32f1797b4290656dbfb0e528f
2020-07-01 09:12:36 -07:00
Michel Weststrate
df6a8cd031 Provide initial plugin test infra for plugin devs
Summary:
This sets up the initial infra that is to be used by plugin devs to test plugins.

There is not much yet to see, as there is no state or message sending yet. But at least the life cycle of plugins can be test, things are strongly typed and everything is in the place where it should be :)

N.b. the import difference with these utils and the createFlipperMock utilities in Flipper are

1. this testing infra is entirely inside flipper-plugin package, so that plugin devs don't need flipper as a dependency
2. this testing infra doesn't provide abstractions for plugin / device / client switching; it tests plugins purely in isolation of the rest of the world (except for firing `onConnect` / `onDisconnect` which is normally the effect of switching plugins)

Reviewed By: nikoant

Differential Revision: D22255262

fbshipit-source-id: b94ccbab720d2b49428a646aed3c55af71a5bc80
2020-07-01 09:12:36 -07:00
Michel Weststrate
bde112bf85 Introduce onConnect / onDisconnect hooks
Summary:
Introduced hooks that are called whenever the plugin is connected / disconnected to it's counter part on the device.

There is some logic duplication between `PluginContainer` for old plugins, and `PluginRenderer` for new plugins, mostly caused by the fact that those lifecycles are triggered from the UI rather than from the reducers, but I figured refactoring that to be too risky.

Reviewed By: jknoxville

Differential Revision: D22232337

fbshipit-source-id: a384c45731a4c8d9b8b532a83e2becf49ce807c2
2020-07-01 09:12:36 -07:00
Michel Weststrate
dd0d957d8b Fix vscodeUtils make a request on every unit test run
Summary:
When running unit tests, every unit would try to make a graphql request (since promises always kick off immediately, even when not being awaited) and print an error. Fixed that by lazily choosing the preferred whatever it is.

Before:

{F241368814}

After:
(crickets)

Reviewed By: passy

Differential Revision: D22208422

fbshipit-source-id: b290d528d94dbed7ae867e07694d8d4cd85d8376
2020-07-01 09:12:36 -07:00
Michel Weststrate
f2c39aed55 Introduce PluginRenderer to render plugins
Summary: PluginContainer will now wrap Sandy plugins in PluginRenderer. PluginRenderer will also be used by plugin unit tests in the future

Reviewed By: jknoxville

Differential Revision: D22159359

fbshipit-source-id: 69f9c8f4bec9392022c1d7a14957f5aca0339d97
2020-07-01 09:12:36 -07:00
Michel Weststrate
ba01fa5bc9 Introduce onDestroy hook
Summary: This diff introduces the `onDestroy` hook that can be used by plugins to listen to the event where a plugin is cleaned up (either because it is disabled, or because the client is being cleaned up)

Reviewed By: jknoxville

Differential Revision: D22208121

fbshipit-source-id: 9c4951ae671be611f21da171c548d4054c481166
2020-07-01 09:12:35 -07:00
Michel Weststrate
04a29315e2 Remove instanceof checks
Summary: Replaced `instanceof` checks with `isSandyPlugin` utility. That is cleaner to read and makes it easier to find places where we make exceptions for Sandy plugins

Reviewed By: jknoxville

Differential Revision: D22206707

fbshipit-source-id: b44a1b585424f3b9bf0d7ce200c34107f03ed55e
2020-07-01 09:12:35 -07:00
Michel Weststrate
1dc9e899b8 Make sure Sandy plugis can be initialized
Summary:
This diff makes sure sandy plugins are initialized.

Sandy plugins are stored directly in the client for two reasons
1. we want to decouple any plugin state updates from our central redux store, as redux is particularly bad in handling high frequency updates.
2. The lifecycle of a plugin is now bound to the lifecycle of a client. This means that we don't need 'persistedStore' to make sure state is preserved; that is now the default. Switching plugins will no longer reinitialize them (but only run specific hooks, see later diffs).
3. PersistedState will be introduced for sandy plugins as well later, but primarily for import / export / debug reasons.

A significant difference with the current persistent state, is that if a client crashes and reconnects, plugins will loose their state. We can prevent this (again, since state persisting will be reintroduced), but I'm not sure we need that for the specific reconnect scenario. Because
1. we should fix reconnecting clients anyway, and from stats it looks to happen less already
2. reconnects are usually caused by plugins that aggregate a lot of data and get slower over time. Restoring old state also restores those unstabilites.

For the overview bringing back the archi picture of earlier diff:
{F241508042}

Also fixed a bug where enabling background plugins didn't enable them on all devices with that app.

Reviewed By: jknoxville

Differential Revision: D22186276

fbshipit-source-id: 3fd42b577f86920e5280aa8cce1a0bc4d5564ed9
2020-07-01 09:12:35 -07:00
Michel Weststrate
bf79c9472e Always mock FBLogger during unit tests
Summary: Unit tests tend to randomly bail out once FBLogger is (indirectly) required by some module under test. This makes sure FBLogger is stubbed by default. We might want to do the same for `User` in the future.

Reviewed By: jknoxville

Differential Revision: D22186274

fbshipit-source-id: 2ede364c4b691d69826781355592226b075d8367
2020-07-01 09:12:35 -07:00
Michel Weststrate
83e6968fa1 cleaner test API
Summary: The test mock utilities now return a promise, rather than taking a callback, which makes tests slightly nicer to read (similar to react-testing-library). No semantic changes.

Reviewed By: jknoxville

Differential Revision: D22186278

fbshipit-source-id: ec5b9f4e6bfeee9160e331f8c20a1d4fdcbfeede
2020-07-01 09:12:35 -07:00
Michel Weststrate
12ac29685d make sure plugins can be loaded into Flipper
Summary: Make sure Sandy plugins are loaded properly from disk

Reviewed By: jknoxville

Differential Revision: D22186275

fbshipit-source-id: fd2f560a7bed959b18e05db2a087909ad876ab9d
2020-07-01 09:12:35 -07:00
Michel Weststrate
1029a6c97c Introduce types for Sandy plugins through code base
Summary:
So far there were 2 types of plugins: `FlipperPlugin` and `FlipperDevicePlugin`. This introduces a third kind: `SandyPluginDefinition`.

Unlike with the old plugins, the export of the module is not directly exposed as the plugin definition. Rather, we use class `SandyPluginDefinition` (instance) that holds a loaded definition and its meta data separately (`PluginDetails`). This means that we don't have to mix in and mutate loaded definitions, and that for unit tests we can avoid needing to provide a bunch of meta data. This also prevents a bunch of meta data existing on two places: on the loaded classes as static fields, and in the meta data field of the loaded class as well. Finally, we can now freely extends the `PluginDetails` interface in flipper, without needing to store it on the loaded classes and we are sure that no naming conflicts are caused by this in the future.

For compatibility with the existing code base, common fields are delegated from the `SandyPluginDefinition` class to the meta data.

Also cleaned up types around plugins a little bit and removed some unnecessary casts.

For all features that reason about plugins in general (such as exports), sandy plugins are ignored for now.

`SandyPluginInstance` is worked out in further diffs

The `instanceof` calls are replaced by a utility function in later diffs.

{F241363645}

Reviewed By: jknoxville

Differential Revision: D22091432

fbshipit-source-id: 3aa6b12fda5925268913779f3c3c9e84494438f8
2020-07-01 09:12:35 -07:00
Michel Weststrate
845c9b67f5 Read flipper-plugin from peer deps
Summary:
To know whether plugins should be mounted with the old setup or new setup (with a Provided / context based api), we need to be able to recognize whether a plugin is written with the old or new setup.

We do this by checking if the flipper-plugin dependency is declared as peer dependency. This we can to check for SDK compatibility as well.

Reviewed By: jknoxville

Differential Revision: D22043085

fbshipit-source-id: 21afabb6e58d86253a464470f4690c51cced87ab
2020-07-01 09:12:35 -07:00
Michel Weststrate
2383dc85f8 Initialized flipper-plugin library
Summary: Set up an initial library which can (should) be used by plugins in the future.

Reviewed By: jknoxville

Differential Revision: D22019554

fbshipit-source-id: 502b14b34b2c9c117cea377ab6ebbf150e6faee9
2020-07-01 09:12:35 -07:00
dependabot[bot]
7e7f431c66 Bump electron-devtools-installer from 3.0.0 to 3.1.0 in /desktop (#1317)
Summary:
Bumps [electron-devtools-installer](https://github.com/MarshallOfSound/electron-devtools-installer) from 3.0.0 to 3.1.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/MarshallOfSound/electron-devtools-installer/releases">electron-devtools-installer's releases</a>.</em></p>
<blockquote>
<h2>v3.1.0</h2>
<h1><a href="https://github.com/MarshallOfSound/electron-devtools-installer/compare/v3.0.0...v3.1.0">3.1.0</a> (2020-06-27)</h1>
<h3>Features</h3>
<ul>
<li>add electron 9 support (<a href="https://github-redirect.dependabot.com/MarshallOfSound/electron-devtools-installer/issues/131">https://github.com/facebook/flipper/issues/131</a>) (<a href="ab713a639c">ab713a6</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="f6932ad87d"><code>f6932ad</code></a> chore: fix tests</li>
<li><a href="ab713a639c"><code>ab713a6</code></a> feat: add electron 9 support (<a href="https://github-redirect.dependabot.com/MarshallOfSound/electron-devtools-installer/issues/131">https://github.com/facebook/flipper/issues/131</a>)</li>
<li>See full diff in <a href="https://github.com/MarshallOfSound/electron-devtools-installer/compare/v3.0.0...v3.1.0">compare view</a></li>
</ul>
</details>
<br />

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

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

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

 ---

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

You can trigger Dependabot actions by commenting on this PR:
- `dependabot rebase` will rebase this PR
- `dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `dependabot merge` will merge this PR after your CI passes on it
- `dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `dependabot cancel merge` will cancel a previously requested merge and block automerging
- `dependabot reopen` will reopen this PR if it is closed
- `dependabot 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/1317

Reviewed By: mweststrate

Differential Revision: D22310350

Pulled By: passy

fbshipit-source-id: d043248ebd57976c5cfde267741977846c77c065
2020-07-01 06:11:35 -07:00
Chaiwat Ekkaewnumchai
c8af6da236 Disable Web Security in Command Line
Summary:
We've disabled web security in `BrowserWindow` (https://fburl.com/diffusion/0l0q669m). However, there is a bug in Electron 9 that makes this doesn't work as expected (https://github.com/electron/electron/issues/23664). Earlier, we've resolved this problem by specifying `no-cors` mode in requests. This strikes again in other plugin.

This diff applies a workaround commented inside the issue to allow to make CORS requests.

Reviewed By: nikoant

Differential Revision: D22306977

fbshipit-source-id: ea0f5e3f1c4080037df258a6c5ce1fc89d433c3b
2020-06-30 06:52:07 -07:00
generatedunixname89002005306973
8000090eac Flipper Release: v0.49.0
Summary: Releasing version 0.49.0

Reviewed By: cekkaewnumchai

Differential Revision: D22307632

fbshipit-source-id: 105fc71f07a4827a5d6e54cf3200b22f800a5f1e
2020-06-30 06:33:04 -07:00
Pascal Hartig
8ff1411f91 Fix screen recording on Android 11
Summary:
Instead of relying on system blocks used, we use the file size reported by ls.
Android 11 seems to be more lazy when it comes to fsync'ing so there's a pretty
good chance that if we just check for with `du` or `ls -ls` we will see an "empty" file
because it hasn't been written to disk yet. By the normal `ls` output instead, we'll
just read the file and see how many bytes it's long, which should be more
accurate in all cases.

Changelog: Fix screen recording for Android 11 beta

Reviewed By: jknoxville

Differential Revision: D22283092

fbshipit-source-id: 6d33ca297f1c0734ab4ffc466d9e483aa1a1bdb5
2020-06-29 07:20:40 -07:00
Anton Nikolaev
dcd909779b Script to list all plugins included into Flipper desktop workspaces
Summary: Script to list all plugins included into Flipper desktop workspaces.

Reviewed By: passy

Differential Revision: D22256917

fbshipit-source-id: a3d8a0f9faea6e462a2f22be155d99eb22eb59d8
2020-06-26 09:07:12 -07:00
Anton Nikolaev
419691da97 Added command "flipper-pkg checksum"
Summary: Changelog: Added command `flipper-pkg checksum` for computing the total checksum of all the files included into plugin package.

Reviewed By: passy

Differential Revision: D22255125

fbshipit-source-id: a4f91370b4ab16ea4ce4a60e29f9d20fdd5f4331
2020-06-26 03:25:27 -07:00
Chaiwat Ekkaewnumchai
56c9435bd5 Fix Always Scrolling to Selected Element
Summary: `forwardedRef` was always triggered, so it forced the container to scroll to the selected element. This diff stores element id so that it scrolls only once.

Reviewed By: mweststrate

Differential Revision: D22235284

fbshipit-source-id: 0eb7aaf2b484d345865db4da66d0f555dc314710
2020-06-26 02:19:11 -07:00
Anton Nikolaev
226bbae14b Plugin Marketplace: Check engine field and avoid downloading incompatible updates
Summary: Only download plugins with "engine" version less or equal to the current Flipper version

Reviewed By: mweststrate

Differential Revision: D22211546

fbshipit-source-id: 52cf51badcd1e7041214d2a09ba6b6fc9c331b8f
2020-06-25 05:24:26 -07:00
Pritesh Nandgaonkar
dafe493930 Add architecture and sdk version information
Summary: This diff adds abilist and sdk version information in the AndroidDevice.

Reviewed By: mweststrate

Differential Revision: D22210225

fbshipit-source-id: cda3dea9d89fdaa62a08aa000c93e39177c67bdd
2020-06-25 04:25:19 -07:00
Pascal Hartig
ca64e2455a Dedupe yarn lock
Summary: Should saved some bytes. Wanted to do this after seeing Christoph's talk. Used Atlassian's yarn-dedupe. Sadly, didn't find much.

Reviewed By: mweststrate

Differential Revision: D22207392

fbshipit-source-id: b2f7700f738c054af5e64b030e48185d3789ae12
2020-06-25 02:32:47 -07:00
Pascal Hartig
011952d73c Flipper Release: v0.48.0
Summary: Releasing version 0.48.0

Reviewed By: mweststrate

Differential Revision: D22207960

fbshipit-source-id: 7f21ff151c4e5750646a6dd3e39690229a2e73a5
2020-06-25 02:32:47 -07:00