Commit Graph

1454 Commits

Author SHA1 Message Date
Anton Nikolaev
fff489091e Paste oauth token using deeplink
Reviewed By: passy

Differential Revision: D28790868

fbshipit-source-id: 6a22809444462af15915fa4f06e76e64ebb7f590
2021-06-02 11:30:37 -07:00
Anton Nikolaev
cf14f0808f SignInSheet refactored to use hooks
Reviewed By: passy

Differential Revision: D28788914

fbshipit-source-id: 5b000bff57d0fec7b8fafa4f5efd1c3e15caa766
2021-06-02 11:30:37 -07:00
Anton Nikolaev
bb0271a1a0 Persisted logged out state
Reviewed By: passy

Differential Revision: D28788916

fbshipit-source-id: 88ca6a069d4915e71cd7c271b6bbbea37838f4f5
2021-06-02 11:30:36 -07:00
Anton Nikolaev
48b0eb8f18 Show login dialog on Flipper startup if user is not logged
Reviewed By: passy

Differential Revision: D28780529

fbshipit-source-id: 7f4c38d8461619fe5995654e23dc5739fc852ccc
2021-06-02 11:30:36 -07:00
Anton Nikolaev
c1f161045c Move sign-in sheet under fb folder
Summary: SignInSheet and "dispatcher/user" are not used in public build, so it doesn't make sense to keep them on github.

Reviewed By: passy

Differential Revision: D28789384

fbshipit-source-id: aa1ab0fc70f2211260017be42762714b753ea877
2021-06-02 11:30:36 -07:00
Flipper Bot
d45046f111 Flipper Release: v0.92.0
Summary: Releasing version 0.92.0

Reviewed By: priteshrnandgaonkar

Differential Revision: D28829240

fbshipit-source-id: 6e90f3e50dbcb152109cbc5fa5ac3ff9d3c23a08
2021-06-02 08:29:18 -07:00
Luciano Kenji Sugiura
a00f0ce13a WAIQWatch plugin improvements
Summary:
Improving usability of the WAIQWatch plugin.
Also fixing a bug in `MasterDetail`, which didn't use `sidebarSize` as `height` when detail panel is shown at the bottom.
iOS companion diff here: D28756787

Reviewed By: tomw

Differential Revision: D28751609

fbshipit-source-id: ba27ae7ce3596179752c963dba1bf4b994767c2a
2021-06-02 07:38:47 -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
dependabot[bot]
84c0783d5c Bump metro-cache from 0.65.2 to 0.66.0 in /desktop (#2399)
Summary:
Bumps [metro-cache](https://github.com/facebook/metro) from 0.65.2 to 0.66.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/facebook/metro/releases">metro-cache's releases</a>.</em></p>
<blockquote>
<h2>Release v0.66.0</h2>
<ul>
<li><strong>[Breaking]</strong> metro-symbolicate: Optionally accept a SourceURL parameter for debug builds (7ad7560)</li>
<li><strong>[Feature]</strong> Move generator to Hermes stable (b280477)</li>
<li><strong>[Feature]</strong> Move for-of and ?? to hermes stable (31375f7)</li>
<li><strong>[Feature]</strong> Set app name for React Native Experimental Debug Connection (3aca116)</li>
<li><strong>[Feature]</strong> Infer the name &quot;default&quot; for anonymous exports (af23a1b)</li>
<li><strong>[Fix]</strong> Disable fileName moduleId parsing for non-legacy source maps (e473e93)</li>
<li><strong>[Fix]</strong> Format log messages using printf format (f2b3485)</li>
<li><strong>[Fix]</strong> Fix scope of function declaration binding in constant folding (150d13e)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="20e4480f9e"><code>20e4480</code></a> Bump metro to 0.66.0</li>
<li><a href="7ad7560e33"><code>7ad7560</code></a> Optionally accept a SourceURL parameter for debug builds</li>
<li><a href="af23a1b27b"><code>af23a1b</code></a> Infer the name &quot;default&quot; for anonymous exports</li>
<li><a href="31375f7604"><code>31375f7</code></a> Move for-of and ?? to hermes stable</li>
<li><a href="3aca116973"><code>3aca116</code></a> Set app name for React Native Experimental Debug Connection</li>
<li><a href="4bd9e40297"><code>4bd9e40</code></a> Deploy v0.148.0 to xplat</li>
<li><a href="54bcce22c6"><code>54bcce2</code></a> Backout for-of and canary ??</li>
<li><a href="f66d6e37f2"><code>f66d6e3</code></a> Canary Hermes for-of</li>
<li><a href="17d4761946"><code>17d4761</code></a> Clean up redundant experimental flowconfig options</li>
<li><a href="0b4f46c064"><code>0b4f46c</code></a> Update troubleshooting docs for metro cache tmpdir (<a href="https://github-redirect.dependabot.com/facebook/metro/issues/642">https://github.com/facebook/flipper/issues/642</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/facebook/metro/compare/v0.65.2...v0.66.0">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=metro-cache&package-manager=npm_and_yarn&previous-version=0.65.2&new-version=0.66.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/2399

Reviewed By: nikoant

Differential Revision: D28795378

Pulled By: passy

fbshipit-source-id: b32069ecdbd4f54fd3655b709b994eb0148d04af
2021-06-02 03:45:57 -07:00
dependabot[bot]
29f779ac29 Bump @babel/eslint-parser from 7.13.14 to 7.14.4 in /desktop (#2398)
Summary:
Bumps [babel/eslint-parser](https://github.com/babel/babel/tree/HEAD/eslint/babel-eslint-parser) from 7.13.14 to 7.14.4.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/babel/babel/releases"><code>@​babel/eslint-parser</code>'s releases</a>.</em></p>
<blockquote>
<h2>v7.14.4 (2021-05-28)</h2>
<p>Thanks <a href="https://github.com/alanorozco"><code>@​alanorozco</code></a>, <a href="https://github.com/devfservant"><code>@​devfservant</code></a>, <a href="https://github.com/merceyz"><code>@​merceyz</code></a>, <a href="https://github.com/mmorel-35"><code>@​mmorel-35</code></a> (and <a href="https://github.com/renovate-bot"><code>@​renovate-bot</code></a>! 🤖), <a href="https://github.com/sokra"><code>@​sokra</code></a>, and <a href="https://github.com/wbinnssmith"><code>@​wbinnssmith</code></a> for your 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/13377">#13377</a> disallow surrogate in the end of contextual name (<a href="https://github.com/JLHwung"><code>@​JLHwung</code></a>)</li>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13328">#13328</a> perf: minimize identifier lookahead when parsing let (<a href="https://github.com/JLHwung"><code>@​JLHwung</code></a>)</li>
</ul>
</li>
<li><code>babel-plugin-transform-typescript</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13314">#13314</a> [ts] Insert <code>export {}</code> when necessary to imply ESM (<a href="https://github.com/wbinnssmith"><code>@​wbinnssmith</code></a>)</li>
</ul>
</li>
</ul>
<h4>🐛 Bug Fix</h4>
<ul>
<li><code>babel-plugin-transform-typescript</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13381">#13381</a> [ts] Remove override modifier (<a href="https://github.com/sosukesuzuki"><code>@​sosukesuzuki</code></a>)</li>
</ul>
</li>
<li>Other
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13338">#13338</a> Fix error when parsing ignored files with <code>babel/eslint-parser</code> (<a href="https://github.com/devfservant"><code>@​devfservant</code></a>)</li>
</ul>
</li>
<li><code>babel-parser</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13333">#13333</a> refactor: add parse*Literal parser routines (<a href="https://github.com/JLHwung"><code>@​JLHwung</code></a>)</li>
</ul>
</li>
</ul>
<h4>🏃‍♀️ Performance</h4>
<ul>
<li><code>babel-plugin-transform-block-scoping</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13376">#13376</a> Improve performance (<a href="https://github.com/sokra"><code>@​sokra</code></a>)</li>
</ul>
</li>
<li><code>babel-parser</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13341">#13341</a> Faster tokenizer lookahead (<a href="https://github.com/JLHwung"><code>@​JLHwung</code></a>)</li>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13328">#13328</a> perf: minimize identifier lookahead when parsing let (<a href="https://github.com/JLHwung"><code>@​JLHwung</code></a>)</li>
</ul>
</li>
</ul>
<h4>🔬 Output optimization</h4>
<ul>
<li><code>babel-plugin-proposal-object-rest-spread</code>, <code>babel-plugin-transform-block-scoping</code>, <code>babel-plugin-transform-destructuring</code>, <code>babel-plugin-transform-react-constant-elements</code>, <code>babel-preset-env</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13384">#13384</a> Hoist omitted keys from object spread operator (<a href="https://github.com/alanorozco"><code>@​alanorozco</code></a>)</li>
</ul>
</li>
</ul>
<h4>Committers: 12</h4>
<ul>
<li>Alan Orozco (<a href="https://github.com/alanorozco"><code>@​alanorozco</code></a>)</li>
<li>Babel Bot (<a href="https://github.com/babel-bot"><code>@​babel-bot</code></a>)</li>
<li>Bogdan Savluk (<a href="https://github.com/zxbodya"><code>@​zxbodya</code></a>)</li>
<li>Daniel Tschinder (<a href="https://github.com/danez"><code>@​danez</code></a>)</li>
<li>Huáng Jùnliàng (<a href="https://github.com/JLHwung"><code>@​JLHwung</code></a>)</li>
<li>Kristoffer K. (<a href="https://github.com/merceyz"><code>@​merceyz</code></a>)</li>
<li>Nicolò Ribaudo (<a href="https://github.com/nicolo-ribaudo"><code>@​nicolo-ribaudo</code></a>)</li>
<li>Sosuke Suzuki (<a href="https://github.com/sosukesuzuki"><code>@​sosukesuzuki</code></a>)</li>
<li>Tobias Koppers (<a href="https://github.com/sokra"><code>@​sokra</code></a>)</li>
<li>Will Binns-Smith (<a href="https://github.com/wbinnssmith"><code>@​wbinnssmith</code></a>)</li>
<li><a href="https://github.com/devfservant"><code>@​devfservant</code></a></li>
<li>fisker Cheung (<a href="https://github.com/fisker"><code>@​fisker</code></a>)</li>
</ul>
<h2>v7.14.3 (2021-05-17)</h2>
<h4>🐛 Bug Fix</h4>
<ul>
<li><code>babel-core</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13321">#13321</a> Pass assumptions set in presets to plugins (<a href="https://github.com/nicolo-ribaudo"><code>@​nicolo-ribaudo</code></a>)</li>
</ul>
</li>
<li><code>babel-parser</code></li>
</ul>

</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/babel/babel/blob/main/CHANGELOG.md"><code>@​babel/eslint-parser</code>'s changelog</a>.</em></p>
<blockquote>
<h2>v7.14.4 (2021-05-28)</h2>
<h4>👓 Spec Compliance</h4>
<ul>
<li><code>babel-parser</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13377">#13377</a> disallow surrogate in the end of contextual name (<a href="https://github.com/JLHwung"><code>@​JLHwung</code></a>)</li>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13328">#13328</a> perf: minimize identifier lookahead when parsing let (<a href="https://github.com/JLHwung"><code>@​JLHwung</code></a>)</li>
</ul>
</li>
<li><code>babel-plugin-transform-typescript</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13314">#13314</a> [ts] Insert <code>export {}</code> when necessary to imply ESM (<a href="https://github.com/wbinnssmith"><code>@​wbinnssmith</code></a>)</li>
</ul>
</li>
</ul>
<h4>🐛 Bug Fix</h4>
<ul>
<li><code>babel-plugin-transform-typescript</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13381">#13381</a> [ts] Remove override modifier (<a href="https://github.com/sosukesuzuki"><code>@​sosukesuzuki</code></a>)</li>
</ul>
</li>
<li>Other
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13338">#13338</a> Fix error when parsing ignored files with <code>babel/eslint-parser</code> (<a href="https://github.com/devfservant"><code>@​devfservant</code></a>)</li>
</ul>
</li>
<li><code>babel-parser</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13333">#13333</a> refactor: add parse*Literal parser routines (<a href="https://github.com/JLHwung"><code>@​JLHwung</code></a>)</li>
</ul>
</li>
</ul>
<h4>🏃‍♀️ Performance</h4>
<ul>
<li><code>babel-plugin-transform-block-scoping</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13376">#13376</a> Improve performance (<a href="https://github.com/sokra"><code>@​sokra</code></a>)</li>
</ul>
</li>
<li><code>babel-parser</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13341">#13341</a> Faster tokenizer lookahead (<a href="https://github.com/JLHwung"><code>@​JLHwung</code></a>)</li>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13328">#13328</a> perf: minimize identifier lookahead when parsing let (<a href="https://github.com/JLHwung"><code>@​JLHwung</code></a>)</li>
</ul>
</li>
</ul>
<h4>🔬 Output optimization</h4>
<ul>
<li><code>babel-plugin-proposal-object-rest-spread</code>, <code>babel-plugin-transform-block-scoping</code>, <code>babel-plugin-transform-destructuring</code>, <code>babel-plugin-transform-react-constant-elements</code>, <code>babel-preset-env</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13384">#13384</a> Hoist omitted keys from object spread operator (<a href="https://github.com/alanorozco"><code>@​alanorozco</code></a>)</li>
</ul>
</li>
</ul>
<h2>v7.14.3 (2021-05-17)</h2>
<h4>🐛 Bug Fix</h4>
<ul>
<li><code>babel-core</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13321">#13321</a> Pass assumptions set in presets to plugins (<a href="https://github.com/nicolo-ribaudo"><code>@​nicolo-ribaudo</code></a>)</li>
</ul>
</li>
<li><code>babel-parser</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13326">#13326</a> fix: preserve tokensLength in tryParse (<a href="https://github.com/JLHwung"><code>@​JLHwung</code></a>)</li>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13325">#13325</a> Parse <code>let</code> declarations whose id starts with <code>\</code> (<a href="https://github.com/nicolo-ribaudo"><code>@​nicolo-ribaudo</code></a>)</li>
</ul>
</li>
<li><code>babel-helper-create-class-features-plugin</code>, <code>babel-helper-replace-supers</code>, <code>babel-plugin-proposal-class-properties</code>, <code>babel-plugin-proposal-class-static-block</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13303">#13303</a> Don't duplicate the base class when using <code>constantSuper</code> (<a href="https://github.com/nicolo-ribaudo"><code>@​nicolo-ribaudo</code></a>)</li>
</ul>
</li>
</ul>
<h4>🏠 Internal</h4>
<ul>
<li>Other
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13313">#13313</a> chore: add class-static-block test262 mapping (<a href="https://github.com/JLHwung"><code>@​JLHwung</code></a>)</li>
</ul>
</li>
<li><code>babel-plugin-transform-block-scoping</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13304">#13304</a> Add test for fixed block scoping issue (<a href="https://github.com/nicolo-ribaudo"><code>@​nicolo-ribaudo</code></a>)</li>
</ul>
</li>
</ul>
<h4>🔬 Output optimization</h4>
<ul>
<li><code>babel-helper-create-class-features-plugin</code>, <code>babel-helper-replace-supers</code>, <code>babel-plugin-proposal-class-static-block</code>, <code>babel-preset-env</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13297">#13297</a> Compile static blocks without the intermediate priv field step (<a href="https://github.com/nicolo-ribaudo"><code>@​nicolo-ribaudo</code></a>)</li>
</ul>
</li>
</ul>
<h2>v7.14.2 (2021-05-12)</h2>
<h4>🐛 Bug Fix</h4>

</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="219fd3ab1f"><code>219fd3a</code></a> v7.14.4</li>
<li><a href="12190042e6"><code>1219004</code></a> Fix error when parsing ignored files with <code>babel/eslint-parser</code> (<a href="https://github.com/babel/babel/tree/HEAD/eslint/babel-eslint-parser/issues/13338">#13338</a>)</li>
<li><a href="1487a46dd5"><code>1487a46</code></a> v7.14.3</li>
<li><a href="9d620c2d42"><code>9d620c2</code></a> [babel 8] Move ESLint parsing to a Worker (<a href="https://github.com/babel/babel/tree/HEAD/eslint/babel-eslint-parser/issues/13199">#13199</a>)</li>
<li><a href="7512095c84"><code>7512095</code></a> v7.14.2</li>
<li><a href="b2d9156cc6"><code>b2d9156</code></a> Update to Prettier 2.3 (<a href="https://github.com/babel/babel/tree/HEAD/eslint/babel-eslint-parser/issues/13288">#13288</a>)</li>
<li><a href="e74b3fb1c6"><code>e74b3fb</code></a> [DOC] Add missing Monorepo configuration (<a href="https://github.com/babel/babel/tree/HEAD/eslint/babel-eslint-parser/issues/13253">#13253</a>)</li>
<li><a href="1879491af7"><code>1879491</code></a> [eslint] Don't crash on multiple <code>babel/parser</code> copies (<a href="https://github.com/babel/babel/tree/HEAD/eslint/babel-eslint-parser/issues/13274">#13274</a>)</li>
<li><a href="96fce81438"><code>96fce81</code></a> chore: bump eslint-visitor-keys (<a href="https://github.com/babel/babel/tree/HEAD/eslint/babel-eslint-parser/issues/13272">#13272</a>)</li>
<li><a href="a387973821"><code>a387973</code></a> Refactor private name tokenizing (<a href="https://github.com/babel/babel/tree/HEAD/eslint/babel-eslint-parser/issues/13256">#13256</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/babel/babel/commits/v7.14.4/eslint/babel-eslint-parser">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@babel/eslint-parser&package-manager=npm_and_yarn&previous-version=7.13.14&new-version=7.14.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/2398

Reviewed By: nikoant

Differential Revision: D28795379

Pulled By: passy

fbshipit-source-id: a8e075bbdeaaee4964bdbebe9a2e91b2f8e4ba66
2021-06-02 03:45:57 -07:00
dependabot[bot]
ef1434db75 Bump react-transition-group from 4.4.1 to 4.4.2 in /desktop (#2397)
Summary:
Bumps [react-transition-group](https://github.com/reactjs/react-transition-group) from 4.4.1 to 4.4.2.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/reactjs/react-transition-group/releases">react-transition-group's releases</a>.</em></p>
<blockquote>
<h2>v4.4.2</h2>
<h2><a href="https://github.com/reactjs/react-transition-group/compare/v4.4.1...v4.4.2">4.4.2</a> (2021-05-29)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><code>nodeRef</code> prop type for cross-realm elements (<a href="https://github-redirect.dependabot.com/reactjs/react-transition-group/issues/732">https://github.com/facebook/flipper/issues/732</a>) (<a href="8710c01549">8710c01</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/reactjs/react-transition-group/blob/master/CHANGELOG.md">react-transition-group's changelog</a>.</em></p>
<blockquote>
<h2><a href="https://github.com/reactjs/react-transition-group/compare/v4.4.1...v4.4.2">4.4.2</a> (2021-05-29)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><code>nodeRef</code> prop type for cross-realm elements (<a href="https://github-redirect.dependabot.com/reactjs/react-transition-group/issues/732">https://github.com/facebook/flipper/issues/732</a>) (<a href="8710c01549">8710c01</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="8dc9ad8d94"><code>8dc9ad8</code></a> chore(release): 4.4.2 [skip ci]</li>
<li><a href="8710c01549"><code>8710c01</code></a> fix: <code>nodeRef</code> prop type for cross-realm elements (<a href="https://github-redirect.dependabot.com/reactjs/react-transition-group/issues/732">https://github.com/facebook/flipper/issues/732</a>)</li>
<li><a href="7b2360382d"><code>7b23603</code></a> build(deps): bump ws from 7.2.3 to 7.4.6 (<a href="https://github-redirect.dependabot.com/reactjs/react-transition-group/issues/733">https://github.com/facebook/flipper/issues/733</a>)</li>
<li><a href="5a9aeecc61"><code>5a9aeec</code></a> build(deps): bump dns-packet from 1.3.1 to 1.3.4 in /www (<a href="https://github-redirect.dependabot.com/reactjs/react-transition-group/issues/731">https://github.com/facebook/flipper/issues/731</a>)</li>
<li><a href="ffa33d2c61"><code>ffa33d2</code></a> build(deps): bump browserslist from 4.16.3 to 4.16.6 in /www (<a href="https://github-redirect.dependabot.com/reactjs/react-transition-group/issues/728">#728</a>)</li>
<li><a href="bbd913b5a1"><code>bbd913b</code></a> build(deps): bump hosted-git-info from 2.8.8 to 2.8.9 (<a href="https://github-redirect.dependabot.com/reactjs/react-transition-group/issues/722">https://github.com/facebook/flipper/issues/722</a>)</li>
<li><a href="5de4da59ad"><code>5de4da5</code></a> build(deps): bump lodash from 4.17.19 to 4.17.21 (<a href="https://github-redirect.dependabot.com/reactjs/react-transition-group/issues/721">https://github.com/facebook/flipper/issues/721</a>)</li>
<li><a href="13571800d9"><code>1357180</code></a> build(deps): bump url-parse from 1.4.7 to 1.5.1 (<a href="https://github-redirect.dependabot.com/reactjs/react-transition-group/issues/720">https://github.com/facebook/flipper/issues/720</a>)</li>
<li><a href="ce1816baf5"><code>ce1816b</code></a> build(deps): bump handlebars from 4.7.6 to 4.7.7 (<a href="https://github-redirect.dependabot.com/reactjs/react-transition-group/issues/719">https://github.com/facebook/flipper/issues/719</a>)</li>
<li><a href="708ebbf965"><code>708ebbf</code></a> build(deps): bump ssri from 6.0.1 to 6.0.2 (<a href="https://github-redirect.dependabot.com/reactjs/react-transition-group/issues/715">https://github.com/facebook/flipper/issues/715</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/reactjs/react-transition-group/compare/v4.4.1...v4.4.2">compare view</a></li>
</ul>
</details>
<br />

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

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

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

 ---

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

You can trigger Dependabot actions by commenting on this PR:
- `dependabot rebase` will rebase this PR
- `dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `dependabot merge` will merge this PR after your CI passes on it
- `dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `dependabot cancel merge` will cancel a previously requested merge and block automerging
- `dependabot reopen` will reopen this PR if it is closed
- `dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

</details>

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

Reviewed By: nikoant

Differential Revision: D28795380

Pulled By: passy

fbshipit-source-id: 5c54fe693f30e74f48d3df4fbb983c60816ccbdd
2021-06-02 03:45:57 -07:00
dependabot[bot]
25ce01eb9f Bump inquirer from 8.0.0 to 8.1.0 in /desktop (#2396)
Summary:
Bumps [inquirer](https://github.com/SBoudrias/Inquirer.js) from 8.0.0 to 8.1.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/SBoudrias/Inquirer.js/releases">inquirer's releases</a>.</em></p>
<blockquote>
<h2>inquirer@8.1.0</h2>
<h3>New features</h3>
<ul>
<li>Now display a loading spinner while asynchronously filtering or validating data.</li>
<li><code>inquirer.prompt()</code> now accept a shorthand object syntax instead of an array with <code>name</code>d prompts:</li>
</ul>
<pre lang="js"><code>const { foo, bar } = await inquirer.prompt({
  foo: {
    message: '...',
    default: '...',
  },
  bar: {
    default: '...',
  }
}):
</code></pre>
<h2>inquirer@8.0.1</h2>
<p>Fixes</p>
<ul>
<li>Fix issue with duplicate keys in <code>expand</code> prompt not being caught if casing didn't match</li>
<li>Fix <code>rawlist</code> prompt ignoring <code>short</code> option</li>
<li>Rollback dependencies migrated to ESM causing issue for some users</li>
</ul>
<p>And lastly general dependency upgrade (to non-ESM versions)</p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="c4a3c2301a"><code>c4a3c23</code></a> Publish</li>
<li><a href="8cf1ed0ba1"><code>8cf1ed0</code></a> Update yarn.lock</li>
<li><a href="ddcd09e774"><code>ddcd09e</code></a> Fix var/const from PR</li>
<li><a href="06203f8d57"><code>06203f8</code></a> Handle questions as a plain object {[name]: question} (<a href="https://github-redirect.dependabot.com/SBoudrias/Inquirer.js/issues/885">https://github.com/facebook/flipper/issues/885</a>)</li>
<li><a href="6717092743"><code>6717092</code></a> feat(prompt): progress indicator for filter and validate with optiona… (<a href="https://github-redirect.dependabot.com/SBoudrias/Inquirer.js/issues/1002">https://github.com/facebook/flipper/issues/1002</a>)</li>
<li><a href="0053e3f569"><code>0053e3f</code></a> Publish</li>
<li><a href="de13f145ab"><code>de13f14</code></a> Update some dependencies</li>
<li><a href="33407e3bdd"><code>33407e3</code></a> downgrade: {emoji:2b07} chalk-pipe@4, husky@4 (major bumps breaking) (<a href="https://github-redirect.dependabot.com/SBoudrias/Inquirer.js/issues/1012">https://github.com/facebook/flipper/issues/1012</a>)</li>
<li><a href="357bbd9302"><code>357bbd9</code></a> fix: rawlist displays 'value' instead of 'short' after selection (<a href="https://github-redirect.dependabot.com/SBoudrias/Inquirer.js/issues/1013">https://github.com/facebook/flipper/issues/1013</a>)</li>
<li><a href="a17b3a243b"><code>a17b3a2</code></a> Expand: check for duplicates in a case-insensitive way (<a href="https://github-redirect.dependabot.com/SBoudrias/Inquirer.js/issues/1006">https://github.com/facebook/flipper/issues/1006</a>)</li>
<li>See full diff in <a href="https://github.com/SBoudrias/Inquirer.js/compare/inquirer@8.0.0...inquirer@8.1.0">compare view</a></li>
</ul>
</details>
<br />

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

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

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

 ---

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

You can trigger Dependabot actions by commenting on this PR:
- `dependabot rebase` will rebase this PR
- `dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `dependabot merge` will merge this PR after your CI passes on it
- `dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `dependabot cancel merge` will cancel a previously requested merge and block automerging
- `dependabot reopen` will reopen this PR if it is closed
- `dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

</details>

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

Reviewed By: nikoant

Differential Revision: D28795381

Pulled By: passy

fbshipit-source-id: 132a295162360f5aaaca2a0d4a9b07755f106bd1
2021-06-02 03:45:57 -07:00
dependabot[bot]
1ec791ce36 Bump redux from 4.0.5 to 4.1.0 in /desktop (#2400)
Summary:
Bumps [redux](https://github.com/reduxjs/redux) from 4.0.5 to 4.1.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/reduxjs/redux/releases">redux's releases</a>.</em></p>
<blockquote>
<h2>v4.1.0</h2>
<p>This release shrinks our bundle size via error message extraction, updates several error messages for clarity, and optimizes our list of runtime dependencies.</p>
<p>Overall, version 4.1 shrinks from 2.6K min+gz to 1.6K min+gz thanks to these changes.</p>
<p>Be sure to check out <a href="https://github.com/reduxjs/redux-toolkit/releases/tag/v1.6.0-alpha.1">the Redux Toolkit 1.6 alpha containing our new &quot;RTK Query&quot; data fetching APIs!</a> It also includes Redux 4.1 as a dependency.</p>
<h2>Changelog</h2>
<h3>Error Message Extraction and Improvements</h3>
<p>We now extract all of our error messages from production builds in order to save on bundle size, using <a href="https://reactjs.org/blog/2016/07/11/introducing-reacts-error-code-system.html">a technique inspired from React's error code extraction</a>.  The error messages will still show as normal in development, but in production they will reference a specific numeric error code and provide a link to a Redux docs page that has the full error message.</p>
<p>An example of this is: <a href="https://redux.js.org/errors?code=5">https://redux.js.org/errors?code=5</a> , which shows the &quot;can't subscribe while reducers are executing&quot; error.</p>
<p>The error code extraction saves about 800 bytes out of a production build.</p>
<p>Thanks to <a href="https://github.com/andrewmcgivery"><code>@​andrewmcgivery</code></a> for doing all the hard work on implementing the error extraction!</p>
<p>We've also updated many of our error messages to provide additional details at runtime about what happened, especially runtime type checks such as &quot;actions must be plain objects&quot;. They now provide a more specific type for the unexpected value, such as indicating <code>promise</code> or <code>function</code>:</p>
<pre lang="js"><code>    expect(() =&gt; store.dispatch(() =&gt; {})).toThrow(
      /the actual type was: 'function'/
    )
<pre><code>expect(() =&amp;gt; store.dispatch(new Date())).toThrow(
  /the actual type was: 'date'/
)
</code></pre>
<p></code></pre></p>
<h3>Dependency Updates</h3>
<p>We've updated the list of runtime dependencies for Redux:</p>
<ul>
<li>We inlined the <code>symbol-observable</code> polyfill. This shrinks bundle size by a few bytes,</li>
<li>We've removed the legacy <code>loose-envify</code> dependency, which was only ever needed by Browserify users. If you still happen to be using Browserify, please review your build settings and see if you need to make any updates.</li>
<li>We now explicitly depend on <code>babel/runtime</code> to extract some additional helpers out of our bundle. It's likely that your app already is pulling in those helpers anyway, so that removes some potential duplication.</li>
</ul>
<h3>Typing Tweaks</h3>
<p>We've merged fixes for a couple edge cases in the 4.x TS typings related to state types.</p>
<h2>Changes</h2>
<ul>
<li>Remove symbol-observable and loose-envify deps (<a href="https://github-redirect.dependabot.com/reduxjs/redux/issues/4058">#4058</a> - <a href="https://github.com/markerikson"><code>@​markerikson</code></a>)</li>
<li>Port error extraction setup from master  (<a href="https://github-redirect.dependabot.com/reduxjs/redux/issues/4057">#4057</a> - <a href="https://github.com/markerikson"><code>@​markerikson</code></a>)</li>
<li>Port build dependencies from master into 4.x (<a href="https://github-redirect.dependabot.com/reduxjs/redux/issues/4056">#4056</a> - <a href="https://github.com/markerikson"><code>@​markerikson</code></a>)</li>
<li>Rewrite Redux core error messages (<a href="https://github-redirect.dependabot.com/reduxjs/redux/issues/4055">#4055</a> - <a href="https://github.com/markerikson"><code>@​markerikson</code></a>)</li>
<li>feat: mangle error codes to error indexes (<a href="https://github-redirect.dependabot.com/reduxjs/redux/issues/3920">#3920</a> - <a href="https://github.com/andrewmcgivery"><code>@​andrewmcgivery</code></a>)</li>
</ul>

</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="97a7798e83"><code>97a7798</code></a> 4.1.0</li>
<li><a href="32f368a2f1"><code>32f368a</code></a> 4.1.0-alpha.0</li>
<li><a href="9445d3ab3a"><code>9445d3a</code></a> Ignore Docusaurus output</li>
<li><a href="9a1d065ecf"><code>9a1d065</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/reduxjs/redux/issues/4058">#4058</a> from reduxjs/feature/4x-remove-legacy-deps</li>
<li><a href="d29cbfaf57"><code>d29cbfa</code></a> Include ESM .mjs file in size comparisons</li>
<li><a href="fb5abcccc2"><code>fb5abcc</code></a> Formatting</li>
<li><a href="0d7d94d818"><code>0d7d94d</code></a> Inline the symbol-observable polyfill</li>
<li><a href="b882d9afee"><code>b882d9a</code></a> Remove symbol-observable and loose-envify deps</li>
<li><a href="f3680b5bf9"><code>f3680b5</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/reduxjs/redux/issues/4057">#4057</a> from reduxjs/feature/4x-error-messages</li>
<li><a href="3ce88ddbe7"><code>3ce88dd</code></a> Formatting</li>
<li>Additional commits viewable in <a href="https://github.com/reduxjs/redux/compare/v4.0.5...v4.1.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/~acemarke">acemarke</a>, a new releaser for redux since your current version.</p>
</details>
<br />

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

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

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

 ---

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

You can trigger Dependabot actions by commenting on this PR:
- `dependabot rebase` will rebase this PR
- `dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `dependabot merge` will merge this PR after your CI passes on it
- `dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `dependabot cancel merge` will cancel a previously requested merge and block automerging
- `dependabot reopen` will reopen this PR if it is closed
- `dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

</details>

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

Reviewed By: nikoant

Differential Revision: D28795377

Pulled By: passy

fbshipit-source-id: 00c213c0ba6b1df5071f48734e136a40082ee0b1
2021-06-02 03:45:57 -07:00
Anton Nikolaev
eb788aaf43 Added "Zoom in", "Zoom out" and "Actual size" commands similarly to Google Chrome
Summary: Changelog: allow zooming Flipper window content in and out either using View menu or hotkeys (Cmd+Plus) and (Cmd+Minus)

Reviewed By: passy

Differential Revision: D28748567

fbshipit-source-id: a214c708cae2c82d04eb53fc879518a0106517de
2021-05-27 08:50:27 -07:00
Pascal Hartig
6d1cecdeee Retry icon download
Summary:
In public CI (only?), asset downloads sometimes fail with a spurious 404.
We already have retrying in place, but it will obviously not do that on a 500.

Reviewed By: nikoant

Differential Revision: D28744817

fbshipit-source-id: b6a185d8e9db45e02c6427233a0171b00c552751
2021-05-27 06:26:48 -07:00
dependabot[bot]
6902e55256 Bump ws from 7.3.0 to 7.4.6 in /desktop (#2371)
Summary:
Bumps [ws](https://github.com/websockets/ws) from 7.3.0 to 7.4.6.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/websockets/ws/releases">ws's releases</a>.</em></p>
<blockquote>
<h2>7.4.6</h2>
<h1>Bug fixes</h1>
<ul>
<li>Fixed a ReDoS vulnerability (00c425ec).</li>
</ul>
<p>A specially crafted value of the <code>Sec-Websocket-Protocol</code> header could be used
to significantly slow down a ws server.</p>
<pre lang="js"><code>for (const length of [1000, 2000, 4000, 8000, 16000, 32000]) {
  const value = 'b' + ' '.repeat(length) + 'x';
  const start = process.hrtime.bigint();
<p>value.trim().split(/ *, */);</p>
<p>const end = process.hrtime.bigint();</p>
<p>console.log('length = %d, time = %f ns', length, end - start);
}
</code></pre></p>
<p>The vulnerability was responsibly disclosed along with a fix in private by
Robert McLaughlin from University of California, Santa Barbara.</p>
<p>In vulnerable versions of ws, the issue can be mitigated by reducing the maximum
allowed length of the request headers using the <a href="https://nodejs.org/api/cli.html#cli_max_http_header_size_size"><code>--max-http-header-size=size</code></a>
and/or the <a href="https://nodejs.org/api/http.html#http_http_createserver_options_requestlistener"><code>maxHeaderSize</code></a> options.</p>
<h2>7.4.5</h2>
<h1>Bug fixes</h1>
<ul>
<li>UTF-8 validation is now done even if <code>utf-8-validate</code> is not installed
(23ba6b29).</li>
<li>Fixed an edge case where <code>websocket.close()</code> and <code>websocket.terminate()</code> did
not close the connection (67e25ff5).</li>
</ul>
<h2>7.4.4</h2>
<h1>Bug fixes</h1>
<ul>
<li>Fixed a bug that could cause the process to crash when using the
permessage-deflate extension (92774377).</li>
</ul>
<h2>7.4.3</h2>
<h1>Bug fixes</h1>
<ul>
<li>The deflate/inflate stream is now reset instead of reinitialized when context
takeover is disabled (<a href="https://github-redirect.dependabot.com/websockets/ws/issues/1840">https://github.com/facebook/flipper/issues/1840</a>).</li>
</ul>
<h2>7.4.2</h2>
<h1>Bug fixes</h1>

</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="f5297f7090"><code>f5297f7</code></a> [dist] 7.4.6</li>
<li><a href="00c425ec77"><code>00c425e</code></a> [security] Fix ReDoS vulnerability</li>
<li><a href="990306d144"><code>990306d</code></a> [lint] Fix prettier error</li>
<li><a href="32e3a8439b"><code>32e3a84</code></a> [security] Remove reference to Node Security Project</li>
<li><a href="8c914d18b8"><code>8c914d1</code></a> [minor] Fix nits</li>
<li><a href="fc7e27d12a"><code>fc7e27d</code></a> [ci] Test on node 16</li>
<li><a href="587c201bfc"><code>587c201</code></a> [ci] Do not test on node 15</li>
<li><a href="f672710797"><code>f672710</code></a> [dist] 7.4.5</li>
<li><a href="67e25ff502"><code>67e25ff</code></a> [fix] Fix case where <code>abortHandshake()</code> does not close the connection</li>
<li><a href="23ba6b2922"><code>23ba6b2</code></a> [fix] Make UTF-8 validation work even if utf-8-validate is not installed</li>
<li>Additional commits viewable in <a href="https://github.com/websockets/ws/compare/7.3.0...7.4.6">compare view</a></li>
</ul>
</details>
<br />

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

Reviewed By: passy

Differential Revision: D28714468

Pulled By: nikoant

fbshipit-source-id: c2a3a7091599f29d453a35bf89bab4a03817509c
2021-05-27 03:51:53 -07:00
Anton Nikolaev
6a777f7690 Bump browserslist dependency to fix vulnerability warning
Summary: Github says browserslist < 4.16.5 is vulnerable, so I'm pinning it everywhere.

Reviewed By: muraziz

Differential Revision: D28713858

fbshipit-source-id: b512dc48ded88bdf90556b58bd1e67cacbbc8a3e
2021-05-26 12:01:18 -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
Anton Nikolaev
4a583ad086 Make color of time markers more contrast
Summary: Changelog: Increased contrast of timestamps text on marker timelines used in several plugins (QPL, Sections)

Reviewed By: mweststrate

Differential Revision: D28707431

fbshipit-source-id: 8749a95fccf895bddf707c1d830baf5c65578fb9
2021-05-26 08:18:01 -07:00
Pascal Hartig
623a505284 Downgrade app-builder to fix build
Summary: Uggh, a patch release that introduces a breaking change: The minimum Node version. https://github.com/facebook/flipper/runs/2667073574

Reviewed By: nikoant

Differential Revision: D28681220

fbshipit-source-id: d41e8b701ceca0703d4ec19da9d4e472fb54ae0d
2021-05-25 10:39:48 -07:00
Pascal Hartig
bca8030df8 Dep bump
Summary:
Daily bump keeps the yada yada. Only patch updates or safe ones.

allow-large-files

Reviewed By: nikoant

Differential Revision: D28636754

fbshipit-source-id: d2a8c7fc0779bea30ff6532ae076694ce0e1fffa
2021-05-25 08:53:36 -07:00
Pascal Hartig
526e0ddd01 Demote console.error on check fail
Summary:
We use exception for control flow here which isn't great
but we shouldn't log naked errors when a check fails.

Reviewed By: nikoant

Differential Revision: D28645636

fbshipit-source-id: db8c7b1457883acc767ac850f015f6b35a41730b
2021-05-25 04:09:43 -07:00
Michel Weststrate
d9c986fcf8 Fix test flakiness by using jest timers
Summary: Some tests were occasionally flaky, by emulating delays, time variation should no longer influence tests.

Reviewed By: passy

Differential Revision: D28572946

fbshipit-source-id: f4134a6509a0ec0be2e8f36e5623c4882b5531b8
2021-05-25 02:22:21 -07:00
Anton Nikolaev
8d508c8634 Build script updated to allow specifying directory with default plugins
Summary: This change allows passing a directory containing plugin packages to include them into Flipper distributive. This is used by release command on Sandcastle (see D28626715).

Reviewed By: passy

Differential Revision: D28628425

fbshipit-source-id: 9c5d7527721f99b43991bace0b5e2f3a4ede0d13
2021-05-25 01:41:57 -07:00
Flipper Bot
0305947ca2 Flipper Release: v0.91.2
Summary: Releasing version 0.91.2

Reviewed By: nikoant

Differential Revision: D28638216

fbshipit-source-id: 282edcbfb954e65f4a8559445856b01929578619
2021-05-24 06:52:10 -07:00
Anton Nikolaev
d57c4d687c Fix build-plugin script
Summary: This diff fixes "build-plugin" script which is failing for fb-internal plugins, because "fb/package.json" not exist. Because of that release of "fb/mobilebuilds" plugin failed recently: https://www.internalfb.com/intern/sandcastle/job/13510799309874638.

Reviewed By: passy

Differential Revision: D28624924

fbshipit-source-id: e00da98cfef992f5d49045afc9d404764a0d13ac
2021-05-24 02:46:42 -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
76701565ac Cleanup public plugins metadata
Summary: Now we support splitting metadata to public and fb-internal (see the previous diff in the stack), and this diff actually cleans up all public plugin metadata from fb-specific things.

Reviewed By: passy

Differential Revision: D28568413

fbshipit-source-id: eae699eabaae489c4bcfbfcc407c3bef42bfd338
2021-05-21 07:15:28 -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
Pascal Hartig
bf32eca8fc Remove console.error for login
Summary:
This is in fact correctly handled, shown in the UI and we don't
need a task if someone pastes the wrong token.

Reviewed By: priteshrnandgaonkar

Differential Revision: D28569896

fbshipit-source-id: 689bff06b4a488be7ad4c58eb4f2e91018da31cf
2021-05-20 08:55:55 -07:00
dependabot[bot]
4174387488 Bump @typescript-eslint/eslint-plugin from 4.22.1 to 4.23.0 in /desktop (#2330)
Summary:
Bumps [typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 4.22.1 to 4.23.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/typescript-eslint/typescript-eslint/releases"><code>@​typescript-eslint/eslint-plugin</code>'s releases</a>.</em></p>
<blockquote>
<h2>v4.23.0</h2>
<h1><a href="https://github.com/typescript-eslint/typescript-eslint/compare/v4.22.1...v4.23.0">4.23.0</a> (2021-05-10)</h1>
<h3>Bug Fixes</h3>
<ul>
<li><strong>scope-manager:</strong> fix visiting TSAsExpression in assignment (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3355">#3355</a>) (<a href="87521a0241">87521a0</a>)</li>
</ul>
<h3>Features</h3>
<ul>
<li><strong>experimental-utils:</strong> Include <code>getCwd()</code> in <code>RuleContext</code> type (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3308">#3308</a>) (<a href="2b75c11d69">2b75c11</a>)</li>
<li>refactor to split AST specification out as its own module (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/2911">#2911</a>) (<a href="25ea953cc6">25ea953</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md"><code>@​typescript-eslint/eslint-plugin</code>'s changelog</a>.</em></p>
<blockquote>
<h1><a href="https://github.com/typescript-eslint/typescript-eslint/compare/v4.22.1...v4.23.0">4.23.0</a> (2021-05-10)</h1>
<h3>Bug Fixes</h3>
<ul>
<li><strong>scope-manager:</strong> fix visiting TSAsExpression in assignment (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3355">#3355</a>) (<a href="87521a0241">87521a0</a>)</li>
</ul>
<h3>Features</h3>
<ul>
<li>refactor to split AST specification out as its own module (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/2911">#2911</a>) (<a href="25ea953cc6">25ea953</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="18d8151e54"><code>18d8151</code></a> chore: publish v4.23.0</li>
<li><a href="87521a0241"><code>87521a0</code></a> fix(scope-manager): fix visiting TSAsExpression in assignment (<a href="https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin/issues/3355">#3355</a>)</li>
<li><a href="25ea953cc6"><code>25ea953</code></a> feat: refactor to split AST specification out as its own module (<a href="https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin/issues/2911">#2911</a>)</li>
<li>See full diff in <a href="https://github.com/typescript-eslint/typescript-eslint/commits/v4.23.0/packages/eslint-plugin">compare view</a></li>
</ul>
</details>
<br />

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

Reviewed By: priteshrnandgaonkar

Differential Revision: D28474753

Pulled By: mweststrate

fbshipit-source-id: d3aa251618b1d95daebde4619711e764647ab252
2021-05-20 07:42:26 -07:00
Anton Nikolaev
fe7bb7cedd Fix null reference on isError check
Summary: Fixed new error which appeared in logview after last release. See task T91245438 for details.

Reviewed By: passy

Differential Revision: D28569848

fbshipit-source-id: a4b622d4387aa41ecc4db269e05c5315669df250
2021-05-20 07:13:35 -07:00
Stephen Schwink
0c854eaeb5 Add Flipper icon "raincloud"
Reviewed By: joelmats

Differential Revision: D28541930

fbshipit-source-id: 109264f705f0060a3b1b085abc1d0717decb6143
2021-05-19 13:35:05 -07:00
Flipper Bot
e277ca9b05 Flipper Release: v0.91.1
Summary: Releasing version 0.91.1

Reviewed By: passy

Differential Revision: D28546238

fbshipit-source-id: 9dee4ccbbe647e99a2f590a48a7671af6bad5b73
2021-05-19 13:16:05 -07:00
Anton Nikolaev
3f55ceac8f Added few eslint rules checking promises
Summary:
Added rules to ensure we properly propagate errors from promises.

Also found and fixed a place where promise function parameter was mismatched.

Reviewed By: mweststrate

Differential Revision: D28537820

fbshipit-source-id: b93f44274fc76544049813f645508cb78e432880
2021-05-19 09:30:42 -07:00
Michel Weststrate
c897d92df8 Minor doc improvements
Summary: per title

Reviewed By: muraziz

Differential Revision: D28538087

fbshipit-source-id: 322558d909fb89cd297b56d6aaf3de98e20b4ec1
2021-05-19 08:16:47 -07:00
Flipper Bot
610d250129 Flipper Release: v0.91.0
Summary: Releasing version 0.91.0

Reviewed By: nikoant

Differential Revision: D28536898

fbshipit-source-id: 343d3eab79449713ad7ce75887ab28564e7167b8
2021-05-19 06:55:43 -07:00
Michel Weststrate
767c6855c8 Clean up response handling
Reviewed By: priteshrnandgaonkar, fabiomassimo

Differential Revision: D28441183

fbshipit-source-id: 6e47d05145e986279860b49cfff078a905f62689
2021-05-19 06:22:43 -07:00
Anton Nikolaev
25ae4a0535 Include information about selected device, app and plugin into analytics events and error reports
Summary:
This diff generalises computation of the currently selected plugin, app, device etc. and adds this information to all the analytics events and error reports.

Slicing of events by os, device, app or selected plugin can be very useful. This is especially true for errors which often affects only certain types of devices, e.g. android only or physical devices only. Having such information can help to narrow down such issues.

Reviewed By: passy

Differential Revision: D28511441

fbshipit-source-id: ed9dc57927c70ed8cc6fe093e21604eae54c2f60
2021-05-19 05:17:41 -07:00
bizzguy
b378d8b946 fix problem with mock request data (#2340)
Summary:
Network Plugin - When creating a mock request from a selected request, the request data is not in the proper format.  It is decoded instead of just being copied from the call (which has already been decoded properly).  This PR fixes that problem.

Below is a screenshot showing the problem (which occurs for all text response data):

![image](https://user-images.githubusercontent.com/337874/118744068-423e3b80-b819-11eb-9076-216459517fdb.png)

## Changelog

Network Plugin - Fix problem with decoding request data for mocks copied from selection

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

Test Plan:
Using the sample Android app, issue a network request

In Flipper, create a mock for the network request by selecting it and using the "Copy Selected Calls" function in the mock

Verify that the request data is readable:

![image](https://user-images.githubusercontent.com/337874/118744220-8af5f480-b819-11eb-9206-0fa40e7d7e46.png)

Note:

Testing was done using the sample app which uses responses with JSON data.  I was not able to provide testing for other types of calls, specifically calls that would return binary data.

Reviewed By: passy

Differential Revision: D28533224

Pulled By: mweststrate

fbshipit-source-id: ce11d23ade60843c110286f7a5bbeba91febbcf0
2021-05-19 03:15:30 -07:00
Denis Colliot
525e8b19fb Detect JSON API content type ('application/vnd.api+json') as textual content (#2337)
Summary:
Network requests and responses using JSON API content type of pattern `application/vnd.api+json` (see https://jsonapi.org/#mime-types) are currently treated as binary data. They should be treated as textual content.

## Changelog

Add regular expression to detect JSON content types.

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

Test Plan: Using an API that return `Content-Type` of pattern `application/vnd.api+json`, verify that the response data in sidebar appears as text rather than `(binary data)`.

Reviewed By: passy

Differential Revision: D28513547

Pulled By: mweststrate

fbshipit-source-id: 3335b7eeb63c2429c2245113c8c83bd7e08a9420
2021-05-18 13:48:17 -07:00
bizzguy
b0313316cc Network Plugin: Add xhtml and xml to 'Textual' check (#2336)
Summary:
Network requests that return a "Content-Type" of 'application/xhtml+xml' are currently being treated as binary data when they should be treated as text.

## Changelog

Network Plugin - treat "Content-Type" of 'application/xhtml+xml' as text

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

Test Plan: Using an API that return "Content-Type" of 'application/xhtml+xml' , verified that the response data in sidebar appears as text rather than '(binary data)'

Reviewed By: nikoant

Differential Revision: D28478695

Pulled By: mweststrate

fbshipit-source-id: ed60c8301dbd0cf65924a80d9e6a5800a59c6bb8
2021-05-18 10:23:38 -07:00
Michel Weststrate
f0f54b19b9 Added basic chart to demo
Summary:
Added demo to show how DataSource can power charts using event sampling and smart windowing.

A more experimental application: use dataSource to power some charts, that leverages the events emitted from an datasource that is continuously being appended:

- incoming events are downsampled 1 in 100 to build up the bottom window
- incoming events are not downsampled to render the topwindow, but since datasource views will ignore events outside the window, things will stay pretty responsive when a window is selected (without a window, the downsampled dataset is used as source for top chart as well).

Compared to a naive (well still slightly optimised with useFastArray) implementation that throws all incoming event in a big array, it performs > 20 times faster (see difference in amount of events processed)

Reviewed By: passy

Differential Revision: D28474409

fbshipit-source-id: 6a7973d1ade3053b1d6c8f72069697d96b1ef4fd
2021-05-18 08:46:18 -07:00
Pascal Hartig
3b6b684f10 Demote user errors
Summary:
One is keytar, which just needed a context.

The second one is happening every time someone uses Flipper
and not being on Lighthouse, spamming our log category besides
actually being properly handled.

Reviewed By: nikoant

Differential Revision: D28479791

fbshipit-source-id: 029721df46d12b2942b590a232618ef039a2323d
2021-05-18 08:34:19 -07:00
Anton Nikolaev
cfedabcdef Attribute error reports with plugin id and version
Summary: This diff adds attributing of all error reports with the information about the plugins caused them. To do that we try to map error stack trace to plugins by searching for plugin directories in it. We can do this only for plugins loaded from disk as we are looking for their physical locations in stack. To make it possible to search for multiple plugins in one go we build and maintain a trie containing all the loaded plugins locations.

Reviewed By: passy

Differential Revision: D28475938

fbshipit-source-id: 59c8ac39ffe54262b1d57f21fad44eb89748dff2
2021-05-18 08:08:30 -07:00
Anton Nikolaev
853ee24c9b Add info about interactions to error reports
Summary: When reporting errors we could add info about interactions which caused errors. Ability to connect errors and interactions could be quite helpful for analysing and debugging errors and where they are coming from.

Reviewed By: passy, mweststrate

Differential Revision: D28467575

fbshipit-source-id: bef69917a4d6c786d762a2f6eb75a47fd4e46b0f
2021-05-18 08:08:30 -07:00
Anton Nikolaev
03a1add092 Fix extracting errors from console.error data
Summary: Flipper logs all errors reported by "console.error", but I found that stack traces are broken for them. It is because a bug in `extractError` function which extracts errors from the data logged to console. It fails to extract original error stack trace and instead always logs stack trace where "console.error" was called.  This diff fixes the issue, so errors are properly reported with their original stack traces. However, sometimes stack trace of console.error call can also be useful to find where the error was actually catched and logged, so we're now writing this stack trace into addition field "log_stack_trace".

Reviewed By: passy

Differential Revision: D28466569

fbshipit-source-id: 55fb8ab52c05e8196efc1e47aec95cc1fbc0e594
2021-05-18 08:08:30 -07:00
Anton Nikolaev
8bbf9c46a3 Keep promise rejections unhandled after catching them for logging
Summary: Tracked component catches rejected promises under it to log them. After catching promises become "handled". This might hide potential promise error handling mistakes, so it's better to ensure we keep promises unhandled after catching them for tracking, so they are properly catched by the unhandled promise handler after that. The easiest solution seems to just make new rejected promise and return it instead of the catched one.

Reviewed By: passy

Differential Revision: D28466570

fbshipit-source-id: 26c1e7af3d6e4f7067b95f20e646462d808bb497
2021-05-18 08:08:30 -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