Commit Graph

3808 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
Daniel Schlaug
6083534025 Fix RSocket podspec including .txt and .md files for compilation (#1438)
Summary:
## Changelog

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

Reviewed By: mweststrate

Differential Revision: D22921702

Pulled By: passy

fbshipit-source-id: c61761e2c1ec783573c96ddf6d68155a4390f7cd
2020-08-04 06:38:07 -07:00
generatedunixname89002005306973
b0159c10ee Flipper Snapshot Bump: v0.52.1-SNAPSHOT
Summary: Releasing snapshot version 0.52.1-SNAPSHOT

Reviewed By: passy

Differential Revision: D22921074

fbshipit-source-id: 95f0b0fd7c01600db1dcdf9ba6ad43e6d5af6354
2020-08-04 06:15:23 -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
dependabot[bot]
1e22c03c24 Bump eslint-plugin-react from 7.20.0 to 7.20.5 in /flipper-js-client-sdk (#1433)
Summary:
Bumps [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) from 7.20.0 to 7.20.5.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md">eslint-plugin-react's changelog</a>.</em></p>
<blockquote>
<h2><a href="https://github.com/yannickcr/eslint-plugin-react/compare/v7.20.4...v7.20.5">7.20.5</a> - 2020.07.28</h2>
<h3>Fixed</h3>
<ul>
<li>[<code>jsx-curly-brace-presence</code>]: disable disallowed JSX text chars check in props (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2710">#2710</a>[] <a href="https://github.com/jzabala">jzabala</a>)</li>
<li>[<code>no-unused-state</code>]: check for class expression (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2712">#2712</a>[] <a href="https://github.com/jzabala">jzabala</a>)</li>
<li>[<code>prop-types</code>]: handle anonymous functions (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2730">#2730</a>[], <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2731">#2731</a>[] <a href="https://github.com/odinho">odinho</a> <a href="https://github.com/wKich">wKich</a> <a href="https://github.com/jzabala">jzabala</a>)</li>
</ul>
<h3>Docs</h3>
<ul>
<li>[Docs] [<code>no-access-state-in-setstate</code>]: fix example (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2724">#2724</a>[] <a href="https://github.com/youngjuning">youngjuning</a>)</li>
</ul>
<p><a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2731">#2731</a>: <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/2731">yannickcr/eslint-plugin-react#2731</a>
<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2730">#2730</a>: <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/2730">yannickcr/eslint-plugin-react#2730</a>
<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2724">#2724</a>: <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/2724">yannickcr/eslint-plugin-react#2724</a>
<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2712">#2712</a>: <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/2712">yannickcr/eslint-plugin-react#2712</a>
<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2710">#2710</a>: <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/2710">yannickcr/eslint-plugin-react#2710</a></p>
<h2><a href="https://github.com/yannickcr/eslint-plugin-react/compare/v7.20.3...v7.20.4">7.20.4</a> - 2020.07.26</h2>
<h3>Fixed</h3>
<ul>
<li>improve algorithm to check if a variable is coming from the pragma (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2706">#2706</a>[] <a href="https://github.com/jzabala">jzabala</a>)</li>
<li>[<code>prop-types</code>]: handle component returning null (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2696">#2696</a>[] <a href="https://github.com/hank121314">hank121314</a>)</li>
<li>[<code>prop-types</code>]/[<code>function-component-definition</code>]: Add check for first letter capitalization in functional component detection (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2699">#2699</a>[] <a href="https://github.com/jzabala">jzabala</a>)</li>
<li>[<code>prop-types</code>]: use variable value in prop type fields defined by variables (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2704">#2704</a>[] <a href="https://github.com/jzabala">jzabala</a>)</li>
<li>[<code>no-typos</code>]: warn on a bindingless <code>react</code> import</li>
</ul>
<h3>Changed</h3>
<ul>
<li>[Tests] <code>boolean-prop-naming</code>: Added test for function invocation of bool (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2697">#2697</a>[] <a href="https://github.com/ajkovar">ajkovar</a>)</li>
<li>[Tests] <code>jsx-curly-brace-presence</code>, <code>jsx-no-comment-textnodes</code>: add passing tests</li>
<li>[Refactor] <code>no-unused-state</code>: avoid a loop</li>
</ul>
<p><a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2704">#2704</a>: <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/2704">yannickcr/eslint-plugin-react#2704</a>
<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2699">#2699</a>: <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/2699">yannickcr/eslint-plugin-react#2699</a>
<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2697">#2697</a>: <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/2697">yannickcr/eslint-plugin-react#2697</a>
<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2696">#2696</a>: <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/2696">yannickcr/eslint-plugin-react#2696</a></p>
<h2><a href="https://github.com/yannickcr/eslint-plugin-react/compare/v7.20.2...v7.20.3">7.20.3</a> - 2020-06-30</h2>
<h3>Fixed</h3>
<ul>
<li>[<code>no-unused-prop-types</code>]/[<code>prop-types</code>]: typescript interface support literal type and only FunctionComponent should have propTypes validation (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2690">#2690</a>[] <a href="https://github.com/hank121314">hank121314</a>)</li>
<li>[<code>no-unused-prop-types</code>]/TypeScript: avoid crash on indexable interface (<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2687">#2687</a>[] <a href="https://github.com/ljharb">ljharb</a>)</li>
</ul>
<p><a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2690">#2690</a>: <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/pull/2690">yannickcr/eslint-plugin-react#2690</a>
<a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2687">#2687</a>: <a href="https://github-redirect.dependabot.com/yannickcr/eslint-plugin-react/issues/2687">yannickcr/eslint-plugin-react#2687</a></p>
<h2>[7.20.2] - 2020-06-29</h2>
<h3>Fixed</h3>

</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="4c8d8cc0a5"><code>4c8d8cc</code></a> Update CHANGELOG and bump version</li>
<li><a href="253a62aad3"><code>253a62a</code></a> [Tests] <code>no-access-state-in-setstate</code>: add passing tests</li>
<li><a href="f0ff971d78"><code>f0ff971</code></a> [Fix] <code>jsx-curly-brace-presence</code>: disable disallowed JSX text chars check in ...</li>
<li><a href="96309574ac"><code>9630957</code></a> [Fix] <code>no-unused-state</code>: check for class expression</li>
<li><a href="cadee91b7c"><code>cadee91</code></a> [Docs] <code>no-access-state-in-setstate</code>: fix example</li>
<li><a href="e8d2ce9f90"><code>e8d2ce9</code></a> [Fix] <code>prop-types</code>: handle anonymous functions</li>
<li><a href="e20522c0ce"><code>e20522c</code></a> Update CHANGELOG and bump version</li>
<li><a href="bb2b8db251"><code>bb2b8db</code></a> [Tests] <code>jsx-curly-brace-presence</code>, <code>jsx-no-comment-textnodes</code>: add passing t...</li>
<li><a href="e3e767bd04"><code>e3e767b</code></a> [Fix]: improve algorithm to check if a variable is coming from the pragma</li>
<li><a href="c57cc315e4"><code>c57cc31</code></a> [Fix] <code>prop-types</code>: handle component returning null</li>
<li>Additional commits viewable in <a href="https://github.com/yannickcr/eslint-plugin-react/compare/v7.20.0...v7.20.5">compare view</a></li>
</ul>
</details>
<br />

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

Reviewed By: nikoant

Differential Revision: D22897473

Pulled By: passy

fbshipit-source-id: c113cefbe62b2788554fe061aaae83f206ac2f26
2020-08-04 02:58:16 -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
dependabot[bot]
6458541163 Bump jest from 26.1.0 to 26.2.2 in /react-native/ReactNativeFlipperExample (#1436)
Summary:
Bumps [jest](https://github.com/facebook/jest) from 26.1.0 to 26.2.2.
<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.2.2</h2>
<h3>Fixes</h3>
<ul>
<li><code>[jest-cli]</code> Use correct file name to override existing jest config on init (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10337">#10337</a>)</li>
<li><code>[jest-haste-map]</code> Properly detect support for native <code>find</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10346">#10346</a>)</li>
</ul>
<h2>26.2.1</h2>
<h3>Fixes</h3>
<ul>
<li><code>[jest-worker]</code> Make sure to work with Node TS typings v12 (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10336">#10336</a>)</li>
</ul>
<h2>26.2.0</h2>
<h3>Features</h3>
<ul>
<li><code>[jest-core, jest-circus, jest-reporter, jest-runner]</code> Added support for reporting individual test cases using jest-circus (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10227">#10227</a>)</li>
<li><code>[jest-config, jest-reporter, jest-runner, jest-test-sequencer]</code> Add <code>slowTestThreshold</code> configuration option (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/9366">#9366</a>)</li>
<li><code>[jest-haste-map]</code> Watchman crawler now includes dotfiles (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10075">#10075</a>)</li>
<li><code>[jest-worker]</code> Added support for workers to send custom messages to parent in jest-worker (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10293">#10293</a>)</li>
<li><code>[jest-worker]</code> Support passing <code>resourceLimits</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10335">#10335</a>)</li>
<li><code>[pretty-format]</code> Added support for serializing custom elements (web components) (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10237">#10217</a>)</li>
</ul>
<h3>Fixes</h3>
<ul>
<li><code>[expect]</code> Match symbols and bigints in <code>any()</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10223">#10223</a>)</li>
<li><code>[jest-changed-files]</code> Use <code>git diff</code> instead of <code>git log</code> for <code>--changedSince</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10155">#10155</a>)</li>
<li><code>[jest-console]</code> Add missing <code>console.timeLog</code> for compatibility with Node (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10209">#10209</a>)</li>
<li><code>[jest-haste-map]</code> Check <code>find</code> binary supports the <code>-iname</code> parameter (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10308">#10308</a>)</li>
<li><code>[jest-snapshot]</code> Strip added indentation for inline error snapshots (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10217">#10217</a>)</li>
</ul>
<h3>Chore &amp; Maintenance</h3>
<ul>
<li><code>[*]</code> Add missing dependency on <code>types/node</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10248">#10248</a>)</li>
<li><code>[jest-jasmine2]</code> Convert <code>PCancelable</code> to TypeScript (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10215">#10215</a>)</li>
<li><code>[jest-jasmine2]</code> Refine typings of <code>queueRunner</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10215">#10215</a>)</li>
<li><code>[jest-jasmine2]</code> Remove usage of <code>Function</code> type (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10216">#10216</a>)</li>
<li><code>[jest-resolve]</code> Improve types (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10239">#10239</a>)</li>
<li><code>[docs]</code> Clarify the <a href="https://jestjs.io/docs/en/jest-object#jestrequireactualmodulename"><code>jest.requireActual(moduleName)</code></a> example</li>
<li><code>[jest-types]</code> Refine typings of <code>coverageReporters</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10275">#10275</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.2.2</h2>
<h3>Fixes</h3>
<ul>
<li><code>[jest-cli]</code> Use correct file name to override existing jest config on init (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10337">#10337</a>)</li>
<li><code>[jest-haste-map]</code> Properly detect support for native <code>find</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10346">#10346</a>)</li>
</ul>
<h2>26.2.1</h2>
<h3>Fixes</h3>
<ul>
<li><code>[jest-worker]</code> Make sure to work with Node TS typings v12 (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10336">#10336</a>)</li>
</ul>
<h2>26.2.0</h2>
<h3>Features</h3>
<ul>
<li><code>[jest-core, jest-circus, jest-reporter, jest-runner]</code> Added support for reporting individual test cases using jest-circus (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10227">#10227</a>)</li>
<li><code>[jest-config, jest-reporter, jest-runner, jest-test-sequencer]</code> Add <code>slowTestThreshold</code> configuration option (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/9366">#9366</a>)</li>
<li><code>[jest-haste-map]</code> Watchman crawler now includes dotfiles (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10075">#10075</a>)</li>
<li><code>[jest-worker]</code> Added support for workers to send custom messages to parent in jest-worker (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10293">#10293</a>)</li>
<li><code>[jest-worker]</code> Support passing <code>resourceLimits</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10335">#10335</a>)</li>
<li><code>[pretty-format]</code> Added support for serializing custom elements (web components) (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10237">#10217</a>)</li>
</ul>
<h3>Fixes</h3>
<ul>
<li><code>[expect]</code> Match symbols and bigints in <code>any()</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10223">#10223</a>)</li>
<li><code>[jest-changed-files]</code> Use <code>git diff</code> instead of <code>git log</code> for <code>--changedSince</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10155">#10155</a>)</li>
<li><code>[jest-console]</code> Add missing <code>console.timeLog</code> for compatibility with Node (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10209">#10209</a>)</li>
<li><code>[jest-haste-map]</code> Check <code>find</code> binary supports the <code>-iname</code> parameter (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10308">#10308</a>)</li>
<li><code>[jest-snapshot]</code> Strip added indentation for inline error snapshots (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10217">#10217</a>)</li>
</ul>
<h3>Chore &amp; Maintenance</h3>
<ul>
<li><code>[*]</code> Add missing dependency on <code>types/node</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10248">#10248</a>)</li>
<li><code>[jest-jasmine2]</code> Convert <code>PCancelable</code> to TypeScript (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10215">#10215</a>)</li>
<li><code>[jest-jasmine2]</code> Refine typings of <code>queueRunner</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10215">#10215</a>)</li>
<li><code>[jest-jasmine2]</code> Remove usage of <code>Function</code> type (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10216">#10216</a>)</li>
<li><code>[jest-resolve]</code> Improve types (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10239">#10239</a>)</li>
<li><code>[docs]</code> Clarify the <a href="https://jestjs.io/docs/en/jest-object#jestrequireactualmodulename"><code>jest.requireActual(moduleName)</code></a> example</li>
<li><code>[jest-types]</code> Refine typings of <code>coverageReporters</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10275">#10275</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="a6a5abb7ef"><code>a6a5abb</code></a> v26.2.2</li>
<li><a href="72bba2795d"><code>72bba27</code></a> chore: update changelog for release</li>
<li><a href="2ab3fb2a09"><code>2ab3fb2</code></a> fix: correct check for compatible <code>find</code> binary (<a href="https://github-redirect.dependabot.com/facebook/jest/issues/10346">#10346</a>)</li>
<li><a href="0708dafce3"><code>0708daf</code></a> fix(jest-cli): use correct filename to override config (<a href="https://github-redirect.dependabot.com/facebook/jest/issues/10337">#10337</a>)</li>
<li><a href="104a5710cd"><code>104a571</code></a> chore: update yarn</li>
<li><a href="ca8bf7c8b7"><code>ca8bf7c</code></a> chore: tweak git ignore for yarn</li>
<li><a href="a51f41b434"><code>a51f41b</code></a> chore: update lockfile after publish</li>
<li><a href="da61421fae"><code>da61421</code></a> v26.2.1</li>
<li><a href="3de08dd041"><code>3de08dd</code></a> chore: update changelog for release</li>
<li><a href="2db6aa11ef"><code>2db6aa1</code></a> fix(worker): support v12 node typings (<a href="https://github-redirect.dependabot.com/facebook/jest/issues/10336">#10336</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/facebook/jest/compare/v26.1.0...v26.2.2">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.1.0&new-version=26.2.2)](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/1436

Reviewed By: mweststrate

Differential Revision: D22898235

Pulled By: passy

fbshipit-source-id: 4d9651d84ef46b8804cba95f288b124714268263
2020-08-03 09:47:10 -07:00
dependabot[bot]
3f36198c88 Bump react-native-flipper from 0.49.0 to 0.51.0 in /react-native/ReactNativeFlipperExample (#1419)
Summary:
Bumps [react-native-flipper](https://github.com/facebook/flipper) from 0.49.0 to 0.51.0.
<details>
<summary>Commits</summary>
<ul>
<li><a href="5dc98bab9d"><code>5dc98ba</code></a> Flipper Release: v0.51.0</li>
<li><a href="323c9d25d4"><code>323c9d2</code></a> Fix layout of error and doctor bars</li>
<li><a href="9ada27526c"><code>9ada275</code></a> Change RatingButton to use Popover2</li>
<li><a href="d7a6356fb6"><code>d7a6356</code></a> Add Popover2 component</li>
<li><a href="5a56ee65b8"><code>5a56ee6</code></a> Fix contributing image link</li>
<li><a href="ce180a106f"><code>ce180a1</code></a> Log login success rate</li>
<li><a href="6561bc8f16"><code>6561bc8</code></a> Added connection between InAppErrorReporter and Flipper Desktop App via Layou...</li>
<li><a href="9e4c5363c5"><code>9e4c536</code></a> Deep-linking records to other strong records in the Store tab</li>
<li><a href="7d06571cfa"><code>7d06571</code></a> Add marker start and end to App to measure the startup time for Flipper (<a href="https://github-redirect.dependabot.com/facebook/flipper/issues/1398">https://github.com/facebook/flipper/issues/1398</a>)</li>
<li><a href="33cd7d29df"><code>33cd7d2</code></a> Set up coveralls Jest coverage tracking on GitHub (<a href="https://github-redirect.dependabot.com/facebook/flipper/issues/1392">https://github.com/facebook/flipper/issues/1392</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/facebook/flipper/compare/v0.49.0...v0.51.0">compare view</a></li>
</ul>
</details>
<br />

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

Reviewed By: mweststrate

Differential Revision: D22896632

Pulled By: passy

fbshipit-source-id: c1a89a86f354befe18a996f6bcdaa6ec74bcf815
2020-08-03 09:44:23 -07:00
dependabot[bot]
5550a3c15e Bump elliptic from 6.5.2 to 6.5.3 in /website (#1430)
Summary:
Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.2 to 6.5.3.
<details>
<summary>Commits</summary>
<ul>
<li><a href="8647803dc3"><code>8647803</code></a> 6.5.3</li>
<li><a href="856fe4d99f"><code>856fe4d</code></a> signature: prevent malleability and overflows</li>
<li>See full diff in <a href="https://github.com/indutny/elliptic/compare/v6.5.2...v6.5.3">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=elliptic&package-manager=npm_and_yarn&previous-version=6.5.2&new-version=6.5.3)](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)
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/facebook/flipper/network/alerts).

</details>

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

Reviewed By: mweststrate

Differential Revision: D22896630

Pulled By: passy

fbshipit-source-id: 43f12a10528828a1a5b96b0e92e13261b702a4f4
2020-08-03 09:30:27 -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
Dominik Wielgórski
4c4097f0f8 Implemented menu to select ide
Summary:
Added IDE menu functionalities.
Changed minor UX detail - for classes that cannot be opened user will always see 'Can't open' prompt.

Design: https://www.figma.com/file/M0l6qhQqzllIcefVE4tQvG/Error-Reporter-IDE-Selector?node-id=82%3A0

Reviewed By: arpitratan, adityasharat

Differential Revision: D22790328

fbshipit-source-id: 8dfbcf7408c53947909bcf3fa700dee7ae47e14a
2020-07-30 04:30:06 -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
Michael Bahl
9c693b12c3 Add null check in FKUserDefaultsSwizzleUtility.m (#1401)
Summary:
Prevent Flipper from runtime exception by add null c.heck

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

Reviewed By: priteshrnandgaonkar

Differential Revision: D22789514

Pulled By: passy

fbshipit-source-id: 21a27298c8b662bbaeab13114ab7a0d310391ba3
2020-07-28 06:55:22 -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
Chaytanya Sinha
cfcb6837d1 Updated custom-ports.mdx (#1406)
Summary:
Usually ':' is used before the command

Usually while presenting a command ':' is used instead of that '.' was used.

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

Reviewed By: jknoxville

Differential Revision: D22766378

Pulled By: passy

fbshipit-source-id: 6811f36262a5520db3afddbe68afa492831f48f2
2020-07-27 09:33:14 -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
Paco Estevez Garcia
10f9a48540 Wire Editor to Flipper
Summary:
This diff implements the integration between a Litho Editor and Flipper. It does so by converting the Editor format to FlipperObject, and then converting it back from FlipperDynamic.

This conversion works for both `State` and `Prop`. We already provide default implementations for primitive + wrapped types and String, so the functionality should match the existing one.

Reviewed By: passy, Katalune

Differential Revision: D22455220

fbshipit-source-id: f7f633765f3d997ce6de09d2c1277019e72c0802
2020-07-27 05:09:16 -07:00
Dominik Wielgórski
1784eb78d9 Added buttons +notifications for opening in IDE functionality
Summary: Created buttons which enable opening in IDE for classes which are valid.

Reviewed By: adityasharat

Differential Revision: D22724496

fbshipit-source-id: 3532213ab7730aae5e61877ccfecd0558b329d57
2020-07-27 05:07:02 -07:00
GitHub
55e0b98233 Automated: Update Podfile.lock (#1400)
Summary:
This is an automated PR to update the Podfile.lock.
- Make sure that the Podfile.lock contains latest FlipperKit and Flipper pod versions.
- Also make sure that all the dependencies are updated to the latest one.
- This is auto-generated by [create-pull-request](https://github.com/peter-evans/create-pull-request)

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

Reviewed By: mweststrate

Differential Revision: D22739816

Pulled By: nikoant

fbshipit-source-id: 7d098b8b99ea764cecde720eb607337e2d354895
2020-07-24 16:25:20 -07:00
generatedunixname89002005306973
a7bba8909d Flipper Snapshot Bump: v0.51.1-SNAPSHOT
Summary: Releasing snapshot version 0.51.1-SNAPSHOT

Reviewed By: nikoant

Differential Revision: D22728767

fbshipit-source-id: 0611fa76c70c51b0cfdd3c9917508c4932c45d8c
2020-07-24 10:03:20 -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
Pascal Hartig
33cd7d29df Set up coveralls Jest coverage tracking on GitHub (#1392)
Summary:
This adds some pretty nice unit test coverage analysis for our codebase. Especially useful for external pull requests as a gentle nudge to make sure they don't regress the topline number.

To learn more, check out https://github.com/coverallsapp/github-action

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

Test Plan:
{F245038134}

{F245038132}

https://coveralls.io/builds/32250084

Reviewed By: jknoxville

Differential Revision: D22664361

Pulled By: passy

fbshipit-source-id: 4dc1fc79677da41a9d3ea198224c5678ae156ad4
2020-07-22 08:41:14 -07:00
dependabot[bot]
08f942143d Bump lodash from 4.17.15 to 4.17.19 in /website (#1388)
Summary:
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/lodash/lodash/releases">lodash's releases</a>.</em></p>
<blockquote>
<h2>4.17.16</h2>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="d7fbc52ee0"><code>d7fbc52</code></a> Bump to v4.17.19</li>
<li><a href="2e1c0f22f4"><code>2e1c0f2</code></a> Add npm-package</li>
<li><a href="1b6c282299"><code>1b6c282</code></a> Bump to v4.17.18</li>
<li><a href="a370ac8140"><code>a370ac8</code></a> Bump to v4.17.17</li>
<li><a href="1144918f35"><code>1144918</code></a> Rebuild lodash and docs</li>
<li><a href="3a3b0fd339"><code>3a3b0fd</code></a> Bump to v4.17.16</li>
<li><a href="c84fe82760"><code>c84fe82</code></a> fix(zipObjectDeep): prototype pollution (<a href="https://github-redirect.dependabot.com/lodash/lodash/issues/4759">#4759</a>)</li>
<li><a href="e7b28ea6cb"><code>e7b28ea</code></a> Sanitize sourceURL so it cannot affect evaled code (<a href="https://github-redirect.dependabot.com/lodash/lodash/issues/4518">#4518</a>)</li>
<li><a href="0cec225778"><code>0cec225</code></a> Fix lodash.isEqual for circular references (<a href="https://github-redirect.dependabot.com/lodash/lodash/issues/4320">#4320</a>) (<a href="https://github-redirect.dependabot.com/lodash/lodash/issues/4515">#4515</a>)</li>
<li><a href="94c3a8133c"><code>94c3a81</code></a> Document matches* shorthands for over* methods (<a href="https://github-redirect.dependabot.com/lodash/lodash/issues/4510">#4510</a>) (<a href="https://github-redirect.dependabot.com/lodash/lodash/issues/4514">#4514</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/lodash/lodash/compare/4.17.15...4.17.19">compare view</a></li>
</ul>
</details>
<details>
<summary>Maintainer changes</summary>
<p>This version was pushed to npm by <a href="https://www.npmjs.com/~mathias">mathias</a>, a new releaser for lodash since your current version.</p>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=lodash&package-manager=npm_and_yarn&previous-version=4.17.15&new-version=4.17.19)](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)
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/facebook/flipper/network/alerts).

</details>

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

Reviewed By: nikoant

Differential Revision: D22663863

Pulled By: passy

fbshipit-source-id: 782971ba2138f97c165022d00302c8213f933c0e
2020-07-22 06:21:07 -07:00
Darsh Shah
56a85ae9dd feat(docs): Update README.md (#1395)
Summary:
> Updating Readme.md file. This will make it look a lot cleaner.

### Changes
- [x] Added Flipper logo
- [x] aligning header elements to center

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

Reviewed By: jknoxville

Differential Revision: D22661963

Pulled By: mweststrate

fbshipit-source-id: 01c495da3037a28a9f69907f8f94e42e77143d10
2020-07-22 04:17:20 -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
shardul
485b4c9827 docs: remove broken image from CONTRIBUTING.md (#1396)
Summary:
The image for 'GitHub Actions artifact downloads' in `CONTRIBUTING.md` is broken. The file `static/actions-artifacts.png` referenced by the image link is not in the repo. The broken image should not be displayed until a proper image is available.

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

### Screenshot
![image](https://user-images.githubusercontent.com/49580849/88140196-e4e45880-cc0e-11ea-9b3e-2a490b6439f9.png)

## Changelog

Broken link from `CONTRIBUTING.md` removed.

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

Test Plan: Visit [`CONTRIBUTING.md`](https://github.com/facebook/flipper/blob/master/CONTRIBUTING.md)

Reviewed By: jknoxville

Differential Revision: D22662057

Pulled By: mweststrate

fbshipit-source-id: 9d2b26196da6078accddcd119bdd005752f46789
2020-07-22 04:10:49 -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
dependabot[bot]
9f4f547ef4 Bump lodash from 4.17.15 to 4.17.19 in /react-native/ReactNativeFlipperExample (#1387)
Summary:
[//]: # (dependabot-start)
{emoji:26a0}  **Dependabot is rebasing this PR** {emoji:26a0}

If you make any changes to it yourself then they will take precedence over the rebase.

 ---

[//]: # (dependabot-end)

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/lodash/lodash/releases">lodash's releases</a>.</em></p>
<blockquote>
<h2>4.17.16</h2>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="d7fbc52ee0"><code>d7fbc52</code></a> Bump to v4.17.19</li>
<li><a href="2e1c0f22f4"><code>2e1c0f2</code></a> Add npm-package</li>
<li><a href="1b6c282299"><code>1b6c282</code></a> Bump to v4.17.18</li>
<li><a href="a370ac8140"><code>a370ac8</code></a> Bump to v4.17.17</li>
<li><a href="1144918f35"><code>1144918</code></a> Rebuild lodash and docs</li>
<li><a href="3a3b0fd339"><code>3a3b0fd</code></a> Bump to v4.17.16</li>
<li><a href="c84fe82760"><code>c84fe82</code></a> fix(zipObjectDeep): prototype pollution (<a href="https://github-redirect.dependabot.com/lodash/lodash/issues/4759">#4759</a>)</li>
<li><a href="e7b28ea6cb"><code>e7b28ea</code></a> Sanitize sourceURL so it cannot affect evaled code (<a href="https://github-redirect.dependabot.com/lodash/lodash/issues/4518">#4518</a>)</li>
<li><a href="0cec225778"><code>0cec225</code></a> Fix lodash.isEqual for circular references (<a href="https://github-redirect.dependabot.com/lodash/lodash/issues/4320">#4320</a>) (<a href="https://github-redirect.dependabot.com/lodash/lodash/issues/4515">#4515</a>)</li>
<li><a href="94c3a8133c"><code>94c3a81</code></a> Document matches* shorthands for over* methods (<a href="https://github-redirect.dependabot.com/lodash/lodash/issues/4510">#4510</a>) (<a href="https://github-redirect.dependabot.com/lodash/lodash/issues/4514">#4514</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/lodash/lodash/compare/4.17.15...4.17.19">compare view</a></li>
</ul>
</details>
<details>
<summary>Maintainer changes</summary>
<p>This version was pushed to npm by <a href="https://www.npmjs.com/~mathias">mathias</a>, a new releaser for lodash since your current version.</p>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=lodash&package-manager=npm_and_yarn&previous-version=4.17.15&new-version=4.17.19)](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)
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/facebook/flipper/network/alerts).

</details>

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

Reviewed By: mweststrate

Differential Revision: D22643202

Pulled By: passy

fbshipit-source-id: 1ba23fba9512f35eeeeb180c5f1f86217bca34c0
2020-07-21 09:38:57 -07:00
dependabot[bot]
8db705b5ed Bump lodash from 4.17.15 to 4.17.19 in /react-native/react-native-flipper (#1386)
Summary:
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/lodash/lodash/releases">lodash's releases</a>.</em></p>
<blockquote>
<h2>4.17.16</h2>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="d7fbc52ee0"><code>d7fbc52</code></a> Bump to v4.17.19</li>
<li><a href="2e1c0f22f4"><code>2e1c0f2</code></a> Add npm-package</li>
<li><a href="1b6c282299"><code>1b6c282</code></a> Bump to v4.17.18</li>
<li><a href="a370ac8140"><code>a370ac8</code></a> Bump to v4.17.17</li>
<li><a href="1144918f35"><code>1144918</code></a> Rebuild lodash and docs</li>
<li><a href="3a3b0fd339"><code>3a3b0fd</code></a> Bump to v4.17.16</li>
<li><a href="c84fe82760"><code>c84fe82</code></a> fix(zipObjectDeep): prototype pollution (<a href="https://github-redirect.dependabot.com/lodash/lodash/issues/4759">#4759</a>)</li>
<li><a href="e7b28ea6cb"><code>e7b28ea</code></a> Sanitize sourceURL so it cannot affect evaled code (<a href="https://github-redirect.dependabot.com/lodash/lodash/issues/4518">#4518</a>)</li>
<li><a href="0cec225778"><code>0cec225</code></a> Fix lodash.isEqual for circular references (<a href="https://github-redirect.dependabot.com/lodash/lodash/issues/4320">#4320</a>) (<a href="https://github-redirect.dependabot.com/lodash/lodash/issues/4515">#4515</a>)</li>
<li><a href="94c3a8133c"><code>94c3a81</code></a> Document matches* shorthands for over* methods (<a href="https://github-redirect.dependabot.com/lodash/lodash/issues/4510">#4510</a>) (<a href="https://github-redirect.dependabot.com/lodash/lodash/issues/4514">#4514</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/lodash/lodash/compare/4.17.15...4.17.19">compare view</a></li>
</ul>
</details>
<details>
<summary>Maintainer changes</summary>
<p>This version was pushed to npm by <a href="https://www.npmjs.com/~mathias">mathias</a>, a new releaser for lodash since your current version.</p>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=lodash&package-manager=npm_and_yarn&previous-version=4.17.15&new-version=4.17.19)](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)
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/facebook/flipper/network/alerts).

</details>

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

Reviewed By: mweststrate

Differential Revision: D22643186

Pulled By: passy

fbshipit-source-id: 25283f284dd673ca48455b1ff05c8a6b518c8038
2020-07-21 09:31:28 -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
Stanislau Hlebik
82e2d19a85 remediation of S205607
fbshipit-source-id: 798decc90db4f13770e97cdce3c0df7d5421b2a3
2020-07-17 17:18:36 -07:00
Stanislau Hlebik
1f2b60f1c4 remediation of S205607
fbshipit-source-id: 5113fe0c527595e4227ff827253b7414abbdf7ac
2020-07-17 17:18:36 -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