Commit Graph

1050 Commits

Author SHA1 Message Date
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
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
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]
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
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
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
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
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
dependabot[bot]
143a0da280 Bump pretty-format from 26.6.2 to 27.0.2 in /desktop (#2491)
Summary:
Bumps [pretty-format](https://github.com/facebook/jest/tree/HEAD/packages/pretty-format) from 26.6.2 to 27.0.2.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/facebook/jest/releases">pretty-format's releases</a>.</em></p>
<blockquote>
<h2>27.0.2</h2>
<h3>Features</h3>
<ul>
<li><code>[jest-circus]</code> Add some APIs to make it easier to build your own test runner</li>
<li><code>[jest-reporters]</code> Expose the <code>getResultHeader</code> util (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11460">#11460</a>)</li>
<li><code>[jest-resolver]</code> Export <code>resolve*</code> utils for different Jest modules (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11466">#11466</a>)</li>
<li><code>[jest/test-result]</code> Export <code>Test</code>, <code>TestEvents</code> and <code>TestFileEvent</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11466">#11466</a>)</li>
</ul>
<h3>Fixes</h3>
<ul>
<li><code>[jest-circus]</code> Add missing <code>slash</code> dependency (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11465">#11465</a>)</li>
<li><code>[jest-circus, jest/test-sequencer]</code> Remove dependency on <code>jest-runner</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11466">#11466</a>)</li>
<li><code>[jest-config]</code> Resolve <code>config.runner</code> to absolute path (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11465">#11465</a>)</li>
<li><code>[jest-config]</code> Make sure to support functions as config (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11475">#11475</a>)</li>
<li><code>[jest-core]</code> Do not warn about <code>DNSCHANNEL</code> handles when using the <code>--detectOpenHandles</code> option (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11470">#11470</a>)</li>
<li><code>[jest-runner]</code> Remove dependency on <code>jest-config</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11466">#11466</a>)</li>
<li><code>[jest-worker]</code> Loosen engine requirement to <code>&gt;= 10.13.0</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11451">#11451</a>)</li>
</ul>
<h2>27.0.1</h2>
<h3>Fixes</h3>
<ul>
<li><code>[jest-environment-jsdom]</code> Bump version of JSDOM to avoid deprecated <code>request</code> package (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11442">#11442</a>)</li>
</ul>
<h2>27.0.0</h2>
<p><a href="https://jestjs.io/blog/2021/03/09/jest-website-upgrade">Blog post</a></p>
<h3>Features</h3>
<ul>
<li><code>[babel-jest]</code> Add async transformation (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11192">#11192</a>)</li>
<li><code>[jest-changed-files]</code> Use '--' to separate paths from revisions (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11160">#11160</a>)</li>
<li><code>[jest-circus]</code> [<strong>BREAKING</strong>] Fail tests when multiple <code>done()</code> calls are made (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10624">#10624</a>)</li>
<li><code>[jest-circus, jest-jasmine2]</code> [<strong>BREAKING</strong>] Fail the test instead of just warning when describe returns a value (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10947">#10947</a>)</li>
<li><code>[jest-config]</code> [<strong>BREAKING</strong>] Default to Node testing environment instead of browser (JSDOM) (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/9874">#9874</a>)</li>
<li><code>[jest-config]</code> [<strong>BREAKING</strong>] Use <code>jest-circus</code> as default test runner (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10686">#10686</a>)</li>
<li><code>[jest-config]</code> Add support for <code>preset</code> written in ESM (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11200">#11200</a>)</li>
<li><code>[jest-config, jest-runtime]</code> Support ESM for files other than <code>.js</code> and <code>.mjs</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10823">#10823</a>)</li>
<li><code>[jest-config, jest-runtime]</code> [<strong>BREAKING</strong>] Use &quot;modern&quot; implementation as default for fake timers (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10874">#10874</a> &amp; <a href="https://github-redirect.dependabot.com/facebook/jest/pull/11197">#11197</a>)</li>
<li><code>[jest-config</code> Allow passing <code>forceNodeFilesystemAPI</code> through to <code>jest-haste-map</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11264">#11264</a>)</li>
<li><code>[jest-config, jest-haste-map, jest-resolve, jest-runner, jest-runtime, jest-test-sequencer, jest-transform, jest-types]</code> [<strong>BREAKING</strong>] Add custom HasteMap class implementation config option (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11107">#11107</a>)</li>
<li><code>[jest-core]</code> make <code>TestWatcher</code> extend <code>emittery</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10324">#10324</a>)</li>
<li><code>[jest-core]</code> Run failed tests interactively the same way we do with snapshots (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10858">#10858</a>)</li>
<li><code>[jest-core]</code> more <code>TestSequencer</code> methods can be async (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10980">#10980</a>)</li>
<li><code>[jest-core]</code> Add support for <code>testSequencer</code> written in ESM (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11207">#11207</a>)</li>
<li><code>[jest-core]</code> Add support for <code>globalSetup</code> and <code>globalTeardown</code> written in ESM (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11267">#11267</a>)</li>
<li><code>[jest-core]</code> Add support for <code>watchPlugins</code> written in ESM (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11315">#11315</a>)</li>
<li><code>[jest-core]</code> Add support for <code>runner</code> written in ESM (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11232">#11232</a>)</li>
<li><code>[jest-core]</code> Add support for <code>reporters</code> written in ESM (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11427">#11427</a>)</li>
<li><code>[jest-each]</code> Add support for interpolation with object properties (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11388">#11388</a>)</li>
<li><code>[jest-environment-node]</code> Add AbortController to globals (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11182">#11182</a>)</li>
<li><code>[jest/fake-timers]</code> Update to <code>sinonjs/fake-timers</code> to v7 (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11198">#11198</a>)</li>
</ul>

</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/facebook/jest/blob/master/CHANGELOG.md">pretty-format's changelog</a>.</em></p>
<blockquote>
<h2>27.0.2</h2>
<h3>Features</h3>
<ul>
<li><code>[jest-circus]</code> Add some APIs to make it easier to build your own test runner</li>
<li><code>[jest-reporters]</code> Expose the <code>getResultHeader</code> util (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11460">#11460</a>)</li>
<li><code>[jest-resolver]</code> Export <code>resolve*</code> utils for different Jest modules (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11466">#11466</a>)</li>
<li><code>[jest/test-result]</code> Export <code>Test</code>, <code>TestEvents</code> and <code>TestFileEvent</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11466">#11466</a>)</li>
</ul>
<h3>Fixes</h3>
<ul>
<li><code>[jest-circus]</code> Add missing <code>slash</code> dependency (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11465">#11465</a>)</li>
<li><code>[jest-circus, jest/test-sequencer]</code> Remove dependency on <code>jest-runner</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11466">#11466</a>)</li>
<li><code>[jest-config]</code> Resolve <code>config.runner</code> to absolute path (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11465">#11465</a>)</li>
<li><code>[jest-config]</code> Make sure to support functions as config (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11475">#11475</a>)</li>
<li><code>[jest-core]</code> Do not warn about <code>DNSCHANNEL</code> handles when using the <code>--detectOpenHandles</code> option (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11470">#11470</a>)</li>
<li><code>[jest-runner]</code> Remove dependency on <code>jest-config</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11466">#11466</a>)</li>
<li><code>[jest-worker]</code> Loosen engine requirement to <code>&gt;= 10.13.0</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11451">#11451</a>)</li>
</ul>
<h2>27.0.1</h2>
<h3>Fixes</h3>
<ul>
<li><code>[jest-environment-jsdom]</code> Bump version of JSDOM to avoid deprecated <code>request</code> package (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11442">#11442</a>)</li>
</ul>
<h2>27.0.0</h2>
<h3>Features</h3>
<ul>
<li><code>[babel-jest]</code> Add async transformation (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11192">#11192</a>)</li>
<li><code>[jest-changed-files]</code> Use '--' to separate paths from revisions (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11160">#11160</a>)</li>
<li><code>[jest-circus]</code> [<strong>BREAKING</strong>] Fail tests when multiple <code>done()</code> calls are made (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10624">#10624</a>)</li>
<li><code>[jest-circus, jest-jasmine2]</code> [<strong>BREAKING</strong>] Fail the test instead of just warning when describe returns a value (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10947">#10947</a>)</li>
<li><code>[jest-config]</code> [<strong>BREAKING</strong>] Default to Node testing environment instead of browser (JSDOM) (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/9874">#9874</a>)</li>
<li><code>[jest-config]</code> [<strong>BREAKING</strong>] Use <code>jest-circus</code> as default test runner (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10686">#10686</a>)</li>
<li><code>[jest-config]</code> Add support for <code>preset</code> written in ESM (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11200">#11200</a>)</li>
<li><code>[jest-config, jest-runtime]</code> Support ESM for files other than <code>.js</code> and <code>.mjs</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10823">#10823</a>)</li>
<li><code>[jest-config, jest-runtime]</code> [<strong>BREAKING</strong>] Use &quot;modern&quot; implementation as default for fake timers (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10874">#10874</a> &amp; <a href="https://github-redirect.dependabot.com/facebook/jest/pull/11197">#11197</a>)</li>
<li><code>[jest-config</code> Allow passing <code>forceNodeFilesystemAPI</code> through to <code>jest-haste-map</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11264">#11264</a>)</li>
<li><code>[jest-config, jest-haste-map, jest-resolve, jest-runner, jest-runtime, jest-test-sequencer, jest-transform, jest-types]</code> [<strong>BREAKING</strong>] Add custom HasteMap class implementation config option (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11107">#11107</a>)</li>
<li><code>[jest-core]</code> make <code>TestWatcher</code> extend <code>emittery</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10324">#10324</a>)</li>
<li><code>[jest-core]</code> Run failed tests interactively the same way we do with snapshots (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10858">#10858</a>)</li>
<li><code>[jest-core]</code> more <code>TestSequencer</code> methods can be async (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10980">#10980</a>)</li>
<li><code>[jest-core]</code> Add support for <code>testSequencer</code> written in ESM (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11207">#11207</a>)</li>
<li><code>[jest-core]</code> Add support for <code>globalSetup</code> and <code>globalTeardown</code> written in ESM (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11267">#11267</a>)</li>
<li><code>[jest-core]</code> Add support for <code>watchPlugins</code> written in ESM (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11315">#11315</a>)</li>
<li><code>[jest-core]</code> Add support for <code>runner</code> written in ESM (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11232">#11232</a>)</li>
<li><code>[jest-core]</code> Add support for <code>reporters</code> written in ESM (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11427">#11427</a>)</li>
<li><code>[jest-each]</code> Add support for interpolation with object properties (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11388">#11388</a>)</li>
<li><code>[jest-environment-node]</code> Add AbortController to globals (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11182">#11182</a>)</li>
</ul>

</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="7ca8a22b84"><code>7ca8a22</code></a> v27.0.2</li>
<li><a href="2cb20e945a"><code>2cb20e9</code></a> v27.0.1</li>
<li><a href="be16e47afc"><code>be16e47</code></a> v27.0.0</li>
<li><a href="b68d91b59a"><code>b68d91b</code></a> feat(pretty-print): add option <code>printBasicPrototype</code> (<a href="https://github.com/facebook/jest/tree/HEAD/packages/pretty-format/issues/11441">#11441</a>)</li>
<li><a href="e2eb9aeee8"><code>e2eb9ae</code></a> v27.0.0-next.11</li>
<li><a href="6f44529270"><code>6f44529</code></a> v27.0.0-next.10</li>
<li><a href="0a902e10e0"><code>0a902e1</code></a> chore: update prettier to 2.3 (<a href="https://github.com/facebook/jest/tree/HEAD/packages/pretty-format/issues/11397">#11397</a>)</li>
<li><a href="d836f33f98"><code>d836f33</code></a> v27.0.0-next.9</li>
<li><a href="c5e2a59b41"><code>c5e2a59</code></a> feat(pretty-format): Export Printer type (<a href="https://github.com/facebook/jest/tree/HEAD/packages/pretty-format/issues/11342">#11342</a>)</li>
<li><a href="7028265743"><code>7028265</code></a> feat: Better print for sparse arrays (<a href="https://github.com/facebook/jest/tree/HEAD/packages/pretty-format/issues/11326">#11326</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/facebook/jest/commits/v27.0.2/packages/pretty-format">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=pretty-format&package-manager=npm_and_yarn&previous-version=26.6.2&new-version=27.0.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/2491

Reviewed By: nikoant

Differential Revision: D29264234

Pulled By: mweststrate

fbshipit-source-id: 7f29dbc431ca24ce3eabdce0215759e45c2ebe9f
2021-06-22 03:02:28 -07:00
dependabot[bot]
ccc2a9392b Bump open from 8.2.0 to 8.2.1 in /desktop (#2489)
Summary:
Bumps [open](https://github.com/sindresorhus/open) from 8.2.0 to 8.2.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/sindresorhus/open/releases">open's releases</a>.</em></p>
<blockquote>
<h2>v8.2.1</h2>
<ul>
<li>Gracefully handle reused array being passed in (<a href="https://github-redirect.dependabot.com/sindresorhus/open/issues/255">https://github.com/facebook/flipper/issues/255</a>)  492445a</li>
</ul>
<p><a href="https://github.com/sindresorhus/open/compare/v8.2.0...v8.2.1">https://github.com/sindresorhus/open/compare/v8.2.0...v8.2.1</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="ce40e85de3"><code>ce40e85</code></a> 8.2.1</li>
<li><a href="71a6dbcf7b"><code>71a6dbc</code></a> Fix linting</li>
<li><a href="492445a767"><code>492445a</code></a> Gracefully handle reused array being passed in (<a href="https://github-redirect.dependabot.com/sindresorhus/open/issues/255">https://github.com/facebook/flipper/issues/255</a>)</li>
<li><a href="86b1709aea"><code>86b1709</code></a> Remove outdate caveat in readme</li>
<li>See full diff in <a href="https://github.com/sindresorhus/open/compare/v8.2.0...v8.2.1">compare view</a></li>
</ul>
</details>
<br />

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

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

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

 ---

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

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

</details>

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

Reviewed By: nikoant

Differential Revision: D29264227

Pulled By: mweststrate

fbshipit-source-id: feac03120426d37a47c3cfed092dd05d612fe311
2021-06-22 03:02:28 -07:00
dependabot[bot]
55166598c7 Bump ws from 7.4.6 to 7.5.0 in /desktop (#2487)
Summary:
Bumps [ws](https://github.com/websockets/ws) from 7.4.6 to 7.5.0.
<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.5.0</h2>
<h1>Features</h1>
<ul>
<li>Some errors now have a <code>code</code> property describing the specific type of error
that has occurred (<a href="https://github-redirect.dependabot.com/websockets/ws/issues/1901">https://github.com/facebook/flipper/issues/1901</a>).</li>
</ul>
<h1>Bug fixes</h1>
<ul>
<li>A close frame is now sent to the remote peer if an error (such as a data
framing error) occurs (8806aa9a).</li>
<li>The close code is now always 1006 if no close frame is received, even if the
connection is closed due to an error (8806aa9a).</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="e3f0c1720a"><code>e3f0c17</code></a> [dist] 7.5.0</li>
<li><a href="1d3f4cbb0e"><code>1d3f4cb</code></a> [doc] Fix anchor tags for error codes</li>
<li><a href="6eea0d466b"><code>6eea0d4</code></a> [doc] Fix typo</li>
<li><a href="bb5d44b118"><code>bb5d44b</code></a> [doc] Sort error codes alphabetically</li>
<li><a href="c6e3080670"><code>c6e3080</code></a> [minor] Attach error codes to all receiver errors (<a href="https://github-redirect.dependabot.com/websockets/ws/issues/1901">https://github.com/facebook/flipper/issues/1901</a>)</li>
<li><a href="074e6a8be7"><code>074e6a8</code></a> [fix] Don't call <code>ws.terminate()</code> unconditionally in <code>duplex._destroy()</code></li>
<li><a href="8806aa9a83"><code>8806aa9</code></a> [fix] Close the connection cleanly when an error occurs</li>
<li><a href="05b8ccd639"><code>05b8ccd</code></a> [doc] Fix broken link (<a href="https://github-redirect.dependabot.com/websockets/ws/issues/1897">https://github.com/facebook/flipper/issues/1897</a>)</li>
<li><a href="03a707884c"><code>03a7078</code></a> [doc] Remove unsafe regex from code snippet</li>
<li><a href="7ee31157d7"><code>7ee3115</code></a> [doc] Add logo to coverage badge</li>
<li>Additional commits viewable in <a href="https://github.com/websockets/ws/compare/7.4.6...7.5.0">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.4.6&new-version=7.5.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

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

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

 ---

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

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

</details>

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

Reviewed By: nikoant

Differential Revision: D29264222

Pulled By: mweststrate

fbshipit-source-id: 2c7eebd793c6ea9f28543a2808f387399043e59f
2021-06-22 03:02:28 -07:00
Michel Weststrate
640e06f130 Update tests to use the sandyLegacy wrapper by default
Summary: Changed unit test infra to wrap legacy plugins by default in Sandy, and adapted tests where needed.

Reviewed By: nikoant

Differential Revision: D29264660

fbshipit-source-id: fe7cbc8af826afac5f945103586b3cb9647e7fbd
2021-06-21 08:37:21 -07:00
Michel Weststrate
00e2c803ef Add wrapper support for getActiveNotifications
Summary: Add support for getActive notifications in Sandy wrapped legacy plugins

Reviewed By: passy

Differential Revision: D29234071

fbshipit-source-id: e05861e27426a592756645441c934b2c76154d44
2021-06-21 08:37:21 -07:00
Michel Weststrate
6fb28df855 Make Store initialization independent of module order
Summary: Changed some imports, and again the Flipper initialisation broke. Refactored the store initialization to create nowhere module local constants, which prevents generally against module loading issues, making it possible to load all code first, and then intialise things through the `init()` method, which should make Flipper initialisation a lot more robust to changes

Reviewed By: passy

Differential Revision: D29233603

fbshipit-source-id: 322cb87cba23228b1d7a88634b7b3995e27cc277
2021-06-21 08:37:20 -07:00
Michel Weststrate
806dd63f68 Add wrapper support for import / export states
Summary: Make sure custom export handlers of classic plugins wrapped in Sandy are respected

Reviewed By: passy

Differential Revision: D29233604

fbshipit-source-id: 7bab33af3422e0b59697438577906ce8580a28ad
2021-06-21 08:37:20 -07:00
Michel Weststrate
e40faaef3f Add keyboard support to Sandy plugin wrapper
Summary: Per title / see rest of the stack

Reviewed By: passy

Differential Revision: D29196711

fbshipit-source-id: 63ea52a07b61a11c1ad4013985c5b005045dcf0a
2021-06-21 08:37:20 -07:00
Michel Weststrate
c1860ec19c Introduce Sandy wrapper for legacy plugins
Summary:
This diff introduces loading classic Flipper plugins in a Sandy container. By wrapping plugins into Sandy we will be able to remove a lot of code / logic duplication related to state, queue processing, serialization etc. This will allow us to remove most or all of the complex plugin logic from the old system, only keeping onto the legacy components which have a lower maintenance burden. Until all plugins are Sandy.

This diff is not feature complete but only implements the core mechanisms for (persisted) state and communication.

Keyboard support, serialization, and rewiring tests etc will be added in next diff.

The feature is introduced behind GK flipper_use_sandy_plugin_wrapper to have kill switch.

Tests will be added later in this diff by redirection a part of the current mechanisms to wrapped plugins. (Will land the stack as a whole)

Reviewed By: passy

Differential Revision: D29165866

fbshipit-source-id: 57f84794a4a5f898bf765ce2de13cc759267fbc6
2021-06-21 08:37:20 -07:00
Michel Weststrate
07199323d1 Remove Newsfeed Story Inspector and native plugin mechanism
Summary: Changelog: The 'nativeplugins' on Android are no longer supported

Reviewed By: jknoxville

Differential Revision: D29163281

fbshipit-source-id: fb4032f240fc306608fe57479f3124d4e7a3400f
2021-06-21 05:39:26 -07:00
Michel Weststrate
068b00c156 Improved Flipper update message message
Summary: In support group telling users to merely "pull" seemed to be a bit too vague instruction.

Reviewed By: passy

Differential Revision: D29225726

fbshipit-source-id: 5c0db1b2d3afd2a398d28caf3438f2959e5d46f1
2021-06-18 04:10:37 -07:00
Anton Nikolaev
ac9ef7620a Refactor plugin lists computations
Summary: This is purely refactoring change. Before that we computed plugin lists in-place in PluginList component. Now we will be re-computing them as side effect and will keep computed lists in redux. This makes it easier to re-use plugin lists in other places outside of PluginList component, e.g. in the upcoming Marketplace UI.

Reviewed By: mweststrate

Differential Revision: D29161719

fbshipit-source-id: 5cb06d4d8a553aa856101c78b2311fbc078c6bd7
2021-06-17 07:39:43 -07:00
Michel Weststrate
e708b2b693 Fix links not always opening outside Electron
Summary:
Changelog: Fix links not always openening in the Browser

As reported in https://fb.workplace.com/groups/flippersupport/permalink/1154240895056567/, in some cases links would open inside Flipper itself, and as a result the user would be stick as he can't navigate away.

This happened only when a `Link` was being deconstructed from `Typography` by a module that was loaded before `Link.tsx`, which fixes `Typography.Link` to do that automatically. For example:

```
import {Typograph} from "antd"
const {Link} = Typography;
```

Addressed this issue by patching the antd package directly during build, rather than during application start.

Reviewed By: passy

Differential Revision: D29193899

fbshipit-source-id: b291018406e343c0f7de1d1d899924902159d8c7
2021-06-17 03:44:27 -07:00
Michel Weststrate
c83bd7900f Deprecate Native plugins
Reviewed By: fabiomassimo

Differential Revision: D29163280

fbshipit-source-id: 368e966bf86cc0de1ee0125a6b1166811ef6d2f0
2021-06-17 03:17:54 -07:00
Pascal Hartig
f2e67c8055 Disable flaky sideEffect test
Summary: See T93353978

Reviewed By: mweststrate

Differential Revision: D29160508

fbshipit-source-id: 79ac5247e7fd1b4b0a2903b1a40833e2870e299c
2021-06-16 08:26:35 -07:00
Pascal Hartig
34c862d5f2 Wednesday dep bump
Summary:
Includes most of the PRs currently open.

allow-large-files for antd

Reviewed By: mweststrate

Differential Revision: D29160385

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

Reviewed By: muraziz

Differential Revision: D29098776

fbshipit-source-id: 7cfb9774ddebaa6b1c61c597869bf0f9cf0c2687
2021-06-15 08:41:18 -07:00
Michel Weststrate
42c4bfcb47 Better error for ports in use
Summary:
If port 8088 / 8089 are in use, devices will not be able to connect to Flipper. We have checks for this in place, however it turns out that users can miss them. Potentially this can be caused for mulltiple reasons:

1. The notification is shown fairly short (in my testing it disappeared sometimes in < 2 secs
2. The notification is shown outside of the Flipper area
3. Flipper might not have permissions to show notifs in the first place.

Changed the notification to show inside Flipper, not hide automatically, and added clearer instructions. Including mentioning the port number (since there are multiple)

Changelog: [Flipper] Provide clearer error if Flipper ports are already in use, making device connections impossible

Differential Revision: D29128014

fbshipit-source-id: 16d9b451aa84281744155bfa1042429911a7b774
2021-06-15 06:28:48 -07:00
Pascal Hartig
53e612ff6f Fix adb path interpolation on Windows
Summary:
Concatenating strings is not a great idea for paths. This isn't actually Windows-specific (I think) but maybe more common there. If you have a space as part of your ADB path, you're in for a world of pain.

This addressed a couple of issues but I'm sure there are more when you use it for more detailed use cases.

Closes https://github.com/facebook/flipper/issues/2438

Reviewed By: mweststrate

Differential Revision: D29061367

fbshipit-source-id: 001e498ac42bd8df6e6852be9b42fb5f38379c2e
2021-06-11 06:31:59 -07:00
Michel Weststrate
df7941e2bc deprecated Searchable abstraction
Summary: Since the functionality is now available as part of DataTable, the HoC doesn't seem to be needed as generic abstraction. it is used in handful places outside datatable / datalist, but those can be localized in the future or should datatable / datalist.

Reviewed By: fabiomassimo

Differential Revision: D28993836

fbshipit-source-id: 3e6da7c7b48348faa0c4f7281868196f5585a065
2021-06-10 04:45:18 -07:00
Pascal Hartig
ce7b709908 Monday dep bump
Summary:
More safe bumps.

allow-large-files

Reviewed By: cekkaewnumchai

Differential Revision: D28929951

fbshipit-source-id: ade2919e2968446692fc88d6b6ae24644c30c137
2021-06-08 11:01:02 -07:00
Anton Nikolaev
9a2677fc24 Cleanup global notifications UI
Summary: We don't need to show plugin-related details and button "open globalError" (which anyway doesn't work) when showing global notifications.

Reviewed By: passy

Differential Revision: D28900468

fbshipit-source-id: 54347ede4f1e4dbfb0e41be5c50374fda35c1223
2021-06-07 05:53:44 -07:00
Anton Nikolaev
90d40ac385 More actionable notification message in case of www cert exchange failed
Summary: Improved message a bit to make it clear that VPN/Lighthouse is required on both sides - computer and mobile device. Also it will now show login link in case user is not signed in yet, because login is also required for www cert exchange.

Reviewed By: passy

Differential Revision: D28899558

fbshipit-source-id: 89de776f602a9f27a2c068efd8e3f08c28ec5f57
2021-06-07 05:53:43 -07:00
Pascal Hartig
edbb41b49b Upgrade prettier
Summary: ohsopretty

Reviewed By: fabiomassimo

Differential Revision: D28930276

fbshipit-source-id: faaca8cc53c2fe42a8e010d5c1b1d79e89190858
2021-06-07 04:59:17 -07:00
Pascal Hartig
baf38809e6 Dep bump
Summary:
Bump a day, doctor away, etc.

allow-large-files

Reviewed By: nikoant

Differential Revision: D28897147

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

Reviewed By: nikoant

Differential Revision: D28867596

fbshipit-source-id: dd3487a918dd75ffd47947a32f0f22f511a5f3d4
2021-06-04 08:41:16 -07:00
Anton Nikolaev
cc4bc293c6 More actionable notification on plugin download failure
Summary: More actionable notification on plugin download failure.

Reviewed By: priteshrnandgaonkar

Differential Revision: D28856728

fbshipit-source-id: bd4a41af8812168949d83e2e0923ca7976485fa7
2021-06-03 08:36:23 -07:00
Anton Nikolaev
fa74502a8a Show disconnected status in plugin list
Summary: Connectivity indicator on plugin panel.

Reviewed By: passy

Differential Revision: D28843182

fbshipit-source-id: 49130e6b40c1bfcc4449b8a98b092d44dbda78bf
2021-06-03 06:37:29 -07:00
Anton Nikolaev
b7d7326bae Differentiate connectivity and auth related errors
Summary: Cleaning up login session and connectivity handling.

Reviewed By: passy

Differential Revision: D28795342

fbshipit-source-id: ddc659d681f730c7183f364d8924e5c680f8a418
2021-06-02 11:30:37 -07:00
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
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
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