Commit Graph

1050 Commits

Author SHA1 Message Date
Michel Weststrate
9a6e84fedd Deprecate more standard components
Summary: Additional deprecation warnings for components that should be imported from flipper-plugin

Reviewed By: nikoant

Differential Revision: D28027382

fbshipit-source-id: e46a40a950adb615d206bc08334893263c56dd1f
2021-04-27 14:53:40 -07:00
Michel Weststrate
37a7b16774 Introduce Tabs
Summary:
Ant'd tabs didn't allow for vertical fill out. Introduced our own tiny wrapper that has `grow` by default.

Also made sure the users last selection is remembered.

Reviewed By: cekkaewnumchai

Differential Revision: D28026345

fbshipit-source-id: 7703bc241cd1427336b7c917bdb5be9f56bba9b9
2021-04-27 08:13:16 -07:00
Michel Weststrate
34e5e3a11a Fine tuning and docs for Panel
Summary: Better documentation for Panel. Fixes styling issue for uncollapsible panels

Reviewed By: passy

Differential Revision: D28025557

fbshipit-source-id: db0f9fd44f501fa36be3fc31ebbe7917d7c0a88c
2021-04-27 08:13:16 -07:00
Pascal Hartig
2b6e585fd2 Improve plugin loading error message
Summary:
I was a dummy and ran into this. Tried to make it easier
for the next person to figure out what this means.

Reviewed By: mweststrate

Differential Revision: D28026376

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

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

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

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

 ---

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

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

</details>

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

Reviewed By: passy

Differential Revision: D27999681

Pulled By: priteshrnandgaonkar

fbshipit-source-id: e81a62d21c2aabb2b4688420014d1e4495585f51
2021-04-26 12:13:44 -07:00
Michel Weststrate
ae752f785e Remove Sandy welcome screen
Summary: Dropped the welcome-to-the-Sandy-redesign screen, should be pretty well established by now :)

Reviewed By: nikoant

Differential Revision: D27966658

fbshipit-source-id: 8f8943cbb242ef5625f0c19ffe4aed28e320377f
2021-04-23 13:12:32 -07:00
Michel Weststrate
c005753018 Expose Panel and useLocalStorageState
Summary: Expose a Panel api from Sandy, which is quite similar to the old one, except that it uses Antd, and it will remember the users closed / open preference through sessions, a much requested feature.

Reviewed By: nikoant

Differential Revision: D27966607

fbshipit-source-id: 9b18df377215c1e6c5844d0bf972058c8c574cbb
2021-04-23 09:29:59 -07:00
Michel Weststrate
faf8588097 Minor improvements
Summary:
Some styling fixes and minor improvements in DataTable, used by network plugin:

- be able to customise the context menu
- be able to customise how entire rows are copied and presented on the clipboard to be able to deviate from the standard JSON
- deeplink handling was made async, this gives the plugin the opportunity to first handle initial setup and rendering before trying to jump somewhere which is a typical use case for deeplinking

Reviewed By: passy

Differential Revision: D27947186

fbshipit-source-id: a56f081d60520c4bc2ad3c547a8ca5b9357e71a1
2021-04-23 09:29:59 -07:00
dependabot[bot]
32117f264b Bump rsocket-tcp-server from 0.0.19 to 0.0.25 in /desktop (#2210)
Summary:
Bumps [rsocket-tcp-server](https://github.com/rsocket/rsocket-js) from 0.0.19 to 0.0.25.
<details>
<summary>Commits</summary>
<ul>
<li><a href="a85a4db041"><code>a85a4db</code></a> v0.0.25</li>
<li><a href="b279d67569"><code>b279d67</code></a> ammend versions</li>
<li><a href="1e15f3c975"><code>1e15f3c</code></a> v0.0.24</li>
<li><a href="a4b7a93dc0"><code>a4b7a93</code></a> provides a temporary fix for <a href="https://github-redirect.dependabot.com/rsocket/rsocket-js/issues/110">https://github.com/facebook/flipper/issues/110</a></li>
<li><a href="c271a37128"><code>c271a37</code></a> exports missing TlsClient</li>
<li><a href="844b10b35b"><code>844b10b</code></a> updates docs</li>
<li><a href="39a86dfa5f"><code>39a86df</code></a> updates docs</li>
<li><a href="97e1e9f922"><code>97e1e9f</code></a> updates versions</li>
<li><a href="90e70580d1"><code>90e7058</code></a> fixes RSocketMachine leak on the server-side (<a href="https://github-redirect.dependabot.com/rsocket/rsocket-js/issues/120">https://github.com/facebook/flipper/issues/120</a>)</li>
<li><a href="f665cd1038"><code>f665cd1</code></a> adds METADATA_PUSH support (<a href="https://github-redirect.dependabot.com/rsocket/rsocket-js/issues/119">https://github.com/facebook/flipper/issues/119</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/rsocket/rsocket-js/compare/v0.0.19...v0.0.25">compare view</a></li>
</ul>
</details>
<details>
<summary>Maintainer changes</summary>
<p>This version was pushed to npm by <a href="https://www.npmjs.com/~shadowgun">shadowgun</a>, a new releaser for rsocket-tcp-server since your current version.</p>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=rsocket-tcp-server&package-manager=npm_and_yarn&previous-version=0.0.19&new-version=0.0.25)](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/2210

Reviewed By: mweststrate

Differential Revision: D27945698

Pulled By: passy

fbshipit-source-id: c8fd54082b6ab2996cf339ba1dc20a2289e9bd64
2021-04-23 04:30:35 -07:00
Anton Nikolaev
e1f6f770cd Collect information about connected device and app as a part of plugin usage analytics
Summary: We received questions several times from plugin authors on how to find usage for particular app/platform and I wanted to add that data on plugin usage dashboard, but right now it's impossible. We're only collecting plugin ID as a part of plugin usage analytics. That means it's impossible to filter some plugin usage (e.g. "Network") by particular platform or mobile app. This diff improves plugin usage analytics to collect enhanced data.

Reviewed By: passy

Differential Revision: D27935801

fbshipit-source-id: c2fc7d8cf84f9a28823ae56a1dda7158e0b12f1f
2021-04-22 16:47:43 -07:00
Pascal Hartig
c007d74af9 Handle RSocket disconnects gracefully
Summary:
Tiny change, hours of debugging. Big thanks to jknoxville for
answering all my stupid questions.

Our number one "error" right now by users affected is

```
Unhandled Promise Rejection:
Error: RSocketTcpClient:
Socket closed unexpectedly.
```

Of course no stacktrace, because JavaScript and Promises.

The underlying problem is that RSocket keeps track of recently used
"receivers" which is every method that has sent a request. When someone disconnects their device or closes an emulator/simulator, the socket's `end` event is treated the same way any other connection error would be: a85a4db041/packages/rsocket-tcp-client/src/RSocketTcpClient.js (L74)

This then causes "errors" like these to appear:
{F609810187}

This could previously be handled in plugin-code by wrapping all `client.call()` invocations in try/catch, which nobody did, meaning we'd get rejected promises everywhere. We can instead handle this centrally and properly disconnect the connection.

Changelog: Severed RSocket connections are no longer treated as an error in plugin code

Reviewed By: jknoxville

Differential Revision: D27910514

fbshipit-source-id: ea9c0726ab0e959b0eb4a5fca67ddaa04a6f1d14
2021-04-22 07:45:33 -07:00
Pascal Hartig
9e7a455910 Mute port forwarding errors
Summary: Mentioned in the comment, these aren't actionable errors.

Reviewed By: jknoxville

Differential Revision: D27910465

fbshipit-source-id: 6f5e9d9d25edbb02648f3118c074e9f1986e3a86
2021-04-22 07:45:33 -07:00
dependabot[bot]
bfc9ba0e68 Bump open from 8.0.4 to 8.0.5 in /desktop (#2189)
Summary:
Bumps [open](https://github.com/sindresorhus/open) from 8.0.4 to 8.0.5.
<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.0.5</h2>
<ul>
<li>Fix <code>chrome</code> app on macOS (<a href="https://github-redirect.dependabot.com/sindresorhus/open/issues/240">https://github.com/facebook/flipper/issues/240</a>)  87f3d7a</li>
</ul>
<p><a href="https://github.com/sindresorhus/open/compare/v8.0.4...v8.0.5">https://github.com/sindresorhus/open/compare/v8.0.4...v8.0.5</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="45a3551a32"><code>45a3551</code></a> 8.0.5</li>
<li><a href="87f3d7a16b"><code>87f3d7a</code></a> Fix <code>chrome</code> app on macOS (<a href="https://github-redirect.dependabot.com/sindresorhus/open/issues/240">https://github.com/facebook/flipper/issues/240</a>)</li>
<li>See full diff in <a href="https://github.com/sindresorhus/open/compare/v8.0.4...v8.0.5">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.0.4&new-version=8.0.5)](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/2189

Reviewed By: passy

Differential Revision: D27763534

Pulled By: nikoant

fbshipit-source-id: 3a2f68cf7f8b8477858e0a840e30b126512e4c54
2021-04-15 10:17:58 -07:00
Michel Weststrate
69de9bc92d Initial move to flipper-plugin
Summary:
This diff moves the core of ElementsInspector to flipper-plugin and decouples it from legacy design system and Electron, without any significant improvements or API changes yet, which will follow later.

Colors and docs will be added later in this stack.

Reviewed By: passy

Differential Revision: D27660300

fbshipit-source-id: 96abfa3b3174fa852cf04ae119c23c3d629fee74
2021-04-15 07:48:33 -07:00
dependabot[bot]
582a31fb41 Bump @testing-library/dom from 7.30.1 to 7.30.3 in /desktop (#2188)
Summary:
Bumps [testing-library/dom](https://github.com/testing-library/dom-testing-library) from 7.30.1 to 7.30.3.
<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>v7.30.3</h2>
<h2><a href="https://github.com/testing-library/dom-testing-library/compare/v7.30.2...v7.30.3">7.30.3</a> (2021-03-31)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><strong>types:</strong> missing ignore parameter for SelectorMatcherOptions (<a href="7edd2bd734">7edd2bd</a>)</li>
</ul>
<h2>v7.30.2</h2>
<h2><a href="https://github.com/testing-library/dom-testing-library/compare/v7.30.1...v7.30.2">7.30.2</a> (2021-03-30)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><strong>types:</strong> exclude tsconfig from types folder in publish flow (<a href="https://github-redirect.dependabot.com/testing-library/dom-testing-library/issues/923">https://github.com/facebook/flipper/issues/923</a>) (<a href="bb83d8c540">bb83d8c</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="2c9e2c1323"><code>2c9e2c1</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/testing-library/dom-testing-library/issues/924">https://github.com/facebook/flipper/issues/924</a> from MatanBobi/pr/fix-missing-parameter-for-matcher</li>
<li><a href="5ecc89034e"><code>5ecc890</code></a> Merge branch 'master' into pr/fix-missing-parameter-for-matcher</li>
<li><a href="7edd2bd734"><code>7edd2bd</code></a> fix(types): missing ignore parameter for SelectorMatcherOptions</li>
<li><a href="bb83d8c540"><code>bb83d8c</code></a> fix(types): exclude tsconfig from types folder in publish flow (<a href="https://github-redirect.dependabot.com/testing-library/dom-testing-library/issues/923">https://github.com/facebook/flipper/issues/923</a>)</li>
<li>See full diff in <a href="https://github.com/testing-library/dom-testing-library/compare/v7.30.1...v7.30.3">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.30.1&new-version=7.30.3)](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/2188

Reviewed By: passy

Differential Revision: D27763535

Pulled By: nikoant

fbshipit-source-id: 55ca9838521a482177d0032eddea7ceb53b13f01
2021-04-15 07:32:06 -07:00
dependabot[bot]
3ba9cf4233 Bump react-refresh from 0.9.0 to 0.10.0 in /desktop (#2186)
Summary:
Bumps [react-refresh](https://github.com/facebook/react/tree/HEAD/packages/react) from 0.9.0 to 0.10.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/facebook/react/releases">react-refresh's releases</a>.</em></p>
<blockquote>
<h2>v0.10.0</h2>
<h3>React Core</h3>
<h4>New Features</h4>
<ul>
<li>Added warnings to help migrate towards descriptors</li>
<li>Made it possible to server render without React-related markup (<code>data-reactid</code>, <code>data-react-checksum</code>). This DOM will not be mountable by React. <a href="http://facebook.github.io/react/docs/top-level-api.html#react.rendercomponenttostaticmarkup">Read the docs for <code>React.renderComponentToStaticMarkup</code></a></li>
<li>Added support for more attributes:
<ul>
<li><code>srcSet</code> for <code>&lt;img&gt;</code> to specify images at different pixel ratios</li>
<li><code>textAnchor</code> for SVG</li>
</ul>
</li>
</ul>
<h4>Bug Fixes</h4>
<ul>
<li>Ensure all void elements don’t insert a closing tag into the markup.</li>
<li>Ensure <code>className={false}</code> behaves consistently</li>
<li>Ensure <code>this.refs</code> is defined, even if no refs are specified.</li>
</ul>
<h3>Addons</h3>
<ul>
<li><code>update</code> function to deal with immutable data. <a href="http://facebook.github.io/react/docs/update.html">Read the docs</a></li>
</ul>
<h3>react-tools</h3>
<ul>
<li>Added an option argument to <code>transform</code> function. The only option supported is <code>harmony</code>, which behaves the same as <code>jsx --harmony</code> on the command line. This uses the ES6 transforms from <a href="https://github.com/facebook/jstransform">jstransform</a>.</li>
</ul>
<h2>v0.10.0-rc1</h2>
<p>No release notes provided.</p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/facebook/react/blob/master/CHANGELOG.md">react-refresh's changelog</a>.</em></p>
<blockquote>
<h2>0.10.0 (March 21, 2014)</h2>
<h3>React Core</h3>
<h4>New Features</h4>
<ul>
<li>Added warnings to help migrate towards descriptors</li>
<li>Made it possible to server render without React-related markup (<code>data-reactid</code>, <code>data-react-checksum</code>). This DOM will not be mountable by React. <a href="https://reactjs.org/docs/top-level-api.html#react.rendercomponenttostaticmarkup">Read the docs for <code>React.renderComponentToStaticMarkup</code></a></li>
<li>Added support for more attributes:
<ul>
<li><code>srcSet</code> for <code>&lt;img&gt;</code> to specify images at different pixel ratios</li>
<li><code>textAnchor</code> for SVG</li>
</ul>
</li>
</ul>
<h4>Bug Fixes</h4>
<ul>
<li>Ensure all void elements don’t insert a closing tag into the markup.</li>
<li>Ensure <code>className={false}</code> behaves consistently</li>
<li>Ensure <code>this.refs</code> is defined, even if no refs are specified.</li>
</ul>
<h3>Addons</h3>
<ul>
<li><code>update</code> function to deal with immutable data. <a href="https://reactjs.org/docs/update.html">Read the docs</a></li>
</ul>
<h3>react-tools</h3>
<ul>
<li>Added an option argument to <code>transform</code> function. The only option supported is <code>harmony</code>, which behaves the same as <code>jsx --harmony</code> on the command line. This uses the ES6 transforms from <a href="https://github.com/facebook/jstransform">jstransform</a>.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a href="https://github.com/facebook/react/commits/v0.10.0/packages/react">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=react-refresh&package-manager=npm_and_yarn&previous-version=0.9.0&new-version=0.10.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/2186

Reviewed By: passy

Differential Revision: D27760972

Pulled By: nikoant

fbshipit-source-id: a998232901ee6c02686069d119ef7818be4d7404
2021-04-14 05:05:01 -07:00
Anton Nikolaev
dc7226b7dc Script for plugin type-checking (#2172)
Summary:
Pull Request resolved: https://github.com/facebook/flipper/pull/2172

New script which runs "tsc" for all plugins, receives list of errors and then checks which plugins are affected. It works for shared libs too, e.g. if there is an error in a shared library, then all plugins dependant on it will be counted as affected. For convenience, script saves list of errors affecting each plugin to "tsc-errors.log" in plugin folder.

This script will be used for automatic type-checking plugins against current "stable" and "insiders" versions of Flipper.

An alternative to this implementation would be to simply run "tsc" for each plugin individually, but such implementation takes a lot of time (5+ sec per plugin) and so cannot be effectively used on diffs.

Reviewed By: mweststrate

Differential Revision: D27499765

fbshipit-source-id: fcbbfc94a13e6c7c5beff0c889a929f84c41b2dd
2021-04-09 05:22:01 -07:00
Anton Nikolaev
b45b5f854a Move layout plugin sidebar extensions to the plugin package
Summary: Moved layout plugin sidebar extensions to the plugin package.

Reviewed By: passy

Differential Revision: D27036489

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

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

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

Reviewed By: mweststrate

Differential Revision: D27034108

fbshipit-source-id: c2310e3c5bfe7526033f51b46c0ae40199fd7586
2021-04-09 05:22:00 -07:00
Michel Weststrate
32bf4c32c2 Remove Console feature
Reviewed By: fabiomassimo

Differential Revision: D27622952

fbshipit-source-id: 45ce5188a55f50b8ca28f28f354d9402902a5df8
2021-04-09 05:03:28 -07:00
Michel Weststrate
49c4e2f56d Remove Interaction tracker
Reviewed By: passy

Differential Revision: D27619537

fbshipit-source-id: 970a1661e2b4cafe5fb6a79082d04aa1f9644439
2021-04-07 07:55:13 -07:00
Michel Weststrate
53c557f923 Move DataInspector to flipper-plugin
Summary:
This diff moves the rest of the DataInspector jungle to flipper-plugin. No actual improvements are made yet, but the code is decoupled from Electron and the legacy theming. For example by using Antd based context menus.

Note that `ManagedDataInspector` is now rebranded `DataInspector`, as that is the only variation that should (and is) used publicly.

For the interactionTracker removal, see next diff.

SearchableDataInspector will be addressed in a next diff

Reviewed By: passy

Differential Revision: D27603125

fbshipit-source-id: 188bd000260e4e4704202ce02c7fc98319f0bc22
2021-04-07 07:55:13 -07:00
Michel Weststrate
9030a98c6e Move DataDescription utility to flipper-plugin
Summary:
Another utility component used by DataInspector.

Colors have been hardcoded for now, to decouple from the classic Flipper color palette. Will organize this better later in this stack, and when addressing / adding support for dark mode.

Buttons, checkboxes, selects have been replaced by Antd's counterpart.

Unlike ManagedDataTable, the DataInspector is primarily moved rather than copied & adapted, as the underlying abstraction / API won't change significantly. So the changes here will immediately affect all plugins in Flipper using this component.

Reviewed By: passy

Differential Revision: D27603126

fbshipit-source-id: bacd48c9af2b591033e7f2352627f11acb4df589
2021-04-07 07:55:13 -07:00
Michel Weststrate
b6674bf96b Move highlighter to flipper-plugin
Summary: This stack moves the DataInspector component to flipper-plugin. The first diffs will move some utility abstractions to turn this into smaller steps

Reviewed By: passy

Differential Revision: D27591890

fbshipit-source-id: d0285ca31b6c9b334000dd15c722b9bda7638d73
2021-04-07 07:55:12 -07:00
Michel Weststrate
07c4470ab9 Stricter types for DataDescription
Summary: Made datatypes used by DataInspector more strictly typed (in the hope to be able to drop some, but all are still in use, although the distinction between different elements isn't always clear).

Reviewed By: passy

Differential Revision: D27266825

fbshipit-source-id: 6a1c74b0ae3daff6299ca598b18a205d17c42e22
2021-04-07 07:55:12 -07:00
Anton Nikolaev
eabf0fc340 Fix native window objects leak after refreshes
Summary:
It looks like electron creates new native window object after each window refresh, but we hold previous objects because of listeners attached to them. In dev mode, Electron signalises about that in console log each time when window is focused / blured after refresh:
```
Attempting to call a function in a renderer window that has been closed or released.
Function provided here: init-fast-refresh.bundle?platform=web&dev=true&minify=false:800356:19
```

Reviewed By: passy

Differential Revision: D27619305

fbshipit-source-id: 51d1590903a37dba721fb7a711fdebb9f0034b98
2021-04-07 05:52:27 -07:00
Mykyta Sikriier
c9b6f6c7d9 ANDROID_SDK_ROOT support (#2106)
Summary:
According to Google, ANDROID_HOME is deprecated.
This means, that having only ANDROID_SDK_ROOT as environment variable leading to Android SDK is enough.
Flipper supports only ANDROID_HOME, so I would like to add ANDROID_SDK_ROOT support.
However, there is a set of rules of ANDROID_HOME and ANDROID_SDK_ROOT priority.
Everything is mentioned on a this page: https://developer.android.com/studio/command-line/variables

## Changelog
Added ANDROID_SDK_ROOT environment variable support

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

Test Plan: Probably I would need a help with this

Reviewed By: mweststrate

Differential Revision: D27505024

Pulled By: passy

fbshipit-source-id: 8bdc66a9652c673fd44944d87af1efc9e93d0f1b
2021-04-07 03:19:34 -07:00
dependabot[bot]
9ce16354f6 Bump rsocket-types from 0.0.16 to 0.0.25 in /desktop (#2159)
Summary:
Bumps [rsocket-types](https://github.com/rsocket/rsocket-js) from 0.0.16 to 0.0.25.
<details>
<summary>Commits</summary>
<ul>
<li><a href="a85a4db041"><code>a85a4db</code></a> v0.0.25</li>
<li><a href="b279d67569"><code>b279d67</code></a> ammend versions</li>
<li><a href="1e15f3c975"><code>1e15f3c</code></a> v0.0.24</li>
<li><a href="a4b7a93dc0"><code>a4b7a93</code></a> provides a temporary fix for <a href="https://github-redirect.dependabot.com/rsocket/rsocket-js/issues/110">https://github.com/facebook/flipper/issues/110</a></li>
<li><a href="c271a37128"><code>c271a37</code></a> exports missing TlsClient</li>
<li><a href="844b10b35b"><code>844b10b</code></a> updates docs</li>
<li><a href="39a86dfa5f"><code>39a86df</code></a> updates docs</li>
<li><a href="97e1e9f922"><code>97e1e9f</code></a> updates versions</li>
<li><a href="90e70580d1"><code>90e7058</code></a> fixes RSocketMachine leak on the server-side (<a href="https://github-redirect.dependabot.com/rsocket/rsocket-js/issues/120">https://github.com/facebook/flipper/issues/120</a>)</li>
<li><a href="f665cd1038"><code>f665cd1</code></a> adds METADATA_PUSH support (<a href="https://github-redirect.dependabot.com/rsocket/rsocket-js/issues/119">https://github.com/facebook/flipper/issues/119</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/rsocket/rsocket-js/compare/v0.0.16...v0.0.25">compare view</a></li>
</ul>
</details>
<details>
<summary>Maintainer changes</summary>
<p>This version was pushed to npm by <a href="https://www.npmjs.com/~shadowgun">shadowgun</a>, a new releaser for rsocket-types since your current version.</p>
</details>
<br />

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

Reviewed By: nikoant

Differential Revision: D27589269

Pulled By: mweststrate

fbshipit-source-id: 11b728374a2ab39faf7cbaba9f27dfeb23ef9a5e
2021-04-06 06:30:35 -07:00
dependabot[bot]
c26963de41 Bump query-string from 6.13.5 to 7.0.0 in /desktop (#2160)
Summary:
Bumps [query-string](https://github.com/sindresorhus/query-string) from 6.13.5 to 7.0.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/sindresorhus/query-string/releases">query-string's releases</a>.</em></p>
<blockquote>
<h2>v7.0.0</h2>
<h3>Breaking</h3>
<ul>
<li>Implement skips for stringify array format comma (<a href="https://github-redirect.dependabot.com/sindresorhus/query-string/issues/304">https://github.com/facebook/flipper/issues/304</a>)  828f032
<ul>
<li>This is a breaking change to the default functionality of <code>.stringify()</code> for <code>comma</code> and <code>separator</code> array modes given that <code>skipNull</code> and <code>skipEmptyString</code> are default false but the original functionality of <code>.stringify()</code> for these 2 modes behaved as though <code>skipNull</code> and <code>skipEmptyString</code> were true.</li>
</ul>
</li>
</ul>
<h3>Improvements</h3>
<ul>
<li>Add support for <code>arrayFormat: &amp;[https://github.com/facebook/flipper/issues/39](https://github.com/sindresorhus/query-string/issues/39);bracket-separator&amp;[https://github.com/facebook/flipper/issues/39](https://github.com/sindresorhus/query-string/issues/39);</code> (<a href="https://github-redirect.dependabot.com/sindresorhus/query-string/issues/276">https://github.com/facebook/flipper/issues/276</a>)  b10bc19</li>
</ul>
<p><a href="https://github.com/sindresorhus/query-string/compare/v6.14.1...v7.0.0">https://github.com/sindresorhus/query-string/compare/v6.14.1...v7.0.0</a></p>
<h2>v6.14.1</h2>
<ul>
<li>Fix TypeScript type for <code>stringifyUrl()</code>  a6d4a3f</li>
</ul>
<p><a href="https://github.com/sindresorhus/query-string/compare/v6.14.0...v6.14.1">https://github.com/sindresorhus/query-string/compare/v6.14.0...v6.14.1</a></p>
<h2>v6.14.0</h2>
<ul>
<li>Add <a href="https://github.com/sindresorhus/query-string#pickurl-keys-options"><code>.pick()</code></a> and <a href="https://github.com/sindresorhus/query-string#excludeurl-keys-options"><code>.exclude()</code></a> (<a href="https://github-redirect.dependabot.com/sindresorhus/query-string/issues/282">https://github.com/facebook/flipper/issues/282</a>)  6ed5cb3</li>
<li>Ignore ending ampersand when parsing (<a href="https://github-redirect.dependabot.com/sindresorhus/query-string/issues/306">#306</a>)  667c9e9</li>
</ul>
<p><a href="https://github.com/sindresorhus/query-string/compare/v6.13.8...v6.14.0">https://github.com/sindresorhus/query-string/compare/v6.13.8...v6.14.0</a></p>
<h2>v6.13.8</h2>
<ul>
<li>Work around TypeScript bug  94ebcd4</li>
</ul>
<p><a href="https://github.com/sindresorhus/query-string/compare/v6.13.7...v6.13.8">https://github.com/sindresorhus/query-string/compare/v6.13.7...v6.13.8</a></p>
<h2>v6.13.7</h2>
<ul>
<li>Allow readonly <code>Stringifiable[]</code> in <code>StringifiableRecord</code> (<a href="https://github-redirect.dependabot.com/sindresorhus/query-string/issues/291">https://github.com/facebook/flipper/issues/291</a>)  71d84b7</li>
</ul>
<p><a href="https://github.com/sindresorhus/query-string/compare/v6.13.6...v6.13.7">https://github.com/sindresorhus/query-string/compare/v6.13.6...v6.13.7</a></p>
<h2>v6.13.6</h2>
<ul>
<li>When only receiving values with encoded array value, decode values (<a href="https://github-redirect.dependabot.com/sindresorhus/query-string/issues/287">https://github.com/facebook/flipper/issues/287</a>)  b38f06c</li>
</ul>
<p><a href="https://github.com/sindresorhus/query-string/compare/v6.13.5...v6.13.6">https://github.com/sindresorhus/query-string/compare/v6.13.5...v6.13.6</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="2099277275"><code>2099277</code></a> 7.0.0</li>
<li><a href="b10bc19699"><code>b10bc19</code></a> Add support for <code>arrayFormat: 'bracket-separator'</code> (<a href="https://github-redirect.dependabot.com/sindresorhus/query-string/issues/276">https://github.com/facebook/flipper/issues/276</a>)</li>
<li><a href="828f032306"><code>828f032</code></a> Implement skips for stringify array format comma (<a href="https://github-redirect.dependabot.com/sindresorhus/query-string/issues/304">https://github.com/facebook/flipper/issues/304</a>)</li>
<li><a href="44abc66628"><code>44abc66</code></a> Meta tweaks</li>
<li><a href="0090a34182"><code>0090a34</code></a> 6.14.1</li>
<li><a href="a6d4a3f480"><code>a6d4a3f</code></a> Fix TypeScript type for <code>stringifyUrl()</code></li>
<li><a href="2a178815cf"><code>2a17881</code></a> 6.14.0</li>
<li><a href="6ed5cb3d36"><code>6ed5cb3</code></a> Add <code>.pick()</code> and <code>.exclude()</code> (<a href="https://github-redirect.dependabot.com/sindresorhus/query-string/issues/282">https://github.com/facebook/flipper/issues/282</a>)</li>
<li><a href="667c9e9d29"><code>667c9e9</code></a> Ignore ending ampersand when parsing (<a href="https://github-redirect.dependabot.com/sindresorhus/query-string/issues/306">#306</a>)</li>
<li><a href="39aef91646"><code>39aef91</code></a> Update a link</li>
<li>Additional commits viewable in <a href="https://github.com/sindresorhus/query-string/compare/v6.13.5...v7.0.0">compare view</a></li>
</ul>
</details>
<br />

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

Reviewed By: nikoant

Differential Revision: D27589266

Pulled By: mweststrate

fbshipit-source-id: efc5be91d19b8555a50b2bbb414ded6da10751b4
2021-04-06 06:30:34 -07:00
Michel Weststrate
7a45941973 Fixed null pointer handling in login / QPL flow
Summary: Found an NPE during testing a prod build that I encountered a few times before, which occurs when the user isn't logged in. Maked types stricter and this probably fixes an old bug where login status icon could be out of sync as well.

Reviewed By: nikoant

Differential Revision: D27589740

fbshipit-source-id: 419aaca77a997e01e8d9b0067e604a8dad019551
2021-04-06 04:37:12 -07:00
Michel Weststrate
220ebbc601 Make autoScrolling explicit
Summary:
Changelog: Added an explicit autoscroll indicator in logs and fixed snapping

We got several reports that auto scrolling was to aggressive, so revisited the implementation and the new one is a lot more reliable. Also added an explicit indicator / button to toggle tailing.

Exposed ant's active color as well in our theme, as it gives better contrast on the buttons than Flipper purple.

Reviewed By: passy

Differential Revision: D27397506

fbshipit-source-id: 5e82939de4b2f8b89380bd55009e3fa2a7c10ec9
2021-03-31 03:44:34 -07:00
Mathis Gardon
f25d189aa5 Support custom metro ports (#2050)
Summary:
Based on issue https://github.com/facebook/flipper/issues/1509 I needed a custom port for the metro server to pass to flipper.

## Changelog

introduce `METRO_SERVER_PORT` env variable to be able to customize default 8081 port on startup.

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

Test Plan:
Tested with a locally built linux desktop app, this seems to work OK pour hermes debugging & RN logging.

React DevTools don't seem to find the running app, maybe there's a mapping to handle there too ?

Reviewed By: jknoxville

Differential Revision: D27339006

Pulled By: passy

fbshipit-source-id: b1700c4fe73f14bf4617e23583b2954012e0a5aa
2021-03-31 03:30:14 -07:00
Michel Weststrate
238374f4db Fix uncaught exception in adb logging
Summary:
Found some random unhandled rejection. Added error catching / logging to adb logcat setup.
{F558587842}

Reviewed By: passy

Differential Revision: D27429914

fbshipit-source-id: faca682819a2f1a3f924ee176cc9f8c9f92f5ae9
2021-03-31 01:40:16 -07:00
dependabot[bot]
d31847be1e Bump open from 7.4.2 to 8.0.4 in /desktop (#2128)
Summary:
Bumps [open](https://github.com/sindresorhus/open) from 7.4.2 to 8.0.4.
<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.0.4</h2>
<ul>
<li>Fix the <code>app.argument</code> option (<a href="https://github-redirect.dependabot.com/sindresorhus/open/issues/237">https://github.com/facebook/flipper/issues/237</a>)  e127ae8</li>
</ul>
<p><a href="https://github.com/sindresorhus/open/compare/v8.0.3...v8.0.4">https://github.com/sindresorhus/open/compare/v8.0.3...v8.0.4</a></p>
<h2>v8.0.3</h2>
<ul>
<li>Hide PowerShell window on Windows (<a href="https://github-redirect.dependabot.com/sindresorhus/open/issues/235">https://github.com/facebook/flipper/issues/235</a>)  53faf7f</li>
</ul>
<p><a href="https://github.com/sindresorhus/open/compare/v8.0.2...v8.0.3">https://github.com/sindresorhus/open/compare/v8.0.2...v8.0.3</a></p>
<h2>v8.0.2</h2>
<ul>
<li>Fix a regression in v8.0.0 (<a href="https://github-redirect.dependabot.com/sindresorhus/open/issues/232">https://github.com/facebook/flipper/issues/232</a>)  26ee3d2</li>
</ul>
<p><a href="https://github.com/sindresorhus/open/compare/v8.0.1...v8.0.2">https://github.com/sindresorhus/open/compare/v8.0.1...v8.0.2</a></p>
<h2>v8.0.1</h2>
<ul>
<li>Fix Node.js 12 compatibility (<a href="https://github-redirect.dependabot.com/sindresorhus/open/issues/229">https://github.com/facebook/flipper/issues/229</a>)  71777b1</li>
</ul>
<p><a href="https://github.com/sindresorhus/open/compare/v8.0.0...v8.0.1">https://github.com/sindresorhus/open/compare/v8.0.0...v8.0.1</a></p>
<h2>v8.0.0</h2>
<h3>Breaking</h3>
<ul>
<li>Require Node.js 12  cde5c79</li>
<li>Removed deprecated <code>url</code> option</li>
<li>The <code>app</code> option now accepts an object instead of a string/array:</li>
</ul>
<pre lang="diff"><code> await open('https://sindresorhus.com', {
-	app: 'firefox'
+	app: {name: 'firefox'}
 });
</code></pre>
<pre lang="diff"><code> await open('https://sindresorhus.com', {
-	app: ['chrome', '--incognito']
+	app: {name: 'google chrome', arguments: '--incognito'}
 });
</code></pre>
<h3>Improvements</h3>
<ul>
<li>Add <a href="https://github.com/sindresorhus/open#openapps"><code>open.apps</code></a> constants, which lets easily open Chrome and Firefox without cross-platform issues</li>
</ul>
<p><a href="https://github.com/sindresorhus/open/compare/v7.4.2...v8.0.0">https://github.com/sindresorhus/open/compare/v7.4.2...v8.0.0</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="8881dab330"><code>8881dab</code></a> 8.0.4</li>
<li><a href="e127ae8518"><code>e127ae8</code></a> Fix the <code>app.argument</code> option (<a href="https://github-redirect.dependabot.com/sindresorhus/open/issues/237">https://github.com/facebook/flipper/issues/237</a>)</li>
<li><a href="14daa34927"><code>14daa34</code></a> 8.0.3</li>
<li><a href="53faf7f459"><code>53faf7f</code></a> Hide PowerShell window on Windows (<a href="https://github-redirect.dependabot.com/sindresorhus/open/issues/235">https://github.com/facebook/flipper/issues/235</a>)</li>
<li><a href="b7a5729ff0"><code>b7a5729</code></a> 8.0.2</li>
<li><a href="26ee3d20cb"><code>26ee3d2</code></a> Memoize getting <code>mountPoint</code> (<a href="https://github-redirect.dependabot.com/sindresorhus/open/issues/232">https://github.com/facebook/flipper/issues/232</a>)</li>
<li><a href="bc83b32a12"><code>bc83b32</code></a> Meta tweaks (<a href="https://github-redirect.dependabot.com/sindresorhus/open/issues/233">https://github.com/facebook/flipper/issues/233</a>)</li>
<li><a href="180c2ab6c5"><code>180c2ab</code></a> 8.0.1</li>
<li><a href="59df90f1d8"><code>59df90f</code></a> Meta tweaks</li>
<li><a href="71777b169d"><code>71777b1</code></a> Fix Node.js 12 compatibility (<a href="https://github-redirect.dependabot.com/sindresorhus/open/issues/229">https://github.com/facebook/flipper/issues/229</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/sindresorhus/open/compare/v7.4.2...v8.0.4">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=7.4.2&new-version=8.0.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/2128

Reviewed By: passy

Differential Revision: D27396035

Pulled By: mweststrate

fbshipit-source-id: fefce4429f5a6378a640ff5992abd0fc7c45481f
2021-03-29 10:49:18 -07:00
Michel Weststrate
1b0d01ef38 Give clear messages on how to connect to physical devices
Summary:
Give clearer instructions when connection to (physical) device fails, rather than just logging errors.

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

Also removed throwing errors for known problems, as they can be remediated by users.

Reviewed By: passy

Differential Revision: D27360575

fbshipit-source-id: 311d27178d4d205dff725201c7c60f116f0eb319
2021-03-29 07:00:47 -07:00
Michel Weststrate
d5fbe9a5b9 Support physical device logging
Summary:
Changelog: Logs plugin now supports physical iOS devices

As reported in https://github.com/facebook/flipper/issues/262 and linked papercut.

This diff adds support for iOS device logs through idb. Since idb doesn't respect `--json` flag at the moment, we perform the parsing in Flipper itself.

Reviewed By: passy

Differential Revision: D27346262

fbshipit-source-id: 3b314716f48bb9a7fe709370303396a51893359c
2021-03-29 07:00:47 -07:00
Pritesh Nandgaonkar
2132163d20 Add native tree information in sidebar
Summary: This diff adds the native tree information in the side bar. It reuses the the Layout Plugins Inspector Sidebar UI.

Reviewed By: timur-valiev

Differential Revision: D27387714

fbshipit-source-id: 46941fdaaaf9fea78dab32f0f8bf7b3dec8286c6
2021-03-29 05:10:00 -07:00
Pascal Hartig
e4a814502a Mass bump deps
Summary:
Bumping everything that's just a patch version behind or safe-looking minor change.

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

Reviewed By: fabiomassimo

Differential Revision: D27367567

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

Reviewed By: fabiomassimo

Differential Revision: D27326687

fbshipit-source-id: 0c724c8e3a688aa9777945fcd46061284fd77969
2021-03-25 12:28:29 -07:00
dependabot[bot]
5f082d9267 Bump react-player from 1.15.3 to 2.9.0 in /desktop (#2015)
Summary:
Bumps [react-player](https://github.com/CookPete/react-player) from 1.15.3 to 2.9.0.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/cookpete/react-player/blob/master/CHANGELOG.md">react-player's changelog</a>.</em></p>
<blockquote>
<h4><a href="https://github.com/cookpete/react-player/compare/v2.8.2...v2.9.0">v2.9.0</a></h4>
<ul>
<li>Adds previewTabIndex property to light mode <a href="https://github-redirect.dependabot.com/cookpete/react-player/pull/1169"><code>[https://github.com/facebook/flipper/issues/1169](https://github.com/CookPete/react-player/issues/1169)</code></a></li>
<li>Update YouTube URL pattern (<a href="https://github-redirect.dependabot.com/CookPete/react-player/issues/1170">https://github.com/facebook/flipper/issues/1170</a>) <a href="https://github-redirect.dependabot.com/cookpete/react-player/pull/1171"><code>[https://github.com/facebook/flipper/issues/1171](https://github.com/CookPete/react-player/issues/1171)</code></a></li>
<li>Support Kaltura's HTML5 player <a href="https://github-redirect.dependabot.com/cookpete/react-player/pull/1082"><code>[https://github.com/facebook/flipper/issues/1082](https://github.com/CookPete/react-player/issues/1082)</code></a></li>
<li>Fix suspense check for nextjs <a href="https://github-redirect.dependabot.com/cookpete/react-player/issues/1165"><code>[https://github.com/facebook/flipper/issues/1165](https://github.com/CookPete/react-player/issues/1165)</code></a></li>
<li>Add kaltura player types <a href="b1e105342f"><code>b1e1053</code></a></li>
</ul>
<h4><a href="https://github.com/cookpete/react-player/compare/v2.8.1...v2.8.2">v2.8.2</a></h4>
<blockquote>
<p>26 January 2021</p>
</blockquote>
<ul>
<li>fix: ensure lazy typedefs mirror defaults <a href="https://github-redirect.dependabot.com/cookpete/react-player/pull/1153"><code>[https://github.com/facebook/flipper/issues/1153](https://github.com/CookPete/react-player/issues/1153)</code></a></li>
<li>fix: nullify srcObject instead of calling removeAttribute <a href="https://github-redirect.dependabot.com/cookpete/react-player/pull/1145"><code>[https://github.com/facebook/flipper/issues/1145](https://github.com/CookPete/react-player/issues/1145)</code></a></li>
<li>updated basic types with fallback <a href="https://github-redirect.dependabot.com/cookpete/react-player/pull/1144"><code>[https://github.com/facebook/flipper/issues/1144](https://github.com/CookPete/react-player/issues/1144)</code></a></li>
<li>Update wistia url pattern <a href="https://github-redirect.dependabot.com/cookpete/react-player/issues/1149"><code>[https://github.com/facebook/flipper/issues/1149](https://github.com/CookPete/react-player/issues/1149)</code></a></li>
<li>fix: ensure lazy typedefs mirror defaults (<a href="https://github-redirect.dependabot.com/CookPete/react-player/issues/1153">https://github.com/facebook/flipper/issues/1153</a>) <a href="https://github-redirect.dependabot.com/cookpete/react-player/issues/1146"><code>[https://github.com/facebook/flipper/issues/1146](https://github.com/CookPete/react-player/issues/1146)</code></a></li>
</ul>
<h4><a href="https://github.com/cookpete/react-player/compare/v2.8.0...v2.8.1">v2.8.1</a></h4>
<blockquote>
<p>20 January 2021</p>
</blockquote>
<ul>
<li>Fix clean script <a href="9a448b1315"><code>9a448b1</code></a></li>
</ul>
<h4><a href="https://github.com/cookpete/react-player/compare/v2.7.2...v2.8.0">v2.8.0</a></h4>
<blockquote>
<p>20 January 2021</p>
</blockquote>
<ul>
<li>fix: remove srcObject attribute if next uri is not a MediaStream <a href="https://github-redirect.dependabot.com/cookpete/react-player/pull/1121"><code>[https://github.com/facebook/flipper/issues/1121](https://github.com/CookPete/react-player/issues/1121)</code></a></li>
<li>added soundcloud playlist preview button for demo page so developers can know it also supports sc playlists <a href="https://github-redirect.dependabot.com/cookpete/react-player/pull/1113"><code>[https://github.com/facebook/flipper/issues/1113](https://github.com/CookPete/react-player/issues/1113)</code></a></li>
<li>Add missing FLV props to TS defs <a href="https://github-redirect.dependabot.com/cookpete/react-player/pull/1122"><code>[https://github.com/facebook/flipper/issues/1122](https://github.com/CookPete/react-player/issues/1122)</code></a></li>
<li>FEAT: customize fallback through props for lazy loading <a href="https://github-redirect.dependabot.com/cookpete/react-player/pull/1133"><code>[https://github.com/facebook/flipper/issues/1133](https://github.com/CookPete/react-player/issues/1133)</code></a></li>
<li>Add onClickPreview <a href="https://github-redirect.dependabot.com/cookpete/react-player/pull/1131"><code>[https://github.com/facebook/flipper/issues/1131](https://github.com/CookPete/react-player/issues/1131)</code></a></li>
<li>Added types for single players <a href="https://github-redirect.dependabot.com/cookpete/react-player/issues/953"><code>[https://github.com/facebook/flipper/issues/953](https://github.com/CookPete/react-player/issues/953)</code></a></li>
<li>Add custom control support to Wistia <a href="https://github-redirect.dependabot.com/cookpete/react-player/issues/1125"><code>[https://github.com/facebook/flipper/issues/1125](https://github.com/CookPete/react-player/issues/1125)</code></a></li>
<li>Fix facebook muted logic <a href="https://github-redirect.dependabot.com/cookpete/react-player/issues/1127"><code>[https://github.com/facebook/flipper/issues/1127](https://github.com/CookPete/react-player/issues/1127)</code></a></li>
<li>yarn upgrade <a href="0c7dd4a787"><code>0c7dd4a</code></a></li>
</ul>
<h4><a href="https://github.com/cookpete/react-player/compare/v2.7.1...v2.7.2">v2.7.2</a></h4>
<blockquote>
<p>16 December 2020</p>
</blockquote>
<ul>
<li>fix: add playIcon prop to TS declaration <a href="https://github-redirect.dependabot.com/cookpete/react-player/pull/1084"><code>[https://github.com/facebook/flipper/issues/1084](https://github.com/CookPete/react-player/issues/1084)</code></a></li>
</ul>
<h4><a href="https://github.com/cookpete/react-player/compare/v2.7.0...v2.7.1">v2.7.1</a></h4>
<blockquote>
<p>16 December 2020</p>
</blockquote>
<ul>
<li>Improve youtube playlist regex <a href="https://github-redirect.dependabot.com/cookpete/react-player/issues/1088"><code>[https://github.com/facebook/flipper/issues/1088](https://github.com/CookPete/react-player/issues/1088)</code></a></li>
</ul>

</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="5d38f882b2"><code>5d38f88</code></a> 2.9.0</li>
<li><a href="a41e3c791f"><code>a41e3c7</code></a> Fix suspense check for nextjs</li>
<li><a href="b1e105342f"><code>b1e1053</code></a> Add kaltura player types</li>
<li><a href="994820ee53"><code>994820e</code></a> Adds previewTabIndex property to light mode (<a href="https://github-redirect.dependabot.com/CookPete/react-player/issues/1169">https://github.com/facebook/flipper/issues/1169</a>)</li>
<li><a href="53e4aede5d"><code>53e4aed</code></a> Update YouTube URL pattern (<a href="https://github-redirect.dependabot.com/CookPete/react-player/issues/1170">https://github.com/facebook/flipper/issues/1170</a>) (<a href="https://github-redirect.dependabot.com/CookPete/react-player/issues/1171">https://github.com/facebook/flipper/issues/1171</a>)</li>
<li><a href="264cb10767"><code>264cb10</code></a> Support Kaltura's HTML5 player (<a href="https://github-redirect.dependabot.com/CookPete/react-player/issues/1082">https://github.com/facebook/flipper/issues/1082</a>)</li>
<li><a href="e1e99a1fee"><code>e1e99a1</code></a> 2.8.2</li>
<li><a href="61a27023ee"><code>61a2702</code></a> Update wistia url pattern</li>
<li><a href="0cc1b39b4e"><code>0cc1b39</code></a> fix: ensure lazy typedefs mirror defaults (<a href="https://github-redirect.dependabot.com/CookPete/react-player/issues/1153">https://github.com/facebook/flipper/issues/1153</a>)</li>
<li><a href="22bf8586a8"><code>22bf858</code></a> fix: nullify srcObject instead of calling removeAttribute (<a href="https://github-redirect.dependabot.com/CookPete/react-player/issues/1145">https://github.com/facebook/flipper/issues/1145</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/CookPete/react-player/compare/v1.15.3...v2.9.0">compare view</a></li>
</ul>
</details>
<br />

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

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

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

 ---

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

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

</details>

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

Reviewed By: passy

Differential Revision: D27326596

Pulled By: mweststrate

fbshipit-source-id: 6a08e7aaab483a65749cc286db9751f51782b04c
2021-03-25 11:48:05 -07:00
Michel Weststrate
740fbe57fd Fix release build issue
Summary:
D24358369 (8a31e984b3) introduced a dependency outside the `sonar/` dir, which probably should not have happened. D27324576 finally broke this, by adding a dep to QPL core, which will never be installed in our CI.

This diff unbreaks that rewriting the require to a locally provided version of crc32, however this is a stop gap, and it would be great if someone would look into a sustainable solution :)

Reviewed By: passy

Differential Revision: D27327272

fbshipit-source-id: 70cdf21c7ecf081ef804d6338ec11e498e3cb7cf
2021-03-25 08:42:08 -07:00
Michel Weststrate
ba8232f30d Move DetailSidebar to flipper-plugin
Summary: This moves `<DetailSidebar>` component to `flipper-plugin` and documents it. No semantic changes.

Reviewed By: passy

Differential Revision: D27234575

fbshipit-source-id: 74640602d718f84ad999f5dac0420089796ed7fb
2021-03-23 12:56:17 -07:00
Michel Weststrate
dd1f2fdeaa Move Sidebar to flipper-plugin
Summary:
This diff deprecates the Sidebar concept, and copies the implementation to Sandy (tried moving first, but since existing plugins use the Sidebar in non-flex (Layout) contexts, that the layout of several plugins, so rather deprecated the old implementation.

Instead of exposing `Sidebar` explicitly, one can now put the `resizable` flag on a Layout.Top/Left/Bottom/Right, which makes building layouts even simpler, see demo.

The gutter logic was moved to the new implementation, since that was only used by the Sandy chrome anyway.

Changelog: Layout.Top / Left / Bottom / Right now support a resizable option

Reviewed By: passy

Differential Revision: D27233899

fbshipit-source-id: fbbdeb2ebf30d49d0837705a00ea86bb07fc2ba2
2021-03-23 12:56:17 -07:00
dependabot[bot]
256b025630 Bump rsocket-flowable from 0.0.23 to 0.0.25 in /desktop (#2069)
Summary:
Bumps [rsocket-flowable](https://github.com/rsocket/rsocket-js) from 0.0.23 to 0.0.25.
<details>
<summary>Commits</summary>
<ul>
<li><a href="a85a4db041"><code>a85a4db</code></a> v0.0.25</li>
<li><a href="b279d67569"><code>b279d67</code></a> ammend versions</li>
<li><a href="1e15f3c975"><code>1e15f3c</code></a> v0.0.24</li>
<li><a href="a4b7a93dc0"><code>a4b7a93</code></a> provides a temporary fix for <a href="https://github.com/rsocket/rsocket-js/issues/110">https://github.com/facebook/flipper/issues/110</a></li>
<li><a href="c271a37128"><code>c271a37</code></a> exports missing TlsClient</li>
<li><a href="844b10b35b"><code>844b10b</code></a> updates docs</li>
<li><a href="39a86dfa5f"><code>39a86df</code></a> updates docs</li>
<li><a href="97e1e9f922"><code>97e1e9f</code></a> updates versions</li>
<li><a href="90e70580d1"><code>90e7058</code></a> fixes RSocketMachine leak on the server-side (<a href="https://github.com/rsocket/rsocket-js/issues/120">https://github.com/facebook/flipper/issues/120</a>)</li>
<li><a href="f665cd1038"><code>f665cd1</code></a> adds METADATA_PUSH support (<a href="https://github.com/rsocket/rsocket-js/issues/119">https://github.com/facebook/flipper/issues/119</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/rsocket/rsocket-js/compare/v0.0.23...v0.0.25">compare view</a></li>
</ul>
</details>
<br />

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

Reviewed By: passy

Differential Revision: D27230118

Pulled By: priteshrnandgaonkar

fbshipit-source-id: 814a094dabdffae71b26abd8b8ef0d6691ef94ee
2021-03-23 10:01:23 -07:00
Pascal Hartig
d19eeb2a53 Demote android emulator "errors"
Summary:
Really not errors at all. I'm getting warnings here about my Vulkan
support not working. That shouldn't be logged as a Flipper error.

Reviewed By: mweststrate

Differential Revision: D27260607

fbshipit-source-id: 6f9d2ab0da3fe37bb5c8c185ad627ef0d581e5d5
2021-03-23 09:52:44 -07:00
dependabot[bot]
6589aee6f1 Bump @emotion/styled from 11.0.0 to 11.1.5 in /desktop (#2067)
Summary:
Bumps [emotion/styled](https://github.com/emotion-js/emotion) from 11.0.0 to 11.1.5.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/emotion-js/emotion/releases"><code>@​emotion/styled's releases</code></a>.</em></p>
<blockquote>
<h2>emotion/styled@11.1.5</h2>
<h3>Patch Changes</h3>
<ul>
<li>
<p><a href="d029350801"><code>d0293508</code></a> <a href="https://github.com/emotion-js/emotion/pull/2240">#2240</a> Thanks <a href="https://github.com/wolszczak96"><code>@​wolszczak96</code></a>! - <code>as</code> prop has been removed from TypeScript declarations for composite components. This prop has not actually been handled by default by <code>styled</code> for those components - to make <code>styled</code> handle it you need to provide a custom <code>shouldForwardProp</code> that doesn't forward the <code>as</code> prop.</p>
</li>
<li>
<p>Updated dependencies [<a href="f3c2e81d10"><code>f3c2e81d</code></a>]:</p>
<ul>
<li>emotion/is-prop-valid@1.1.0</li>
</ul>
</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="2fe9e0e945"><code>2fe9e0e</code></a> Version Packages (<a href="https://github.com/emotion-js/emotion/issues/2207">#2207</a>)</li>
<li><a href="d029350801"><code>d029350</code></a> Removed type for <code>as</code> prop for composite components (<a href="https://github.com/emotion-js/emotion/issues/2240">#2240</a>)</li>
<li><a href="f3c2e81d10"><code>f3c2e81</code></a> Added <code>option</code> &amp; <code>fallback</code> AMP props to the list of valid props (<a href="https://github.com/emotion-js/emotion/issues/2232">#2232</a>)</li>
<li><a href="b62647e8f5"><code>b62647e</code></a> Fix regex to comply with no-useless-escape ESLint rule</li>
<li><a href="400c6f7290"><code>400c6f7</code></a> Update slack link</li>
<li><a href="00cb6141a7"><code>00cb614</code></a> Update example describing how one can provide a library theme type using inte...</li>
<li><a href="4d2e732e9f"><code>4d2e732</code></a> Added export for <code>SerializedStyles</code> Flow type from <code>emotion/react</code> (<a href="https://github.com/emotion-js/emotion/issues/2206">#2206</a>)</li>
<li><a href="a89d4257b0"><code>a89d425</code></a> Lift Emotion 11 codemod instructions to the earlier spot in the docs (<a href="https://github.com/emotion-js/emotion/issues/2194">#2194</a>)</li>
<li><a href="a1e44aa56b"><code>a1e44aa</code></a> Version Packages (<a href="https://github.com/emotion-js/emotion/issues/2187">#2187</a>)</li>
<li><a href="71ca9be336"><code>71ca9be</code></a> Fix TypeScript support for custom components with non-standard declarations (...</li>
<li>Additional commits viewable in <a href="https://github.com/emotion-js/emotion/compare/emotion/styled@11.0.0...@emotion/styled@11.1.5">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@emotion/styled&package-manager=npm_and_yarn&previous-version=11.0.0&new-version=11.1.5)](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/2067

Reviewed By: passy

Differential Revision: D27230129

Pulled By: priteshrnandgaonkar

fbshipit-source-id: fcd95fb0db6b160df165189b6841ce5a42694459
2021-03-23 09:16:58 -07:00
Michel Weststrate
ea0cc7f15b Update to Immer 9 for better type inference
Summary: Per title

Reviewed By: passy

Differential Revision: D27202660

fbshipit-source-id: 074c44275a93c3fb35d2f491b51d82aa9792dd70
2021-03-22 06:25:04 -07:00
Pascal Hartig
2ae7d13a64 Strip application path from stack traces
Summary:
Stacktraces right now always contain the `/home/$USER/.cache/flipper-launcher/v1.2.3/...` (or equivalent)
which makes deduping and reading harder. This strips the paths.

Reviewed By: mweststrate

Differential Revision: D27130251

fbshipit-source-id: c0e8d5eb1575c6269d49a6aee0e8a5e93996d223
2021-03-19 07:31:34 -07:00
Rubén Norte
28480ac891 Format Metro log messages using printf format
Summary:
In browsers and Node.js, console methods accept a printf format string as a first argument:

```
console.log('Hello %s', 'world');
//> Hello world
```

This is not currently supported in Flipper, which just renders the log messages as they come from Metro (as an array of values, most often strings).

This adds support for it in Flipper by using the `util.format` function from Node.js (which is the same method used by the console under the hood).

It is implemented in Flipper and not in Metro so we have the flexibility to format the values as we want in the future (e.g.: numbers with a specific color).

Reviewed By: yungsters, mweststrate

Differential Revision: D27154864

fbshipit-source-id: e807b67900ddaf3a7e8cd86795589bed088beecd
2021-03-19 04:01:56 -07:00
Anton Nikolaev
bb827f14ea Normalize import path
Summary: Just a small fix to normalise import path to make typescript happy when this code is located in "flipper" folder (e.g. after installing "flipper" package as dependency) rather than "app" folder.

Reviewed By: jknoxville

Differential Revision: D27156167

fbshipit-source-id: 24495d6b1a756b20fadf62eec18bfe6665eb78e2
2021-03-18 08:17:12 -07:00