Commit Graph

541 Commits

Author SHA1 Message Date
Michel Weststrate
489dd1521e Make sure Sandy Devices Plugins are loaded in Flipper devices
Summary:
This diff makes sure that devices will actually instantiate applicable sandy device plugins. Similar to how client plugins are owned by Client, device plugins are directly owned by BaseDevice, which significantly simplifies life cycle management and doesn't dispatch updates to all Redux connect components whenever something irrelevant changes.

Also made sure `device.teardown()` is called. That API already existed, but wasn't used or implemented before.

Updated Flipper test utils to support testing device plugins as well (both Sandy and classic ones)

Reviewed By: passy, nikoant

Differential Revision: D22693929

fbshipit-source-id: 73b2b8666ef7a0e748ea89360db84734d37eb5be
2020-08-04 07:08:31 -07:00
Michel Weststrate
1e956e1bf5 Make sure Sandy Device Plugins can be unit testsed
Summary: Add unit tests to verify that the unit test utilities for for Sandy device plugins work as expected. Fixed a bug revealed by that and cleaned up some TODO's

Reviewed By: jknoxville, passy, nikoant

Differential Revision: D22693928

fbshipit-source-id: 93162db19d826d0cd7f642cef1447fd756261ac8
2020-08-04 07:08:31 -07:00
Michel Weststrate
91ed4e31c0 Introduce DevicePlugin APIs
Summary:
This stack introduces Sandy device plugins, they are quite similar to normal plugins, but, a devicePlugin module is organized as

```
export function supportsDevice(device): boolean

export function devicePlugin(devicePluginClient)

export function Component
```

Device plugins get access to the device meta data and can subscribe to the `onLogEntry` callback and `onDestroy` lifecycle.

They will be able to store state just as normal plugins, but can't send or receive methods, so devicePluginClient is a bit limited.

This diff only sets up most of the new data structures, and makes sure everything still compiles and no existing tests fail.

To prevent this diff from becoming to big, actually loading, rendering and testing device plugins will be done in next diffs

Please take a critical look at the api proposed and the (especially) the public names used :)

Reviewed By: passy, nikoant

Differential Revision: D22691351

fbshipit-source-id: bdbbd7f86d14b646fc9a693ad19f33583a76f26d
2020-08-04 07:08:31 -07:00
generatedunixname89002005306973
f01b84be27 Flipper Release: v0.52.0
Summary: Releasing version 0.52.0

Reviewed By: passy

Differential Revision: D22921075

fbshipit-source-id: 4cab9552dcd5ff1a64d20e1e771a4f5173d54860
2020-08-04 06:15:23 -07:00
Michel Weststrate
c802215dd2 Make most text selectable
Summary:
Fix long standing issue where text by default in Flipper is not selectable. Which is super annoying when working with tables, trying to copy error messages, etc etc. Wanted to fix it with ant.design, but got so annoyed by not being able to select an error I needed, that I fixed it now :-P.

This diff makes all text selectable by default, and then bails out for specific elements, like section headers, button captions, the left toolbar (navigation) and top toolbar to preserve the desktop app look & feel.

Fixes a popular papercut issue

Changelog: All text is now selectable by default in Flipper.

Reviewed By: passy

Differential Revision: D22897793

fbshipit-source-id: 7bc50a987e012595956c07d1997959a5480790aa
2020-08-04 03:06:13 -07:00
Michel Weststrate
b7cfb509f1 Improve request formatting
Summary:
This diff adds several improvements to displaying requests / responses in the network plugin

1. If there is no formatter rendering the data, the data is rendered 'raw'
2. For binary data, `(binary data)` text is printed, rather than an empty box
3. For request that have an empty request / response, `(empty)` is printed, rather than an empty box
4. If a formatter is applied, we show which formatter was used, which makes it easier to debug / spot / report issues
5. If the graphql formatter can't parse the data because it is truncated, it won't return anything, so that it falls back to the next formatter (urlencoder) to take care of the presentation

Changelog: [Network plugin] Improved presentation of request / response bodies and fixed issues where they would sometimes not be displayed.

Reviewed By: jknoxville

Differential Revision: D22865373

fbshipit-source-id: 912d2f27269a4c9edbf62f2039d46ccf90a008af
2020-08-03 11:39:49 -07:00
John Knox
45d461a3b8 Don't escape and decode network response payloads
Summary:
This was originally done in https://github.com/facebook/flipper/pull/377 to support chinese characters, but it's not clear how it works, or what problem specifically it is trying to solve.

It's causing some problems where valid responses are failing to be "decoded", so I'm removing it.

Reviewed By: mweststrate

Differential Revision: D22866879

fbshipit-source-id: a19a57b0ddba2b9f434eb3c37e6b92da1dfbef01
2020-08-03 10:21:54 -07:00
Liran Kurtz
10eca1e7f1 Added Conectivity tab to Zero Rating plugin
Summary: Cennectivity tab should allow setting Mock Connectivity via Flipper

Reviewed By: zaxy78

Differential Revision: D22816950

fbshipit-source-id: 938d8bcaa50ad4f1abe4e253aeac0cd247252b37
2020-08-02 23:37:11 -07:00
Pascal Hartig
6233116fed Add devserver check
Reviewed By: jknoxville

Differential Revision: D22864430

fbshipit-source-id: ce37e6abeb3b152aedb2013bc9cd548807cad7b3
2020-07-31 04:57:19 -07:00
Lucas Santos
1fa518a754 Add initial desktop files
Summary:
This is just an initial setup from Flipper. I just ran `scarf flipper-plugin`, followed the iOS path, removed the native files (as we will use the JS infra directly later on) and submitted. :)

I followed this documentation/tutorial: https://www.internalfb.com/intern/wiki/Flipper/create-new-plugin/

(Followed iOS path, then removed native code as not needed)

Differential Revision: D22754500

fbshipit-source-id: 39130b4ee17c6bc72990eec34c466cfa7a650d17
2020-07-30 12:19:36 -07:00
Nicole Stiliyan Vukadinova
a37d48d67e Fix the inconsistency in the timestamps for markerStart and markerEnd
Summary: There was in inconsistency in the timestamps used for markerStart and markerEnd, resulting in negative duration being reported in the Scuba table.

Reviewed By: nubbel

Differential Revision: D22791255

fbshipit-source-id: a4a16c6583974a0423b12805fb8d1a22af44cf5c
2020-07-28 07:22:38 -07:00
Mathias Fleig Mortensen
e466bc4aed Make disk cache inspection toggleable
Summary: Adds a toggle switch to show/hide disk cache images defaulting to inactive. The image data is only sent on the adb connection when the toggle is activated.

Reviewed By: defHLT

Differential Revision: D20002059

fbshipit-source-id: 05c9e515ffe09441e5cfb6f66eb14559ac4a322c
2020-07-27 09:44:52 -07:00
Chaiwat Ekkaewnumchai
8ac0c4c6c4 Convert Section Plugin to Use Sandy
Summary:
Convert section plugin to Sandy API.

TODO
- Fix layout issues
  - scrollbar occurs in small component (bottom layout)
  - scrollbar in wrong place (top layout)
  - text shrunk in bottom part of tree component
- (?) move away from d3
- better typing for payload
- move components to functional one
- unit test

Reviewed By: mweststrate

Differential Revision: D22385993

fbshipit-source-id: 862d4b775caf2d9a7bcb37446299251965a5d6db
2020-07-27 09:04:51 -07:00
generatedunixname89002005306973
5dc98bab9d Flipper Release: v0.51.0
Summary: Releasing version 0.51.0

Reviewed By: nikoant

Differential Revision: D22728768

fbshipit-source-id: 49eabdccc7fd335401618f91b890e94fda11b23f
2020-07-24 10:03:20 -07:00
Anton Nikolaev
323c9d25d4 Fix layout of error and doctor bars
Summary: Changelog: Fixed layout of doctor and error bars which was broken in version 50

Reviewed By: mweststrate

Differential Revision: D22692069

fbshipit-source-id: 43d779656d30675b785eab67d6b7dcca4471653f
2020-07-24 08:33:07 -07:00
John Knox
9ada27526c Change RatingButton to use Popover2
Summary:
The original Popover component doesn't work when the popover goes out of bounds of the current container, and overflow is not visible, which is the case in the title bar.

This changes it to use a new absolutely positioned one instead.

Reviewed By: mweststrate

Differential Revision: D22724110

fbshipit-source-id: f41b6d154ccb66a94b63533fe9c30d2a2c49f1db
2020-07-24 07:13:28 -07:00
John Knox
d7a6356fb6 Add Popover2 component
Summary:
The current Popover component isn't compatible with the new (in progress) component library because it relies on overflowing container elements, which isn't allowed in the generic Layout component.

So this is a new Popover element, which uses absolute positioning instead. It takes heavy inspiration from the Tooltip and TooltipProvider components which do a similar thing.

Still to do:
[x] Edge cases when popover would be near a window edge
[x] Style it to look nice
[x] Split the use case (RatingButton) changes into a separate diff
[x] When the location of the popover container moves (the rating button in this case, e.g. if you resize the window), it doesn't currently cause the effect function in the popover, so it doesn't get moved when it should
[x] Add a little pointer thingy like a speech bubble
[x] Make sure it's perfectly positioned
[ ] Rename it to Popover and delete the old one. Not done, since it's just a stopgap.

Reviewed By: mweststrate

Differential Revision: D22693105

fbshipit-source-id: bc141433914bc20da48f8ae96764a95f7cd74ce5
2020-07-24 07:13:28 -07:00
Michel Weststrate
5a56ee65b8 Fix contributing image link
Summary: Better fix for D22662057 (485b4c9827) / https://github.com/facebook/flipper/pull/1396

Reviewed By: jknoxville

Differential Revision: D22663334

fbshipit-source-id: 3a5f967e857ccc819be34903e3fb982e90823040
2020-07-24 03:38:05 -07:00
Anton Nikolaev
ce180a106f Log login success rate
Summary: Report login success rate

Reviewed By: mweststrate

Differential Revision: D22698005

fbshipit-source-id: 5f02a2ddaaf54acc564d09a5f781ed649ae8a3e6
2020-07-24 02:46:32 -07:00
Dominik Wielgórski
6561bc8f16 Added connection between InAppErrorReporter and Flipper Desktop App via Layout Plugin
Summary:
Created functionality which allows user to open clicked file from inAppErrorReporter.
Created "iface" interface for openInIDE API and created default implementation which indicates that openInIDE is not supported.
Created "impl" implementation specifically for fb4a.

Reviewed By: arpitratan

Differential Revision: D22642497

fbshipit-source-id: 7b3011c128a479e556b869fcc8c4147e153caf71
2020-07-23 13:47:09 -07:00
Elaina Hsu
9e4c5363c5 Deep-linking records to other strong records in the Store tab
Summary: All strong records with a matching record available in the store tab are underlined. When clicked on, it will direct the user to the corresponding store record.

Reviewed By: jonathoma

Differential Revision: D22622612

fbshipit-source-id: 537dbb282e4ae1ff695c577ab47c413d41a10fa4
2020-07-23 09:14:56 -07:00
Nicole Stiliyan Vukadinova
7d06571cfa Add marker start and end to App to measure the startup time for Flipper (#1398)
Summary:
Pull Request resolved: https://github.com/facebook/flipper/pull/1398

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

Reviewed By: nubbel

Differential Revision: D22549700

fbshipit-source-id: 7553ba075e45f1a515922012d7db4fdefefcaa24
2020-07-23 07:32:53 -07:00
Michel Weststrate
f0c54667e0 Support handling deeplinks in plugins
Summary:
This adds support for handling incoming deeplinks in a Sandy plugin, which can be done by using a `client.onDeepLink(deepLink => { } )` listener

Also generalized deeplinks to not just support strings, but also richer objects, which is beneficial to plugin to plugin linking.

Reviewed By: jknoxville

Differential Revision: D22524749

fbshipit-source-id: 2cbe8d52f6eac91a1c1c8c8494706952920b9181
2020-07-22 04:13:59 -07:00
Yann Noutary
c13593bc7e Convert to TypeScript
Summary: Converted the Crash Reporter plugin to Typescript while fixing all linting errors

Reviewed By: jknoxville

Differential Revision: D22571332

fbshipit-source-id: d3092ffc480827b5eb1beb5c3cc91dad6993e267
2020-07-22 01:03:18 -07:00
Dominik Wielgórski
cf6df492ee Created openInIDE API inside Layout Plugin
Summary: Created a communication between Layout Plugin and Flipper Desktop. The API allows users to open given file in a selected IDE. The openInIDE function returns true if the connection with Flipper is established, otherwise returns false.

Reviewed By: adityasharat

Differential Revision: D22625829

fbshipit-source-id: feaf186c107d62b1a75dfc6bbe2c1d66ffd7fd78
2020-07-21 09:27:53 -07:00
Dominik Wielgórski
3e4d92aad0 Get the most accurate full path for a class name
Summary: Added functionality of choosing the best path from the list of potential full paths. By resolving a class name, the method getBestPath checks for the most accurate solution.

Reviewed By: adityasharat

Differential Revision: D22625186

fbshipit-source-id: 98ac4ccd1c18ec19b49edf2ed6e74a84a9899a9f
2020-07-21 04:15:50 -07:00
Anton Nikolaev
a2b2ad9f68 Update electron-devtools-installer
Summary: Update electron-devtools-installer to fix issue blocking installation of dev tools for some users currently: https://github.com/MarshallOfSound/electron-devtools-installer/pull/140

Reviewed By: passy

Differential Revision: D22604024

fbshipit-source-id: f98d8d6e138283c54d5e1cf446b7049bb31b51a0
2020-07-17 15:17:52 -07:00
Pascal Hartig
000e7f85bf Update lodash (security fix)
Summary:
Trying to get our OSS report green and lodash is currently flagged as a security issue on GH.

Manually merged the different PRs on GitHub together.

Reviewed By: jonathoma

Differential Revision: D22599614

fbshipit-source-id: ea4c9abf21aade14cff9338b78b764b181193227
2020-07-17 14:36:24 -07:00
dependabot[bot]
b539ddb1b6 Bump yargs from 15.3.1 to 15.4.1 in /desktop (#1383)
Summary:
Bumps [yargs](https://github.com/yargs/yargs) from 15.3.1 to 15.4.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/yargs/yargs/releases">yargs's releases</a>.</em></p>
<blockquote>
<h2>yargs v15.4.0</h2>
<h3>Features</h3>
<ul>
<li>adds deprecation option for commands (<a href="027a6365b7">027a636</a>)</li>
<li>support array of examples (<a href="https://www.github-redirect.dependabot.com/yargs/yargs/issues/1682">#1682</a>) (<a href="225ab82719">225ab82</a>)</li>
</ul>
<h3>Bug Fixes</h3>
<ul>
<li><strong>docs:</strong> describe usage of <code>.check()</code> in more detail (<a href="932cd1177e">932cd11</a>)</li>
<li><strong>i18n:</strong> Japanese translation phrasing (<a href="https://www.github-redirect.dependabot.com/yargs/yargs/issues/1619">#1619</a>) (<a href="089417550e">0894175</a>)</li>
<li><strong>strict mode:</strong> report default command unknown arguments (<a href="https://www.github-redirect.dependabot.com/yargs/yargs/issues/1626">#1626</a>) (<a href="69f29a9cd4">69f29a9</a>)</li>
<li><strong>usage:</strong> translate 'options' group only when displaying help (<a href="https://www.github-redirect.dependabot.com/yargs/yargs/issues/1600">#1600</a>) (<a href="e60b39b9d3">e60b39b</a>)</li>
</ul>
<h3>Reverts</h3>
<ul>
<li>Revert &quot;chore(deps): update dependency eslint to v7 (<a href="https://github-redirect.dependabot.com/yargs/yargs/issues/1656">#1656</a>)&quot; (<a href="https://github-redirect.dependabot.com/yargs/yargs/issues/1673">#1673</a>) (<a href="34949f89ee">34949f8</a>), closes <a href="https://www.github-redirect.dependabot.com/yargs/yargs/issues/1656">#1656</a> <a href="https://www.github-redirect.dependabot.com/yargs/yargs/issues/1673">#1673</a></li>
</ul>
<h2>v15.4.0-beta.1 Pre-release</h2>
<p>This is a pre-release for testing purposes of <a href="https://github-redirect.dependabot.com/yargs/yargs/issues/1635">#1635</a>.</p>
<p>Install by running <code>npm install yargs@next</code></p>
<h2>v15.4.0-beta.0 Pre-release</h2>
<p>This is a pre-release for testing purposes of <a href="https://github-redirect.dependabot.com/yargs/yargs/issues/1635">#1635</a>.</p>
<p>Install by running <code>npm install yargs@next</code></p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/yargs/yargs/blob/master/CHANGELOG.md">yargs's changelog</a>.</em></p>
<blockquote>
<h1>Changelog</h1>
<p>All notable changes to this project will be documented in this file. See <a href="https://github.com/conventional-changelog/standard-version">standard-version</a> for commit guidelines.</p>
<h2><a href="https://www.github.com/yargs/yargs/compare/v15.3.1...v15.4.0">15.4.0</a> (2020-06-30)</h2>
<h3>Features</h3>
<ul>
<li>adds deprecation option for commands (<a href="027a6365b7">027a636</a>)</li>
<li>support array of examples (<a href="https://www.github-redirect.dependabot.com/yargs/yargs/issues/1682">#1682</a>) (<a href="225ab82719">225ab82</a>)</li>
</ul>
<h3>Bug Fixes</h3>
<ul>
<li><strong>docs:</strong> describe usage of <code>.check()</code> in more detail (<a href="932cd1177e">932cd11</a>)</li>
<li><strong>i18n:</strong> Japanese translation phrasing (<a href="https://www.github-redirect.dependabot.com/yargs/yargs/issues/1619">#1619</a>) (<a href="089417550e">0894175</a>)</li>
<li><strong>strict mode:</strong> report default command unknown arguments (<a href="https://www.github-redirect.dependabot.com/yargs/yargs/issues/1626">#1626</a>) (<a href="69f29a9cd4">69f29a9</a>)</li>
<li><strong>usage:</strong> translate 'options' group only when displaying help (<a href="https://www.github-redirect.dependabot.com/yargs/yargs/issues/1600">#1600</a>) (<a href="e60b39b9d3">e60b39b</a>)</li>
</ul>
<h3>Reverts</h3>
<ul>
<li>Revert &quot;chore(deps): update dependency eslint to v7 (<a href="https://github-redirect.dependabot.com/yargs/yargs/issues/1656">#1656</a>)&quot; (<a href="https://github-redirect.dependabot.com/yargs/yargs/issues/1673">#1673</a>) (<a href="34949f89ee">34949f8</a>), closes <a href="https://www.github-redirect.dependabot.com/yargs/yargs/issues/1656">#1656</a> <a href="https://www.github-redirect.dependabot.com/yargs/yargs/issues/1673">#1673</a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a href="https://github.com/yargs/yargs/commits">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=yargs&package-manager=npm_and_yarn&previous-version=15.3.1&new-version=15.4.1)](https://help.github.com/articles/configuring-automated-security-fixes)

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/1383

Reviewed By: mweststrate

Differential Revision: D22551264

Pulled By: passy

fbshipit-source-id: 02ab24fd4636efba9eb6cd181082fbc5eea56c2d
2020-07-17 08:41:11 -07:00
Timur Valiev
d28e763cca Self inspection
Summary:
let's finally inspect flipper with flipper!
Here we have:
1) a self inspection client which implements FlipperClient interface from js sdk and FlipperClientConnection. It links back and front parts of self inspection
2) simple plugin (UI) to show messages
3) back part of that plugin - it sends all received messages to UI part via client
4) we initialize self inspection for dev builds only

P. S. filesystem dependency will be replaced with npm one before I ship it (need to publish to npm first)

Reviewed By: mweststrate

Differential Revision: D22524533

fbshipit-source-id: 5c77e2f7b50e24ff7314e791a4dfe3c349dccdee
2020-07-17 04:54:44 -07:00
Dominik Wielgórski
3814c8fdfc Move openInIDE to Flipper core
Summary: Share functionality from D22375637

Reviewed By: mweststrate

Differential Revision: D22595715

fbshipit-source-id: 496a29c1c8e85eb1f065f48e650047a25c99b9d3
2020-07-17 03:48:36 -07:00
Elaina Hsu
0721735e37 Bolded names of Store record fields that appear in the Consistency List
Summary:
Bolded the record fields' keys if it is consistent (in the consistency white list).

*if the key is within an object, information on whether it is consistent will not be available in preview. The Object has to be physically expanded by the user in order to see the bolded key.

Reviewed By: mweststrate

Differential Revision: D22416084

fbshipit-source-id: 7eb1d8c65be07f880722a133b70195a4a63f0e75
2020-07-16 12:25:36 -07:00
Nicole Stiliyan Vukadinova
b0da12a289 Add configuration for QPL to Flipper
Summary:
1) Added configuration for QPL to be used by Flipper, configured PigeonClient and added an instance of QPL
3) Add a deferred instance for the logger

Reviewed By: timur-valiev

Differential Revision: D22504767

fbshipit-source-id: 73ba2a31e86782fe097a8f14a8edebaee40ec946
2020-07-16 01:49:21 -07:00
Nicole Stiliyan Vukadinova
a1502876a6 QPL Flipper Integration
Summary:
Add QPL code to Flipper and a lightweight implementation of PigeonClient so that QPL can be integrated into Flipper and it can be used to monitor events inside Flipper.

the code was copied from VSCode from these diffs:
https://www.internalfb.com/diffs/D21271812
https://www.internalfb.com/diffs/D21565279

Reviewed By: nubbel, bestander

Differential Revision: D22393607

fbshipit-source-id: 3ce77320c187f406b77321c020afc116bed45a93
2020-07-16 01:49:21 -07:00
John Knox
9e854d7b7d Fix visualizer margins
Summary:
Found a bug in the archived device visualizer. I realized I never actually announced this feature to anyone, so fixing it up before doing so.

CHANGELOG: Visual Android View inspection available in layout plugin export files.

Reviewed By: passy

Differential Revision: D22548586

fbshipit-source-id: bcb5b8bee6aac7c76354d2c7cb44d72c7d23f5ca
2020-07-15 08:09:17 -07:00
dependabot[bot]
9b5c71eb90 Bump globby from 10.0.2 to 11.0.1 in /desktop (#1377)
Summary:
Bumps [globby](https://github.com/sindresorhus/globby) from 10.0.2 to 11.0.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/sindresorhus/globby/releases">globby's releases</a>.</em></p>
<blockquote>
<h2>v11.0.1</h2>
<ul>
<li>Normalize file paths to posix for gitignore calculation (<a href="https://github-redirect.dependabot.com/sindresorhus/globby/issues/143">https://github.com/facebook/flipper/issues/143</a>)  f2bdce6</li>
</ul>
<p><a href="https://github.com/sindresorhus/globby/compare/v11.0.0...v11.0.1">https://github.com/sindresorhus/globby/compare/v11.0.0...v11.0.1</a></p>
<h2>v11.0.0</h2>
<h3>Breaking</h3>
<ul>
<li>Require Node.js 10  4a471af</li>
<li>Get rid of <code>glob</code> dependency (<a href="https://github-redirect.dependabot.com/sindresorhus/globby/issues/135">https://github.com/facebook/flipper/issues/135</a>)  d4681a4
If you passed in options to <code>globby.hasMagic()</code>, you need to update to use the <a href="https://github.com/mrmlnc/fast-glob#options-3">new options</a>.</li>
</ul>
<p><a href="https://github.com/sindresorhus/globby/compare/v10.0.2...v11.0.0">https://github.com/sindresorhus/globby/compare/v10.0.2...v11.0.0</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="39b7636370"><code>39b7636</code></a> 11.0.1</li>
<li><a href="f2bdce6534"><code>f2bdce6</code></a> Normalize file paths to posix for gitignore calculation (<a href="https://github-redirect.dependabot.com/sindresorhus/globby/issues/143">https://github.com/facebook/flipper/issues/143</a>)</li>
<li><a href="45ac58a95d"><code>45ac58a</code></a> 11.0.0</li>
<li><a href="3c93fa16bc"><code>3c93fa1</code></a> Re-enable test for <a href="https://github-redirect.dependabot.com/sindresorhus/globby/issues/97">https://github.com/facebook/flipper/issues/97</a></li>
<li><a href="4a471af4ca"><code>4a471af</code></a> Require Node.js 10</li>
<li><a href="d4681a4d58"><code>d4681a4</code></a> Get rid of <code>glob</code> dependency (<a href="https://github-redirect.dependabot.com/sindresorhus/globby/issues/135">https://github.com/facebook/flipper/issues/135</a>)</li>
<li>See full diff in <a href="https://github.com/sindresorhus/globby/compare/v10.0.2...v11.0.1">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=globby&package-manager=npm_and_yarn&previous-version=10.0.2&new-version=11.0.1)](https://help.github.com/articles/configuring-automated-security-fixes)

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/1377

Reviewed By: mweststrate

Differential Revision: D22528235

Pulled By: passy

fbshipit-source-id: 8590d3d007adf438deeaea7d79d4820ca860dad2
2020-07-15 06:44:35 -07:00
Anton Nikolaev
9031638dca Show plugin title instead of plugin name on update notification
Summary: It's better to use title so user can easily match which plugin updated

Reviewed By: mweststrate

Differential Revision: D22546284

fbshipit-source-id: 5875f1b22e7637df45b8ae427d51e639f0867e2c
2020-07-15 02:53:33 -07:00
Anton Nikolaev
3e87715a8f Restart button added to plugin update notifications
Summary:
Simple implementation of restart button on auto-update notifications. Should make the flow a bit more convenient.

Changelog: Added button "Restart Flipper" to plugin auto-update notifications.

Reviewed By: passy

Differential Revision: D22528729

fbshipit-source-id: 6da6b858baed1e0f3cae57f1a614907b61899d10
2020-07-15 02:53:33 -07:00
Michel Weststrate
6fe477f19b Make sure Sandy plugins are selectable during export
Summary:
This diff makes sure Sandy plugins show up as well in the plugin selector when making exports (and in support form as well).

Also verified that this works with the Sandy updated section plugin.

Note that persisted state now didn't need any changes in the plugin code to work :)

Commented / simplified the calculation of available plugins a little bit and fixed a confusing issue where two different redux stores where created in one unit test, which caused an issue in the new implementation.

Reviewed By: jknoxville

Differential Revision: D22434301

fbshipit-source-id: c911196bc5b105309e82204188f124f40aab487a
2020-07-14 09:06:59 -07:00
Michel Weststrate
44f99eb304 Support export data
Summary:
Made Sandy plugins part of the export / import logic

Note that in the export format there is now a `pluginStates2` field. It could have been put in `pluginStates` as well, but I started with that and it felt very weird, as the `pluginStates` are supposed to reflect what is living in the Redux stores, where sandy state doesn't live in the Redux store (not directly at least). Trying to store it in the same field made things overcomplicated and confusing.

Reviewed By: jknoxville

Differential Revision: D22432769

fbshipit-source-id: d9858e561fad4fadbf0f90858874ed444e3a836c
2020-07-14 09:06:59 -07:00
Michel Weststrate
0e4a6d659b Make sure plugins can serialize and deserialize
Summary:
This plugin adds serialization capabilities to Sandy plugins buy setting the a `persist: <key>` flag. This shouldn't be used for state that is unserializable, too big, too sensitive, or irrelevant during export / import.

Using an explicit `persist` flag is done to make plugins robust to changes over time; as long as the key is kept the same, state variables can be renamed and reordered without breaking the import / export format. Also it allows us to detect some changes in the import / export format and warn about it.

Alternative designs considered but not implemented would be:
1. requiring the user to explicitly return the state from the factory (e.g. `const todos = createState([]); return { todos }`,
2. or construct the state from client (e.g. `const todos = client.createState([])`)
3. enable persistence by default, and store states in the order the states were created (much like useState in React). This was implemented in the first versions of this diff, but as pointed out in the discussions, this is too sensitive too (accidental) format changes, as the storage format would be quite implicit

A nice benefit of the current approach, especially compared with alternative approach 1, is that state being restored is immediately visible in the plugin factory. In other words, directly after initialization `const todos = createState([])`, the `todos.get()` is actually set to the state that is being restored, rather than having still the initial state which is only overridden rather. So this behaves very much like the `useState` hook in React.

Furthermore, in the future we could use the same `persist` key in combination with other options, such as `saveToLocalStorage`, in case some state acts as a 'preference' (T69989583).

`TestUtils.startPlugin` supports starting plugins with an initial state by using the optional `initialState` field

Actually wiring up the serialization and deserialization into the export / import functionality of Flipper is done in the next diff.

Reviewed By: jknoxville

Differential Revision: D22432770

fbshipit-source-id: 9a4849582c2f6f54d1e40f65a6cba73092c28fe8
2020-07-14 09:06:59 -07:00
Pascal Hartig
9d57a667ef Bump @types/testing-library__react from 10.0.0 to 10.2.0 in /desktop (#1366)
Summary:
Created a few breakages. Would appreciate some closer eyes on this.

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

Reviewed By: mweststrate

Differential Revision: D22501454

fbshipit-source-id: 9b882a12aecc65da85f29101bf87bf27519a7d2a
2020-07-14 06:19:16 -07:00
Anton Nikolaev
c4f3978c36 Use typescript SDK from node_modules for VSCode
Summary: Force using typescript SDK from node_modules instead of VSCode embedded version when "desktop" root folder opened. Before that we had this setting only when the root folder opened in VSCode.

Reviewed By: mweststrate

Differential Revision: D22508520

fbshipit-source-id: 3663f432f905094613f4c44b0d0d6eac02e1336d
2020-07-14 02:37:37 -07:00
Anton Nikolaev
30213e118f Update Metro to 0.60.0 (#1380)
Summary:
Pull Request resolved: https://github.com/facebook/flipper/pull/1380

Updated Metro to 0.60.0

Reviewed By: mweststrate

Differential Revision: D22453798

fbshipit-source-id: 14c5bacf88bc31bd3dd06ad42edf271769a4a669
2020-07-14 01:08:01 -07:00
dependabot[bot]
23758a8fbf Bump pretty-format from 26.0.1 to 26.1.0 in /desktop (#1378)
Summary:
Bumps [pretty-format](https://github.com/facebook/jest/tree/HEAD/packages/pretty-format) from 26.0.1 to 26.1.0.
<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>26.1.0</h2>
<h3>Features</h3>
<ul>
<li><code>[jest-mock]</code> Export <code>Mock</code>, <code>MockInstance</code>, <code>SpyInstance</code> types (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10138">#10138</a>)</li>
<li><code>[jest-config]</code> Support config files exporting (<code>async</code>) <code>function</code>s (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10001">#10001</a>)</li>
<li><code>[jest-cli, jest-core]</code> Add <code>--selectProjects</code> CLI argument to filter test suites by project name (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/8612">#8612</a>)</li>
<li><code>[jest-cli, jest-init]</code> Add <code>coverageProvider</code> to <code>jest --init</code> prompts (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10044">#10044</a>)</li>
</ul>
<h3>Fixes</h3>
<ul>
<li><code>[jest-console]</code> <code>getConsoleOutput</code> to receive global stack trace config and use it to format stack trace (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10081">#10081</a>)</li>
<li><code>[jest-jasmine2]</code> Stop adding <code>:</code> after an error that has no message (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/9990">#9990</a>)</li>
<li><code>[jest-diff]</code> Control no diff message color with <code>commonColor</code> in diff options (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/9997">#9997</a>)</li>
<li><code>[jest-snapshot]</code> Fix TypeScript compilation (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10008">#10008</a>)</li>
</ul>
<h3>Chore &amp; Maintenance</h3>
<ul>
<li><code>[docs]</code> Correct confusing filename in <code>enableAutomock</code> example (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10055">#10055</a>)</li>
<li><code>[jest-core]</code> 🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉 (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10000">#10000</a>)</li>
<li><code>[jest-core, jest-reporters, jest-test-result, jest-types]</code> Cleanup <code>displayName</code> type (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10049">#10049</a>)</li>
<li><code>[jest-runtime]</code> Jest-internal sandbox escape hatch (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/9907">#9907</a>)</li>
<li><code>[jest-fake-timers]</code> Update <code>now</code> param type to support <code>Date</code> in addition to <code>number</code>. (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10169">#10169</a>)</li>
<li><code>[docs]</code> Add param to <code>setSystemTime</code> docs and remove preceding period from it and <code>getRealSystemTime</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10169">#10169</a>)</li>
<li><code>[jest-snapshot, jest-util]</code> Replace <code>make-dir</code> with <code>fs.mkdir</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10136">#10136</a>)</li>
</ul>
<h3>Performance</h3>
<ul>
<li><code>[jest-core, jest-transform, jest-haste-map]</code> Improve Jest startup time and test runtime, particularly when running with coverage, by caching micromatch and avoiding recreating RegExp instances (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10131">#10131</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/facebook/jest/blob/master/CHANGELOG.md">pretty-format's changelog</a>.</em></p>
<blockquote>
<h2>26.1.0</h2>
<h3>Features</h3>
<ul>
<li><code>[jest-mock]</code> Export <code>Mock</code>, <code>MockInstance</code>, <code>SpyInstance</code> types (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10138">#10138</a>)</li>
<li><code>[jest-config]</code> Support config files exporting (<code>async</code>) <code>function</code>s (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10001">#10001</a>)</li>
<li><code>[jest-cli, jest-core]</code> Add <code>--selectProjects</code> CLI argument to filter test suites by project name (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/8612">#8612</a>)</li>
<li><code>[jest-cli, jest-init]</code> Add <code>coverageProvider</code> to <code>jest --init</code> prompts (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10044">#10044</a>)</li>
</ul>
<h3>Fixes</h3>
<ul>
<li><code>[jest-console]</code> <code>getConsoleOutput</code> to receive global stack trace config and use it to format stack trace (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10081">#10081</a>)</li>
<li><code>[jest-jasmine2]</code> Stop adding <code>:</code> after an error that has no message (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/9990">#9990</a>)</li>
<li><code>[jest-diff]</code> Control no diff message color with <code>commonColor</code> in diff options (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/9997">#9997</a>)</li>
<li><code>[jest-snapshot]</code> Fix TypeScript compilation (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10008">#10008</a>)</li>
</ul>
<h3>Chore &amp; Maintenance</h3>
<ul>
<li><code>[docs]</code> Correct confusing filename in <code>enableAutomock</code> example (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10055">#10055</a>)</li>
<li><code>[jest-core]</code> 🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉 (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10000">#10000</a>)</li>
<li><code>[jest-core, jest-reporters, jest-test-result, jest-types]</code> Cleanup <code>displayName</code> type (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10049">#10049</a>)</li>
<li><code>[jest-runtime]</code> Jest-internal sandbox escape hatch (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/9907">#9907</a>)</li>
<li><code>[jest-fake-timers]</code> Update <code>now</code> param type to support <code>Date</code> in addition to <code>number</code>. (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10169">#10169</a>)</li>
<li><code>[docs]</code> Add param to <code>setSystemTime</code> docs and remove preceding period from it and <code>getRealSystemTime</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10169">#10169</a>)</li>
<li><code>[jest-snapshot, jest-util]</code> Replace <code>make-dir</code> with <code>fs.mkdir</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10136">#10136</a>)</li>
<li><code>[docs]</code> Added parcel-bundler documentation inside readme.md file</li>
</ul>
<h3>Performance</h3>
<ul>
<li><code>[jest-core, jest-transform, jest-haste-map]</code> Improve Jest startup time and test runtime, particularly when running with coverage, by caching micromatch and avoiding recreating RegExp instances (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10131">#10131</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="817d8b6aca"><code>817d8b6</code></a> v26.1.0</li>
<li><a href="9ffd368330"><code>9ffd368</code></a> chore: upgrade to typescript 3.9 (<a href="https://github.com/facebook/jest/tree/HEAD/packages/pretty-format/issues/10031">#10031</a>)</li>
<li>See full diff in <a href="https://github.com/facebook/jest/commits/v26.1.0/packages/pretty-format">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=pretty-format&package-manager=npm_and_yarn&previous-version=26.0.1&new-version=26.1.0)](https://help.github.com/articles/configuring-automated-security-fixes)

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/1378

Reviewed By: nikoant

Differential Revision: D22504856

Pulled By: passy

fbshipit-source-id: e66678f3653bfc6c718dc1ac1d793cd2cdb4a901
2020-07-13 10:32:05 -07:00
dependabot[bot]
066b1e535d Bump react-transition-group from 4.3.0 to 4.4.1 in /desktop (#1367)
Summary:
Bumps [react-transition-group](https://github.com/reactjs/react-transition-group) from 4.3.0 to 4.4.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/reactjs/react-transition-group/releases">react-transition-group's releases</a>.</em></p>
<blockquote>
<h2>v4.4.1</h2>
<h2><a href="https://github.com/reactjs/react-transition-group/compare/v4.4.0...v4.4.1">4.4.1</a> (2020-05-06)</h2>
<h3>Bug Fixes</h3>
<ul>
<li>transition SSR (<a href="https://github-redirect.dependabot.com/reactjs/react-transition-group/issues/619">https://github.com/facebook/flipper/issues/619</a>) (<a href="2722bb6b75">2722bb6</a>)</li>
</ul>
<h2>v4.4.0</h2>
<h1><a href="https://github.com/reactjs/react-transition-group/compare/v4.3.0...v4.4.0">4.4.0</a> (2020-05-05)</h1>
<h3>Features</h3>
<ul>
<li>add <code>nodeRef</code> alternative instead of internal <code>findDOMNode</code> (<a href="https://github-redirect.dependabot.com/reactjs/react-transition-group/issues/559">https://github.com/facebook/flipper/issues/559</a>) (<a href="85016bfddd">85016bf</a>)
<ul>
<li>
<p>react-transition-group internally uses <code>findDOMNode</code>, which is deprecated and produces warnings in <a href="https://reactjs.org/docs/strict-mode.html">Strict Mode</a>, so now you can optionally pass <code>nodeRef</code> to <code>Transition</code> and <code>CSSTransition</code>, it's a ref object that should point to the transitioning child:</p>
<pre lang="jsx"><code>import React from &quot;react&quot;
import { CSSTransition } from &quot;react-transition-group&quot;
<p>const MyComponent = () =&gt; {
const nodeRef = React.useRef(null)
return (
&lt;CSSTransition nodeRef={nodeRef} in timeout={200} classNames=&quot;fade&quot;&gt;
&lt;div ref={nodeRef}&gt;Fade&lt;/div&gt;
&lt;/CSSTransition&gt;
)
}
</code></pre></p>
</li>
</ul>
</li>
</ul>
<h3>Bug Fixes</h3>
<ul>
<li>set the values of constants attached to <code>Transition</code> to match the exported ones (<a href="https://github-redirect.dependabot.com/reactjs/react-transition-group/issues/554">https://github.com/facebook/flipper/issues/554</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/reactjs/react-transition-group/blob/master/CHANGELOG.md">react-transition-group's changelog</a>.</em></p>
<blockquote>
<h2><a href="https://github.com/reactjs/react-transition-group/compare/v4.4.0...v4.4.1">4.4.1</a> (2020-05-06)</h2>
<h3>Bug Fixes</h3>
<ul>
<li>transition SSR (<a href="https://github-redirect.dependabot.com/reactjs/react-transition-group/issues/619">https://github.com/facebook/flipper/issues/619</a>) (<a href="2722bb6b75">2722bb6</a>)</li>
</ul>
<h1><a href="https://github.com/reactjs/react-transition-group/compare/v4.3.0...v4.4.0">4.4.0</a> (2020-05-05)</h1>
<h3>Features</h3>
<ul>
<li>add <code>nodeRef</code> alternative instead of internal <code>findDOMNode</code> (<a href="https://github-redirect.dependabot.com/reactjs/react-transition-group/issues/559">https://github.com/facebook/flipper/issues/559</a>) (<a href="85016bfddd">85016bf</a>)
<ul>
<li>
<p>react-transition-group internally uses <code>findDOMNode</code>, which is deprecated and produces warnings in <a href="https://reactjs.org/docs/strict-mode.html">Strict Mode</a>, so now you can optionally pass <code>nodeRef</code> to <code>Transition</code> and <code>CSSTransition</code>, it's a ref object that should point to the transitioning child:</p>
<pre lang="jsx"><code>import React from &quot;react&quot;
import { CSSTransition } from &quot;react-transition-group&quot;
<p>const MyComponent = () =&gt; {
const nodeRef = React.useRef(null)
return (
&lt;CSSTransition nodeRef={nodeRef} in timeout={200} classNames=&quot;fade&quot;&gt;
&lt;div ref={nodeRef}&gt;Fade&lt;/div&gt;
&lt;/CSSTransition&gt;
)
}
</code></pre></p>
</li>
</ul>
</li>
</ul>
<h3>Bug Fixes</h3>
<ul>
<li>set the values of constants attached to <code>Transition</code> to match the exported ones (<a href="https://github-redirect.dependabot.com/reactjs/react-transition-group/pull/554">https://github.com/facebook/flipper/issues/554</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="1fd4a65ac4"><code>1fd4a65</code></a> chore(release): 4.4.1 [skip ci]</li>
<li><a href="2722bb6b75"><code>2722bb6</code></a> fix: transition SSR (<a href="https://github-redirect.dependabot.com/reactjs/react-transition-group/issues/619">https://github.com/facebook/flipper/issues/619</a>)</li>
<li><a href="46bdb6e948"><code>46bdb6e</code></a> refactor(Transition): simplify render function (<a href="https://github-redirect.dependabot.com/reactjs/react-transition-group/issues/621">https://github.com/facebook/flipper/issues/621</a>)</li>
<li><a href="6ab44733ec"><code>6ab4473</code></a> chore: install dependencies in both dirs on CI</li>
<li><a href="ce9412841c"><code>ce94128</code></a> chore: Fix ESLint errors in www on CI (<a href="https://github-redirect.dependabot.com/reactjs/react-transition-group/issues/620">https://github.com/facebook/flipper/issues/620</a>)</li>
<li><a href="fbbcc1d22b"><code>fbbcc1d</code></a> test: enable <code>React.StrictMode</code> (<a href="https://github-redirect.dependabot.com/reactjs/react-transition-group/issues/593">https://github.com/facebook/flipper/issues/593</a>)</li>
<li><a href="c8631587f9"><code>c863158</code></a> Expand notes for v4.4.0 and add missing fix</li>
<li><a href="80b663eebf"><code>80b663e</code></a> Add scroll margin to account for fixed header</li>
<li><a href="205c5ceb8a"><code>205c5ce</code></a> Update Yarn lockfile</li>
<li><a href="476cb63a28"><code>476cb63</code></a> Change lint script to run across entire project</li>
<li>Additional commits viewable in <a href="https://github.com/reactjs/react-transition-group/compare/v4.3.0...v4.4.1">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=react-transition-group&package-manager=npm_and_yarn&previous-version=4.3.0&new-version=4.4.1)](https://help.github.com/articles/configuring-automated-security-fixes)

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/1367

Reviewed By: nikoant

Differential Revision: D22502222

Pulled By: passy

fbshipit-source-id: debea69fe5442e14516dbe0061de90a95325619c
2020-07-13 10:28:51 -07:00
dependabot[bot]
98c930573a Bump jest from 26.0.1 to 26.1.0 in /desktop (#1368)
Summary:
Bumps [jest](https://github.com/facebook/jest) from 26.0.1 to 26.1.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/facebook/jest/releases">jest's releases</a>.</em></p>
<blockquote>
<h2>26.1.0</h2>
<h3>Features</h3>
<ul>
<li><code>[jest-mock]</code> Export <code>Mock</code>, <code>MockInstance</code>, <code>SpyInstance</code> types (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10138">#10138</a>)</li>
<li><code>[jest-config]</code> Support config files exporting (<code>async</code>) <code>function</code>s (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10001">#10001</a>)</li>
<li><code>[jest-cli, jest-core]</code> Add <code>--selectProjects</code> CLI argument to filter test suites by project name (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/8612">#8612</a>)</li>
<li><code>[jest-cli, jest-init]</code> Add <code>coverageProvider</code> to <code>jest --init</code> prompts (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10044">#10044</a>)</li>
</ul>
<h3>Fixes</h3>
<ul>
<li><code>[jest-console]</code> <code>getConsoleOutput</code> to receive global stack trace config and use it to format stack trace (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10081">#10081</a>)</li>
<li><code>[jest-jasmine2]</code> Stop adding <code>:</code> after an error that has no message (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/9990">#9990</a>)</li>
<li><code>[jest-diff]</code> Control no diff message color with <code>commonColor</code> in diff options (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/9997">#9997</a>)</li>
<li><code>[jest-snapshot]</code> Fix TypeScript compilation (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10008">#10008</a>)</li>
</ul>
<h3>Chore &amp; Maintenance</h3>
<ul>
<li><code>[docs]</code> Correct confusing filename in <code>enableAutomock</code> example (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10055">#10055</a>)</li>
<li><code>[jest-core]</code> 🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉 (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10000">#10000</a>)</li>
<li><code>[jest-core, jest-reporters, jest-test-result, jest-types]</code> Cleanup <code>displayName</code> type (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10049">#10049</a>)</li>
<li><code>[jest-runtime]</code> Jest-internal sandbox escape hatch (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/9907">#9907</a>)</li>
<li><code>[jest-fake-timers]</code> Update <code>now</code> param type to support <code>Date</code> in addition to <code>number</code>. (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10169">#10169</a>)</li>
<li><code>[docs]</code> Add param to <code>setSystemTime</code> docs and remove preceding period from it and <code>getRealSystemTime</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10169">#10169</a>)</li>
<li><code>[jest-snapshot, jest-util]</code> Replace <code>make-dir</code> with <code>fs.mkdir</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10136">#10136</a>)</li>
</ul>
<h3>Performance</h3>
<ul>
<li><code>[jest-core, jest-transform, jest-haste-map]</code> Improve Jest startup time and test runtime, particularly when running with coverage, by caching micromatch and avoiding recreating RegExp instances (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10131">#10131</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/facebook/jest/blob/master/CHANGELOG.md">jest's changelog</a>.</em></p>
<blockquote>
<h2>26.1.0</h2>
<h3>Features</h3>
<ul>
<li><code>[jest-mock]</code> Export <code>Mock</code>, <code>MockInstance</code>, <code>SpyInstance</code> types (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10138">#10138</a>)</li>
<li><code>[jest-config]</code> Support config files exporting (<code>async</code>) <code>function</code>s (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10001">#10001</a>)</li>
<li><code>[jest-cli, jest-core]</code> Add <code>--selectProjects</code> CLI argument to filter test suites by project name (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/8612">#8612</a>)</li>
<li><code>[jest-cli, jest-init]</code> Add <code>coverageProvider</code> to <code>jest --init</code> prompts (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10044">#10044</a>)</li>
</ul>
<h3>Fixes</h3>
<ul>
<li><code>[jest-console]</code> <code>getConsoleOutput</code> to receive global stack trace config and use it to format stack trace (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10081">#10081</a>)</li>
<li><code>[jest-jasmine2]</code> Stop adding <code>:</code> after an error that has no message (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/9990">#9990</a>)</li>
<li><code>[jest-diff]</code> Control no diff message color with <code>commonColor</code> in diff options (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/9997">#9997</a>)</li>
<li><code>[jest-snapshot]</code> Fix TypeScript compilation (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10008">#10008</a>)</li>
</ul>
<h3>Chore &amp; Maintenance</h3>
<ul>
<li><code>[docs]</code> Correct confusing filename in <code>enableAutomock</code> example (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10055">#10055</a>)</li>
<li><code>[jest-core]</code> 🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉 (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10000">#10000</a>)</li>
<li><code>[jest-core, jest-reporters, jest-test-result, jest-types]</code> Cleanup <code>displayName</code> type (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10049">#10049</a>)</li>
<li><code>[jest-runtime]</code> Jest-internal sandbox escape hatch (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/9907">#9907</a>)</li>
<li><code>[jest-fake-timers]</code> Update <code>now</code> param type to support <code>Date</code> in addition to <code>number</code>. (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10169">#10169</a>)</li>
<li><code>[docs]</code> Add param to <code>setSystemTime</code> docs and remove preceding period from it and <code>getRealSystemTime</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10169">#10169</a>)</li>
<li><code>[jest-snapshot, jest-util]</code> Replace <code>make-dir</code> with <code>fs.mkdir</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10136">#10136</a>)</li>
<li><code>[docs]</code> Added parcel-bundler documentation inside readme.md file</li>
</ul>
<h3>Performance</h3>
<ul>
<li><code>[jest-core, jest-transform, jest-haste-map]</code> Improve Jest startup time and test runtime, particularly when running with coverage, by caching micromatch and avoiding recreating RegExp instances (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10131">#10131</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="817d8b6aca"><code>817d8b6</code></a> v26.1.0</li>
<li><a href="30658c6fc0"><code>30658c6</code></a> chore: update changelog for release</li>
<li><a href="a1fa776965"><code>a1fa776</code></a> chore: quote globs in scripts (<a href="https://github-redirect.dependabot.com/facebook/jest/issues/10190">#10190</a>)</li>
<li><a href="17c3f14053"><code>17c3f14</code></a> chore: replace <code>make-dir</code> with <code>fs.mkdir</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/issues/10136">#10136</a>)</li>
<li><a href="ee40194a67"><code>ee40194</code></a> Update ExpectAPI.md (<a href="https://github-redirect.dependabot.com/facebook/jest/issues/10141">#10141</a>)</li>
<li><a href="95b94e84cf"><code>95b94e8</code></a> feat(jest-mock): Export Mock, MockInstance, SpyInstance types (<a href="https://github-redirect.dependabot.com/facebook/jest/issues/10138">#10138</a>)</li>
<li><a href="504cacee18"><code>504cace</code></a> Improve Jest startup time and test runtime, particularly when running with co...</li>
<li><a href="4471bbbb2d"><code>4471bbb</code></a> Update GlobalAPI.md (<a href="https://github-redirect.dependabot.com/facebook/jest/issues/10157">#10157</a>)</li>
<li><a href="15576d3d37"><code>15576d3</code></a> Update links to Reactiflux (<a href="https://github-redirect.dependabot.com/facebook/jest/issues/10180">#10180</a>)</li>
<li><a href="852819abc0"><code>852819a</code></a> Update UsingMatchers.md (<a href="https://github-redirect.dependabot.com/facebook/jest/issues/10161">#10161</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/facebook/jest/compare/v26.0.1...v26.1.0">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=jest&package-manager=npm_and_yarn&previous-version=26.0.1&new-version=26.1.0)](https://help.github.com/articles/configuring-automated-security-fixes)

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/1368

Reviewed By: nikoant

Differential Revision: D22502070

Pulled By: passy

fbshipit-source-id: f562628acfb389a8b6c14f38b923038a734a73db
2020-07-13 04:53:53 -07:00
generatedunixname89002005306973
fff723d5ef Flipper Release: v0.50.0
Summary: Releasing version 0.50.0

Reviewed By: passy

Differential Revision: D22501533

fbshipit-source-id: 0896efd4eb2b2bb5f557d573526db91dc5dcd1de
2020-07-13 04:15:23 -07:00
Timur Valiev
1c7113418d fix plugins array serialization
Summary:
new electron deprecated non-clonable serialization over ipc
https://www.electronjs.org/docs/breaking-changes#behavior-changed-sending-non-js-objects-over-ipc-now-throws-an-exception

Reviewed By: m1sk

Differential Revision: D22455119

fbshipit-source-id: 075cc63e740d9f7986fc5a5ab7af605f8fc60bc8
2020-07-12 12:22:27 -07:00
Michel Weststrate
d90499be84 Disable electron tests
Summary:
Turns out, we don't have any tests that _actually_ depend on Electron. What is more, the one test suite that was still left was actually failing for a long time, but somehow CI didn't pick and reported that :-P.

Note that I dropped the file `xplat/sonar/scripts/facebook/lego/run-sc-yarn-targets-with-electron.sh` entirely, as it appeared unused

Reviewed By: nikoant

Differential Revision: D22434441

fbshipit-source-id: 34df79a580a64904116ae93069bbc8fafc53d9d0
2020-07-10 04:36:25 -07:00