Commit Graph

5504 Commits

Author SHA1 Message Date
Anton Nikolaev
9b11cf0e1c Fix bump script
Summary: This diff fixes the bump script issue because of which today release failed: https://www.internalfb.com/intern/sandcastle/job/18014398957261529/.

Reviewed By: passy

Differential Revision: D29483622

fbshipit-source-id: ce9f28888e528c8f27b866535fc9056b3df5b6da
2021-06-30 04:48:38 -07:00
Anton Nikolaev
7a1b2ecc73 Basic plugin info view for open-source builds
Summary: Show a new view when a disabled/uninstalled plugin is selected in open-source Flipper build. I'm going to improve it later with additional info from npm packages metadata. For now it just shows status of the plugin and button to install/enable it.

Reviewed By: mweststrate

Differential Revision: D29482937

fbshipit-source-id: 45d207d3f6e846c354184f2b5fd911751d3164b0
2021-06-30 04:16:30 -07:00
Anton Nikolaev
039d3a4a08 Move plugin docs to plugin folders
Summary: Moved plugin documentation and related assets to plugin folders, fixed links and configured redirects where required. Now these docs are used for both showing docs in Flipper and generating Flipper docs website.

Reviewed By: passy

Differential Revision: D29465567

fbshipit-source-id: 3ec4240b215b0d5baea5154f64266a9ba7ead3a5
2021-06-29 17:40:38 -07:00
Anton Nikolaev
4ad7a70ee3 Differentiate enabled and disabled selected plugins in analytics
Summary: As we now allow selection of disabled plugins we need to track plugin usage a bit smarter. We'll add a new field "pluginEnabled" to the logged messages to indicate whether selected plugin is enabled or not.

Reviewed By: cekkaewnumchai

Differential Revision: D29455248

fbshipit-source-id: 32c79e0961653edc8f4cc89adecc2662b37cbd7b
2021-06-29 13:02:05 -07:00
Anton Nikolaev
142859f0ed Intercept click to links in the embedded documentation and redirect them to the default browser
Summary: Intercept click to links in the embedded documentation and redirect them to the default browser.

Reviewed By: passy

Differential Revision: D29426270

fbshipit-source-id: 1d3d9613ff827f80287883768452b93701e95d96
2021-06-29 13:02:05 -07:00
Anton Nikolaev
9fc85730ba Show plugin documentation in Flipper
Reviewed By: passy

Differential Revision: D29392524

fbshipit-source-id: 675de1fc070b1b8b22d0b27721c16dbd6f7076ef
2021-06-29 13:02:05 -07:00
Anton Nikolaev
e4fb2907fd Auto-generate plugin docs
Summary:
This diff changes the way on how plugin documentation is produced. Instead of keeping plugin documentation together with other docs, we will now keep it together with plugin code. There are multiple advantages of such solution:
1. We are generating docs for every plugin in a standartised way so all of them looks similar. We can also use plugin metadata for generation as well (e.g. take title, icon, oncall name etc from package.json).
2. Standartised plugin docs make it possible to build docs both for websites (public and internal) and for embedding into Flipper.
3. It will hopefully incentivise authors to write docs as they will be a part of plugin "package".
4. We can scaffold documentation template using scarf to further incentivise filling it.

Reviewed By: jknoxville

Differential Revision: D29378053

fbshipit-source-id: 66ea48dc9ba225fabfb256ae6a10f8c81eef6f5f
2021-06-29 13:02:05 -07:00
Anton Nikolaev
116f6eb5ba Show PluginInfo for unavailable and not installed plugins
Summary: Updated PluginInfo component to show info about uninstalled and unavailable plugins in addition to enabled/disabled. Now any selected plugin will be shown there. For uninstalled plugins we will show "Install" action button. For unavailable plugins we wiil show an alert describing why plugin is unavailable.

Reviewed By: mweststrate

Differential Revision: D29254970

fbshipit-source-id: 0de32da5b5550ff6b7d452abf6ff7259677aebc5
2021-06-29 13:02:05 -07:00
Anton Nikolaev
e36eec82b2 Change PluginContainer to allow selecting unavailable plugins
Summary: Changed PluginContainer implementation to allow selecting unavailable/uninstalled plugins which was impossible before that. Please note that for now something is shown only for enabled and disabled plugins. In next diff I'm also adding content for unavailable and uninstalled plugins.

Reviewed By: mweststrate

Differential Revision: D29254788

fbshipit-source-id: da639e5efddc821061abb69df534ffdce8ccd4e0
2021-06-29 13:02:05 -07:00
Anton Nikolaev
ff5d8ba29f Use selectors to compute plugin lists according to the selected device and app
Summary: Use selectors to re-compute and cache plugin lists according to the selected device and app.

Reviewed By: mweststrate

Differential Revision: D29247845

fbshipit-source-id: 4bc669d5d441d605c4090086c4ce59b6d9684a4c
2021-06-29 13:02:05 -07:00
Anton Nikolaev
1d26faeacb Plugin Info UI layout
Summary: Initial layout for Plugin Info view built based on Plugin Manager Flow mockups.

Reviewed By: mweststrate

Differential Revision: D29186006

fbshipit-source-id: 01fafbdba049baf2e573228ff5b939ebc4871db2
2021-06-29 13:02:05 -07:00
Anton Nikolaev
fd9b5cc94d Use set instead of array to keep list of supported plugins per client
Summary: Use set instead of array to keep list of supported plugins per client. It is not used as array anyway, in most places it is used to determine whether a plugin is supported or not and it's much faster to use set for that.

Reviewed By: priteshrnandgaonkar

Differential Revision: D29200673

fbshipit-source-id: 5f3c404a1a668c153867d7c1b6c223941f0b3b36
2021-06-29 13:02:05 -07:00
Anton Nikolaev
280c612157 PluginInfo component
Summary: Moved PluginEnabler component from PluginContainer into a separate file PluginInfo and also refactored it to not use deprecated components. In following diffs I will be extending PluginInfo to show not only enabler, but also additional information about the currently selected plugin.

Reviewed By: priteshrnandgaonkar

Differential Revision: D29186007

fbshipit-source-id: 4c8af9dcc4dc53476b9c50305f2221aeb009553e
2021-06-29 13:02:05 -07:00
Anton Nikolaev
7bc38c1735 Allow selecting disabled, unsupported and not installed plugins
Summary:
This diffs removes restrictions on selecting disabled, uninstalled and unsupported plugins. Now it will be possible to select them, however for now empty view will be shown in such case.

In next diffs I'll add Plugin Info view which will be shown in case disabled plugin is selected. It will show static info about plugin - readme, version, oncall, user feedback group etc. This will make it possible for users to browse info about all plugins, even unsupported by selected device/app.

There is one problem that our analytics will be screwed by this change as even disabled plugins will be counted as used. I'll address this later in this stack.

If you see other potential problems with removing restrictions on selecting disabled plugins - please let me know.

Reviewed By: passy

Differential Revision: D29186005

fbshipit-source-id: 2e55c5fd3bb402594f4dbace6e287725de65bc6f
2021-06-29 13:02:05 -07:00
Pascal Hartig
bf1b10c130 Tuesday dep bump
Summary:
allow-large-files

More easy patch version updates.

Reviewed By: jknoxville

Differential Revision: D29453190

fbshipit-source-id: ef9bd37317f9e8e1809d624db5ed62ce34b56931
2021-06-29 09:33:22 -07:00
Michel Weststrate
8cbdd3d148 Dark mode tweaks
Summary: Went over all plugins and did superficial fixes to make most plugins look decent or at least usable in dark mode, which before they weren't :)

Reviewed By: priteshrnandgaonkar

Differential Revision: D29456680

fbshipit-source-id: 3952e5da512c68b89434eea081faf121d1049908
2021-06-29 08:39:34 -07:00
Michel Weststrate
014e571f74 Start application in the right theme
Summary:
Changelog: Improved dark mode support!

This diff makes sure that the dark mode preference is written to the Flipper config, and applied during startup, so that the ugly light/dark flash when starting Flipper in dark mode disappears

Reviewed By: passy

Differential Revision: D29436059

fbshipit-source-id: 0f762149848298512026fbd216d9a9e0bf4276db
2021-06-29 08:39:34 -07:00
Michel Weststrate
617f8a928c Use dark scrollbar and system elements
Summary:
This diff adds OS support for dark mode (at least on Mac), by making sure system elements are styled according to system dark theme.

For some unknown reason, this does apply to all system dialogs, titlebars etc, but not for scrollbars, so they got custom themed.

Differential Revision: D29436058

fbshipit-source-id: bac649b6cd81f0142c607ed567eeb00f41625041
2021-06-29 08:39:34 -07:00
Michel Weststrate
5c8dde0925 Theming colors
Summary:
This diff adds Sandy colors and dark mode support to the `DataInspector` and `LayoutInspector` components, and coverts hardcoded colors to semantic colors. Currently only one set of colors is used since they contrast fine with both dark and light mode, but this could be deviated from now onwards.

Also styled the legacy ManagedTable and Panel, since they are so commonly used (will convert more legacy components in next diffs).

Reviewed By: passy

Differential Revision: D28056698

fbshipit-source-id: 5a85103983f89e82b7f000d309bb9e1e1f07491d
2021-06-29 08:39:34 -07:00
Michel Weststrate
279f3c41b7 Introduce shallow serialization
Summary:
Changelog: [Flipper] Improve serialisation mechanism format & speed

The default serialisation mechanism used by Flipper to serialise plugin states is very flexible, taking care of maps, sets, dates etc. However, it is also really slow, leading to issues like in the related tasks, and work arounds like D17402443 (98bc01618f) to skip the whole process for plugins.

This diff changes the serialisation mechanism to have a better trade off between speed and convenience: For now we will only apply the smart serialisation for objects living at the _root_ of the serialised object, but it won't be applied recursively.

This sounds like a dangerous change, but works well in practice:
* I went through all `persistedState` and `createState` definition (the types), and the idea that complex types like Map and Set only live at the root of the persisted state holds up nicely. That makes sense as well since plugins typically store literally the same data as that they have received over the wire, except that they put it in some maps, sets etc.
* I introduced `assertSerializable` that only runs in dev/test, which will check (recursively, but without all the cloning) to see if a tree is indeed serialisable.
* The fact that by swapping this mechanism rarely existing unit test for exportData needed changes proves that the assumption that only roots are relevant generally upholds (or that plugin authors don't write enough tests ;-)).
* I verified that popular plugins still import / export correctly (actually *more* plugins are exportable now than before, thanks to sandy wrapper introduced earlier)

Reviewed By: jknoxville

Differential Revision: D29327499

fbshipit-source-id: 0ff17d9c5eb68fccfc2937b634cfa8f4f924247d
2021-06-29 08:04:22 -07:00
Michel Weststrate
aff02b2ca1 Change internal storage to number instead of Date
Summary: per title, for reasons see next diff :)

Reviewed By: passy

Differential Revision: D29327501

fbshipit-source-id: 548d943e90769af478232d3031d916fb399a067a
2021-06-29 08:04:22 -07:00
Michel Weststrate
d02c560150 Exporting a Flipper trace should not swallow errors
Summary: Noticed that when creating a flipper trace file, the errors were only shown in the console, but the dialog would hide.

Reviewed By: jknoxville, passy

Differential Revision: D29327500

fbshipit-source-id: 0ec60be28b5e3041f7cacd48ac4bcf13753f7219
2021-06-29 08:04:22 -07:00
Michel Weststrate
8359f74a21 Get rid of immutablejs
Summary:
Changelog: 'flipper' package no longer uses or exposes immutablejs, or ManagedTable_Immutable

ImmutableJS was used in a few places, requires some specific knowledge to use optimally (e.g. batching was used nowhere), but most importantly resulted in a lot of unmaintained code duplication in terms of ManagedTable_immutable and the searchable variant.

For the planned trace export speedups this means that there is also serialization case less to worry about.

Reviewed By: jknoxville

Differential Revision: D29265677

fbshipit-source-id: 92e86081c03fb8da59d2c9f975f04a05e275c317
2021-06-29 08:04:22 -07:00
Pascal Hartig
77612a3f7b Strip source map URL from bundled plugins
Summary: Sandcastle embedded the box ID in the source map URL which caused it to invalidate the caches. It shouldn't be there to begin with but the Metro option doesn't work as it's documented.

Reviewed By: nikoant

Differential Revision: D29456824

fbshipit-source-id: 5d8c5f29e2b344d046c802693e4da68fda92b8db
2021-06-29 07:48:05 -07:00
priteshrnandgaonkar
2f47928524 Automated: Update Podfile.lock (#2535)
Summary:
This is an automated PR to update the Podfile.lock.
- Make sure that the Podfile.lock contains latest FlipperKit and Flipper pod versions.
- Also make sure that all the dependencies are updated to the latest one.
- This is auto-generated by [create-pull-request](https://github.com/peter-evans/create-pull-request)

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

Test Plan:
Imported from GitHub, without a `Test Plan:` line.

|[Site Preview: flipper](https://our.intern.facebook.com/intern/staticdocs/eph/D29455139/V2/flipper/)

Reviewed By: jknoxville

Differential Revision: D29455139

Pulled By: priteshrnandgaonkar

fbshipit-source-id: 10eb515430f4ce16e7ab600e12ef68bdbb7614fb
2021-06-29 07:11:40 -07:00
dependabot[bot]
ecab50247f Bump @testing-library/dom from 7.31.2 to 8.0.0 in /desktop (#2529)
Summary:
Bumps [testing-library/dom](https://github.com/testing-library/dom-testing-library) from 7.31.2 to 8.0.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/testing-library/dom-testing-library/releases"><code>@​testing-library/dom</code>'s releases</a>.</em></p>
<blockquote>
<h2>v8.0.0</h2>
<h1><a href="https://github.com/testing-library/dom-testing-library/compare/v7.31.2...v8.0.0">8.0.0</a> (2021-06-23)</h1>
<h3>Recommendations</h3>
<ol>
<li>If you're using <code>jest</code> fake timers make sure you use modern timers
jest 27:
<pre lang="diff"><code>-jest.useFakeTimers('legacy')
+jest.useFakeTimers('modern')
 // jest.config.js
-&quot;timers&quot;: &quot;legacy&quot;,
+&quot;timers&quot;: &quot;modern&quot;,
</code></pre>
jest 26:
<pre lang="diff"><code>-jest.useFakeTimers()
+jest.useFakeTimers('modern')
 // jest.config.js
-&quot;timers&quot;: &quot;legacy&quot;,
+&quot;timers&quot;: &quot;modern&quot;,
</code></pre>
</li>
</ol>
<h3>chore</h3>
<ul>
<li>Release v8 as stable (<a href="https://github-redirect.dependabot.com/testing-library/dom-testing-library/issues/979">https://github.com/facebook/flipper/issues/979</a>) (<a href="d347302d6b">d347302</a>)</li>
</ul>
<h3>BREAKING CHANGES</h3>
<ul>
<li>Remove deprecated <code>waitFormDOMChange</code></li>
<li>Remove deprecated <code>waitForElement</code></li>
<li>The <code>timeout</code> in <code>waitFor(callback, { interval, timeout } )</code> now uses the same clock as <code>interval</code>. Previously <code>timeout</code> was always using the real clock while <code>interval</code> was using the global clock which could've been mocked out. For the old behavior I'd recommend <code>waitFor(callback, { interval, timeout: Number.POSITIVE_INFINITY })</code> and rely on your test runner to timeout considering real timers.</li>
<li><code>&lt;script /&gt;</code>, <code>&lt;style /&gt;</code> and comment nodes are now ignored by default in <code>prettyDOM</code> .If you whish to return to the old behavior, use a custom <code>filterNode</code> function. In this case <code>prettyDOM(element, { filterNode: () =&gt; true })</code>.</li>
<li>node 10 is no longer supported. It reached its end-of-life on 30.04.2021.</li>
</ul>
<h2>v8.0.0-alpha.7</h2>
<h1><a href="https://github.com/testing-library/dom-testing-library/compare/v8.0.0-alpha.6...v8.0.0-alpha.7">8.0.0-alpha.7</a> (2021-06-20)</h1>
<h3>Bug Fixes</h3>
<ul>
<li>Consider <code>&lt;output /&gt;</code> labelable (<a href="https://github-redirect.dependabot.com/testing-library/dom-testing-library/issues/968">https://github.com/facebook/flipper/issues/968</a>) (<a href="56a4c759a0">56a4c75</a>)</li>
</ul>
<h2>v8.0.0-alpha.6</h2>
<h1><a href="https://github.com/testing-library/dom-testing-library/compare/v8.0.0-alpha.5...v8.0.0-alpha.6">8.0.0-alpha.6</a> (2021-06-12)</h1>

</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="84ebc5124f"><code>84ebc51</code></a> test(fake-timers): raf is now mocked in legacy fake timers (<a href="https://github-redirect.dependabot.com/testing-library/dom-testing-library/issues/986">https://github.com/facebook/flipper/issues/986</a>)</li>
<li><a href="d347302d6b"><code>d347302</code></a> chore: Release v8 as stable (<a href="https://github-redirect.dependabot.com/testing-library/dom-testing-library/issues/979">https://github.com/facebook/flipper/issues/979</a>)</li>
<li>See full diff in <a href="https://github.com/testing-library/dom-testing-library/compare/v7.31.2...v8.0.0">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@testing-library/dom&package-manager=npm_and_yarn&previous-version=7.31.2&new-version=8.0.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/2529

Reviewed By: mweststrate

Differential Revision: D29429955

Pulled By: cekkaewnumchai

fbshipit-source-id: 7a25bed5e6d85534a48815ddc5a5a5a701df5e7b
2021-06-28 17:03:28 -07:00
dependabot[bot]
5a974b594b Bump typescript from 4.3.2 to 4.3.4 in /desktop (#2528)
Summary:
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.3.2 to 4.3.4.
<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.4</h2>
<p>This release</p>
<ul>
<li>adds an optional <code>getCustomTransformers</code> method to the <code>SolutionBuilderHost*</code> APIs</li>
<li>uses the transforms given by <code>getCustomTransformers</code> in Builder Program instances when running <code>emit()</code> methods in cases where <code>customTransforms</code> are not given.</li>
</ul>
<p><a href="https://github-redirect.dependabot.com/microsoft/TypeScript/pull/44489">See the change for more details</a></p>
<h2>TypeScript 4.3.3</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>
<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.3</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>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="32210356e7"><code>3221035</code></a> Bump version to 4.3.4 and LKG</li>
<li><a href="6d8fd79c62"><code>6d8fd79</code></a> Add SolutionBuilderHostBase.getCustomTransformers to be used when emitting. (...</li>
<li><a href="14231aff09"><code>14231af</code></a> Bump version to 4.3.3 and LKG</li>
<li><a href="89a171e308"><code>89a171e</code></a> Cherry-pick PR <a href="https://github-redirect.dependabot.com/Microsoft/TypeScript/issues/44126">#44126</a> into release-4.3 (<a href="https://github-redirect.dependabot.com/Microsoft/TypeScript/issues/44189">#44189</a>)</li>
<li><a href="419f1e7fe8"><code>419f1e7</code></a> Cherry-pick PR <a href="https://github-redirect.dependabot.com/Microsoft/TypeScript/issues/44070">#44070</a> into release-4.3 (<a href="https://github-redirect.dependabot.com/Microsoft/TypeScript/issues/44187">#44187</a>)</li>
<li><a href="60f6d7bb34"><code>60f6d7b</code></a> Cherry-pick PR <a href="https://github-redirect.dependabot.com/Microsoft/TypeScript/issues/44394">#44394</a> into release-4.3 (<a href="https://github-redirect.dependabot.com/Microsoft/TypeScript/issues/44431">#44431</a>)</li>
<li><a href="b60901da4f"><code>b60901d</code></a> Fix duplicate visit of param tag comments (<a href="https://github-redirect.dependabot.com/Microsoft/TypeScript/issues/44443">#44443</a>) (<a href="https://github-redirect.dependabot.com/Microsoft/TypeScript/issues/44444">#44444</a>)</li>
<li><a href="4f7fe4a1de"><code>4f7fe4a</code></a> Cherry-pick PR <a href="https://github-redirect.dependabot.com/Microsoft/TypeScript/issues/44290">#44290</a> into release-4.3 (<a href="https://github-redirect.dependabot.com/Microsoft/TypeScript/issues/44425">#44425</a>)</li>
<li><a href="e425f573aa"><code>e425f57</code></a> Fix unintended 'as const' name lookup error (<a href="https://github-redirect.dependabot.com/Microsoft/TypeScript/issues/44311">#44311</a>) (<a href="https://github-redirect.dependabot.com/Microsoft/TypeScript/issues/44370">#44370</a>)</li>
<li>See full diff in <a href="https://github.com/Microsoft/TypeScript/compare/v4.3.2...v4.3.4">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.3.2&new-version=4.3.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/2528

Reviewed By: mweststrate

Differential Revision: D29429965

Pulled By: cekkaewnumchai

fbshipit-source-id: c7f4e7efddb6cda712e0f00e83439e235ca98655
2021-06-28 17:03:28 -07:00
dependabot[bot]
88af2bc285 Bump mock-fs from 4.14.0 to 5.0.0 in /desktop (#2523)
Summary:
Bumps [mock-fs](https://github.com/tschaub/mock-fs) from 4.14.0 to 5.0.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/tschaub/mock-fs/releases">mock-fs's releases</a>.</em></p>
<blockquote>
<h2>5.0.0</h2>
<p>Breaking change</p>
<ul>
<li>Remove support for Node &lt; 12. If you want to use mock-fs to test on Node 10 or lower, stick with mock-fs@4.</li>
</ul>
<p>New features</p>
<ul>
<li>Support for BigInt file stats - required for Node 15+ (thanks <a href="https://github.com/3cp"><code>@​3cp</code></a>, see <a href="https://github-redirect.dependabot.com/tschaub/mock-fs/issues/325">https://github.com/facebook/flipper/issues/325</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/tschaub/mock-fs/blob/main/changelog.md">mock-fs's changelog</a>.</em></p>
<blockquote>
<h2>5.0.0</h2>
<p>Breaking change:</p>
<ul>
<li>Remove support for Node &lt; 12.  If you want to use mock-fs to test on Node 10 or lower, stick with mock-fs@4.</li>
</ul>
<p>New features:</p>
<ul>
<li>Support for BigInt file stats - required for Node 15+ (thanks <a href="https://github.com/3cp"><code>@​3cp</code></a>, see <a href="https://github-redirect.dependabot.com/tschaub/mock-fs/issues/325">https://github.com/facebook/flipper/issues/325</a><a href="https://github-redirect.dependabot.com/tschaub/mock-fs/issues/325">https://github.com/facebook/flipper/issues/325</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="535a9481e1"><code>535a948</code></a> 5.0.0</li>
<li><a href="735d81a9fd"><code>735d81a</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/tschaub/mock-fs/issues/330">https://github.com/facebook/flipper/issues/330</a> from tschaub/publish-dev</li>
<li><a href="9eec537867"><code>9eec537</code></a> New workflow to publish dev tagged releases</li>
<li><a href="e1ff57f64a"><code>e1ff57f</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/tschaub/mock-fs/issues/329">https://github.com/facebook/flipper/issues/329</a> from tschaub/errmap</li>
<li><a href="dce115ea0b"><code>dce115e</code></a> fix: uvBinding.errmap is undefined in Nodejs v12+</li>
<li><a href="c97e06fce9"><code>c97e06f</code></a> 5.0.0-beta.1</li>
<li><a href="c2033b8399"><code>c2033b8</code></a> Log changes</li>
<li><a href="24e674daac"><code>24e674d</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/tschaub/mock-fs/issues/326">https://github.com/facebook/flipper/issues/326</a> from tschaub/uid-cleanup</li>
<li><a href="ec41697d3c"><code>ec41697</code></a> fix: uid 0 means root on POSIX, but not on Windows</li>
<li><a href="ae38cfef99"><code>ae38cfe</code></a> chore: use 0 internally for uid/gid on Windows</li>
<li>Additional commits viewable in <a href="https://github.com/tschaub/mock-fs/compare/v4.14.0...v5.0.0">compare view</a></li>
</ul>
</details>
<br />

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

Reviewed By: mweststrate

Differential Revision: D29430004

Pulled By: cekkaewnumchai

fbshipit-source-id: 67ef277b33f069257f4c79ac4ee4dce72164d461
2021-06-28 17:03:28 -07:00
dependabot[bot]
19778bf7f8 Bump metro-runtime from 0.65.2 to 0.66.0 in /desktop (#2531)
Summary:
Bumps [metro-runtime](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-runtime'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-runtime&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/2531

Reviewed By: mweststrate

Differential Revision: D29429944

Pulled By: cekkaewnumchai

fbshipit-source-id: 17134158706e3e56c784b68d738e10906bdd9efa
2021-06-28 17:03:28 -07:00
Pascal Hartig
d865831568 Async testing
Summary: Another thing I spent way too long searching for. Let's just write it down in our docs.

Reviewed By: fabiomassimo

Differential Revision: D29430439

fbshipit-source-id: 0fede7f34308f47376631a58054c144d59596419
2021-06-28 09:02:19 -07:00
dependabot[bot]
e5b202d623 Bump @typescript-eslint/eslint-plugin from 4.27.0 to 4.28.0 in /flipper-js-client-sdk (#2517)
Summary:
Bumps [typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 4.27.0 to 4.28.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.28.0</h2>
<h1><a href="https://github.com/typescript-eslint/typescript-eslint/compare/v4.27.0...v4.28.0">4.28.0</a> (2021-06-21)</h1>
<h3>Bug Fixes</h3>
<ul>
<li><strong>eslint-plugin:</strong> [prefer-regexp-exec] factor in union types (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3434">#3434</a>) (<a href="ac86a79bd4">ac86a79</a>)</li>
<li><strong>experimental-utils:</strong> expand <code>RuleTester</code> config properties (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3557">#3557</a>) (<a href="ffbb3cff18">ffbb3cf</a>)</li>
<li><strong>experimental-utils:</strong> fix <code>eslint-utils</code>' negative predicates' return types (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3462">#3462</a>) (<a href="1e6016b356">1e6016b</a>)</li>
<li><strong>experimental-utils:</strong> fix <code>eslint-utils</code>' negative predicates' return types in <code>ast-utils</code> (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3461">#3461</a>) (<a href="614b0a38b4">614b0a3</a>)</li>
<li><strong>experimental-utils:</strong> make keys for <code>ReferenceTracker</code> options optional (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3531">#3531</a>) (<a href="a7fd7bb255">a7fd7bb</a>)</li>
</ul>
<h3>Features</h3>
<ul>
<li><strong>experimental-utils:</strong> add <code>only</code> property to <code>RuleTester</code> types (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3555">#3555</a>) (<a href="2a36e3e737">2a36e3e</a>)</li>
<li><strong>experimental-utils:</strong> expose ReferenceTracker.ESM (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3532">#3532</a>) (<a href="4ac67c4c94">4ac67c4</a>)</li>
<li><strong>experimental-utils:</strong> use mergable interface for <code>settings</code> property (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3556">#3556</a>) (<a href="abfc19bf93">abfc19b</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.27.0...v4.28.0">4.28.0</a> (2021-06-21)</h1>
<h3>Bug Fixes</h3>
<ul>
<li><strong>eslint-plugin:</strong> [prefer-regexp-exec] factor in union types (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3434">#3434</a>) (<a href="ac86a79bd4">ac86a79</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="8cfe93372e"><code>8cfe933</code></a> chore: publish v4.28.0</li>
<li><a href="ac86a79bd4"><code>ac86a79</code></a> fix(eslint-plugin): [prefer-regexp-exec] factor in union types (<a href="https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin/issues/3434">#3434</a>)</li>
<li><a href="c50f70b73e"><code>c50f70b</code></a> chore(eslint-plugin): remove lodash from dependencies (<a href="https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin/issues/3478">#3478</a>)</li>
<li>See full diff in <a href="https://github.com/typescript-eslint/typescript-eslint/commits/v4.28.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.27.0&new-version=4.28.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/2517

Reviewed By: mweststrate

Differential Revision: D29429425

Pulled By: cekkaewnumchai

fbshipit-source-id: 69e072955d3136dcd9039109b5882fb199c54d9e
2021-06-28 08:40:49 -07:00
dependabot[bot]
8067a94092 Bump prettier from 2.3.1 to 2.3.2 in /flipper-js-client-sdk (#2516)
Summary:
Bumps [prettier](https://github.com/prettier/prettier) from 2.3.1 to 2.3.2.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/prettier/prettier/releases">prettier's releases</a>.</em></p>
<blockquote>
<h2>2.3.2</h2>
<p><a href="https://github.com/prettier/prettier/blob/main/CHANGELOG.md#232">changelog</a></p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/prettier/prettier/blob/main/CHANGELOG.md">prettier's changelog</a>.</em></p>
<blockquote>
<h1>2.3.2</h1>
<p><a href="https://github.com/prettier/prettier/compare/2.3.1...2.3.2">diff</a></p>
<h4>Fix failure on dir with trailing slash (<a href="https://github-redirect.dependabot.com/prettier/prettier/pull/11000">#11000</a> by <a href="https://github.com/fisker"><code>@​fisker</code></a>)</h4>

<pre lang="console"><code>$ ls
1.js  1.unknown
</code></pre>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="9a8b579d36"><code>9a8b579</code></a> Release 2.3.2</li>
<li><a href="2faf01b8b4"><code>2faf01b</code></a> Add changelog-for-patch script (<a href="https://github-redirect.dependabot.com/prettier/prettier/issues/11052">#11052</a>)</li>
<li><a href="9a61bf3a4a"><code>9a61bf3</code></a> Build(deps): Bump <code>@​angular/compiler</code> from 12.0.4 to 12.0.5 (<a href="https://github-redirect.dependabot.com/prettier/prettier/issues/11092">#11092</a>)</li>
<li><a href="0b5a795b85"><code>0b5a795</code></a> Build(deps): Bump flow-parser from 0.152.0 to 0.153.0 (<a href="https://github-redirect.dependabot.com/prettier/prettier/issues/11095">#11095</a>)</li>
<li><a href="40329ce346"><code>40329ce</code></a> Build(deps): Bump typescript from 4.3.2 to 4.3.4 (<a href="https://github-redirect.dependabot.com/prettier/prettier/issues/11093">#11093</a>)</li>
<li><a href="31d9c50793"><code>31d9c50</code></a> Build(deps-dev): Bump snapshot-diff from 0.8.1 to 0.9.0 (<a href="https://github-redirect.dependabot.com/prettier/prettier/issues/11091">#11091</a>)</li>
<li><a href="ca6f2d4cc9"><code>ca6f2d4</code></a> Build(deps-dev): Bump <code>@​babel/core</code> from 7.14.5 to 7.14.6 (<a href="https://github-redirect.dependabot.com/prettier/prettier/issues/11097">#11097</a>)</li>
<li><a href="fc46f1b9f3"><code>fc46f1b</code></a> Build(deps-dev): Bump eslint from 7.28.0 to 7.29.0 (<a href="https://github-redirect.dependabot.com/prettier/prettier/issues/11096">#11096</a>)</li>
<li><a href="bb57a27069"><code>bb57a27</code></a> Build(deps-dev): Bump webpack from 5.38.1 to 5.39.1 (<a href="https://github-redirect.dependabot.com/prettier/prettier/issues/11087">#11087</a>)</li>
<li><a href="0c79b9978e"><code>0c79b99</code></a> Build(deps): Bump globby from 11.0.3 to 11.0.4 (<a href="https://github-redirect.dependabot.com/prettier/prettier/issues/11094">#11094</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/prettier/prettier/compare/2.3.1...2.3.2">compare view</a></li>
</ul>
</details>
<br />

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

Reviewed By: mweststrate

Differential Revision: D29429432

Pulled By: cekkaewnumchai

fbshipit-source-id: 70b8e6e645495b329628c8f9146be6967a52839d
2021-06-28 08:40:49 -07:00
Pascal Hartig
f451515611 Scribe docs
Summary: Had to look this up too many times so decided to write it all down.

Reviewed By: mweststrate

Differential Revision: D29427599

fbshipit-source-id: b269768722b36959cfae75ecbdd6c9a7519fe73e
2021-06-28 06:31:54 -07:00
Pascal Hartig
adf183f65d Dep bump
Summary:
allow-large-files

The semi-regular bumps are back!

Reviewed By: mweststrate

Differential Revision: D29427165

fbshipit-source-id: 0d23487f807e67cccb62cfb3717245a122db8f6e
2021-06-28 06:31:54 -07:00
priteshrnandgaonkar
00e33ac1d8 Automated: Update Podfile.lock (#2512)
Summary:
This is an automated PR to update the Podfile.lock.
- Make sure that the Podfile.lock contains latest FlipperKit and Flipper pod versions.
- Also make sure that all the dependencies are updated to the latest one.
- This is auto-generated by [create-pull-request](https://github.com/peter-evans/create-pull-request)

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

Reviewed By: mweststrate

Differential Revision: D29427146

Pulled By: cekkaewnumchai

fbshipit-source-id: e64e59fd9b62f96446e3950dc871011c4d55b804
2021-06-28 04:06:18 -07:00
Anton Nikolaev
bbf1aeaa55 Delay app loading until persisted state loaded
Summary: This diff fixes the issue when some Flipper persisted state is required just after startup, but is loaded too late. This is easy to notice with a flag indicating whether Welcome window should be shown. Even if the flag is disabled, Flipper will still show the window on the next launch because it loads the state later than needed.

Differential Revision: D29426004

fbshipit-source-id: 011b5890034a6e254ce9ab834f098f1a2ab62a70
2021-06-28 04:02:29 -07:00
Pritesh Nandgaonkar
4464fe6bd3 Bump flipper pod versions
Summary: Bump flipper version and podfile locks

Reviewed By: passy

Differential Revision: D29393051

fbshipit-source-id: f40fd6e8d8bfe835479bb0e72c53ce82988bd26b
2021-06-26 06:39:36 -07:00
Michel Weststrate
9f27b374f4 Guess content type if no header present
Summary:
Changelog: [Network] The network plugin will now detect utf-8 strings if no content header is present

Fixes https://github.com/facebook/flipper/issues/2406

Reviewed By: nikoant

Differential Revision: D29388968

fbshipit-source-id: 7017828a5f3f28dcf220eeda1d30888f1fc5f07a
2021-06-25 07:23:07 -07:00
dwwr
2b0ce88c22 Fix Typo In Setup Doctor (#2506)
Summary:
Simple fix for a minor typo

## Changelog
SetupDoctorScreen.tsx:55: discoverd -> discovered

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

Test Plan:
### Visual diff:
|Before: |
|---|
| <img width="566" alt="Screen Shot 2021-06-24 at 10 59 14 AM" src="https://user-images.githubusercontent.com/68758506/123316824-24cc5380-d4e2-11eb-8337-1e7fa0dbf838.png"> |
|After:|
| <img width="562" alt="Screen Shot 2021-06-24 at 11 54 32 AM" src="https://user-images.githubusercontent.com/68758506/123317505-f3a05300-d4e2-11eb-89a5-e9903279836f.png"> |

Reviewed By: passy

Differential Revision: D29390183

Pulled By: cekkaewnumchai

fbshipit-source-id: 56869dc778bbce0ab98dda1645e2ac883a139184
2021-06-25 05:26:27 -07:00
Michel Weststrate
5b4179d482 Move plugin installer away from immutable
Summary: Trying to get rid of immutable_table, which is used in only 3 places. One of them being the plugin installer.

Reviewed By: jknoxville

Differential Revision: D29295534

fbshipit-source-id: dfae9476635c3a8ebba9f1439905bae693fdfd57
2021-06-25 04:35:13 -07:00
Michel Weststrate
729922e8ad clean up createTablePlugin abstraction
Summary:
createTablePlugin isn't used anymore, since all FB plugins now use flipper-plugin's, version.

Verified that no public OSS plugins use the abstraction either.

This is part of a bigger stack to clean up immutable js usage / managed table duplication and export performance speed

Reviewed By: jknoxville

Differential Revision: D29265565

fbshipit-source-id: dd6671f0b3af857db1a512c6658e1ff75c49358d
2021-06-25 04:35:13 -07:00
Michel Weststrate
2127dea447 Fix initialisation error
Summary: There was an initialisation error possible if the crash reporter tried to start with an initial selection (after coming from a deeplink or the notification pane), which would cause an unending update loop.

Reviewed By: passy

Differential Revision: D29331127

fbshipit-source-id: 14e75e483c232039e6a80aa131fa5ce7c105b670
2021-06-24 01:37:09 -07:00
Flipper Bot
db787d5d42 Flipper Snapshot Bump: v0.95.1-SNAPSHOT
Summary: Releasing snapshot version 0.95.1-SNAPSHOT

Reviewed By: cekkaewnumchai

Differential Revision: D29330363

fbshipit-source-id: a090a2f7f7de48f3a5bb7472a4261540d5b23f96
2021-06-23 08:19:22 -07:00
Flipper Bot
01db303a6e Flipper Release: v0.95.0
Summary: Releasing version 0.95.0

Reviewed By: cekkaewnumchai

Differential Revision: D29330364

fbshipit-source-id: 19226a166731841fcba91ce6a6da09204c38ced9
2021-06-23 08:19:22 -07:00
dependabot[bot]
70c1532ed5 Bump set-getter from 0.1.0 to 0.1.1 in /desktop (#2500)
Summary:
Bumps [set-getter](https://github.com/doowb/set-getter) from 0.1.0 to 0.1.1.
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a href="https://github.com/doowb/set-getter/commits/0.1.1">compare view</a></li>
</ul>
</details>
<br />

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

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

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

 ---

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

You can trigger Dependabot actions by commenting on this PR:
- `dependabot rebase` will rebase this PR
- `dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `dependabot merge` will merge this PR after your CI passes on it
- `dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `dependabot cancel merge` will cancel a previously requested merge and block automerging
- `dependabot reopen` will reopen this PR if it is closed
- `dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/facebook/flipper/network/alerts).

</details>

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

Reviewed By: cekkaewnumchai

Differential Revision: D29328248

Pulled By: passy

fbshipit-source-id: cd44010f616d937b986f274292a04320ad562e61
2021-06-23 07:27:02 -07:00
Michel Weststrate
16e668df9c Fix selection not updating
Summary: Fix accidental cleanup last week where selection wasn't updated anymore in crash reporter

Reviewed By: cekkaewnumchai

Differential Revision: D29328297

fbshipit-source-id: 4a5eb391d1a173e5e7ff189637c3731a483916fc
2021-06-23 04:04:39 -07:00
Michel Weststrate
603cd08767 Stop printing false positive debug message
Summary: Per title. Deserves a more coherent solution.

Reviewed By: passy

Differential Revision: D29296206

fbshipit-source-id: b8547ebc1f99c24282f79f4b98a8a5fa1d1947cd
2021-06-22 05:20:44 -07:00
Michel Weststrate
b9250e7795 Make screen dimension reflection fast
Summary:
After loading a layout plugin snapshot, I noticed the plugin feels really sluggish. I noticed that getDimensions, which recursively walks the full tree, is triggered on every rendering, although the state it introduces is only required when opening a screenshot visualizer. So Moved the function invocation to there.

Also did some first steps on supporting iOS; the visualizer will no show a preview of iOS as well. I'll leave implementing the highlights to a volunteer :)

Reviewed By: passy

Differential Revision: D29262697

fbshipit-source-id: b13b19b013eeeb98abb66fb648a193c69688a7e3
2021-06-22 04:10:53 -07:00
dependabot[bot]
c6a7d48864 Bump eslint from 7.28.0 to 7.29.0 in /desktop (#2493)
Summary:
Bumps [eslint](https://github.com/eslint/eslint) from 7.28.0 to 7.29.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/eslint/eslint/releases">eslint's releases</a>.</em></p>
<blockquote>
<h2>v7.29.0</h2>
<ul>
<li><a href="bfbfe5c1fd"><code>bfbfe5c</code></a> New: Add only to RuleTester (refs <a href="https://github-redirect.dependabot.com/eslint/rfcs/issues/73">eslint/rfcs#73</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14677">#14677</a>) (Brandon Mills)</li>
<li><a href="c2cd7b4a18"><code>c2cd7b4</code></a> New: Add ESLint#getRulesMetaForResults() (refs <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13654">#13654</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14716">#14716</a>) (Nicholas C. Zakas)</li>
<li><a href="eea7e0d09d"><code>eea7e0d</code></a> Chore: remove duplicate code (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14719">#14719</a>) (Nitin Kumar)</li>
<li><a href="6a1c7a0dac"><code>6a1c7a0</code></a> Fix: allow fallthrough comment inside block (fixes <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14701">#14701</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14702">#14702</a>) (Kevin Gibbons)</li>
<li><a href="a47e5e30b0"><code>a47e5e3</code></a> Docs: Add Mega-Linter to the list of integrations (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14707">#14707</a>) (Nicolas Vuillamy)</li>
<li><a href="353ddf9650"><code>353ddf9</code></a> Chore: enable reportUnusedDisableDirectives in eslint-config-eslint (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14699">#14699</a>) (薛定谔的猫)</li>
<li><a href="757c49584a"><code>757c495</code></a> Chore: add some rules to eslint-config-eslint (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14692">#14692</a>) (薛定谔的猫)</li>
<li><a href="c93a222563"><code>c93a222</code></a> Docs: fix a broken link (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14697">#14697</a>) (Sam Chen)</li>
<li><a href="655c1187fc"><code>655c118</code></a> Sponsors: Sync README with website (ESLint Jenkins)</li>
<li><a href="e2bed2ead2"><code>e2bed2e</code></a> Sponsors: Sync README with website (ESLint Jenkins)</li>
<li><a href="8490fb42e5"><code>8490fb4</code></a> Sponsors: Sync README with website (ESLint Jenkins)</li>
<li><a href="ddbe877c95"><code>ddbe877</code></a> Sponsors: Sync README with website (ESLint Jenkins)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/eslint/eslint/blob/master/CHANGELOG.md">eslint's changelog</a>.</em></p>
<blockquote>
<p>v7.29.0 - June 18, 2021</p>
<ul>
<li><a href="bfbfe5c1fd"><code>bfbfe5c</code></a> New: Add only to RuleTester (refs <a href="https://github-redirect.dependabot.com/eslint/rfcs/issues/73">eslint/rfcs#73</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14677">#14677</a>) (Brandon Mills)</li>
<li><a href="c2cd7b4a18"><code>c2cd7b4</code></a> New: Add ESLint#getRulesMetaForResults() (refs <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13654">#13654</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14716">#14716</a>) (Nicholas C. Zakas)</li>
<li><a href="eea7e0d09d"><code>eea7e0d</code></a> Chore: remove duplicate code (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14719">#14719</a>) (Nitin Kumar)</li>
<li><a href="6a1c7a0dac"><code>6a1c7a0</code></a> Fix: allow fallthrough comment inside block (fixes <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14701">#14701</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14702">#14702</a>) (Kevin Gibbons)</li>
<li><a href="a47e5e30b0"><code>a47e5e3</code></a> Docs: Add Mega-Linter to the list of integrations (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14707">#14707</a>) (Nicolas Vuillamy)</li>
<li><a href="353ddf9650"><code>353ddf9</code></a> Chore: enable reportUnusedDisableDirectives in eslint-config-eslint (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14699">#14699</a>) (薛定谔的猫)</li>
<li><a href="757c49584a"><code>757c495</code></a> Chore: add some rules to eslint-config-eslint (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14692">#14692</a>) (薛定谔的猫)</li>
<li><a href="c93a222563"><code>c93a222</code></a> Docs: fix a broken link (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14697">#14697</a>) (Sam Chen)</li>
<li><a href="655c1187fc"><code>655c118</code></a> Sponsors: Sync README with website (ESLint Jenkins)</li>
<li><a href="e2bed2ead2"><code>e2bed2e</code></a> Sponsors: Sync README with website (ESLint Jenkins)</li>
<li><a href="8490fb42e5"><code>8490fb4</code></a> Sponsors: Sync README with website (ESLint Jenkins)</li>
<li><a href="ddbe877c95"><code>ddbe877</code></a> Sponsors: Sync README with website (ESLint Jenkins)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="b402f7892f"><code>b402f78</code></a> 7.29.0</li>
<li><a href="a02dbd2822"><code>a02dbd2</code></a> Build: changelog update for 7.29.0</li>
<li><a href="bfbfe5c1fd"><code>bfbfe5c</code></a> New: Add only to RuleTester (refs <a href="https://github-redirect.dependabot.com/eslint/rfcs/issues/73">eslint/rfcs#73</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14677">#14677</a>)</li>
<li><a href="c2cd7b4a18"><code>c2cd7b4</code></a> New: Add ESLint#getRulesMetaForResults() (refs <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/13654">#13654</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14716">#14716</a>)</li>
<li><a href="eea7e0d09d"><code>eea7e0d</code></a> Chore: remove duplicate code (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14719">#14719</a>)</li>
<li><a href="6a1c7a0dac"><code>6a1c7a0</code></a> Fix: allow fallthrough comment inside block (fixes <a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14701">#14701</a>) (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14702">#14702</a>)</li>
<li><a href="97d9bd2a80"><code>97d9bd2</code></a> Revert &quot;Update: ecmaVersion defaults to 5, and allows &quot;latest&quot; (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14622">#14622</a>)&quot; (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14">https://github.com/facebook/flipper/issues/14</a>...</li>
<li><a href="a47e5e30b0"><code>a47e5e3</code></a> Docs: Add Mega-Linter to the list of integrations (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14707">#14707</a>)</li>
<li><a href="353ddf9650"><code>353ddf9</code></a> Chore: enable reportUnusedDisableDirectives in eslint-config-eslint (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14699">#14699</a>)</li>
<li><a href="757c49584a"><code>757c495</code></a> Chore: add some rules to eslint-config-eslint (<a href="https://github-redirect.dependabot.com/eslint/eslint/issues/14692">#14692</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/eslint/eslint/compare/v7.28.0...v7.29.0">compare view</a></li>
</ul>
</details>
<br />

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

Reviewed By: passy

Differential Revision: D29264239

Pulled By: mweststrate

fbshipit-source-id: 86e64ce0c8035f591287258a4c4521425e9d29bb
2021-06-22 03:02:28 -07:00
dependabot[bot]
95f1a42c0f Bump @types/inquirer from 7.3.1 to 7.3.2 in /desktop (#2488)
Summary:
Bumps [types/inquirer](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/inquirer) from 7.3.1 to 7.3.2.
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/inquirer">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@types/inquirer&package-manager=npm_and_yarn&previous-version=7.3.1&new-version=7.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/2488

Reviewed By: nikoant

Differential Revision: D29264225

Pulled By: mweststrate

fbshipit-source-id: bf7080f95bbb654bdc6cc9af144131a354729cb9
2021-06-22 03:02:28 -07:00