Commit Graph

5731 Commits

Author SHA1 Message Date
Lorenzo Blasa
8e2a839f9d Clear event handler on deallocation
Summary:
It's just bad that we give a naked pointer of the connection manager to other instances. If the connection manager gets deallocated, the instances keeping a pointer to it are doomed to crash.

This change creates a wrapper on top of the pointer that can be freely shared. On deallocation, the shared wrapper gets invalidated.

Reviewed By: timur-valiev

Differential Revision: D30398466

fbshipit-source-id: 8f228e7fbaebc0ea28921409de071b58bbb69f1e
2021-08-19 04:42:45 -07:00
Michel Weststrate
ebe5e7f9ff Make CertificateProvider side effect free in test (#2706)
Summary:
Pull Request resolved: https://github.com/facebook/flipper/pull/2706

Creating a CertificateProvider in test had the side effect of generating certificate files, which fails in windows CI. This change makes sure the files aren't generated in test. See https://github.com/facebook/flipper/runs/3366318523.

Since it is not possible to start the flipper server 'physically' without writing file (for the secure server), figured to remove the test entirely, since there is high impact but little risk captured by it; if the server doesn't start, *any* manual / exploratory test will fail.

Reviewed By: lblasa

Differential Revision: D30423173

fbshipit-source-id: e411cc61df04120a7132983e9f8d3d140e4ca048
2021-08-19 04:08:18 -07:00
Ananya Arun
648e281377 Revert D30393320 and restructure fb only and public versions (#2703)
Summary:
Pull Request resolved: https://github.com/facebook/flipper/pull/2703

- This diff reverts the following diff - D30393320 (75c4f20c8a)
- Moved the tests to 'fb/__tests__' . Previously they were not under fb which was causing the github version to break
- Also moved all the troubleshooting guide components into the fb/ directory under appinspect

Reviewed By: passy

Differential Revision: D30393785

fbshipit-source-id: caf3680c542eb9ca3c6f817c5a69d533245cf304
2021-08-19 02:31:24 -07:00
Flipper Bot
39145f46a5 Flipper Snapshot Bump: v0.103.1-SNAPSHOT
Summary: Releasing snapshot version 0.103.1-SNAPSHOT

Reviewed By: passy

Differential Revision: D30400661

fbshipit-source-id: 520af0b91d9733f43200334196502d84871eb95f
2021-08-18 15:51:47 -07:00
Flipper Bot
f4631eecc1 Flipper Release: v0.103.0
Summary: Releasing version 0.103.0

Reviewed By: passy

Differential Revision: D30400660

fbshipit-source-id: e5d3e2e59c977e1e5a32945fffaba243c703823e
2021-08-18 15:51:47 -07:00
Pascal Hartig
393e47641b Asyncify complex promise function
Summary:
Linter flagged this as it's using promises inside
promises. This is a bit easier to read.

Reviewed By: timur-valiev

Differential Revision: D30402783

fbshipit-source-id: aee7dedc4468538bceec4fc64379f8b2d89a660c
2021-08-18 15:49:00 -07:00
dependabot[bot]
45ce538c8d Bump @babel/eslint-parser from 7.14.9 to 7.15.0 in /desktop (#2699)
Summary:
Bumps [babel/eslint-parser](https://github.com/babel/babel/tree/HEAD/eslint/babel-eslint-parser) from 7.14.9 to 7.15.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/babel/babel/releases"><code>@​babel/eslint-parser</code>'s releases</a>.</em></p>
<blockquote>
<h2>v7.15.0 (2021-08-04)</h2>
<p>Thanks <a href="https://github.com/a-tarasyuk"><code>@​a-tarasyuk</code></a> and <a href="https://github.com/gausie"><code>@​gausie</code></a> for your first PRs!</p>
<h4>👓 Spec Compliance</h4>
<ul>
<li><code>babel-parser</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13523">#13523</a> feat(ts): raise error for abstract property with initializer (<a href="https://github.com/fedeci"><code>@​fedeci</code></a>)</li>
</ul>
</li>
</ul>
<h4>🚀 New Feature</h4>
<ul>
<li><code>babel-parser</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13229">#13229</a> Add <code>attachComment</code> parser option to disable comment attachment (<a href="https://github.com/JLHwung"><code>@​JLHwung</code></a>)</li>
</ul>
</li>
<li><code>babel-standalone</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13476">#13476</a> standalone: update <code>preset-stage-*</code> (<a href="https://github.com/sosukesuzuki"><code>@​sosukesuzuki</code></a>)</li>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13555">#13555</a> feat: support hack pipeline in <code>babel/standalone</code> (<a href="https://github.com/JLHwung"><code>@​JLHwung</code></a>)</li>
</ul>
</li>
<li><code>babel-parser</code>, <code>babel-preset-env</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13387">#13387</a> Enable top-level <code>await</code> parsing by default (<a href="https://github.com/nicolo-ribaudo"><code>@​nicolo-ribaudo</code></a>)</li>
</ul>
</li>
<li><code>babel-plugin-transform-typescript</code>, <code>babel-preset-typescript</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13324">#13324</a> Support TypeScript const enums (<a href="https://github.com/nicolo-ribaudo"><code>@​nicolo-ribaudo</code></a>)</li>
</ul>
</li>
<li><code>babel-plugin-transform-typescript</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13528">#13528</a> feat(typescript): implement namespace alias (<a href="https://github.com/colinaaa"><code>@​colinaaa</code></a>)</li>
</ul>
</li>
<li><code>babel-core</code>, <code>babel-helper-create-class-features-plugin</code>, <code>babel-helper-module-transforms</code>, <code>babel-plugin-transform-modules-commonjs</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13290">#13290</a> feat: add <code>noIncompleteNsImportDetection</code> assumption to <code>plugin-transform-modules-commonjs</code> (<a href="https://github.com/fedeci"><code>@​fedeci</code></a>)</li>
</ul>
</li>
<li><code>babel-plugin-transform-react-display-name</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13501">#13501</a> Add display name after create context (<a href="https://github.com/JLHwung"><code>@​JLHwung</code></a>)</li>
</ul>
</li>
<li><code>babel-parser</code>, <code>babel-plugin-proposal-pipeline-operator</code>, <code>babel-plugin-syntax-pipeline-operator</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13416">#13416</a> Hack-pipe proposal with <code>%</code> topic token (<a href="https://github.com/js-choi"><code>@​js-choi</code></a>)</li>
</ul>
</li>
<li><code>babel-generator</code>, <code>babel-parser</code>, <code>babel-plugin-proposal-pipeline-operator</code>, <code>babel-plugin-syntax-pipeline-operator</code>, <code>babel-traverse</code>, <code>babel-types</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13191">#13191</a> Add support for the &quot;Hack&quot; pipeline proposal (<a href="https://github.com/js-choi"><code>@​js-choi</code></a>)</li>
</ul>
</li>
<li><code>babel-plugin-transform-runtime</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13398">#13398</a> Expose <code>babel/eslint-parser/experimental-worker</code> (<a href="https://github.com/nicolo-ribaudo"><code>@​nicolo-ribaudo</code></a>)</li>
</ul>
</li>
<li><code>babel-compat-data</code>, <code>babel-helper-compilation-targets</code>, <code>babel-preset-env</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13448">#13448</a> Add support for rhino as a compilation target (<a href="https://github.com/gausie"><code>@​gausie</code></a>)</li>
</ul>
</li>
<li><code>babel-compat-data</code>, <code>babel-parser</code>, <code>babel-preset-env</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13554">#13554</a> Enable ergonomic brand checks (<code>#priv in</code>) by default (<a href="https://github.com/nicolo-ribaudo"><code>@​nicolo-ribaudo</code></a>)</li>
</ul>
</li>
</ul>
<h4>🐛 Bug Fix</h4>
<ul>
<li><code>babel-parser</code>, <code>babel-plugin-transform-typescript</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13513">#13513</a> [ts] support optional chain call with generic (<a href="https://github.com/lala7573"><code>@​lala7573</code></a>)</li>
</ul>
</li>
<li><code>babel-plugin-transform-typescript</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13605">#13605</a> Handle typescript function overloading in a default export (<a href="https://github.com/tony-go"><code>@​tony-go</code></a>)</li>
</ul>
</li>
<li><code>babel-parser</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13536">#13536</a> Fix <code>%==</code> parsing in hack pipes (<a href="https://github.com/nicolo-ribaudo"><code>@​nicolo-ribaudo</code></a>)</li>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13426">#13426</a> parser: Fix Hack/smart-pipe error positions (<a href="https://github.com/js-choi"><code>@​js-choi</code></a>)</li>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13622">#13622</a> fix(ts): raise error for <code>export default interface {}</code> (<a href="https://github.com/a-tarasyuk"><code>@​a-tarasyuk</code></a>)</li>
</ul>
</li>
</ul>
<h4>📝 Documentation</h4>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13607">#13607</a> chore(doc): add jest specific pckg command (<a href="https://github.com/tony-go"><code>@​tony-go</code></a>)</li>
</ul>
<h4>Committers: 10</h4>
<ul>
<li>Federico Ciardi (<a href="https://github.com/fedeci"><code>@​fedeci</code></a>)</li>
</ul>

</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/babel/babel/blob/main/CHANGELOG.md"><code>@​babel/eslint-parser</code>'s changelog</a>.</em></p>
<blockquote>
<h2>v7.15.0 (2021-08-04)</h2>
<h4>👓 Spec Compliance</h4>
<ul>
<li><code>babel-parser</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13523">#13523</a> feat(ts): raise error for abstract property with initializer (<a href="https://github.com/fedeci"><code>@​fedeci</code></a>)</li>
</ul>
</li>
</ul>
<h4>🚀 New Feature</h4>
<ul>
<li><code>babel-parser</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13229">#13229</a> Add <code>attachComment</code> parser option to disable comment attachment (<a href="https://github.com/JLHwung"><code>@​JLHwung</code></a>)</li>
</ul>
</li>
<li><code>babel-standalone</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13476">#13476</a> standalone: update <code>preset-stage-*</code> (<a href="https://github.com/sosukesuzuki"><code>@​sosukesuzuki</code></a>)</li>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13555">#13555</a> feat: support hack pipeline in <code>babel/standalone</code> (<a href="https://github.com/JLHwung"><code>@​JLHwung</code></a>)</li>
</ul>
</li>
<li><code>babel-parser</code>, <code>babel-preset-env</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13387">#13387</a> Enable top-level <code>await</code> parsing by default (<a href="https://github.com/nicolo-ribaudo"><code>@​nicolo-ribaudo</code></a>)</li>
</ul>
</li>
<li><code>babel-plugin-transform-typescript</code>, <code>babel-preset-typescript</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13324">#13324</a> Support TypeScript const enums (<a href="https://github.com/nicolo-ribaudo"><code>@​nicolo-ribaudo</code></a>)</li>
</ul>
</li>
<li><code>babel-plugin-transform-typescript</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13528">#13528</a> feat(typescript): implement namespace alias (<a href="https://github.com/colinaaa"><code>@​colinaaa</code></a>)</li>
</ul>
</li>
<li><code>babel-core</code>, <code>babel-helper-create-class-features-plugin</code>, <code>babel-helper-module-transforms</code>, <code>babel-plugin-transform-modules-commonjs</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13290">#13290</a> feat: add <code>noIncompleteNsImportDetection</code> assumption to <code>plugin-transform-modules-commonjs</code> (<a href="https://github.com/fedeci"><code>@​fedeci</code></a>)</li>
</ul>
</li>
<li><code>babel-plugin-transform-react-display-name</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13501">#13501</a> Add display name after create context (<a href="https://github.com/JLHwung"><code>@​JLHwung</code></a>)</li>
</ul>
</li>
<li><code>babel-parser</code>, <code>babel-plugin-proposal-pipeline-operator</code>, <code>babel-plugin-syntax-pipeline-operator</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13416">#13416</a> Hack-pipe proposal with <code>%</code> topic token (<a href="https://github.com/js-choi"><code>@​js-choi</code></a>)</li>
</ul>
</li>
<li><code>babel-generator</code>, <code>babel-parser</code>, <code>babel-plugin-proposal-pipeline-operator</code>, <code>babel-plugin-syntax-pipeline-operator</code>, <code>babel-traverse</code>, <code>babel-types</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13191">#13191</a> Add support for the &quot;Hack&quot; pipeline proposal (<a href="https://github.com/js-choi"><code>@​js-choi</code></a>)</li>
</ul>
</li>
<li><code>babel-plugin-transform-runtime</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13398">#13398</a> Expose <code>babel/eslint-parser/experimental-worker</code> (<a href="https://github.com/nicolo-ribaudo"><code>@​nicolo-ribaudo</code></a>)</li>
</ul>
</li>
<li><code>babel-compat-data</code>, <code>babel-helper-compilation-targets</code>, <code>babel-preset-env</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13448">#13448</a> Add support for rhino as a compilation target (<a href="https://github.com/gausie"><code>@​gausie</code></a>)</li>
</ul>
</li>
<li><code>babel-compat-data</code>, <code>babel-parser</code>, <code>babel-preset-env</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13554">#13554</a> Enable ergonomic brand checks (<code>#priv in</code>) by default (<a href="https://github.com/nicolo-ribaudo"><code>@​nicolo-ribaudo</code></a>)</li>
</ul>
</li>
</ul>
<h4>🐛 Bug Fix</h4>
<ul>
<li><code>babel-parser</code>, <code>babel-plugin-transform-typescript</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13513">#13513</a> [ts] support optional chain call with generic (<a href="https://github.com/lala7573"><code>@​lala7573</code></a>)</li>
</ul>
</li>
<li><code>babel-plugin-transform-typescript</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13605">#13605</a> Handle typescript function overloading in a default export (<a href="https://github.com/tony-go"><code>@​tony-go</code></a>)</li>
</ul>
</li>
<li><code>babel-parser</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13536">#13536</a> Fix <code>%==</code> parsing in hack pipes (<a href="https://github.com/nicolo-ribaudo"><code>@​nicolo-ribaudo</code></a>)</li>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13426">#13426</a> parser: Fix Hack/smart-pipe error positions (<a href="https://github.com/js-choi"><code>@​js-choi</code></a>)</li>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13622">#13622</a> fix(ts): raise error for <code>export default interface {}</code> (<a href="https://github.com/a-tarasyuk"><code>@​a-tarasyuk</code></a>)</li>
</ul>
</li>
</ul>
<h4>📝 Documentation</h4>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13607">#13607</a> chore(doc): add jest specific pckg command (<a href="https://github.com/tony-go"><code>@​tony-go</code></a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="6912f968a6"><code>6912f96</code></a> v7.15.0</li>
<li><a href="d5b0d9e33d"><code>d5b0d9e</code></a> Add <code>attachComment</code> parser option to disable comment attachment (<a href="https://github.com/babel/babel/tree/HEAD/eslint/babel-eslint-parser/issues/13229">#13229</a>)</li>
<li><a href="885e1e02f5"><code>885e1e0</code></a> Expose <code>babel/eslint-parser/experimental-worker</code> (<a href="https://github.com/babel/babel/tree/HEAD/eslint/babel-eslint-parser/issues/13398">#13398</a>)</li>
<li>See full diff in <a href="https://github.com/babel/babel/commits/v7.15.0/eslint/babel-eslint-parser">compare view</a></li>
</ul>
</details>
<br />

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

Reviewed By: timur-valiev

Differential Revision: D30372352

Pulled By: passy

fbshipit-source-id: 9f259b7eb784954349a224edd0b75a59934d2553
2021-08-18 04:37:54 -07:00
dependabot[bot]
68670e7698 Bump @babel/plugin-transform-modules-commonjs from 7.14.5 to 7.15.0 in /desktop (#2698)
Summary:
Bumps [babel/plugin-transform-modules-commonjs](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-modules-commonjs) from 7.14.5 to 7.15.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/babel/babel/releases"><code>@​babel/plugin-transform-modules-commonjs</code>'s releases</a>.</em></p>
<blockquote>
<h2>v7.15.0 (2021-08-04)</h2>
<p>Thanks <a href="https://github.com/a-tarasyuk"><code>@​a-tarasyuk</code></a> and <a href="https://github.com/gausie"><code>@​gausie</code></a> for your first PRs!</p>
<h4>👓 Spec Compliance</h4>
<ul>
<li><code>babel-parser</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13523">#13523</a> feat(ts): raise error for abstract property with initializer (<a href="https://github.com/fedeci"><code>@​fedeci</code></a>)</li>
</ul>
</li>
</ul>
<h4>🚀 New Feature</h4>
<ul>
<li><code>babel-parser</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13229">#13229</a> Add <code>attachComment</code> parser option to disable comment attachment (<a href="https://github.com/JLHwung"><code>@​JLHwung</code></a>)</li>
</ul>
</li>
<li><code>babel-standalone</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13476">#13476</a> standalone: update <code>preset-stage-*</code> (<a href="https://github.com/sosukesuzuki"><code>@​sosukesuzuki</code></a>)</li>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13555">#13555</a> feat: support hack pipeline in <code>babel/standalone</code> (<a href="https://github.com/JLHwung"><code>@​JLHwung</code></a>)</li>
</ul>
</li>
<li><code>babel-parser</code>, <code>babel-preset-env</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13387">#13387</a> Enable top-level <code>await</code> parsing by default (<a href="https://github.com/nicolo-ribaudo"><code>@​nicolo-ribaudo</code></a>)</li>
</ul>
</li>
<li><code>babel-plugin-transform-typescript</code>, <code>babel-preset-typescript</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13324">#13324</a> Support TypeScript const enums (<a href="https://github.com/nicolo-ribaudo"><code>@​nicolo-ribaudo</code></a>)</li>
</ul>
</li>
<li><code>babel-plugin-transform-typescript</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13528">#13528</a> feat(typescript): implement namespace alias (<a href="https://github.com/colinaaa"><code>@​colinaaa</code></a>)</li>
</ul>
</li>
<li><code>babel-core</code>, <code>babel-helper-create-class-features-plugin</code>, <code>babel-helper-module-transforms</code>, <code>babel-plugin-transform-modules-commonjs</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13290">#13290</a> feat: add <code>noIncompleteNsImportDetection</code> assumption to <code>plugin-transform-modules-commonjs</code> (<a href="https://github.com/fedeci"><code>@​fedeci</code></a>)</li>
</ul>
</li>
<li><code>babel-plugin-transform-react-display-name</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13501">#13501</a> Add display name after create context (<a href="https://github.com/JLHwung"><code>@​JLHwung</code></a>)</li>
</ul>
</li>
<li><code>babel-parser</code>, <code>babel-plugin-proposal-pipeline-operator</code>, <code>babel-plugin-syntax-pipeline-operator</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13416">#13416</a> Hack-pipe proposal with <code>%</code> topic token (<a href="https://github.com/js-choi"><code>@​js-choi</code></a>)</li>
</ul>
</li>
<li><code>babel-generator</code>, <code>babel-parser</code>, <code>babel-plugin-proposal-pipeline-operator</code>, <code>babel-plugin-syntax-pipeline-operator</code>, <code>babel-traverse</code>, <code>babel-types</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13191">#13191</a> Add support for the &quot;Hack&quot; pipeline proposal (<a href="https://github.com/js-choi"><code>@​js-choi</code></a>)</li>
</ul>
</li>
<li><code>babel-plugin-transform-runtime</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13398">#13398</a> Expose <code>babel/eslint-parser/experimental-worker</code> (<a href="https://github.com/nicolo-ribaudo"><code>@​nicolo-ribaudo</code></a>)</li>
</ul>
</li>
<li><code>babel-compat-data</code>, <code>babel-helper-compilation-targets</code>, <code>babel-preset-env</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13448">#13448</a> Add support for rhino as a compilation target (<a href="https://github.com/gausie"><code>@​gausie</code></a>)</li>
</ul>
</li>
<li><code>babel-compat-data</code>, <code>babel-parser</code>, <code>babel-preset-env</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13554">#13554</a> Enable ergonomic brand checks (<code>#priv in</code>) by default (<a href="https://github.com/nicolo-ribaudo"><code>@​nicolo-ribaudo</code></a>)</li>
</ul>
</li>
</ul>
<h4>🐛 Bug Fix</h4>
<ul>
<li><code>babel-parser</code>, <code>babel-plugin-transform-typescript</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13513">#13513</a> [ts] support optional chain call with generic (<a href="https://github.com/lala7573"><code>@​lala7573</code></a>)</li>
</ul>
</li>
<li><code>babel-plugin-transform-typescript</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13605">#13605</a> Handle typescript function overloading in a default export (<a href="https://github.com/tony-go"><code>@​tony-go</code></a>)</li>
</ul>
</li>
<li><code>babel-parser</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13536">#13536</a> Fix <code>%==</code> parsing in hack pipes (<a href="https://github.com/nicolo-ribaudo"><code>@​nicolo-ribaudo</code></a>)</li>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13426">#13426</a> parser: Fix Hack/smart-pipe error positions (<a href="https://github.com/js-choi"><code>@​js-choi</code></a>)</li>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13622">#13622</a> fix(ts): raise error for <code>export default interface {}</code> (<a href="https://github.com/a-tarasyuk"><code>@​a-tarasyuk</code></a>)</li>
</ul>
</li>
</ul>
<h4>📝 Documentation</h4>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13607">#13607</a> chore(doc): add jest specific pckg command (<a href="https://github.com/tony-go"><code>@​tony-go</code></a>)</li>
</ul>
<h4>Committers: 10</h4>
<ul>
<li>Federico Ciardi (<a href="https://github.com/fedeci"><code>@​fedeci</code></a>)</li>
</ul>

</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/babel/babel/blob/main/CHANGELOG.md"><code>@​babel/plugin-transform-modules-commonjs</code>'s changelog</a>.</em></p>
<blockquote>
<h2>v7.15.0 (2021-08-04)</h2>
<h4>👓 Spec Compliance</h4>
<ul>
<li><code>babel-parser</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13523">#13523</a> feat(ts): raise error for abstract property with initializer (<a href="https://github.com/fedeci"><code>@​fedeci</code></a>)</li>
</ul>
</li>
</ul>
<h4>🚀 New Feature</h4>
<ul>
<li><code>babel-parser</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13229">#13229</a> Add <code>attachComment</code> parser option to disable comment attachment (<a href="https://github.com/JLHwung"><code>@​JLHwung</code></a>)</li>
</ul>
</li>
<li><code>babel-standalone</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13476">#13476</a> standalone: update <code>preset-stage-*</code> (<a href="https://github.com/sosukesuzuki"><code>@​sosukesuzuki</code></a>)</li>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13555">#13555</a> feat: support hack pipeline in <code>babel/standalone</code> (<a href="https://github.com/JLHwung"><code>@​JLHwung</code></a>)</li>
</ul>
</li>
<li><code>babel-parser</code>, <code>babel-preset-env</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13387">#13387</a> Enable top-level <code>await</code> parsing by default (<a href="https://github.com/nicolo-ribaudo"><code>@​nicolo-ribaudo</code></a>)</li>
</ul>
</li>
<li><code>babel-plugin-transform-typescript</code>, <code>babel-preset-typescript</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13324">#13324</a> Support TypeScript const enums (<a href="https://github.com/nicolo-ribaudo"><code>@​nicolo-ribaudo</code></a>)</li>
</ul>
</li>
<li><code>babel-plugin-transform-typescript</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13528">#13528</a> feat(typescript): implement namespace alias (<a href="https://github.com/colinaaa"><code>@​colinaaa</code></a>)</li>
</ul>
</li>
<li><code>babel-core</code>, <code>babel-helper-create-class-features-plugin</code>, <code>babel-helper-module-transforms</code>, <code>babel-plugin-transform-modules-commonjs</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13290">#13290</a> feat: add <code>noIncompleteNsImportDetection</code> assumption to <code>plugin-transform-modules-commonjs</code> (<a href="https://github.com/fedeci"><code>@​fedeci</code></a>)</li>
</ul>
</li>
<li><code>babel-plugin-transform-react-display-name</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13501">#13501</a> Add display name after create context (<a href="https://github.com/JLHwung"><code>@​JLHwung</code></a>)</li>
</ul>
</li>
<li><code>babel-parser</code>, <code>babel-plugin-proposal-pipeline-operator</code>, <code>babel-plugin-syntax-pipeline-operator</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13416">#13416</a> Hack-pipe proposal with <code>%</code> topic token (<a href="https://github.com/js-choi"><code>@​js-choi</code></a>)</li>
</ul>
</li>
<li><code>babel-generator</code>, <code>babel-parser</code>, <code>babel-plugin-proposal-pipeline-operator</code>, <code>babel-plugin-syntax-pipeline-operator</code>, <code>babel-traverse</code>, <code>babel-types</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13191">#13191</a> Add support for the &quot;Hack&quot; pipeline proposal (<a href="https://github.com/js-choi"><code>@​js-choi</code></a>)</li>
</ul>
</li>
<li><code>babel-plugin-transform-runtime</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13398">#13398</a> Expose <code>babel/eslint-parser/experimental-worker</code> (<a href="https://github.com/nicolo-ribaudo"><code>@​nicolo-ribaudo</code></a>)</li>
</ul>
</li>
<li><code>babel-compat-data</code>, <code>babel-helper-compilation-targets</code>, <code>babel-preset-env</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13448">#13448</a> Add support for rhino as a compilation target (<a href="https://github.com/gausie"><code>@​gausie</code></a>)</li>
</ul>
</li>
<li><code>babel-compat-data</code>, <code>babel-parser</code>, <code>babel-preset-env</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13554">#13554</a> Enable ergonomic brand checks (<code>#priv in</code>) by default (<a href="https://github.com/nicolo-ribaudo"><code>@​nicolo-ribaudo</code></a>)</li>
</ul>
</li>
</ul>
<h4>🐛 Bug Fix</h4>
<ul>
<li><code>babel-parser</code>, <code>babel-plugin-transform-typescript</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13513">#13513</a> [ts] support optional chain call with generic (<a href="https://github.com/lala7573"><code>@​lala7573</code></a>)</li>
</ul>
</li>
<li><code>babel-plugin-transform-typescript</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13605">#13605</a> Handle typescript function overloading in a default export (<a href="https://github.com/tony-go"><code>@​tony-go</code></a>)</li>
</ul>
</li>
<li><code>babel-parser</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13536">#13536</a> Fix <code>%==</code> parsing in hack pipes (<a href="https://github.com/nicolo-ribaudo"><code>@​nicolo-ribaudo</code></a>)</li>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13426">#13426</a> parser: Fix Hack/smart-pipe error positions (<a href="https://github.com/js-choi"><code>@​js-choi</code></a>)</li>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13622">#13622</a> fix(ts): raise error for <code>export default interface {}</code> (<a href="https://github.com/a-tarasyuk"><code>@​a-tarasyuk</code></a>)</li>
</ul>
</li>
</ul>
<h4>📝 Documentation</h4>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13607">#13607</a> chore(doc): add jest specific pckg command (<a href="https://github.com/tony-go"><code>@​tony-go</code></a>)</li>
</ul>
<h2>v7.14.9 (2021-08-01)</h2>
<h4>🐛 Bug Fix</h4>
<ul>
<li><code>babel-traverse</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13596">#13596</a> Fix completion record for variable declarations (<a href="https://github.com/addaleax"><code>@​addaleax</code></a>)</li>
</ul>
</li>
</ul>

</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="6912f968a6"><code>6912f96</code></a> v7.15.0</li>
<li><a href="7e50ee2d82"><code>7e50ee2</code></a> feat: add <code>noIncompleteNsImportDetection</code> assumption to `plugin-transform-mod...</li>
<li><a href="5ac5e3572f"><code>5ac5e35</code></a> Fix const violations in ESM imports when transformed to CJS (<a href="https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-modules-commonjs/issues/13258">#13258</a>)</li>
<li><a href="950d3519e8"><code>950d351</code></a> fix destructuring of empty string (<a href="https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-modules-commonjs/issues/13444">#13444</a>)</li>
<li>See full diff in <a href="https://github.com/babel/babel/commits/v7.15.0/packages/babel-plugin-transform-modules-commonjs">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@babel/plugin-transform-modules-commonjs&package-manager=npm_and_yarn&previous-version=7.14.5&new-version=7.15.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/2698

Reviewed By: timur-valiev

Differential Revision: D30372346

Pulled By: passy

fbshipit-source-id: 5440bb616fd24770728754af160e9f901d416504
2021-08-18 04:37:54 -07:00
dependabot[bot]
e9bcb947dc Bump @typescript-eslint/parser from 4.28.5 to 4.29.1 in /desktop (#2700)
Summary:
Bumps [typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 4.28.5 to 4.29.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/typescript-eslint/typescript-eslint/releases"><code>@​typescript-eslint/parser</code>'s releases</a>.</em></p>
<blockquote>
<h2>v4.29.1</h2>
<h2><a href="https://github.com/typescript-eslint/typescript-eslint/compare/v4.29.0...v4.29.1">4.29.1</a> (2021-08-09)</h2>
<p><strong>Note:</strong> Version bump only for package <code>@​typescript-eslint/typescript-eslint</code></p>
<h2>v4.29.0</h2>
<h1><a href="https://github.com/typescript-eslint/typescript-eslint/compare/v4.28.5...v4.29.0">4.29.0</a> (2021-08-02)</h1>
<h3>Bug Fixes</h3>
<ul>
<li><strong>eslint-plugin:</strong> [no-implied-eval] handle bind on nested member expressions (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3598">#3598</a>) (<a href="f5a6806ae4">f5a6806</a>)</li>
<li><strong>eslint-plugin:</strong> [no-implied-eval] permit more expression types (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3624">#3624</a>) (<a href="ca7c549426">ca7c549</a>)</li>
<li><strong>eslint-plugin:</strong> [no-unnecessary-boolean-literal-compare] incorrect fix when condition is reversed (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3581">#3581</a>) (<a href="b595575cce">b595575</a>)</li>
<li><strong>eslint-plugin:</strong> [return-await] handle nested functions correctly (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3601">#3601</a>) (<a href="4a196b5818">4a196b5</a>)</li>
<li><strong>eslint-plugin:</strong> [return-await] properly handle fixes for <code>TSAsExpression</code> (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3631">#3631</a>) (<a href="00a436986c">00a4369</a>)</li>
<li><strong>experimental-utils:</strong> simplify <code>eslint-utils</code>' <code>findVariable</code>'s signature in <code>ast-utils</code> (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3574">#3574</a>) (<a href="3ef5267b85">3ef5267</a>)</li>
<li><strong>typescript-estree:</strong> correct tty check (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3635">#3635</a>) (<a href="62bcc937f0">62bcc93</a>)</li>
<li><strong>typescript-estree:</strong> ensure --fix works with singleRun mode (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3655">#3655</a>) (<a href="99eca0d428">99eca0d</a>)</li>
</ul>
<h3>Features</h3>
<ul>
<li><strong>ast-spec:</strong> extract <code>ExportKind</code> &amp; <code>ImportKind</code> (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3564">#3564</a>) (<a href="120d566c98">120d566</a>)</li>
<li><strong>ast-spec:</strong> make <code>BaseNode</code> &amp; <code>BaseToken</code> more type-safe (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3560">#3560</a>) (<a href="a6c5604b65">a6c5604</a>)</li>
<li><strong>eslint-plugin:</strong> [no-redeclare] ignoreDeclarationMerge of enum+namespace (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3572">#3572</a>) (<a href="18e30cb601">18e30cb</a>)</li>
<li><strong>eslint-plugin:</strong> [prefer-return-this-type] add a new rule (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3228">#3228</a>) (<a href="5e1a615004">5e1a615</a>)</li>
<li><strong>eslint-plugin:</strong> Catch unused React import with new JSX transform (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3577">#3577</a>) (<a href="02998eac51">02998ea</a>)</li>
<li><strong>typescript-estree:</strong> add support for custom module resolution (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3516">#3516</a>) (<a href="d48429d973">d48429d</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md"><code>@​typescript-eslint/parser</code>'s changelog</a>.</em></p>
<blockquote>
<h2><a href="https://github.com/typescript-eslint/typescript-eslint/compare/v4.29.0...v4.29.1">4.29.1</a> (2021-08-09)</h2>
<p><strong>Note:</strong> Version bump only for package <code>@​typescript-eslint/parser</code></p>
<h1><a href="https://github.com/typescript-eslint/typescript-eslint/compare/v4.28.5...v4.29.0">4.29.0</a> (2021-08-02)</h1>
<h3>Features</h3>
<ul>
<li><strong>eslint-plugin:</strong> Catch unused React import with new JSX transform (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3577">#3577</a>) (<a href="02998eac51">02998ea</a>)</li>
<li><strong>typescript-estree:</strong> add support for custom module resolution (<a href="https://github-redirect.dependabot.com/typescript-eslint/typescript-eslint/issues/3516">#3516</a>) (<a href="d48429d973">d48429d</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="db78642ea3"><code>db78642</code></a> chore: publish v4.29.1</li>
<li><a href="4d3ae1375d"><code>4d3ae13</code></a> chore: publish v4.29.0</li>
<li><a href="02998eac51"><code>02998ea</code></a> feat(eslint-plugin): Catch unused React import with new JSX transform (<a href="https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser/issues/3577">#3577</a>)</li>
<li><a href="3db653276b"><code>3db6532</code></a> chore: enabled no-unsafe-member-access internally (<a href="https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser/issues/3483">#3483</a>)</li>
<li><a href="d48429d973"><code>d48429d</code></a> feat(typescript-estree): add support for custom module resolution (<a href="https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser/issues/3516">#3516</a>)</li>
<li>See full diff in <a href="https://github.com/typescript-eslint/typescript-eslint/commits/v4.29.1/packages/parser">compare view</a></li>
</ul>
</details>
<br />

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

Reviewed By: timur-valiev

Differential Revision: D30372358

Pulled By: passy

fbshipit-source-id: 18262d917494a434fc69eee2a8c595c79aeed199
2021-08-18 04:37:54 -07:00
Pascal Hartig
75c4f20c8a Revert "First level of questions and redirection along with unit tests" (#2702)
Summary:
This reverts commit 2e87164152.

Causing OSS tests to break: https://github.com/facebook/flipper/runs/3358415851

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

Differential Revision: D30393320

Pulled By: passy

fbshipit-source-id: a326a59d35fdbe0af0c52a2502a01ab9753d2e60
2021-08-18 03:58:54 -07:00
Pascal Hartig
0cb6c0b3d2 Fix NPE on children expansion
Summary: See task for stack trace.

Reviewed By: timur-valiev

Differential Revision: D30393458

fbshipit-source-id: 71589b42fd579db95dfb04a96a00966f8bc65a2a
2021-08-18 03:19:57 -07:00
Alex Dickson
352e7e3a01 Edit establishing-a-connection.mdx using inpage editor
Summary:
This diff has been automatically generated by the inpage editor.
                        If you want to update this diff, go through the preview link that would be attached to the test plan.
                        Please ensure you are editing the same page that was used to create this diff.

Reviewed By: jknoxville

Differential Revision: D30392627

fbshipit-source-id: b7040f0ccb338d78c92186bf3a910d9ffbeb8019
2021-08-18 02:17:33 -07:00
Ananya Arun
2e87164152 First level of questions and redirection along with unit tests
Summary:
This diff is the first out of n for the troubleshooting guide for flipper.

What has been done -
- Defined a structure for the troubleshooting guide in TroubleshootingGuide.tsx (parent component ) to render children components or the individual questions from here.
- The initial screen of the trouble shooting guide along with the 3 sections of questions users face. Clicking them prompts to individual question screens that will be built in future diffs.
- Units tests in jest for the rendering of the screens and functions.

Reviewed By: mweststrate

Differential Revision: D30279739

fbshipit-source-id: 3e317b67e5ac461902c6779eaa584e1032741b85
2021-08-18 00:07:15 -07:00
Michel Weststrate
0cbe063c77 Move UnitializedClient to server
Summary: Move UnitializedClient interface to server namespace

Reviewed By: timur-valiev

Differential Revision: D30367328

fbshipit-source-id: 367a607fa2bb20dd140b1ad28946073ca764e517
2021-08-17 07:51:51 -07:00
Michel Weststrate
ea58f2b050 Decouple iOS devices from Store / core
Summary: Decouple iOS device detection from Redux

Reviewed By: timur-valiev

Differential Revision: D30309258

fbshipit-source-id: 74b4e3dd2e6b83fcefc75909794c39bfc8c987cf
2021-08-17 07:51:51 -07:00
Michel Weststrate
3736cbc480 Decouple JS device from Store
Summary: Made a start with decoupling JS device. Incomplete as there are still Electron deps.

Reviewed By: timur-valiev

Differential Revision: D30309257

fbshipit-source-id: b8002170cbbe8d68e1795ce7c12ffce4c8eac853
2021-08-17 07:51:51 -07:00
Lorenzo Blasa
a9c6351cf0 Define boundaries between FlipperConnectionManager and RSocket on the client side
Summary:
These changes abstract RSocket from FlipperConnectionManagerImpl.

This is achieved by defining FlipperSocket.

FlipperConnectionManagerImpl uses instances of FlipperSocket and RSocket is now contained within FlipperRSocket which implements FlipperSocket.

On the changes to follow, FlipperConnectionManagerImpl will no longer reference FlipperRSocket directly thus fully abstracting the socket implementation in use.

For reviewers:
- All of the RSocket code now lives in FlipperRSocket.
- Main changes are in FlipperConnectionManagerImpl. Lambdas are used to deal with events and message handling.
- There's some very minimal serialisation additions for payloads.

Reviewed By: jknoxville

Differential Revision: D30341076

fbshipit-source-id: 54bb4878967378490710c05f729cdd7f4cf08bb8
2021-08-17 05:27:34 -07:00
Michel Weststrate
4ae7d9c42b Decouple Metro device handling from Flipper core
Summary: Decoupled metro 'device' from Redux store. Extracting some commonalities with Android device management up into FlipperServer

Reviewed By: timur-valiev

Differential Revision: D30309256

fbshipit-source-id: 1a9ac01e3f21d2d08761554d3644a7ae8d00a93e
2021-08-17 04:46:37 -07:00
Michel Weststrate
03f2f95a31 Decouple android device management from Flipper core/store
Summary: See earlier diffs in the stack. This diff decouple android device management from the Redux store, replacing it with specific events.

Reviewed By: timur-valiev

Differential Revision: D30286345

fbshipit-source-id: 42f52056bf123b862e2fc087f2e7130c02bdd742
2021-08-17 04:46:37 -07:00
Michel Weststrate
bf65da0e72 Check if plugin status before opening
Summary:
This diff takes care of current plugin status when handling deeplinks. It checks:
1. if the plugin failed to load
2. if the plugin is behind GK
3. if the plugin is installable from bundle
4. if the plugin is installable from marketplace

Reviewed By: passy

Differential Revision: D29875483

fbshipit-source-id: 8dac1aab63822f43a0d002b10efa5b4a756fce41
2021-08-17 04:44:39 -07:00
Neeraj Narang
2cb21f2a06 Revert D30343539: Bump anyhow from 1.0.42 to 1.0.43 in /packer
Differential Revision:
D30343539 (44774225c3)

Original commit changeset: 9b34ef4c24f5

fbshipit-source-id: a77f30f245dfa203fe948acecdf4e40dc855c7c1
2021-08-16 15:51:34 -07:00
dependabot[bot]
44774225c3 Bump anyhow from 1.0.42 to 1.0.43 in /packer (#2695)
Summary:
Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.42 to 1.0.43.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/dtolnay/anyhow/releases">anyhow's releases</a>.</em></p>
<blockquote>
<h2>1.0.43</h2>
<ul>
<li>Take -Zallow-features restrictions from Cargo configuration file into account on sufficiently new versions of nightly Cargo (<a href="https://github-redirect.dependabot.com/dtolnay/anyhow/issues/157">https://github.com/facebook/flipper/issues/157</a>, thanks <a href="https://github.com/jonhoo"><code>@​jonhoo</code></a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="39899cc168"><code>39899cc</code></a> Release 1.0.43</li>
<li><a href="f8108162d4"><code>f810816</code></a> Touch up PR 157</li>
<li><a href="a3aba77275"><code>a3aba77</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/dtolnay/anyhow/issues/157">https://github.com/facebook/flipper/issues/157</a> from jonhoo/fix-156</li>
<li><a href="6c20a068bb"><code>6c20a06</code></a> Include Cargo rustc configuration in probe</li>
<li><a href="277894316c"><code>2778943</code></a> Merge pull request 160 from BramBonne/version-bump</li>
<li><a href="496cba42ea"><code>496cba4</code></a> Bump minor version</li>
<li>See full diff in <a href="https://github.com/dtolnay/anyhow/compare/1.0.42...1.0.43">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=anyhow&package-manager=cargo&previous-version=1.0.42&new-version=1.0.43)](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/2695

Reviewed By: timur-valiev

Differential Revision: D30343539

Pulled By: passy

fbshipit-source-id: 9b34ef4c24f582fb842fc56f704779397e29635d
2021-08-16 15:07:26 -07:00
Pascal Hartig
68763e8e74 Remove Travis reference (#2691)
Summary:
We aren't using that anymore.

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

Reviewed By: mweststrate

Differential Revision: D30305791

Pulled By: passy

fbshipit-source-id: 605f744888bb9d9ed4b3ad2b59b2d884b783056f
2021-08-16 05:41:18 -07:00
Pascal Hartig
09107460a3 Filter duplicate requests
Summary:
Right now this is throwing an error, we instead gracefully
handle this. I'm not quite sure where this is coming from but as we're
not really doing anything with the requests before they're added here,
it must be coming from the network stack.

We can't really build another stable key on the client side because we
also need to match it up with the response. Open for ideas!

Changelog: Network requests with duplicate IDs are filtered out

Reviewed By: mweststrate

Differential Revision: D30337820

fbshipit-source-id: d312833727b383fa5f4d18a506ab581cd2151d13
2021-08-16 05:32:36 -07:00
Pascal Hartig
797007f367 Make error message unique
Summary: We're currently getting errors for every duplicate key and can't easily unify them, so we're adding the additional information to a warning instead.

Reviewed By: mweststrate

Differential Revision: D30337821

fbshipit-source-id: db9dc44d7d3424de169bed9b4447b482e411eb19
2021-08-16 05:32:36 -07:00
Pascal Hartig
e880059167 Use idb describe to enumerate devices
Summary:
This works for forwarded as well as local devices.

There is a bunch more unification work that needs to be done here as we currently have three completely different ways of querying iOS devices. More on that next week.

Reviewed By: jknoxville

Differential Revision: D30308405

fbshipit-source-id: c58ac73e971ce2cc4da92e9508bc05dff9c1a95a
2021-08-16 05:27:29 -07:00
dependabot[bot]
83978f5989 Bump eslint-plugin-flowtype from 5.8.2 to 5.9.0 in /desktop (#2694)
Summary:
Bumps [eslint-plugin-flowtype](https://github.com/gajus/eslint-plugin-flowtype) from 5.8.2 to 5.9.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/gajus/eslint-plugin-flowtype/releases">eslint-plugin-flowtype's releases</a>.</em></p>
<blockquote>
<h2>v5.9.0</h2>
<h1><a href="https://github.com/gajus/eslint-plugin-flowtype/compare/v5.8.2...v5.9.0">5.9.0</a> (2021-08-02)</h1>
<h3>Features</h3>
<ul>
<li>Interface Id Match rule (<a href="https://github-redirect.dependabot.com/gajus/eslint-plugin-flowtype/issues/492">https://github.com/facebook/flipper/issues/492</a>) (<a href="d7abd9f68d">d7abd9f</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="d7abd9f68d"><code>d7abd9f</code></a> feat: Interface Id Match rule (<a href="https://github-redirect.dependabot.com/gajus/eslint-plugin-flowtype/issues/492">https://github.com/facebook/flipper/issues/492</a>)</li>
<li>See full diff in <a href="https://github.com/gajus/eslint-plugin-flowtype/compare/v5.8.2...v5.9.0">compare view</a></li>
</ul>
</details>
<br />

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

Reviewed By: timur-valiev

Differential Revision: D30305796

Pulled By: passy

fbshipit-source-id: e1baa8cda27b1e9c9ad400d257ef90e13c8781f0
2021-08-14 11:55:09 -07:00
dependabot[bot]
a75c114817 Bump hosted-git-info from 2.8.8 to 2.8.9 in /flipper-js-client-sdk (#2692)
Summary:
Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md">hosted-git-info's changelog</a>.</em></p>
<blockquote>
<h2><a href="https://github.com/npm/hosted-git-info/compare/v2.8.8...v2.8.9">2.8.9</a> (2021-04-07)</h2>
<h3>Bug Fixes</h3>
<ul>
<li>backport regex fix from <a href="https://github-redirect.dependabot.com/npm/hosted-git-info/issues/76">https://github.com/facebook/flipper/issues/76</a> (<a href="https://github.com/npm/hosted-git-info/commit/29adfe5">29adfe5</a>), closes <a href="https://github-redirect.dependabot.com/npm/hosted-git-info/issues/84">https://github.com/facebook/flipper/issues/84</a></li>
</ul>
<p><!-- raw HTML omitted --><!-- raw HTML omitted --></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="8d4b3697d7"><code>8d4b369</code></a> chore(release): 2.8.9</li>
<li><a href="29adfe5ef7"><code>29adfe5</code></a> fix: backport regex fix from <a href="https://github-redirect.dependabot.com/npm/hosted-git-info/issues/76">https://github.com/facebook/flipper/issues/76</a></li>
<li>See full diff in <a href="https://github.com/npm/hosted-git-info/compare/v2.8.8...v2.8.9">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/~nlf">nlf</a>, a new releaser for hosted-git-info since your current version.</p>
</details>
<br />

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

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

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

 ---

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

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

</details>

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

Reviewed By: timur-valiev

Differential Revision: D30305792

Pulled By: passy

fbshipit-source-id: 377d05e912d80056e60afbebad10f45b3d70b9cc
2021-08-13 15:22:43 -07:00
Pascal Hartig
781df776f2 Rename default branch references to main (#2689)
Summary:
I really hope I hit everything and didn't break anything that wasn't
referring to branch names.

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

Test Plan:
_eyes

CI

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

Reviewed By: timur-valiev

Differential Revision: D30305789

Pulled By: passy

fbshipit-source-id: 5daaa09250bb96bb50be679fc01dae86c666eb73
2021-08-13 15:00:39 -07:00
dependabot[bot]
1a4c26a42b Bump path-parse from 1.0.6 to 1.0.7 in /flipper-js-client-sdk (#2693)
Summary:
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a href="https://github.com/jbgutierrez/path-parse/commits/v1.0.7">compare view</a></li>
</ul>
</details>
<br />

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

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

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

 ---

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

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

</details>

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

Reviewed By: timur-valiev

Differential Revision: D30305794

Pulled By: passy

fbshipit-source-id: dd6e08aaaad236de17f3b1a8f107265066f1d97c
2021-08-13 14:58:18 -07:00
Michel Weststrate
c0cd32564a Organise files per device
Summary:
Moved all logic per device type we support to its own dir, including tools and utilities around it, which makes it easier to consolidate logic and decouple in turn per device type.

Per type, all logic can be found in

`server/devices/(desktop|metro|android|ios|webapp)`

Reviewed By: timur-valiev

Differential Revision: D30277817

fbshipit-source-id: 2b5339c363d5d31ceeba07cec03826fc67cf3748
2021-08-13 04:02:32 -07:00
Michel Weststrate
6175424d16 separate action dispatch from server
Summary: This diff moves the first small pieces of getting device detection up and running to `server/`, and the wiring between FlipperServer and flipper core / redux is setting up specific events and dispatch actions from there.

Reviewed By: timur-valiev

Differential Revision: D30276776

fbshipit-source-id: b30b996d03c27459815bebeb97b05b5fe5d24bec
2021-08-13 04:02:32 -07:00
Pascal Hartig
4909296d86 Wrap yarn install with a retry (#2685)
Summary:
Often fails with things like "can't resolve github.com" ... I don't think there's a fix for that apart from trying again.

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

Test Plan: Waiting for things to turn green here.

Reviewed By: timur-valiev

Differential Revision: D30301456

Pulled By: passy

fbshipit-source-id: 585758284e18bd02ab2a905b6f110a32099b861e
2021-08-13 03:34:23 -07:00
Pascal Hartig
0de8a2eeb0 Support idb/physical devices for screen record
Summary: Another thing that's now supported by idb.

Reviewed By: mweststrate

Differential Revision: D30283450

fbshipit-source-id: fd973571c551b0823ba9c539c795d4dd526415b1
2021-08-13 03:29:30 -07:00
Adetomiwa Adesanya
5640a175af Update package version on Flipper site.
Summary: Update flipper to use latest docusaurus-plugin-internaldocs-fb package version.

Reviewed By: jknoxville

Differential Revision: D30280130

fbshipit-source-id: 93dc1a931cc4244ce7d95c6cd80506e17275c069
2021-08-13 02:45:59 -07:00
Pascal Hartig
87e5e18c46 Support idb/physical devices for navigation
Summary: idb has a command for doing the same now.

Reviewed By: timur-valiev

Differential Revision: D30277192

fbshipit-source-id: eb46cdc7a7218077a7da90f6182d5f17bfcc758a
2021-08-12 07:59:45 -07:00
Michel Weststrate
dd47d08444 move device dispatchers to server
Summary: move_complexity

Reviewed By: passy, timur-valiev

Differential Revision: D30250314

fbshipit-source-id: 92510b0ed2555d039b75b6de1c14fc92d94fbb19
2021-08-12 05:43:44 -07:00
Michel Weststrate
5e8c968222 Move devices to server folder
Summary:
This is the first of many diffs that extracts the connection, device, client detection out of the flipper core, to create a reusable flipper-server library that can be used in e.g. flipper-dump.

To keep diffs a little smaller, the current connection logic is first moved to the `server/` directory, and decoupled manually from the rest of the core, before moving it over to a separate package.

This first diffs moves the `comms/`, `devices/` and certificate utilities to the `server` directory.

Further untangling will follow in next diffs

Reviewed By: timur-valiev

Differential Revision: D30246551

fbshipit-source-id: c84259bfb1239119b3267a51b015e30c3c080866
2021-08-12 05:43:43 -07:00
Ananya Arun
5e350add4f Update desktop-plugin-structure.mdx to add supportedApps
Summary:
This diff has been automatically generated by the inpage editor

Addresses the comment https://www.internalfb.com/diff/D30193668?dst_version_fbid=579384449899538&transaction_fbid=938191196910073

Reviewed By: passy, mweststrate

Differential Revision: D30248046

fbshipit-source-id: 1ef1e5ad75cdabf716ab7b81314e77e2dd9de5ce
2021-08-12 03:51:18 -07:00
Pascal Hartig
6544e5a7a3 Fix large debugbutton numbers being cut off
Summary: One more.

Reviewed By: timur-valiev

Differential Revision: D30254356

fbshipit-source-id: 473532b1aeef00d95d1da0ca8f1ca047672bc432
2021-08-12 03:19:38 -07:00
Pascal Hartig
4d295fa261 Prevent NUX from being cut off in plugin bar
Summary: See test plan.

Reviewed By: timur-valiev

Differential Revision: D30253538

fbshipit-source-id: c98a9b3ddaa29d6ff11260ce5756fd85f120e749
2021-08-12 03:19:38 -07:00
Pascal Hartig
eb27796571 Fix Windows test (#2682)
Summary:
Pull Request resolved: https://github.com/facebook/flipper/pull/2682

Run path-specific tests only on Unix-like OSes. We could
easily change the path to Windows, but honestly it's enough
to confirm this on one platform.

Reviewed By: timur-valiev

Differential Revision: D30255014

fbshipit-source-id: 7db36bc1738d721625e3c86c210d46dfaf8f0ab8
2021-08-11 14:35:12 -07:00
Pascal Hartig
7df77e2620 Asyncify screenshot helper
Summary: Suggested by mweststrate. Much more readable now!

Reviewed By: mweststrate

Differential Revision: D30251322

fbshipit-source-id: 269fefce3f63fa4eababb4c541ff09a660cc5cc0
2021-08-11 11:03:45 -07:00
Pascal Hartig
757ba91bf6 Simplify bridge types
Summary: This turns the bridge type into a simpler struct with always-present methods so you don't need to add additional null check to the calling logic which are hard to deal with.

Reviewed By: mweststrate

Differential Revision: D30248628

fbshipit-source-id: cdaee44efcbb19dcbb301099b4a7d0eb0c350e67
2021-08-11 11:03:45 -07:00
Pascal Hartig
52b3edc5ad Move screenshot to iOSBridge
Summary:
In order to support IOS cloud devices, we need to abstract
over the direct uses of idb/xcrun so we can switch them
out based on more than the device type.

Note that there's a bit of a type weirdness in there. I'll
clean this up with the next diff.

Reviewed By: mweststrate

Differential Revision: D30248036

fbshipit-source-id: ec8571429e04abe059850ef334a6645ae4a5e034
2021-08-11 11:03:45 -07:00
Pascal Hartig
f515df1c01 Restructure iOS dispatcher initialization
Summary:
Avoid nested promises and log errors during initialization that were
previously thrown away.

Reviewed By: mweststrate

Differential Revision: D30247859

fbshipit-source-id: 1d9ef871d1861a25a64ed4e895978b04f5b51c7b
2021-08-11 11:03:45 -07:00
dependabot[bot]
cf3ab869f8 Bump path-parse from 1.0.6 to 1.0.7 in /react-native/react-native-flipper (#2679)
Summary:
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a href="https://github.com/jbgutierrez/path-parse/commits/v1.0.7">compare view</a></li>
</ul>
</details>
<br />

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

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

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

 ---

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

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

</details>

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

Reviewed By: mweststrate

Differential Revision: D30246993

Pulled By: passy

fbshipit-source-id: 792799ef00a875d0e246f89df5e3d02d7f526197
2021-08-11 11:03:45 -07:00
dependabot[bot]
4ca1227522 Bump path-parse from 1.0.6 to 1.0.7 in /desktop (#2681)
Summary:
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a href="https://github.com/jbgutierrez/path-parse/commits/v1.0.7">compare view</a></li>
</ul>
</details>
<br />

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

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

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

 ---

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

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

</details>

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

Reviewed By: mweststrate

Differential Revision: D30246996

Pulled By: passy

fbshipit-source-id: 00e1e3a0a6530e4ac7dbc198a7a4b80ded11c054
2021-08-11 11:03:45 -07:00
Pascal Hartig
a630020ea0 Remove promisify use
Summary:
The results are often unpredictable, poorly typed and we have
dependencies that do the wrapping for us.

Listen, I'll get to writing some real code soon, I promise,
but I need to clean up my workspace first, okay?

Reviewed By: mweststrate

Differential Revision: D30247484

fbshipit-source-id: f5326ff71ff43af2dc64ab85ca1368f95fe87083
2021-08-11 11:03:45 -07:00
Pascal Hartig
4e17fb9c48 Extract temp path util
Summary:
`electron.remote` access is slow so we can cache this
like we do in other places. Also means one fewer `electron`
import which is gonna add up for Flipper Decap.

Reviewed By: mweststrate

Differential Revision: D30247431

fbshipit-source-id: 90f0e8df99af8bed40fbebcfd445abaca2965b7c
2021-08-11 11:03:45 -07:00