Commit Graph

2138 Commits

Author SHA1 Message Date
Michel Weststrate
a3500c453b Fix linter / prettier not working when using sonar as VS Code workspace
Summary: Per title

Reviewed By: antonk52

Differential Revision: D33308303

fbshipit-source-id: b4786fe8070b12ae211b68aafdc32814ea53381e
2021-12-24 07:18:11 -08:00
Michel Weststrate
bc98a77cf7 Improved build-release open args
Summary:
Improved `flipper:build-release` command with several options as suggested in earlier reviews. Flags added:

* `--npx` install using npx and start
* `--start` run directly from the build folder
* `--open` icmw previous two, spawn a browser

This should generally benefit developing from for example an on-demand server (although current socket access is currently only open to local host, so a port forward or remote entry point needs to be set up)

Reviewed By: antonk52

Differential Revision: D33308198

fbshipit-source-id: fb905647c8d9fbda9d3efc2bfdcbd4d03be84938
2021-12-24 07:18:11 -08:00
Michel Weststrate
cbda298b9d Add support to build flipper-server from SandCastle
Summary:
This refactors the flipper-server release script in such a way that it works the same as the normal release script, which solves two problems:

1) the official release script modifies versioned files, as it touches the package.json
2) it was slightly confusing that `flipper-server/static` was filled for release builds only, but not used in dev builds
3) running test:npx without running a release build before it, would fail with hard to comprehend errors. this has been solved now by removing that script and make it an arg of `build:flipper-server`

Also some further minor changes to prepare running a corresponding build / release job from SandCastle (later in this stack)

Reviewed By: nikoant

Differential Revision: D33297214

fbshipit-source-id: f6299aa982c3e59d1cc6479a93c56cbe4b57f85c
2021-12-24 07:18:11 -08:00
Michel Weststrate
3dffce32b9 Fix GH build error on windows (#3212)
Summary:
Pull Request resolved: https://github.com/facebook/flipper/pull/3212

Fix a build error caused by missing types for metro-resolver. For some reason it triggers only on windows, but we don't have typings for those indeed.

Reviewed By: nikoant

Differential Revision: D33308474

fbshipit-source-id: 1bd4354ee3c4df54a0a8e65d890721dd9dbac013
2021-12-24 07:15:23 -08:00
Michel Weststrate
b1162a47c5 Set favicon
Summary: Added a favicon so that Flipper tab is recognisable

Reviewed By: nikoant

Differential Revision: D33296434

fbshipit-source-id: 8801c6d0333db5dc9d38f2ff92c86f03386591c7
2021-12-24 02:16:48 -08:00
Michel Weststrate
54dacb7e5d Make sure icons are bundled
Summary: Make sure icons are prefetched for flipper-server prod builds, like we do for electron, so that the user doesn't need an internet connection to see icons

Reviewed By: nikoant

Differential Revision: D33296389

fbshipit-source-id: bfa92d78d8d77030238e5cca10d7aa6dcfb88e8b
2021-12-24 02:16:48 -08:00
Michel Weststrate
72fa481d27 Fix generation of bundled.json, make source maps work in prod builds
Summary:
This diff fixes several issues around loading plugin, such as:

* make suresource maps work in the flipper-server production build
* make sure default plugins are no symlinked, which wouldn't work anywhere else but on the the system where it was build
* support release channel param for flipper-server

Bundled flipper-server is now 42MB (with icons (see later diffs) and plugins
```
ll flipper-server-v0.0.0.tgz
-rw-r--r--  1 mweststrate  staff    42M 23 Dec 15:29 flipper-server-v0.0.0.tgz
```

Reviewed By: nikoant

Differential Revision: D33294677

fbshipit-source-id: 63538dc8127f883fee6a3608673ad11ce239b350
2021-12-24 02:16:48 -08:00
Michel Weststrate
b1d960e4c4 Make sure plugin loading works in NPX builds
Summary: Make sure non-bundled plugins load correctly . Note that sourcemaps don't load yet

Reviewed By: nikoant

Differential Revision: D33278639

fbshipit-source-id: 9951286ec6df65f33149e4687261a43e6c072c31
2021-12-24 02:16:48 -08:00
Michel Weststrate
86b6d2c99d Make flipper-server NPX-able
Summary: Make sure flipper-server is bundled in such a way that it is self-contained NPX-able. Also added some checks to make sure that dev dependencies don't accidentallly end up in in Flipper buidls

Reviewed By: nikoant

Differential Revision: D33190254

fbshipit-source-id: 443162e537d8ca9f956acac2d7bd52cbf0c92172
2021-12-24 02:16:48 -08:00
Michel Weststrate
6ff4abbc67 Make flipper-server stand-alone servable
Summary:
This diff makes flipper-server stand-alone servable as a single package.

It basically works as follows:

- (default) plugins are build as usually into static folder
- static folder is copied into flipper-server/static (as far as relevant)
- `flipper-server/src/index.tsx` is bundled into `flipper-server/dist/index.js`
- `flipper-ui-browser/src/index.tsx` is bundled into `flipper-server/static/bundle.js`

If flipper-server is started without the `--bundler` config, the `bundle.js` will be served statically, rather than starting up the Metro bundler with all the typical transforms (in a distributed version of the package those all wouldn't resolve)

Things to be done in next diffs:

* make sure plugins actually load in the non bundled setup
* make sure flipper-server gets published properly
* make sure build is created as part of CI

At the end of this stack, running `npx flipper-server` on any machine should basically be a viable approach to get flipper up and running locally :)

Reviewed By: nikoant

Differential Revision: D33171107

fbshipit-source-id: 4af8ac2699467a0b55283fe084640482700744c2
2021-12-24 02:16:48 -08:00
Anton Nikolaev
d48fbd8e50 Logs: cleaned up warnings because of duplicate keys in context menu
Summary: In dev build there were tons of warnings on opening table context menu, because some items had same keys. This diff fixes that by differentiating item keys.

Reviewed By: mweststrate

Differential Revision: D33277520

fbshipit-source-id: aca2fa2f1163a2b6782be0ca4c5baebdecc5acd5
2021-12-22 15:34:11 -08:00
Anton Nikolaev
dd4d7bbe7f API for creating pastes without showing notifications
Reviewed By: mweststrate

Differential Revision: D33277470

fbshipit-source-id: 2ec9ad7d9fc48d7d2da64be3bfc1a66bb5b3a347
2021-12-22 15:34:11 -08:00
Flipper Bot
9043966413 Flipper Release: v0.127.0
Summary: Releasing version 0.127.0

Reviewed By: nikoant

Differential Revision: D33277479

fbshipit-source-id: 86ea279f547add2b1216777909ec094f94fedd39
2021-12-22 07:30:05 -08:00
Michel Weststrate
f9c769aee3 Fix Metro crash if no origin header is set
Summary:
Changelog: Work-around for missing `origin` header problem https://github.com/facebook/flipper/issues/3189; causing Metro to crash when Flipper tries to connect

Will follow up with separate fix in React Native itself as well

Reviewed By: nikoant

Differential Revision: D33276414

fbshipit-source-id: 34d1510262ac24172ac1c6660799bb755b0f1f11
2021-12-22 03:18:52 -08:00
Michel Weststrate
87833c759e Fixed an exception when logging unserializable errors
Reviewed By: nikoant

Differential Revision: D33276412

fbshipit-source-id: 615b2cc523a3ab4445a1208f460753b8634f6812
2021-12-22 03:18:51 -08:00
Michel Weststrate
74fa34fe98 Fixed generation of plugin entry point after compilation
Summary: This diff fixes an issue, that due to recent changes `defaultPlugins/index.tsx` wouldn't compile without being regenerated. This caused issue for people after updating and running `yarn install`. This diff fixes the build order to first generate the file, then compile

Reviewed By: nikoant

Differential Revision: D33276108

fbshipit-source-id: 318a9c8434ecf3cae3b15474fa045e93ad5ffc42
2021-12-22 03:18:51 -08:00
Andrey Goncharov
5e3e777b5c Enable DownloadFile write stream error test (#3207)
Summary:
Pull Request resolved: https://github.com/facebook/flipper/pull/3207

Followup of D33191515 (e0afebeb32)

Reviewed By: mweststrate

Differential Revision: D33253520

fbshipit-source-id: 30bca740dd8674b9bbba4e157d27f2dcedbc5ed5
2021-12-21 08:10:49 -08:00
dependabot[bot]
3d28991cbe Bump axios from 0.21.4 to 0.24.0 in /desktop (#3166)
Summary:
Bumps [axios](https://github.com/axios/axios) from 0.21.4 to 0.24.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/axios/axios/releases">axios's releases</a>.</em></p>
<blockquote>
<h2>v0.24.0</h2>
<h3>0.24.0 (October 25, 2021)</h3>
<p>Breaking changes:</p>
<ul>
<li>Revert: change type of AxiosResponse to any, please read lengthy discussion here: (<a href="https://github-redirect.dependabot.com/axios/axios/issues/4141">#4141</a>) pull request: (<a href="https://github-redirect.dependabot.com/axios/axios/pull/4186">#4186</a>)</li>
</ul>
<p>Huge thanks to everyone who contributed to this release via code (authors listed below) or via reviews and triaging on GitHub:</p>
<ul>
<li><a href="https://github.com/axios/axios/blob/HEAD/mailto:jasonsaayman@gmail.com">Jay</a></li>
<li><a href="https://github.com/ImRodry">Rodry</a></li>
<li><a href="https://github.com/remcohaszing">Remco Haszing</a></li>
<li><a href="https://github.com/ITenthusiasm">Isaiah Thomason</a></li>
</ul>
<h2>v0.23.0</h2>
<h3>0.23.0 (October 12, 2021)</h3>
<p>Breaking changes:</p>
<ul>
<li>Distinguish request and response data types (<a href="https://github-redirect.dependabot.com/axios/axios/pull/4116">#4116</a>)</li>
<li>Change never type to unknown (<a href="https://github-redirect.dependabot.com/axios/axios/pull/4142">#4142</a>)</li>
<li>Fixed TransitionalOptions typings (<a href="https://github-redirect.dependabot.com/axios/axios/pull/4147">#4147</a>)</li>
</ul>
<p>Fixes and Functionality:</p>
<ul>
<li>Adding globalObject: 'this' to webpack config (<a href="https://github-redirect.dependabot.com/axios/axios/pull/3176">https://github.com/facebook/flipper/issues/3176</a>)</li>
<li>Adding insecureHTTPParser type to AxiosRequestConfig (<a href="https://github-redirect.dependabot.com/axios/axios/pull/4066">#4066</a>)</li>
<li>Fix missing semicolon in typings (<a href="https://github-redirect.dependabot.com/axios/axios/pull/4115">#4115</a>)</li>
<li>Fix response headers types (<a href="https://github-redirect.dependabot.com/axios/axios/pull/4136">#4136</a>)</li>
</ul>
<p>Internal and Tests:</p>
<ul>
<li>Improve timeout error when timeout is browser default (<a href="https://github-redirect.dependabot.com/axios/axios/pull/3209">#3209</a>)</li>
<li>Fix node version on CI (<a href="https://github-redirect.dependabot.com/axios/axios/pull/4069">#4069</a>)</li>
<li>Added testing to TypeScript portion of project (<a href="https://github-redirect.dependabot.com/axios/axios/pull/4140">#4140</a>)</li>
</ul>
<p>Documentation:</p>
<ul>
<li>Rename Angular to AngularJS (<a href="https://github-redirect.dependabot.com/axios/axios/pull/4114">#4114</a>)</li>
</ul>
<p>Huge thanks to everyone who contributed to this release via code (authors listed below) or via reviews and triaging on GitHub:</p>
<ul>
<li><a href="https://github.com/axios/axios/blob/HEAD/mailto:jasonsaayman@gmail.com">Jay</a></li>
<li><a href="https://github.com/Evan-Finkelstein">Evan-Finkelstein</a></li>
<li><a href="https://github.com/Jezorko">Paweł Szymański</a></li>
<li><a href="https://github.com/dobesv">Dobes Vandermeer</a></li>
<li><a href="https://github.com/caugner">Claas Augner</a></li>
<li><a href="https://github.com/remcohaszing">Remco Haszing</a></li>
<li><a href="https://github.com/egmen">Evgeniy</a></li>
<li><a href="https://github.com/DigitalBrainJS">Dmitriy Mozgovoy</a></li>
</ul>
<h2>v0.22.0</h2>
<h3>0.22.0 (October 01, 2021)</h3>
<p>Fixes and Functionality:</p>

</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/axios/axios/blob/master/CHANGELOG.md">axios's changelog</a>.</em></p>
<blockquote>
<h3>0.24.0 (October 25, 2021)</h3>
<p>Breaking changes:</p>
<ul>
<li>Revert: change type of AxiosResponse to any, please read lengthy discussion here: (<a href="https://github-redirect.dependabot.com/axios/axios/issues/4141">#4141</a>) pull request: (<a href="https://github-redirect.dependabot.com/axios/axios/pull/4186">#4186</a>)</li>
</ul>
<p>Huge thanks to everyone who contributed to this release via code (authors listed below) or via reviews and triaging on GitHub:</p>
<ul>
<li><a href="https://github.com/axios/axios/blob/master/mailto:jasonsaayman@gmail.com">Jay</a></li>
<li><a href="https://github.com/ImRodry">Rodry</a></li>
<li><a href="https://github.com/remcohaszing">Remco Haszing</a></li>
<li><a href="https://github.com/ITenthusiasm">Isaiah Thomason</a></li>
</ul>
<h3>0.23.0 (October 12, 2021)</h3>
<p>Breaking changes:</p>
<ul>
<li>Distinguish request and response data types (<a href="https://github-redirect.dependabot.com/axios/axios/pull/4116">#4116</a>)</li>
<li>Change never type to unknown (<a href="https://github-redirect.dependabot.com/axios/axios/pull/4142">#4142</a>)</li>
<li>Fixed TransitionalOptions typings (<a href="https://github-redirect.dependabot.com/axios/axios/pull/4147">#4147</a>)</li>
</ul>
<p>Fixes and Functionality:</p>
<ul>
<li>Adding globalObject: 'this' to webpack config (<a href="https://github-redirect.dependabot.com/axios/axios/pull/3176">https://github.com/facebook/flipper/issues/3176</a>)</li>
<li>Adding insecureHTTPParser type to AxiosRequestConfig (<a href="https://github-redirect.dependabot.com/axios/axios/pull/4066">#4066</a>)</li>
<li>Fix missing semicolon in typings (<a href="https://github-redirect.dependabot.com/axios/axios/pull/4115">#4115</a>)</li>
<li>Fix response headers types (<a href="https://github-redirect.dependabot.com/axios/axios/pull/4136">#4136</a>)</li>
</ul>
<p>Internal and Tests:</p>
<ul>
<li>Improve timeout error when timeout is browser default (<a href="https://github-redirect.dependabot.com/axios/axios/pull/3209">#3209</a>)</li>
<li>Fix node version on CI (<a href="https://github-redirect.dependabot.com/axios/axios/pull/4069">#4069</a>)</li>
<li>Added testing to TypeScript portion of project (<a href="https://github-redirect.dependabot.com/axios/axios/pull/4140">#4140</a>)</li>
</ul>
<p>Documentation:</p>
<ul>
<li>Rename Angular to AngularJS (<a href="https://github-redirect.dependabot.com/axios/axios/pull/4114">#4114</a>)</li>
</ul>
<p>Huge thanks to everyone who contributed to this release via code (authors listed below) or via reviews and triaging on GitHub:</p>
<ul>
<li><a href="https://github.com/axios/axios/blob/master/mailto:jasonsaayman@gmail.com">Jay</a></li>
<li><a href="https://github.com/Evan-Finkelstein">Evan-Finkelstein</a></li>
<li><a href="https://github.com/Jezorko">Paweł Szymański</a></li>
<li><a href="https://github.com/dobesv">Dobes Vandermeer</a></li>
<li><a href="https://github.com/caugner">Claas Augner</a></li>
<li><a href="https://github.com/remcohaszing">Remco Haszing</a></li>
<li><a href="https://github.com/egmen">Evgeniy</a></li>
<li><a href="https://github.com/DigitalBrainJS">Dmitriy Mozgovoy</a></li>
</ul>
<h3>0.22.0 (October 01, 2021)</h3>
<p>Fixes and Functionality:</p>
<ul>
<li>Caseless header comparing in HTTP adapter (<a href="https://github-redirect.dependabot.com/axios/axios/pull/2880">https://github.com/facebook/flipper/issues/2880</a>)</li>
<li>Avoid package.json import fixing issues and warnings related to this (<a href="https://github-redirect.dependabot.com/axios/axios/pull/4041">#4041</a>), (<a href="https://github-redirect.dependabot.com/axios/axios/pull/4065">#4065</a>)</li>
<li>Fixed cancelToken leakage and added AbortController support (<a href="https://github-redirect.dependabot.com/axios/axios/pull/3305">#3305</a>)</li>
</ul>

</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="53d6d37556"><code>53d6d37</code></a> Adding minfied files</li>
<li><a href="6d613b4fe4"><code>6d613b4</code></a> Updated changelog</li>
<li><a href="2c9cc76ee9"><code>2c9cc76</code></a> revert: change type of AxiosResponse to any (<a href="https://github-redirect.dependabot.com/axios/axios/issues/4186">#4186</a>)</li>
<li><a href="1025d1231a"><code>1025d12</code></a> Release v0.23.0</li>
<li><a href="6d1e30fd80"><code>6d1e30f</code></a> Prepared release notes</li>
<li><a href="20e8b6bc8c"><code>20e8b6b</code></a> chore(docs): rename Angular to AngularJS (<a href="https://github-redirect.dependabot.com/axios/axios/issues/4114">#4114</a>)</li>
<li><a href="94a9344799"><code>94a9344</code></a> Test types (<a href="https://github-redirect.dependabot.com/axios/axios/issues/4140">#4140</a>)</li>
<li><a href="fce210a67e"><code>fce210a</code></a> Fixed TransitionalOptions typings (<a href="https://github-redirect.dependabot.com/axios/axios/issues/4147">#4147</a>)</li>
<li><a href="547815d9fd"><code>547815d</code></a> Mending merge conflict</li>
<li><a href="e462973a4b"><code>e462973</code></a> fix response headers types (<a href="https://github-redirect.dependabot.com/axios/axios/issues/4136">#4136</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/axios/axios/compare/v0.21.4...v0.24.0">compare view</a></li>
</ul>
</details>
<br />

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

Reviewed By: passy

Differential Revision: D33234007

Pulled By: aigoncharov

fbshipit-source-id: 1be18f528a4f8eae84a7a19afec92d8b11ce7cf9
2021-12-20 13:52:52 -08:00
dependabot[bot]
4ccd6a6d48 Bump @babel/parser from 7.16.3 to 7.16.6 in /desktop (#3178)
Summary:
Bumps [babel/parser](https://github.com/babel/babel/tree/HEAD/packages/babel-parser) from 7.16.3 to 7.16.6.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/babel/babel/releases"><code>@​babel/parser</code>'s releases</a>.</em></p>
<blockquote>
<h2>v7.16.6 (2021-12-14)</h2>
<h4>🐛 Bug Fix</h4>
<ul>
<li><code>babel-parser</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/14055">#14055</a> fix: handle tokens for invalid template element (<a href="https://github.com/JLHwung"><code>@​JLHwung</code></a>)</li>
</ul>
</li>
</ul>
<h4>Committers: 2</h4>
<ul>
<li>Huáng Jùnliàng (<a href="https://github.com/JLHwung"><code>@​JLHwung</code></a>)</li>
<li>Nicolò Ribaudo (<a href="https://github.com/nicolo-ribaudo"><code>@​nicolo-ribaudo</code></a>)</li>
</ul>
<h2>v7.16.5 (2021-12-13)</h2>
<p>Thanks <a href="https://github.com/chimurai"><code>@​chimurai</code></a> and <a href="https://github.com/krosenberg"><code>@​krosenberg</code></a> for your first PRs!</p>
<h4>👓 Spec Compliance</h4>
<ul>
<li><code>babel-cli</code>, <code>babel-core</code>, <code>babel-helpers</code>, <code>babel-plugin-proposal-class-properties</code>, <code>babel-plugin-proposal-decorators</code>, <code>babel-plugin-transform-classes</code>, <code>babel-plugin-transform-jscript</code>, <code>babel-plugin-transform-parameters</code>, <code>babel-plugin-transform-runtime</code>, <code>babel-plugin-transform-spread</code>, <code>babel-plugin-transform-typescript</code>, <code>babel-preset-env</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/12115">#12115</a> Mark class prototype as read-only (<a href="https://github.com/wentout"><code>@​wentout</code></a>)</li>
</ul>
</li>
</ul>
<h4>🐛 Bug Fix</h4>
<ul>
<li><code>babel-plugin-transform-parameters</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/14032">#14032</a> Fix: default rest argument array elements as undefined (<a href="https://github.com/The-x-Theorist"><code>@​The-x-Theorist</code></a>)</li>
</ul>
</li>
<li><code>babel-plugin-transform-arrow-functions</code>, <code>babel-traverse</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/14036">#14036</a> Don't resolve shadowed <code>arguments</code> variables from functions (<a href="https://github.com/The-x-Theorist"><code>@​The-x-Theorist</code></a>)</li>
</ul>
</li>
<li><code>babel-parser</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/14039">#14039</a> maintain estree string literal shape when cloned (<a href="https://github.com/JLHwung"><code>@​JLHwung</code></a>)</li>
</ul>
</li>
<li><code>babel-traverse</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/14016">#14016</a> Fix duplicate declaration error on ambient class declarations (<a href="https://github.com/The-x-Theorist"><code>@​The-x-Theorist</code></a>)</li>
</ul>
</li>
<li><code>babel-generator</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/14014">#14014</a> Support flow function type annotation with no parent (<a href="https://github.com/krosenberg"><code>@​krosenberg</code></a>)</li>
</ul>
</li>
<li><code>babel-plugin-transform-react-jsx</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/14012">#14012</a> Fix JSX pragma anywhere in comment (<a href="https://github.com/The-x-Theorist"><code>@​The-x-Theorist</code></a>)</li>
</ul>
</li>
<li><code>babel-helper-create-class-features-plugin</code>, <code>babel-helper-environment-visitor</code>, <code>babel-helper-member-expression-to-functions</code>, <code>babel-helper-module-transforms</code>, <code>babel-helper-replace-supers</code>, <code>babel-plugin-transform-classes</code>, <code>babel-traverse</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/14005">#14005</a> Fix handling of <code>this</code>&amp;co in computed keys in arrows transform (<a href="https://github.com/nicolo-ribaudo"><code>@​nicolo-ribaudo</code></a>)</li>
</ul>
</li>
</ul>
<h4>💅 Polish</h4>
<ul>
<li><code>babel-parser</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13968">#13968</a> Recover from shorthand assign exprs (<a href="https://github.com/JLHwung"><code>@​JLHwung</code></a>)</li>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13975">#13975</a> fix: update UnexpectedPrivateField error message (<a href="https://github.com/JLHwung"><code>@​JLHwung</code></a>)</li>
</ul>
</li>
</ul>
<h4>📝 Documentation</h4>
<ul>
<li><em>Many packages</em>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/14006">#14006</a> Regenerate monorepo READMEs (<a href="https://github.com/nicolo-ribaudo"><code>@​nicolo-ribaudo</code></a>)</li>
</ul>
</li>
</ul>
<h4>🏠 Internal</h4>
<ul>
<li><em>Every package</em>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13966">#13966</a> Run tests in a native Node.js ESM environment (<a href="https://github.com/nicolo-ribaudo"><code>@​nicolo-ribaudo</code></a>)</li>
</ul>
</li>
<li><code>babel-parser</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13982">#13982</a> Extend <code>hasPlugin</code> to accept plugin-configuration array pairs (<a href="https://github.com/js-choi"><code>@​js-choi</code></a>)</li>
</ul>
</li>
<li><code>babel-helpers</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13996">#13996</a> Don't use ESM for <code>require</code>d files in <code>babel/helpers</code> tests (<a href="https://github.com/nicolo-ribaudo"><code>@​nicolo-ribaudo</code></a>)</li>
</ul>
</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/parser</code>'s changelog</a>.</em></p>
<blockquote>
<h2>v7.16.6 (2021-12-14)</h2>
<h4>🐛 Bug Fix</h4>
<ul>
<li><code>babel-parser</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/14055">#14055</a> fix: handle tokens for invalid template element (<a href="https://github.com/JLHwung"><code>@​JLHwung</code></a>)</li>
</ul>
</li>
</ul>
<h2>v7.16.5 (2021-12-13)</h2>
<h4>👓 Spec Compliance</h4>
<ul>
<li><code>babel-cli</code>, <code>babel-core</code>, <code>babel-helpers</code>, <code>babel-plugin-proposal-class-properties</code>, <code>babel-plugin-proposal-decorators</code>, <code>babel-plugin-transform-classes</code>, <code>babel-plugin-transform-jscript</code>, <code>babel-plugin-transform-parameters</code>, <code>babel-plugin-transform-runtime</code>, <code>babel-plugin-transform-spread</code>, <code>babel-plugin-transform-typescript</code>, <code>babel-preset-env</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/12115">#12115</a> Mark class prototype as read-only (<a href="https://github.com/wentout"><code>@​wentout</code></a>)</li>
</ul>
</li>
</ul>
<h4>🐛 Bug Fix</h4>
<ul>
<li><code>babel-plugin-transform-parameters</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/14032">#14032</a> Fix: default rest argument array elements as undefined (<a href="https://github.com/The-x-Theorist"><code>@​The-x-Theorist</code></a>)</li>
</ul>
</li>
<li><code>babel-plugin-transform-arrow-functions</code>, <code>babel-traverse</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/14036">#14036</a> Don't resolve shadowed <code>arguments</code> variables from functions (<a href="https://github.com/The-x-Theorist"><code>@​The-x-Theorist</code></a>)</li>
</ul>
</li>
<li><code>babel-parser</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/14039">#14039</a> maintain estree string literal shape when cloned (<a href="https://github.com/JLHwung"><code>@​JLHwung</code></a>)</li>
</ul>
</li>
<li><code>babel-traverse</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/14016">#14016</a> Fix duplicate declaration error on ambient class declarations (<a href="https://github.com/The-x-Theorist"><code>@​The-x-Theorist</code></a>)</li>
</ul>
</li>
<li><code>babel-generator</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/14014">#14014</a> Support flow function type annotation with no parent (<a href="https://github.com/krosenberg"><code>@​krosenberg</code></a>)</li>
</ul>
</li>
<li><code>babel-plugin-transform-react-jsx</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/14012">#14012</a> Fix JSX pragma anywhere in comment (<a href="https://github.com/The-x-Theorist"><code>@​The-x-Theorist</code></a>)</li>
</ul>
</li>
<li><code>babel-helper-create-class-features-plugin</code>, <code>babel-helper-environment-visitor</code>, <code>babel-helper-member-expression-to-functions</code>, <code>babel-helper-module-transforms</code>, <code>babel-helper-replace-supers</code>, <code>babel-plugin-transform-classes</code>, <code>babel-traverse</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/14005">#14005</a> Fix handling of <code>this</code>&amp;co in computed keys in arrows transform (<a href="https://github.com/nicolo-ribaudo"><code>@​nicolo-ribaudo</code></a>)</li>
</ul>
</li>
</ul>
<h4>💅 Polish</h4>
<ul>
<li><code>babel-parser</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13968">#13968</a> Recover from shorthand assign exprs (<a href="https://github.com/JLHwung"><code>@​JLHwung</code></a>)</li>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13975">#13975</a> fix: update UnexpectedPrivateField error message (<a href="https://github.com/JLHwung"><code>@​JLHwung</code></a>)</li>
</ul>
</li>
</ul>
<h4>📝 Documentation</h4>
<ul>
<li><code>babel-compat-data</code>, <code>babel-helper-annotate-as-pure</code>, <code>babel-helper-builder-binary-assignment-operator-visitor</code>, <code>babel-helper-builder-react-jsx</code>, <code>babel-helper-compilation-targets</code>, <code>babel-helper-create-class-features-plugin</code>, <code>babel-helper-create-regexp-features-plugin</code>, <code>babel-helper-define-map</code>, <code>babel-helper-explode-assignable-expression</code>, <code>babel-helper-fixtures</code>, <code>babel-helper-function-name</code>, <code>babel-helper-get-function-arity</code>, <code>babel-helper-hoist-variables</code>, <code>babel-helper-member-expression-to-functions</code>, <code>babel-helper-module-imports</code>, <code>babel-helper-module-transforms</code>, <code>babel-helper-optimise-call-expression</code>, <code>babel-helper-plugin-test-runner</code>, <code>babel-helper-plugin-utils</code>, <code>babel-helper-remap-async-to-generator</code>, <code>babel-helper-replace-supers</code>, <code>babel-helper-simple-access</code>, <code>babel-helper-skip-transparent-expression-wrappers</code>, <code>babel-helper-split-export-declaration</code>, <code>babel-helper-transform-fixture-test-runner</code>, <code>babel-helper-validator-identifier</code>, <code>babel-helper-validator-option</code>, <code>babel-helper-wrap-function</code>, <code>babel-plugin-bugfix-safari-id-destructuring-collision-in-function-expression</code>, <code>babel-plugin-bugfix-v8-spread-parameters-in-optional-chaining</code>, <code>babel-plugin-proposal-async-do-expressions</code>, <code>babel-plugin-proposal-record-and-tuple</code>, <code>babel-plugin-syntax-async-do-expressions</code>, <code>babel-plugin-syntax-module-blocks</code>, <code>babel-plugin-transform-react-jsx-development</code>, <code>babel-plugin-transform-react-pure-annotations</code>, <code>babel-runtime-corejs2</code>, <code>babel-runtime-corejs3</code>, <code>babel-runtime</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/14006">#14006</a> Regenerate monorepo READMEs (<a href="https://github.com/nicolo-ribaudo"><code>@​nicolo-ribaudo</code></a>)</li>
</ul>
</li>
</ul>
<h4>🏠 Internal</h4>
<ul>
<li><code>babel-cli</code>, <code>babel-code-frame</code>, <code>babel-core</code>, <code>babel-generator</code>, <code>babel-helper-annotate-as-pure</code>, <code>babel-helper-compilation-targets</code>, <code>babel-helper-create-class-features-plugin</code>, <code>babel-helper-create-regexp-features-plugin</code>, <code>babel-helper-fixtures</code>, <code>babel-helper-module-imports</code>, <code>babel-helper-optimise-call-expression</code>, <code>babel-helper-plugin-test-runner</code>, <code>babel-helper-transform-fixture-test-runner</code>, <code>babel-helper-validator-identifier</code>, <code>babel-helper-validator-option</code>, <code>babel-helpers</code>, <code>babel-highlight</code>, <code>babel-node</code>, <code>babel-parser</code>, <code>babel-plugin-bugfix-safari-id-destructuring-collision-in-function-expression</code>, <code>babel-plugin-bugfix-v8-spread-parameters-in-optional-chaining</code>, <code>babel-plugin-external-helpers</code>, <code>babel-plugin-proposal-async-do-expressions</code>, <code>babel-plugin-proposal-async-generator-functions</code>, <code>babel-plugin-proposal-class-properties</code>, <code>babel-plugin-proposal-class-static-block</code>, <code>babel-plugin-proposal-decorators</code>, <code>babel-plugin-proposal-do-expressions</code>, <code>babel-plugin-proposal-dynamic-import</code>, <code>babel-plugin-proposal-export-default-from</code>, <code>babel-plugin-proposal-export-namespace-from</code>, <code>babel-plugin-proposal-function-bind</code>, <code>babel-plugin-proposal-function-sent</code>, <code>babel-plugin-proposal-json-strings</code>, <code>babel-plugin-proposal-logical-assignment-operators</code>, <code>babel-plugin-proposal-nullish-coalescing-operator</code>, <code>babel-plugin-proposal-numeric-separator</code>, <code>babel-plugin-proposal-object-rest-spread</code>, <code>babel-plugin-proposal-optional-catch-binding</code>, <code>babel-plugin-proposal-optional-chaining</code>, <code>babel-plugin-proposal-partial-application</code>, <code>babel-plugin-proposal-pipeline-operator</code>, <code>babel-plugin-proposal-private-methods</code>, <code>babel-plugin-proposal-private-property-in-object</code>, <code>babel-plugin-proposal-record-and-tuple</code>, <code>babel-plugin-proposal-throw-expressions</code>, <code>babel-plugin-proposal-unicode-property-regex</code>, <code>babel-plugin-syntax-decorators</code>, <code>babel-plugin-syntax-typescript</code>, <code>babel-plugin-transform-arrow-functions</code>, <code>babel-plugin-transform-async-to-generator</code>, <code>babel-plugin-transform-block-scoped-functions</code>, <code>babel-plugin-transform-block-scoping</code>, <code>babel-plugin-transform-classes</code>, <code>babel-plugin-transform-computed-properties</code>, <code>babel-plugin-transform-destructuring</code>, <code>babel-plugin-transform-dotall-regex</code>, <code>babel-plugin-transform-duplicate-keys</code>, <code>babel-plugin-transform-exponentiation-operator</code>, <code>babel-plugin-transform-flow-comments</code>, <code>babel-plugin-transform-flow-strip-types</code>, <code>babel-plugin-transform-for-of</code>, <code>babel-plugin-transform-function-name</code>, <code>babel-plugin-transform-instanceof</code>, <code>babel-plugin-transform-jscript</code>, <code>babel-plugin-transform-member-expression-literals</code>, <code>babel-plugin-transform-modules-amd</code>, <code>babel-plugin-transform-modules-commonjs</code>, <code>babel-plugin-transform-modules-systemjs</code>, <code>babel-plugin-transform-modules-umd</code>, <code>babel-plugin-transform-named-capturing-groups-regex</code>, <code>babel-plugin-transform-new-target</code>, <code>babel-plugin-transform-object-super</code>, <code>babel-plugin-transform-parameters</code>, <code>babel-plugin-transform-property-literals</code>, <code>babel-plugin-transform-property-mutators</code>, <code>babel-plugin-transform-proto-to-assign</code>, <code>babel-plugin-transform-react-constant-elements</code>, <code>babel-plugin-transform-react-display-name</code>, <code>babel-plugin-transform-react-inline-elements</code>, <code>babel-plugin-transform-react-jsx-compat</code>, <code>babel-plugin-transform-react-jsx-development</code>, <code>babel-plugin-transform-react-jsx-self</code>, <code>babel-plugin-transform-react-jsx-source</code>, <code>babel-plugin-transform-react-jsx</code>, <code>babel-plugin-transform-react-pure-annotations</code>, <code>babel-plugin-transform-regenerator</code>, <code>babel-plugin-transform-reserved-words</code>, <code>babel-plugin-transform-runtime</code>, <code>babel-plugin-transform-shorthand-properties</code>, <code>babel-plugin-transform-spread</code>, <code>babel-plugin-transform-sticky-regex</code>, <code>babel-plugin-transform-strict-mode</code>, <code>babel-plugin-transform-template-literals</code>, <code>babel-plugin-transform-typeof-symbol</code>, <code>babel-plugin-transform-typescript</code>, <code>babel-plugin-transform-unicode-escapes</code>, <code>babel-plugin-transform-unicode-regex</code>, <code>babel-preset-env</code>, <code>babel-preset-flow</code>, <code>babel-preset-react</code>, <code>babel-preset-typescript</code>, <code>babel-register</code>, <code>babel-standalone</code>, <code>babel-template</code>, <code>babel-traverse</code>, <code>babel-types</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13966">#13966</a> Run tests in a native Node.js ESM environment (<a href="https://github.com/nicolo-ribaudo"><code>@​nicolo-ribaudo</code></a>)</li>
</ul>
</li>
<li><code>babel-parser</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13982">#13982</a> Extend <code>hasPlugin</code> to accept plugin-configuration array pairs (<a href="https://github.com/js-choi"><code>@​js-choi</code></a>)</li>
</ul>
</li>
<li><code>babel-helpers</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13996">#13996</a> Don't use ESM for <code>require</code>d files in <code>babel/helpers</code> tests (<a href="https://github.com/nicolo-ribaudo"><code>@​nicolo-ribaudo</code></a>)</li>
</ul>
</li>
<li><code>babel-plugin-proposal-object-rest-spread</code>, <code>babel-traverse</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13948">#13948</a> Convert proposal-object-rest-spread to TS (<a href="https://github.com/JLHwung"><code>@​JLHwung</code></a>)</li>
</ul>
</li>
<li><code>babel-parser</code>, <code>babel-plugin-bugfix-safari-id-destructuring-collision-in-function-expression</code>, <code>babel-plugin-bugfix-v8-spread-parameters-in-optional-chaining</code>, <code>babel-plugin-proposal-optional-chaining</code>, <code>babel-preset-react</code>, <code>babel-preset-typescript</code>
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13978">#13978</a> Only bundle the release build, and don't import <code>src</code> in tests (<a href="https://github.com/nicolo-ribaudo"><code>@​nicolo-ribaudo</code></a>)</li>
</ul>
</li>
<li>Other
<ul>
<li><a href="https://github-redirect.dependabot.com/babel/babel/pull/13976">#13976</a> Fail CI when <code>babel/runtime</code> ESM tests fail (<a href="https://github.com/nicolo-ribaudo"><code>@​nicolo-ribaudo</code></a>)</li>
</ul>
</li>
</ul>

</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="5687ade5e7"><code>5687ade</code></a> v7.16.6</li>
<li><a href="7794201940"><code>7794201</code></a> fix: handle tokens for invalid template element (<a href="https://github.com/babel/babel/tree/HEAD/packages/babel-parser/issues/14055">#14055</a>)</li>
<li><a href="7b7ab94066"><code>7b7ab94</code></a> v7.16.5</li>
<li><a href="39080492f4"><code>3908049</code></a> maintain estree string literal shape when cloned (<a href="https://github.com/babel/babel/tree/HEAD/packages/babel-parser/issues/14039">#14039</a>)</li>
<li><a href="94af0e5c62"><code>94af0e5</code></a> Improve template tokenizing (<a href="https://github.com/babel/babel/tree/HEAD/packages/babel-parser/issues/13919">#13919</a>)</li>
<li><a href="2d989a983d"><code>2d989a9</code></a> Run tests in a native Node.js ESM environment (<a href="https://github.com/babel/babel/tree/HEAD/packages/babel-parser/issues/13966">#13966</a>)</li>
<li><a href="f4236f43a1"><code>f4236f4</code></a> Extend <code>hasPlugin</code> to accept plugin-configuration array pairs (<a href="https://github.com/babel/babel/tree/HEAD/packages/babel-parser/issues/13982">#13982</a>)</li>
<li><a href="ad1798ed48"><code>ad1798e</code></a> Only bundle the release build, and don't import <code>src</code> in tests (<a href="https://github.com/babel/babel/tree/HEAD/packages/babel-parser/issues/13978">#13978</a>)</li>
<li><a href="75996cb62b"><code>75996cb</code></a> Use full import specifier path in tests (<a href="https://github.com/babel/babel/tree/HEAD/packages/babel-parser/issues/13938">#13938</a>)</li>
<li><a href="a470f7b479"><code>a470f7b</code></a> Recover from shorthand assign exprs (<a href="https://github.com/babel/babel/tree/HEAD/packages/babel-parser/issues/13968">#13968</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/babel/babel/commits/v7.16.6/packages/babel-parser">compare view</a></li>
</ul>
</details>
<br />

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

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

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

 ---

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

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

</details>

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

Reviewed By: passy

Differential Revision: D33234002

Pulled By: aigoncharov

fbshipit-source-id: 7e345cf0eee25aacc1b52d58eb5c2c70800e0729
2021-12-20 13:52:52 -08:00
dependabot[bot]
bbff1d2fb7 Bump pretty-format from 27.3.1 to 27.4.2 in /desktop (#3165)
Summary:
Bumps [pretty-format](https://github.com/facebook/jest/tree/HEAD/packages/pretty-format) from 27.3.1 to 27.4.2.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/facebook/jest/releases">pretty-format's releases</a>.</em></p>
<blockquote>
<h2>v27.4.2</h2>
<h2>27.4.2</h2>
<h3>Fixes</h3>
<ul>
<li><code>[jest-worker]</code> Add additional <code>execArgv</code> to filter (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12103">#12103</a>)</li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/JonWallsten"><code>@​JonWallsten</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/facebook/jest/pull/12103">facebook/jest#12103</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/facebook/jest/compare/v27.4.1...v27.4.2">https://github.com/facebook/jest/compare/v27.4.1...v27.4.2</a></p>
<h2>v27.4.1</h2>
<h3>Fixes</h3>
<ul>
<li><code>[jest-worker]</code> Filter <code>execArgv</code> correctly (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12097">#12097</a>)</li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/SuperOleg39"><code>@​SuperOleg39</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/facebook/jest/pull/12097">facebook/jest#12097</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/facebook/jest/compare/v27.4.0...v27.4.1">https://github.com/facebook/jest/compare/v27.4.0...v27.4.1</a></p>
<h2>v27.4.0</h2>
<h3>Features</h3>
<ul>
<li><code>[expect]</code> Enhancing the <code>toHaveProperty</code> matcher to support array selection (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12092">#12092</a>)</li>
<li><code>[jest-core]</code> Add support for <code>testResultsProcessor</code> written in ESM (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12006">#12006</a>)</li>
<li><code>[jest-diff, pretty-format]</code> Add <code>compareKeys</code> option for custom sorting of object keys (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11992">#11992</a>)</li>
<li><code>[jest-mock]</code> Add <code>ts-jest</code> mock util functions (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12089">#12089</a>)</li>
</ul>
<h3>Fixes</h3>
<ul>
<li><code>[expect]</code> Allow again <code>expect.Matchers</code> generic with single value (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11986">#11986</a>)</li>
<li><code>[jest-circus, jest-jasmine2]</code> Avoid false concurrent test failures due to unhandled promise rejections (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11987">#11987</a>)</li>
<li><code>[jest-config]</code> Add missing <code>slash</code> dependency to <code>package.json</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12080">#12080</a>)</li>
<li><code>[jest-core]</code> Incorrect detection of open ZLIB handles (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12022">#12022</a>)</li>
<li><code>[jest-diff]</code> Break dependency cycle (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10818">#10818</a>)</li>
<li><code>[jest-environment-jsdom]</code> Add <code>types/jsdom</code> dependency (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11999">#11999</a>)</li>
<li><code>[jest-environment-jsdom]</code> Do not reset the global.document too early on teardown (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11871">#11871</a>)</li>
<li><code>[jest-transform]</code> Improve error and warning messages (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11998">#11998</a>)</li>
<li><code>[jest-worker]</code> Pass <code>execArgv</code> correctly to <code>worker_threads</code> worker (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12069">#12069</a>)</li>
</ul>
<h3>Chore &amp; Maintenance</h3>
<ul>
<li><code>[docs]</code> CLI options alphabetized (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11586">#11586</a>)</li>
<li><code>[jest-runner]</code> Add info regarding timers to forcedExit message(<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12083">#12083</a>)</li>
<li><code>[*]</code> Replaced <code>substr</code> method with <code>substring</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12066">#12066</a>)</li>
<li><code>[*]</code> Add <code>types</code> entry to all export maps (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12073">#12073</a>)</li>
</ul>
<h3>New Contributors</h3>

</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/facebook/jest/blob/main/CHANGELOG.md">pretty-format's changelog</a>.</em></p>
<blockquote>
<h2>27.4.2</h2>
<h3>Fixes</h3>
<ul>
<li><code>[jest-worker]</code> Add additional <code>execArgv</code> to filter (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12103">#12103</a>)</li>
</ul>
<h2>27.4.1</h2>
<h3>Fixes</h3>
<ul>
<li><code>[jest-worker]</code> Filter <code>execArgv</code> correctly (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12097">#12097</a>)</li>
</ul>
<h2>27.4.0</h2>
<h3>Features</h3>
<ul>
<li><code>[expect]</code> Enhancing the <code>toHaveProperty</code> matcher to support array selection (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12092">#12092</a>)</li>
<li><code>[jest-core]</code> Add support for <code>testResultsProcessor</code> written in ESM (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12006">#12006</a>)</li>
<li><code>[jest-diff, pretty-format]</code> Add <code>compareKeys</code> option for custom sorting of object keys (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11992">#11992</a>)</li>
<li><code>[jest-mock]</code> Add <code>ts-jest</code> mock util functions (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12089">#12089</a>)</li>
</ul>
<h3>Fixes</h3>
<ul>
<li><code>[expect]</code> Allow again <code>expect.Matchers</code> generic with single value (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11986">#11986</a>)</li>
<li><code>[jest-circus, jest-jasmine2]</code> Avoid false concurrent test failures due to unhandled promise rejections (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11987">#11987</a>)</li>
<li><code>[jest-config]</code> Add missing <code>slash</code> dependency to <code>package.json</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12080">#12080</a>)</li>
<li><code>[jest-core]</code> Incorrect detection of open ZLIB handles (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12022">#12022</a>)</li>
<li><code>[jest-diff]</code> Break dependency cycle (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10818">#10818</a>)</li>
<li><code>[jest-environment-jsdom]</code> Add <code>types/jsdom</code> dependency (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11999">#11999</a>)</li>
<li><code>[jest-environment-jsdom]</code> Do not reset the global.document too early on teardown (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11871">#11871</a>)</li>
<li><code>[jest-transform]</code> Improve error and warning messages (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11998">#11998</a>)</li>
<li><code>[jest-worker]</code> Pass <code>execArgv</code> correctly to <code>worker_threads</code> worker (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12069">#12069</a>)</li>
</ul>
<h3>Chore &amp; Maintenance</h3>
<ul>
<li><code>[docs]</code> CLI options alphabetized (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11586">#11586</a>)</li>
<li><code>[jest-runner]</code> Add info regarding timers to forcedExit message(<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12083">#12083</a>)</li>
<li><code>[*]</code> Replaced <code>substr</code> method with <code>substring</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12066">#12066</a>)</li>
<li><code>[*]</code> Add <code>types</code> entry to all export maps (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12073">#12073</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="7965591f78"><code>7965591</code></a> v27.4.2</li>
<li><a href="fa4a398276"><code>fa4a398</code></a> v27.4.1</li>
<li><a href="0dc6dde296"><code>0dc6dde</code></a> v27.4.0</li>
<li><a href="f8c6e7520c"><code>f8c6e75</code></a> Add <code>types</code> entry in export map (<a href="https://github.com/facebook/jest/tree/HEAD/packages/pretty-format/issues/12073">#12073</a>)</li>
<li><a href="27b89ecfed"><code>27b89ec</code></a> feat(jest-diff, pretty-format): Add compareKeys option for sorting object key...</li>
<li>See full diff in <a href="https://github.com/facebook/jest/commits/v27.4.2/packages/pretty-format">compare view</a></li>
</ul>
</details>
<br />

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

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

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

 ---

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

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

</details>

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

Reviewed By: passy

Differential Revision: D33234012

Pulled By: aigoncharov

fbshipit-source-id: ffaf3f82b8edbf41ef2be09695e4db0229188729
2021-12-20 13:52:51 -08:00
dependabot[bot]
845f8ea87c Bump react-virtual from 2.8.2 to 2.10.0 in /desktop (#3137)
Summary:
Bumps [react-virtual](https://github.com/tannerlinsley/react-virtual) from 2.8.2 to 2.10.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/tannerlinsley/react-virtual/releases">react-virtual's releases</a>.</em></p>
<blockquote>
<h2>v2.10.0</h2>
<h1><a href="https://github.com/tannerlinsley/react-virtual/compare/v2.9.0...v2.10.0">2.10.0</a> (2021-12-02)</h1>
<h3>Features</h3>
<ul>
<li>add useScroll, extract useElementScroll, useWindowScroll (<a href="https://github-redirect.dependabot.com/tannerlinsley/react-virtual/issues/219">https://github.com/facebook/flipper/issues/219</a>) (<a href="aa8dc9ced4">aa8dc9c</a>)</li>
</ul>
<h2>v2.9.0</h2>
<h1><a href="https://github.com/tannerlinsley/react-virtual/compare/v2.8.2...v2.9.0">2.9.0</a> (2021-11-29)</h1>
<h3>Features</h3>
<ul>
<li>add initialRect for SSR, calc range in every render (<a href="https://github-redirect.dependabot.com/tannerlinsley/react-virtual/issues/217">https://github.com/facebook/flipper/issues/217</a>) (<a href="cf19d1fb1a">cf19d1f</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="aa8dc9ced4"><code>aa8dc9c</code></a> feat: add useScroll, extract useElementScroll, useWindowScroll (<a href="https://github-redirect.dependabot.com/tannerlinsley/react-virtual/issues/219">https://github.com/facebook/flipper/issues/219</a>)</li>
<li><a href="f4b62c4e37"><code>f4b62c4</code></a> Update the height and width values in examples (<a href="https://github-redirect.dependabot.com/tannerlinsley/react-virtual/issues/194">https://github.com/facebook/flipper/issues/194</a>)</li>
<li><a href="8044f4bfa4"><code>8044f4b</code></a> Fixed Github Image Shield to show stars (<a href="https://github-redirect.dependabot.com/tannerlinsley/react-virtual/issues/213">https://github.com/facebook/flipper/issues/213</a>)</li>
<li><a href="cf19d1fb1a"><code>cf19d1f</code></a> feat: add initialRect for SSR, calc range in every render (<a href="https://github-redirect.dependabot.com/tannerlinsley/react-virtual/issues/217">https://github.com/facebook/flipper/issues/217</a>)</li>
<li><a href="edeefebacd"><code>edeefeb</code></a> Use <code>types/index.d.ts</code> for <code>types</code> field (<a href="https://github-redirect.dependabot.com/tannerlinsley/react-virtual/issues/209">https://github.com/facebook/flipper/issues/209</a>)</li>
<li><a href="907fcf3e69"><code>907fcf3</code></a> A few typo fixes on Markdown files (<a href="https://github-redirect.dependabot.com/tannerlinsley/react-virtual/issues/215">https://github.com/facebook/flipper/issues/215</a>)</li>
<li><a href="5508e19db3"><code>5508e19</code></a> Update index.js</li>
<li><a href="266eb5551f"><code>266eb55</code></a> Fixed Faulty Links on the Website (<a href="https://github-redirect.dependabot.com/tannerlinsley/react-virtual/issues/207">https://github.com/facebook/flipper/issues/207</a>)</li>
<li>See full diff in <a href="https://github.com/tannerlinsley/react-virtual/compare/v2.8.2...v2.10.0">compare view</a></li>
</ul>
</details>
<br />

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

Reviewed By: passy

Differential Revision: D33234027

Pulled By: aigoncharov

fbshipit-source-id: e496395375e5ea9a5024f3f6fd151837911d9a78
2021-12-20 13:52:51 -08:00
Andrey Goncharov
debf872806 Allow to start only one instance of log listener and crash watcher
Summary:
Changelog: Allow only a single crash watcher and a single log listener per device. Start log listener and crash watcher for every device upon connection. Remove commands to start/stop them externally.

Monitored CPU load for a physical Android device with the log listener on and off. Did not notice any real difference.

Resolved crashing adbkit-logcat by forcing the usage of 2.0.1. A proper fix would be to unify babel transforms for browser flipper and electron flipper, but we might re-think how we distribute flipper in the next half, so a simple hot fix might be a better use of time and resources.

Reviewed By: mweststrate

Differential Revision: D33132506

fbshipit-source-id: 39d422682a10a64830ac516e30f43f32f416819d
2021-12-20 11:39:01 -08:00
Andrey Goncharov
731749b41f Move crash reporting listener to the server
Summary: Changelog: Move crash watcher to the server. Add 'device-crash' event. Add 'device-start-crash-watcher', 'device-stop-crash-watcher' commands. Add 'onDeviceCrash' method to Plugin Client.

Reviewed By: mweststrate

Differential Revision: D33089810

fbshipit-source-id: ed62ee7c1129e5e25af18b444744b0796f567b72
2021-12-20 11:39:00 -08:00
Andrey Goncharov
9fd45b96d2 Ban Node APIs in plugins/
Reviewed By: mweststrate

Differential Revision: D33021152

fbshipit-source-id: bdeb71a42d330b8fed4040d42a02907ee82b3254
2021-12-20 11:39:00 -08:00
Andrey Goncharov
3f771c05dd Remove fs usage from Navigator plugin
Reviewed By: mweststrate

Differential Revision: D33019873

fbshipit-source-id: 6d48971dc04161b64fdd32ac4e658b56aa98b7ec
2021-12-20 11:39:00 -08:00
dependabot[bot]
9085fc6f72 Bump immer from 9.0.6 to 9.0.7 in /desktop (#3138)
Summary:
Bumps [immer](https://github.com/immerjs/immer) from 9.0.6 to 9.0.7.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/immerjs/immer/releases">immer's releases</a>.</em></p>
<blockquote>
<h2>v9.0.7</h2>
<h2><a href="https://github.com/immerjs/immer/compare/v9.0.6...v9.0.7">9.0.7</a> (2021-11-24)</h2>
<h3>Bug Fixes</h3>
<ul>
<li>Append to array when key is &quot;-&quot; (<a href="https://github-redirect.dependabot.com/immerjs/immer/issues/872">https://github.com/facebook/flipper/issues/872</a>) (<a href="2afdb1b37d">2afdb1b</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="8507692c72"><code>8507692</code></a> chore(deps): bump prismjs from 1.24.0 to 1.25.0 in /website (<a href="https://github-redirect.dependabot.com/immerjs/immer/issues/853">https://github.com/facebook/flipper/issues/853</a>)</li>
<li><a href="5e71d58499"><code>5e71d58</code></a> chore(deps): bump tmpl from 1.0.4 to 1.0.5 (<a href="https://github-redirect.dependabot.com/immerjs/immer/issues/854">https://github.com/facebook/flipper/issues/854</a>)</li>
<li><a href="26355d7531"><code>26355d7</code></a> chore: typo (<a href="https://github-redirect.dependabot.com/immerjs/immer/issues/857">https://github.com/facebook/flipper/issues/857</a>)</li>
<li><a href="4e062c4292"><code>4e062c4</code></a> docs: Fix typo (<a href="https://github-redirect.dependabot.com/immerjs/immer/issues/862">https://github.com/facebook/flipper/issues/862</a>)</li>
<li><a href="fb28e8835d"><code>fb28e88</code></a> docs: Update produce.mdx (<a href="https://github-redirect.dependabot.com/immerjs/immer/issues/868">https://github.com/facebook/flipper/issues/868</a>)</li>
<li><a href="6e7cd9aaf9"><code>6e7cd9a</code></a> docs: fix mobile navbar menu styles (<a href="https://github-redirect.dependabot.com/immerjs/immer/issues/870">https://github.com/facebook/flipper/issues/870</a>)</li>
<li><a href="437e745258"><code>437e745</code></a> chore(deps): bump ws from 5.2.2 to 5.2.3</li>
<li><a href="2afdb1b37d"><code>2afdb1b</code></a> fix: Append to array when key is &quot;-&quot; (<a href="https://github-redirect.dependabot.com/immerjs/immer/issues/872">https://github.com/facebook/flipper/issues/872</a>)</li>
<li><a href="2794576206"><code>2794576</code></a> chore: fix release job</li>
<li><a href="e6aa92c141"><code>e6aa92c</code></a> chore: fix tests on master</li>
<li>Additional commits viewable in <a href="https://github.com/immerjs/immer/compare/v9.0.6...v9.0.7">compare view</a></li>
</ul>
</details>
<br />

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

</details>

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

Reviewed By: aigoncharov

Differential Revision: D33234026

Pulled By: mweststrate

fbshipit-source-id: 95134c207a685125e1eaab4a6c9bc565a3077828
2021-12-20 03:26:23 -08:00
Michel Weststrate
4630f37786 Clean up process globals
Summary: Cleaned up some `process` references

Reviewed By: passy

Differential Revision: D33184882

fbshipit-source-id: 6fc56bcea4e145ba97aa8bf9e689e53e2bf239cc
2021-12-17 14:12:50 -08:00
Michel Weststrate
e46fcba0b2 Make sure that test stuff doesn't end up in bundles
Summary: When bundling a production bundle of flipper-ui / flipper-server, noticed that a lot of irrelevant stuff ends up. Like: `jest`, `metro`, `testing-library`. The whole jungle basically. Will add safety checks in the next diffs that this no longer happens

Reviewed By: passy

Differential Revision: D33186531

fbshipit-source-id: 1e2034153c8c4a3fac02cd9ce27d99224223df7a
2021-12-17 14:12:50 -08:00
Michel Weststrate
e0afebeb32 Disabled consistently failing OSS test (#3188)
Summary:
Pull Request resolved: https://github.com/facebook/flipper/pull/3188

Fixes failing typescript issue (probably case sensitivity thing, on windows it was complaining about `Metro` not being resolvable while we use `metro` everywhere). Put a `ts-ignore` on it, since the metro typings we use are empty anyway

Disabled a test that failed consistently on GH CI. Maybe timing or Node version issue?

Reviewed By: fabiomassimo

Differential Revision: D33191515

fbshipit-source-id: 18a143024824eeeafaffe4941df474591fb7b70a
2021-12-17 14:03:53 -08:00
Michel Weststrate
d9488f06ac Clean up flipper-ui-core deps
Summary: Noticed that flipper-ui-core bundled quite some unused / node based deps. No longer

Reviewed By: aigoncharov

Differential Revision: D33184489

fbshipit-source-id: a180f9b8f3eb00ffa6c91e0cca654d4b9b609692
2021-12-17 10:04:23 -08:00
Michel Weststrate
cea7be7fde Clean up globals
Summary: This diff is some boyscouting on cleaning up our globals, and stop using them inconsistently icmw global or window

Reviewed By: aigoncharov

Differential Revision: D33171108

fbshipit-source-id: 400893e5f31523631a7ab6fda428524c751901f1
2021-12-17 10:04:23 -08:00
Juan Tejada
c42c54f69d For FB, prefer internal build over global build
Summary:
This commit makes it so when running the internal version of Flipper, we always prefer the internal build of React DevTools as opposed to a global install of DevTools. Note that users may still change the version the use and select the global version.

Externally, i.e. for the OSS build, users will still have the option to always prefer the global build and toggle between it.

The motivation for this is to let us ensure that employees are using the latest version of React DevTools and in order to obtain accurate logs of internal usage of DevTools

Reviewed By: mweststrate

Differential Revision: D33167394

fbshipit-source-id: ee75eedc3a488e223189bbfa6288408bb84824e3
2021-12-17 07:57:05 -08:00
Michel Weststrate
8f40949bb0 clean slate package resolutions
Summary:
Over time we collected a lot of harcoded resolutions, but it is really hard to get signal about their sanity:
* some resolutions generate a lot of yarn warnings as they resolve with a different major than required, and it's really hard to tell whether they actually make things worse or better
* some resolutions are for package we don't even use any more
* some resolutions were there to fix type incompatibilities which have been solved now by keeping them uniquely required
* some resolutions are there to fix "security issues" or security issues in transient dependencies that might have been upgraded int he mean time

So this diff radically removes all of them, trusting Github to propose restoring the sane ones of them :). In terms of functionality everything seems to be working at least

Reviewed By: timur-valiev

Differential Revision: D33158981

fbshipit-source-id: 83e74cdbc8e47ccbf554b97620cf7caa2c6599ce
2021-12-17 07:36:07 -08:00
Michel Weststrate
5df34a337c Unshare global types
Summary:
This diff adds `types` fields on the compiler config for every project. This way we can make sure that for example node types and packages are not available in flipper-ui-core. Without an explicit types field, all types would be shared between all packages, and implicitly included into the compilation of everything. For the same reason `types/index.d.ts` has been removed, we want to be intentional on which types are being used in which package.

This diff does most of the work, the next diff will fine tune the globals, and do some further cleanup.

As an alternative solution I first tried a `nohoist: **/node_modules/types/**` and make sure every package list explicitly the types used in package json, which works but is much more error prone, as for example two different react types versions in two packages will cause the most unreadable compiler error due to the types not being shared and not literally the same.

Reviewed By: lawrencelomax

Differential Revision: D33124441

fbshipit-source-id: c2b9d768f845ac28005d8331ef5fa1066c7e4cd7
2021-12-17 07:36:07 -08:00
Andrey Goncharov
af3757dcae Add left margin for app names in app selector
Summary: Changelog: Add left margin for app names in app selector

Reviewed By: timur-valiev

Differential Revision: D33162189

fbshipit-source-id: 4eb1a565e5cbcdfb44b0dfcaa4b0988c8a69d200
2021-12-17 05:01:54 -08:00
Flipper Bot
d3ea3c46ce Flipper Release: v0.126.0
Summary: Releasing version 0.126.0

Reviewed By: nikoant

Differential Revision: D33183900

fbshipit-source-id: 65ff0048c3d6dca3910209dfa8e285d754698716
2021-12-17 02:49:09 -08:00
Michel Weststrate
dcfeb4a4d5 Clean up packages and types
Summary:
This diff removes most deps from the root package.json, which now only contains electron and shared build / test infra structure: lint, prettier, jest, typescript.

This makes it possible to control much better which packages are used where, as all sub packages now have their deps explicitly in their package.json instead of incidentally shared. This allows for example to disable DOM types for all packages by default (flipper-plugin, ui(-core) and app still request it), and in the next diff I hope to add to this that nodeJS types are no longer shared either, so that UI oriented packages will generate compile errors when using Node built-ins

This diff removes most deps that were currently unused, and dedupes a bunch of other ones, so the build should probably be a bit smaller now as well:

{F686704253}

{F686704295}

Reviewed By: antonk52

Differential Revision: D33062859

fbshipit-source-id: 5afaa4f2103d055188382a3370c1fffa295a298a
2021-12-16 14:54:59 -08:00
Michel Weststrate
78413c1ecf Register shortcuts on window instead of globally
Summary:
Changelog: Register shortcuts only for Flipper application instead of globally. Fixes https://github.com/facebook/flipper/issues/3090

As reported, during decapitation we accidentally started registering shortcuts globally, rather per app as it used to be in the menu's. This diff fixes that and also makes sure shortcuts are supported in the browser version of flipper

Reviewed By: lawrencelomax

Differential Revision: D33158445

fbshipit-source-id: 8371e5b96e772152eeb93ba990e1f5edb9e67085
2021-12-16 14:51:08 -08:00
Michel Weststrate
ef2a86e7a8 Sdk path should be used when launching emulator
Summary:
Changelog: Fixed issue where a missing ANDROID_SDK_ROOT env var made it impossible to launch emulators

Run into an issue where ANDROID_SDK_ROOT wasn't set for my user, causing Flipper not to be able to launch emulator, which was looked up from the path rather than using the flipper settings.

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

Reviewed By: timur-valiev

Differential Revision: D33158280

fbshipit-source-id: ea5616b10265ed43f1012c58da081be275ff1d5b
2021-12-16 14:51:08 -08:00
Juan Tejada
730d47932d Update React DevTools to 4.22.1
Summary:
Update `react-devtools-core` and `react-devtools` dependencies for RN, VSCode, Flipper, etc.

`js1 upgrade react-devtools -v 4.22.1`

# Changelog:

[General][Changed] - Upgraded react-devtools-core dependency to 4.22.1

Reviewed By: bvaughn

Differential Revision: D33107248

fbshipit-source-id: 8a7b458cd7eee7b173a41c718c8694bb84b6ea92
2021-12-16 09:48:38 -08:00
Harsh Sinha
68a2cfaffa Building a plugin for Messenger Co Presence
Summary:
Created a plugin from   https://www.internalfb.com/intern/staticdocs/flipper/docs/tutorial/intro

The plugin allows us to look at various signal events and help debug issues for messenger copresence with different protocols (upi or gqls)

Differential Revision: D28548194

fbshipit-source-id: 5f5063dc5bc1dbf282bd327907003301836f3698
2021-12-16 01:06:48 -08:00
Anton Nikolaev
2c976546c7 Redirect to Support Entry Point
Reviewed By: mweststrate

Differential Revision: D33091179

fbshipit-source-id: da0c3e5fc21eef1693f7da2d00d90347bf2e0b51
2021-12-14 09:04:19 -08:00
Anton Nikolaev
ef74d01b11 Package patches updated to get rid of warnings
Summary: `patch-package antd metro metro-runtime rc-tabs`

Reviewed By: timur-valiev

Differential Revision: D33059716

fbshipit-source-id: c176a0ecbb61f17ddcb73f6162faf8c182b3feaf
2021-12-14 01:11:07 -08:00
Michel Weststrate
5ce5d897c8 Make loading of bundled plugins working and robust
Summary:
Bundled plugins so far didn't load because the defaultPlugins was not generated yet. Fixed follow up errors that resulted from node modules not being available in the browser, and made the process more robust so that one plugin that fails to initialise doesn't kill all bundled plugins from being loaded.

Cleaned up the server scripts, and reused the BUILTINS list that is already maintained in the babel transformer.

Report errors during the build process if modules are referred that are stubbed out (later on we could maybe error on that)

Reviewed By: aigoncharov

Differential Revision: D33020243

fbshipit-source-id: 3ce13b0049664b5fb19c1f45f0b33c1d7fdbea4c
2021-12-13 05:48:17 -08:00
Michel Weststrate
5564251aac Make sure only requests from own host & port are accepted for now
Summary: Make sure the flipper server socket only accepts local connections

Reviewed By: aigoncharov

Differential Revision: D33020251

fbshipit-source-id: 53e95e4871a45f3a3fa14f999499568a5a6b4995
2021-12-13 05:48:17 -08:00
Michel Weststrate
9e09c0d5f7 Stop exposing adbkit and crc32 as globals
Summary: Since no plugin directly uses adbkit or crc32 anymore, we removed them from the globals. They wouldn't work in the browser anyway

Reviewed By: aigoncharov

Differential Revision: D33019084

fbshipit-source-id: 66ab0756399fdb401c63f5e8271bdd62cb79ab4a
2021-12-13 05:48:17 -08:00
Michel Weststrate
ac9080abac Remove 'process' usage
Summary: Removed process, adbkit and electron usages that were still remaining. Verified changes by disabling the built-in module stubbing (will be cleaned up further later in this stack).

Reviewed By: aigoncharov

Differential Revision: D33019083

fbshipit-source-id: 8bfce31f4b5ed349cb4fd86d34c9b41b9b8b8360
2021-12-13 05:48:17 -08:00
Michel Weststrate
3ef1923b29 Use uniform Socket message size to avoid disconnects
Summary: During startup the socket connection would close a few times, among others because Scribe dumps 1.3 MB of data after startup, and the maximum payload of `socket.io` defaults to 1MB. This diff changes it to 100MB (the max size used by `ws` library). We know that we need at least > 10 MB, as that is what plugins like Network cap at.

Reviewed By: aigoncharov

Differential Revision: D33017653

fbshipit-source-id: 1233af6fbdc4b9eed42786ee418cfd6d43b2b433
2021-12-13 05:48:17 -08:00
Michel Weststrate
accef856fc Remove remaining Node imports from core
Summary:
Removed remaining path / fs imports from Flipper core.

`expand-tide` needed replacement too, but noticed that it never actually rewrites paths since all use cases were already using absolute paths, so removed it instead.

Reviewed By: aigoncharov

Differential Revision: D33017654

fbshipit-source-id: e12f66ef68b5f9e4279411c94445a2fb87249e9a
2021-12-13 05:48:17 -08:00
Michel Weststrate
d95b15094f Implement fs.readFile / fs.writeFile
Summary: Per title. Made an explicit distinction between binary and non binary files, since they need to be encoded differently. This keeps both the implementation and API simpler (in terms of overloading / type checking)

Reviewed By: aigoncharov

Differential Revision: D33016031

fbshipit-source-id: 3c99956eb016849a908a171d88a7a64a88b76268
2021-12-13 05:48:17 -08:00