Commit Graph

3877 Commits

Author SHA1 Message Date
Michel Weststrate
dd15cffa64 Introduced first class console to help users debugging issues (#1479)
Summary:
Handling issues typically start with: did you look at the Electron logs? Since Flipper is such an extensible tool, running in varying environments I think the console should be support as first class concept. Many errors are currently not shown to the user. This PR is a first attempt to fix that.

The implementation is based on https://github.com/samdenty/console-feed, which is used by quite some web based IDE like tools (like codesandbox), and offers a lot of goodies out of the box, like collapsing errors, objects, etc.

Edit: also added a counter keeping track of the amount of errors

N.B. no need to immediately review this diff, I'll import it to phabricator as soon as I can :)

## Changelog

changelog: Introduce 'Debug Logs' section to help users to troubleshoot issues or to provide more accurate reports.

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

Test Plan: ![Screenshot from 2020-08-18 15-29-55](https://user-images.githubusercontent.com/1820292/90526011-c9b22d80-e167-11ea-88cf-7b4e07918a96.png)

Reviewed By: jknoxville

Differential Revision: D23198103

Pulled By: passy

fbshipit-source-id: a2505f9fa59e10676a44ffa33312efe83c7be55d
2020-08-20 13:27:48 -07:00
John Knox
baa29d0b49 Manually fix up imported pages
Summary:
I've gone through all imported pages and fixed all images and links (and anything else) that didn't get converted successfully.

Also changed the new # headings to use ##, because it works better here.

And organized the sidebar like it was on the wiki

Reviewed By: passy

Differential Revision: D23241772

fbshipit-source-id: 7eab8d7d520c5d605525d9b4ad9b12b48ca92bcc
2020-08-20 12:48:57 -07:00
John Knox
c6569470f4 Import internal pages from wiki
Summary:
This is the unadulterated output from running:
`yarn start static-docs-from-wiki --wiki_name Flipper --site_dir xplat/sonar/website`

Reviewed By: passy

Differential Revision: D23241773

fbshipit-source-id: 136e99130c77bedfb66bb31e31a7b331278857bb
2020-08-20 12:48:57 -07:00
GitHub
4228e0dd26 Automated: Update Podfile.lock (#1485)
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/1485

Reviewed By: priteshrnandgaonkar

Differential Revision: D23241704

Pulled By: passy

fbshipit-source-id: 025947bdf480bdee800717396c1317a5926c6210
2020-08-20 08:26:37 -07:00
Michel Weststrate
f342561196 Better error handling (#1478)
Summary:
Show a notification if device connect failed, or if USB debugging hasn't been authorized

When trying to run Flipper on my linux device, it didn't connect to my phone ootb. `adb devices` showed the device, and the flipper console did show an error, which, correctly stated that the device isn't authorized, but I missed the popup on my phone. This hopefully removes one hindrance for others in the future when connecting Flipper to Android.

## Changelog

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

Test Plan:
Before (no hint in Flipper UI):

![Screenshot from 2020-08-18 12-11-27](https://user-images.githubusercontent.com/1820292/90509026-9ca65080-e150-11ea-9119-2ba68633566a.png)

After:
Desktop notification + notification in notifications section

![Screenshot from 2020-08-18 12-47-10](https://user-images.githubusercontent.com/1820292/90509353-1b02f280-e151-11ea-899a-47d59ec93dcc.png)
![Screenshot from 2020-08-18 12-47-40](https://user-images.githubusercontent.com/1820292/90509358-1d654c80-e151-11ea-82c0-e86c5c34390d.png)

(sorry, had a movie, but can't access paste and GH doesn't allow them)

Reviewed By: passy

Differential Revision: D23220915

Pulled By: mweststrate

fbshipit-source-id: 4f4bc8023612301191ece62b9bc2bd008f3bb3cb
2020-08-20 02:58:07 -07:00
root@sandcastle1328.prn2.facebook.com
c38071e9ba Flipper Snapshot Bump: v0.53.1-SNAPSHOT
Summary: Releasing snapshot version 0.53.1-SNAPSHOT

Reviewed By: priteshrnandgaonkar

Differential Revision: D23213489

fbshipit-source-id: 97ceab6b351fd2feea65c0d5fe75ccdd2728881b
2020-08-19 09:28:02 -07:00
root@sandcastle1328.prn2.facebook.com
f1c3bf8697 Flipper Release: v0.53.0
Summary: Releasing version 0.53.0

Reviewed By: priteshrnandgaonkar

Differential Revision: D23213490

fbshipit-source-id: 66dfa59dbae33d372bad9e284f9773e2ab88487b
2020-08-19 08:22:00 -07:00
Pritesh Nandgaonkar
3c3d76be60 Send flipperstate to cert downloader
Summary: Add flipperstate to the cert downloader.

Reviewed By: jknoxville

Differential Revision: D23172851

fbshipit-source-id: f0eb23ec709d656918831c2ee82a6ddb426596e5
2020-08-18 17:16:43 -07:00
Pritesh Nandgaonkar
2e98c7f3c7 Solve the bug where iOS physical device was not detected
Summary:
As per the title

Bug:

{F288338655}

Reviewed By: mweststrate

Differential Revision: D23168390

fbshipit-source-id: e57ac1f22c0a3932fe9948d16cf9fc9cc74ab636
2020-08-18 04:16:15 -07:00
Pascal Hartig
6170bfea41 Upgrade fs-extra
Summary: Bringing this to the latest version everywhere.

Reviewed By: priteshrnandgaonkar

Differential Revision: D23051537

fbshipit-source-id: 5cad59ab6fcc57fc72df8ace985a7b5f39de2bda
2020-08-18 03:32:09 -07:00
dependabot[bot]
10b3c7db0b Bump eslint-plugin-react-hooks from 4.0.4 to 4.1.0 in /flipper-js-client-sdk (#1475)
Summary:
Bumps [eslint-plugin-react-hooks](https://github.com/facebook/react/tree/HEAD/packages/eslint-plugin-react-hooks) from 4.0.4 to 4.1.0.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/facebook/react/blob/master/packages/eslint-plugin-react-hooks/CHANGELOG.md">eslint-plugin-react-hooks's changelog</a>.</em></p>
<blockquote>
<h2>4.1.0</h2>
<ul>
<li><strong>New Violations:</strong> Warn when dependencies change on every render. (<a href="https://github.com/captbaritone">captbaritone</a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/19590">#19590</a>)</li>
</ul>
<h2>4.0.8</h2>
<ul>
<li>Fixes TypeScript <code>typeof</code> annotation to not be considered a dependency. (<a href="https://github.com/delca85">delca85</a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/19316">#19316</a>)</li>
</ul>
<h2>4.0.7</h2>
<ul>
<li>Fixes an overly coarse dependency suggestion. (<a href="https://github.com/gaearon">gaearon</a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/19313">#19313</a>)</li>
</ul>
<h2>4.0.6</h2>
<ul>
<li>Fix crashes and other bugs related to optional chaining. (<a href="https://github.com/gaearon">gaearon</a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/19273">#19273</a> and <a href="https://github-redirect.dependabot.com/facebook/react/pull/19275">#19275</a>)</li>
</ul>
<h2>4.0.5</h2>
<ul>
<li>Fix a crash when the dependency array has an empty element. (<a href="https://github.com/yeonjuan">yeonjuan</a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/19145">#19145</a>)</li>
<li>Fix a false positive warning that occurs with optional chaining. (<a href="https://github.com/fredvollmer">fredvollmer</a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/19061">#19061</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a href="https://github.com/facebook/react/commits/HEAD/packages/eslint-plugin-react-hooks">compare view</a></li>
</ul>
</details>
<br />

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

Reviewed By: mweststrate

Differential Revision: D23161698

Pulled By: passy

fbshipit-source-id: 725c377f627b2555a85487ef39cebe372205d394
2020-08-18 03:28:01 -07:00
dependabot[bot]
156b00ba42 Bump data-encoding from 2.2.0 to 2.3.0 in /packer (#1449)
Summary:
Bumps [data-encoding](https://github.com/ia0/data-encoding) from 2.2.0 to 2.3.0.
<details>
<summary>Commits</summary>
<ul>
<li><a href="c0facaff53"><code>c0facaf</code></a> Release 2.3.0</li>
<li><a href="d215bc04cb"><code>d215bc0</code></a> lib: Add encode_append function</li>
<li><a href="07dfc9bde4"><code>07dfc9b</code></a> Remove fuzzit</li>
<li><a href="eaa9e11482"><code>eaa9e11</code></a> Release 2.2.1</li>
<li><a href="5aa1d4709b"><code>5aa1d47</code></a> lib: move cargo.toml badges to readme</li>
<li><a href="b6de71c398"><code>b6de71c</code></a> fix coveralls badge</li>
<li><a href="5d4ce64fbb"><code>5d4ce64</code></a> lib: use tarpaulin</li>
<li><a href="9b53af1e4a"><code>9b53af1</code></a> lib: explicit description</li>
<li><a href="f9d4bc3fc2"><code>f9d4bc3</code></a> lib: Add no-std category in Cargo.toml</li>
<li><a href="168aff449e"><code>168aff4</code></a> Release macro 0.1.8</li>
<li>See full diff in <a href="https://github.com/ia0/data-encoding/compare/v2.2.0...v2.3.0">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=data-encoding&package-manager=cargo&previous-version=2.2.0&new-version=2.3.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/1449

Reviewed By: mweststrate

Differential Revision: D23161719

Pulled By: passy

fbshipit-source-id: a7512b96ea8336595435f7a1eed5043b1578d642
2020-08-18 03:00:01 -07:00
dependabot[bot]
83227ff771 Bump jest from 26.2.2 to 26.3.0 in /react-native/ReactNativeFlipperExample (#1451)
Summary:
Bumps [jest](https://github.com/facebook/jest) from 26.2.2 to 26.3.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.3.0</h2>
<h3>Features</h3>
<ul>
<li><code>[jest-circus, jest-jasmine2]</code> Include <code>failureDetails</code> property in test results (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/9496">#9496</a>)</li>
<li><code>[jest-each, jest-jasmine, jest-circus]</code> Add support for <code>.concurrent.each</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/9326">#9326</a>)</li>
</ul>
<h3>Fixes</h3>
<ul>
<li><code>[jest-config]</code> Add <code>.pnp.js</code> to <code>transformIgnorePatterns</code> defaults (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10383">#10383</a>)</li>
<li><code>[jest-leak-detector]</code> Wait properly for GC runs due to changes in Node 14.7 (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10366">#10366</a>)</li>
<li><code>[jest-worker]</code> Downgrade minimum node version to 10.13 (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10352">#10352</a>)</li>
<li><code>[docs]</code> Update snapshot testing documentation(<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10359">#10359</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.3.0</h2>
<h3>Features</h3>
<ul>
<li><code>[jest-circus, jest-jasmine2]</code> Include <code>failureDetails</code> property in test results (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/9496">#9496</a>)</li>
<li><code>[jest-each, jest-jasmine, jest-circus]</code> Add support for <code>.concurrent.each</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/9326">#9326</a>)</li>
</ul>
<h3>Fixes</h3>
<ul>
<li><code>[jest-config]</code> Add <code>.pnp.js</code> to <code>transformIgnorePatterns</code> defaults (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10383">#10383</a>)</li>
<li><code>[jest-leak-detector]</code> Wait properly for GC runs due to changes in Node 14.7 (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10366">#10366</a>)</li>
<li><code>[jest-worker]</code> Downgrade minimum node version to 10.13 (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10352">#10352</a>)</li>
<li><code>[docs]</code> Update snapshot testing documentation(<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10359">#10359</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="3a7e06fe85"><code>3a7e06f</code></a> v26.3.0</li>
<li><a href="df97ce6b99"><code>df97ce6</code></a> chore: update changelog for release</li>
<li><a href="0cb9a027f4"><code>0cb9a02</code></a> chore: bump types/weak</li>
<li><a href="96097ade17"><code>96097ad</code></a> Add <code>.pnp.js</code> to <code>transformIgnorePatterns</code> defaults (<a href="https://github-redirect.dependabot.com/facebook/jest/issues/10383">#10383</a>)</li>
<li><a href="1d5074a274"><code>1d5074a</code></a> Update the term &quot;mobile app&quot; to &quot;web app&quot; in snapshot testing documentation (...</li>
<li><a href="7723ae221a"><code>7723ae2</code></a> chore: bump deps (<a href="https://github-redirect.dependabot.com/facebook/jest/issues/10365">#10365</a>)</li>
<li><a href="c95abca808"><code>c95abca</code></a> feat: support <code>concurrent</code> in Jest Each (<a href="https://github-redirect.dependabot.com/facebook/jest/issues/9326">#9326</a>)</li>
<li><a href="f07775154b"><code>f077751</code></a> fix(leak-detector): wait more ticks for GC to run (<a href="https://github-redirect.dependabot.com/facebook/jest/issues/10366">#10366</a>)</li>
<li><a href="9625826599"><code>9625826</code></a> chore: update <code>ts-expect-error</code> comments and tests (<a href="https://github-redirect.dependabot.com/facebook/jest/issues/10356">#10356</a>)</li>
<li><a href="321838f7d1"><code>321838f</code></a> fix(worker): downgrade minimum required node version to 10.13 (<a href="https://github-redirect.dependabot.com/facebook/jest/issues/10352">#10352</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/facebook/jest/compare/v26.2.2...v26.3.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.2.2&new-version=26.3.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/1451

Reviewed By: priteshrnandgaonkar

Differential Revision: D23074837

Pulled By: passy

fbshipit-source-id: 0f44f6aa5be6cffcf5b5b10e0dbf0d1b3d12ce1d
2020-08-17 13:39:52 -07:00
Dominik Wielgórski
8aa29d00f2 Display Xcode for CK and Android Studio for Litho Components
Summary:
Detect the framework used for a given component and accordingly, display a proper IDE list.

[FB Only]
changelog: It is now possible to directly open CKComponents from the Layout inspect

Reviewed By: adityasharat

Differential Revision: D23158628

fbshipit-source-id: 305f10752c72eac001334f09bab29264e3e328a6
2020-08-17 10:20:53 -07:00
Dominik Wielgórski
7d0dd3c656 Implemented method to get CKComponent path
Summary:
Added corresponding method for CKComponents which handles two main cases:

- CKSomeComponent_Spec should have corresponding CKSomeComponentSpec.mm

- CKSomeComponent should have corresponding CKSomeComponent.mm

Reviewed By: cuva

Differential Revision: D23158626

fbshipit-source-id: 9d5645a70d838847696aced6bbc947a8c4383f0c
2020-08-17 10:20:53 -07:00
Dominik Wielgórski
41f1a0b454 Extra data send from iOS to Flipper Desktop
Summary: Added `extraInfo` for node descriptor for ios. Analogical to android node descriptor

Reviewed By: cuva, Andrey-Mishanin

Differential Revision: D23105947

fbshipit-source-id: f21541e97d79c0009815f94e733a056320324459
2020-08-17 10:20:53 -07:00
Dominik Wielgórski
939ed27aad Detect if given Component is LithoComponent
Summary: Useful for next diffs: enables to detect whether we have LithoComponent or CKComponent

Reviewed By: adityasharat

Differential Revision: D23128972

fbshipit-source-id: b9aef358c1426df4f05213c42e43402e8cae984f
2020-08-17 10:20:53 -07:00
Dominik Wielgórski
26b54ece5a Add functionality to resolve Litho Components / Sections
Summary:
Few cases to consider:
- SomeComponent.* might correspond to SomeComponentSpec.java
- SomeComponent.* might correspond to SomeComponentSpec.kt
- SomeComponent.* might not have a corresponding Spec file
- SomeComponent.kt (if it's a KComponent) corresponds to SomeComponent.kt

Reviewed By: adityasharat

Differential Revision: D23100032

fbshipit-source-id: f0604f3d1061f0e15fa2f455bdddd4d07ac12305
2020-08-17 10:20:53 -07:00
Dominik Wielgórski
641d39cf94 Added extension to getBestPath API
Summary: Expand API by passing a default extension

Reviewed By: adityasharat

Differential Revision: D23078940

fbshipit-source-id: c9303add194e85deb174a8fc343e37b73f59d1c0
2020-08-17 10:20:53 -07:00
Andrey Mishanin
f40c0b9f1e Add highlight for nodes in tree
Summary:
- Passing the `treeNodeIndexPath` from `FocusInfo` all the way to the `Tree` component.
- Using the index path to find the right node and give it a different visual appearance.

Reviewed By: kevin0571

Differential Revision: D23161057

fbshipit-source-id: 05a95444bb76c1f28a21b42bf477ed9c9929e3b1
2020-08-17 08:04:53 -07:00
Andrey Mishanin
7989b4792a Handling payload
Summary:
- Added `treeNodeIndexPath` to `FocusInfo` which represents the path to the selected node in the component tree.
- Extracting scope root ID from payload to identify the time line track that corresponds to the selected component.
- Finding the most recent 'Tree Build' event on the track so we can be sure the selected component is in the associated component tree.
- Extracting the index path to the selected node in the tree.

Reviewed By: kevin0571

Differential Revision: D23160875

fbshipit-source-id: 8607bf7b34bca1374f9fafded197b35c811f3f75
2020-08-17 08:04:53 -07:00
Andrey Mishanin
4fc63da386 Wrap focusedGenerationId in a type
Summary:
- Use `FocusInfo` type instead of a raw string (I'll add another field to it in the next diff and it made sense to keep the changes separate).
- `userSelectedGenerationId` now has the type of `string | undefined` for consistency.

Reviewed By: fabiomassimo

Differential Revision: D23160820

fbshipit-source-id: f210d93b9ed7cb25eb3c2c8e6e6aadec4dc872d7
2020-08-17 08:04:53 -07:00
Pritesh Nandgaonkar
f626925443 Upload/Download certs zip from Flipper
Summary:
This diff adds upload and download logic for certs. It makes changes on both Flipper Client and Desktop side. With this we enable cert exchange through WWW.

Next Diffs:

1) Add Flipper state in cert provider for more debug data
2) Tests

Reviewed By: jknoxville

Differential Revision: D23092706

fbshipit-source-id: e576253606b64b62848b70203db7e09a3bd77fd9
2020-08-17 06:51:52 -07:00
John Knox
6e0b407063 Make it light mode by default
Summary:
The new version's disableSwitch isn't equivalent to disabling dark mode like it did before. The default is still dark but now there's no way to change it.

This makes the default light again. Would be nice to enable the dark mode switch, we just need someone to make sure the CSS colours have good enough contrast etc. PRs very welcome!

Dark mode:

{F287823751}

Reviewed By: mweststrate

Differential Revision: D23161145

fbshipit-source-id: fa887afbffa8a1e1e753833b2dba618c5f93435f
2020-08-17 06:19:34 -07:00
John Knox
46e9637cf2 Add openssl for windows download link
Summary: Pointed out in https://github.com/facebook/flipper/issues/1440

Reviewed By: passy

Differential Revision: D23132527

fbshipit-source-id: a1357b7c26d0b27f6eedabe2fd2dcfae647a878c
2020-08-17 02:34:43 -07:00
Austin Wang
0d53935b81 Add papercuts link to star rating popup
Summary:
Added papercuts link to the thanks message after user submits a rating within the star rating popup.
Also increased the timeout after submitting ratings from 1500 to 5000, due to the longer thanks message. Also added a dismiss option.

Reviewed By: jknoxville

Differential Revision: D23115320

fbshipit-source-id: 78de3481e5a085949ddbfbdd51ff499b8b567959
2020-08-14 10:35:36 -07:00
John Knox
21a7655322 Upgrade docusaurus version
Summary:
Upgrading to 61 to get support for absolute links with markdown syntax.

All other changes here are required by the new config validators.

Reviewed By: passy

Differential Revision: D23130020

fbshipit-source-id: cadb3c629d6a8e64931a8db0b86621d05ee5c30e
2020-08-14 10:33:02 -07:00
Chaiwat Ekkaewnumchai
1de1390621 Fixed serialize-javascript Vulnerability
Summary: per title

Reviewed By: passy

Differential Revision: D23104200

fbshipit-source-id: f81e7feacbc88cc76bc64343d7e946a18faca1a5
2020-08-14 03:54:57 -07:00
dependabot[bot]
01b2b84444 Bump babel-jest from 26.2.2 to 26.3.0 in /react-native/ReactNativeFlipperExample (#1456)
Summary:
Bumps [babel-jest](https://github.com/facebook/jest/tree/HEAD/packages/babel-jest) from 26.2.2 to 26.3.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/facebook/jest/releases">babel-jest's releases</a>.</em></p>
<blockquote>
<h2>26.3.0</h2>
<h3>Features</h3>
<ul>
<li><code>[jest-circus, jest-jasmine2]</code> Include <code>failureDetails</code> property in test results (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/9496">#9496</a>)</li>
<li><code>[jest-each, jest-jasmine, jest-circus]</code> Add support for <code>.concurrent.each</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/9326">#9326</a>)</li>
</ul>
<h3>Fixes</h3>
<ul>
<li><code>[jest-config]</code> Add <code>.pnp.js</code> to <code>transformIgnorePatterns</code> defaults (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10383">#10383</a>)</li>
<li><code>[jest-leak-detector]</code> Wait properly for GC runs due to changes in Node 14.7 (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10366">#10366</a>)</li>
<li><code>[jest-worker]</code> Downgrade minimum node version to 10.13 (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10352">#10352</a>)</li>
<li><code>[docs]</code> Update snapshot testing documentation(<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10359">#10359</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/facebook/jest/blob/master/CHANGELOG.md">babel-jest's changelog</a>.</em></p>
<blockquote>
<h2>26.3.0</h2>
<h3>Features</h3>
<ul>
<li><code>[jest-circus, jest-jasmine2]</code> Include <code>failureDetails</code> property in test results (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/9496">#9496</a>)</li>
<li><code>[jest-each, jest-jasmine, jest-circus]</code> Add support for <code>.concurrent.each</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/9326">#9326</a>)</li>
</ul>
<h3>Fixes</h3>
<ul>
<li><code>[jest-config]</code> Add <code>.pnp.js</code> to <code>transformIgnorePatterns</code> defaults (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10383">#10383</a>)</li>
<li><code>[jest-leak-detector]</code> Wait properly for GC runs due to changes in Node 14.7 (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10366">#10366</a>)</li>
<li><code>[jest-worker]</code> Downgrade minimum node version to 10.13 (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10352">#10352</a>)</li>
<li><code>[docs]</code> Update snapshot testing documentation(<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10359">#10359</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="3a7e06fe85"><code>3a7e06f</code></a> v26.3.0</li>
<li><a href="7723ae221a"><code>7723ae2</code></a> chore: bump deps (<a href="https://github.com/facebook/jest/tree/HEAD/packages/babel-jest/issues/10365">#10365</a>)</li>
<li>See full diff in <a href="https://github.com/facebook/jest/commits/v26.3.0/packages/babel-jest">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=babel-jest&package-manager=npm_and_yarn&previous-version=26.2.2&new-version=26.3.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/1456

Reviewed By: cekkaewnumchai

Differential Revision: D23074843

Pulled By: passy

fbshipit-source-id: b017657033531973362c6e36d77f361c86372134
2020-08-14 02:58:16 -07:00
Samyukta Varshney
fe93bce589 Removing Extra space (#1464)
Summary:
Removing extra space in README.md

## Changelog

Change in README.md

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

Test Plan: Removing extra space between text

Reviewed By: cekkaewnumchai

Differential Revision: D23103953

Pulled By: passy

fbshipit-source-id: e5f0b6338d64ca2384fe1c42efce1604088c6ce7
2020-08-13 08:08:49 -07:00
udbhav-chugh
eb09f7903b Update architecture.mdx and client-plugin-lifecycle.mdx in docs (#1459)
Summary:
Removed basic grammatical errors in two docs files: architecture.mdx and client-plugin-lifecycle.mdx

## Changelog

Update architecture.mdx and client-plugin-lifecycle.mdx docs

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

Test Plan: There is only text change in documentation. The code is unchanged.

Reviewed By: cekkaewnumchai

Differential Revision: D23101962

Pulled By: passy

fbshipit-source-id: 24d9233d67a19745696b40ea6c2d3ac2d26231c3
2020-08-13 08:02:22 -07:00
John Knox
f743940d02 [network[ Fix missing response status code bug
Summary:
There's a bug in the network inspector.

Messages come in in batches for performance reasons.
These batches can include both requests and responses, but the code assumes only one or the other.

This fixes it to make it not mutually exclusive.

This bug only affects row building in the table, so when you click on the row, you can still see the response and everything.

Reviewed By: cekkaewnumchai

Differential Revision: D23102575

fbshipit-source-id: 47e8c6b0f1c9cf0d5860b6f349a7d9fe225c73ae
2020-08-13 07:59:08 -07:00
John Knox
d423afd75d Fix high pkd CPU usage issue
Summary:
Running `instruments -s devices` causes the `pkd` process in catalina to spike to ~100% for a few seconds.

Flipper runs this command every 3 seconds to poll for devices.
This switches it to use `idb list-targets` instead which is much more performant.

Currently switched off in the open-source version while we make sure it's working well. If you set the GK value 'flipper_use_idb_to_list_devices' to true, then you'll get the new behaviour.

Reviewed By: passy

Differential Revision: D23102067

fbshipit-source-id: 9e17155d938a4fe326e082511f747444e4b533a2
2020-08-13 03:48:09 -07:00
Pascal Hartig
939b624dbb Ignore launcher
Summary: It chokes on some malformed JSON files it has no business of looking at to start with.

Reviewed By: jknoxville

Differential Revision: D23057498

fbshipit-source-id: 0fac710bb9b2af426e478f156aae43bcb90de482
2020-08-13 03:41:26 -07:00
Dominik Wielgórski
7e4c9d05d4 Events for navigation functionality
Summary: Added new events for 'open in IDE' functionality within the Layout Plugin

Reviewed By: passy

Differential Revision: D23075105

fbshipit-source-id: 1d18977da728bb4c53cd13e8669253dea65d7c4d
2020-08-13 03:08:16 -07:00
Pritesh Nandgaonkar
293de19c2b Add toggle in the settings for cert exchange medium
Summary:
This diff adds a toggle setting in wilde which will enable certificate exchange through www.
Right now it just sends the information about which medium to be used for cert exchange to Flipper JS and its client side. But its implementation is not done yet.

### Flow for Wilde

Whenever user changes the setting(or when user logs out) we set the state of exchange medium and accordingly set/reset authtoken. Note at no given point we remove already existing certificates.

### Context for OSS

With this diff we introduce another way to do certificate exchange. Before this diff, we did certificate exchange by accessing the file system of app. But it turns out it's not possible to do that in applications signed by enterprise certs. Thus with this diff one can write their FlipperKitCertificateProvider and fetch the certificate from WWW.

Reviewed By: jknoxville

Differential Revision: D22896320

fbshipit-source-id: 55aef7028a62e71ba9c02f9f79acaab41d09c0c6
2020-08-12 04:44:18 -07:00
Pascal Hartig
4bb110f319 Handle off-Lighthouse version checks
Summary: This is tanking our success rates, but is an expected behaviour.

Reviewed By: jknoxville

Differential Revision: D23001697

fbshipit-source-id: 48bcdb99543d590d544cce8322950568a0ef5c6f
2020-08-11 11:19:48 -07:00
Pascal Hartig
45d1abf2d4 Attempt to upgrade release scripts
Summary:
We got a heads-up from the GitHub support that the way we use our
access tokens is deprecated and will soon stop working.

More details here: https://developer.github.com/changes/2020-02-10-deprecating-auth-through-query-param/

Reviewed By: jknoxville

Differential Revision: D23003718

fbshipit-source-id: e2a493be97cdc81161791a1bb07864853ca5049c
2020-08-11 11:16:31 -07:00
dependabot[bot]
98a33cedd4 Bump prismjs from 1.20.0 to 1.21.0 in /website (#1446)
Summary:
Bumps [prismjs](https://github.com/PrismJS/prism) from 1.20.0 to 1.21.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/PrismJS/prism/releases">prismjs's releases</a>.</em></p>
<blockquote>
<h2>v1.21.0</h2>
<p>Release 1.21.0</p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/PrismJS/prism/blob/master/CHANGELOG.md">prismjs's changelog</a>.</em></p>
<blockquote>
<h2>1.21.0 (2020-08-06)</h2>
<h3>New components</h3>
<ul>
<li><strong>.ignore</strong> &amp; <strong>.gitignore</strong> &amp; <strong>.hgignore</strong> &amp; <strong>.npmignore</strong> (<a href="https://github-redirect.dependabot.com/PrismJS/prism/issues/2481">#2481</a>) <a href="https://github.com/PrismJS/prism/commit/3fcce6fe"><code>3fcce6fe</code></a></li>
<li><strong>Agda</strong> (<a href="https://github-redirect.dependabot.com/PrismJS/prism/issues/2430">#2430</a>) <a href="https://github.com/PrismJS/prism/commit/3a127c7d"><code>3a127c7d</code></a></li>
<li><strong>AL</strong> (<a href="https://github-redirect.dependabot.com/PrismJS/prism/issues/2300">#2300</a>) <a href="https://github.com/PrismJS/prism/commit/de21eb64"><code>de21eb64</code></a></li>
<li><strong>Cypher</strong> (<a href="https://github-redirect.dependabot.com/PrismJS/prism/issues/2459">#2459</a>) <a href="https://github.com/PrismJS/prism/commit/398e2943"><code>398e2943</code></a></li>
<li><strong>Dhall</strong> (<a href="https://github-redirect.dependabot.com/PrismJS/prism/issues/2473">#2473</a>) <a href="https://github.com/PrismJS/prism/commit/649e51e5"><code>649e51e5</code></a></li>
<li><strong>EditorConfig</strong> (<a href="https://github-redirect.dependabot.com/PrismJS/prism/issues/2471">#2471</a>) <a href="https://github.com/PrismJS/prism/commit/ed8fff91"><code>ed8fff91</code></a></li>
<li><strong>HLSL</strong> (<a href="https://github-redirect.dependabot.com/PrismJS/prism/issues/2318">#2318</a>) <a href="https://github.com/PrismJS/prism/commit/87a5c7ae"><code>87a5c7ae</code></a></li>
<li><strong>JS stack trace</strong> (<a href="https://github-redirect.dependabot.com/PrismJS/prism/issues/2418">#2418</a>) <a href="https://github.com/PrismJS/prism/commit/ae0327b3"><code>ae0327b3</code></a></li>
<li><strong>PeopleCode</strong> (<a href="https://github-redirect.dependabot.com/PrismJS/prism/issues/2302">#2302</a>) <a href="https://github.com/PrismJS/prism/commit/bd4d8165"><code>bd4d8165</code></a></li>
<li><strong>PureBasic</strong> (<a href="https://github-redirect.dependabot.com/PrismJS/prism/issues/2369">#2369</a>) <a href="https://github.com/PrismJS/prism/commit/d0c1c70d"><code>d0c1c70d</code></a></li>
<li><strong>Racket</strong> (<a href="https://github-redirect.dependabot.com/PrismJS/prism/issues/2315">#2315</a>) <a href="https://github.com/PrismJS/prism/commit/053016ef"><code>053016ef</code></a></li>
<li><strong>Smali</strong> (<a href="https://github-redirect.dependabot.com/PrismJS/prism/issues/2419">#2419</a>) <a href="https://github.com/PrismJS/prism/commit/22eb5cad"><code>22eb5cad</code></a></li>
<li><strong>Structured Text (IEC 61131-3)</strong> (<a href="https://github-redirect.dependabot.com/PrismJS/prism/issues/2311">#2311</a>) <a href="https://github.com/PrismJS/prism/commit/8704cdfb"><code>8704cdfb</code></a></li>
<li><strong>UnrealScript</strong> (<a href="https://github-redirect.dependabot.com/PrismJS/prism/issues/2305">#2305</a>) <a href="https://github.com/PrismJS/prism/commit/1093ceb3"><code>1093ceb3</code></a></li>
<li><strong>WarpScript</strong> (<a href="https://github-redirect.dependabot.com/PrismJS/prism/issues/2307">#2307</a>) <a href="https://github.com/PrismJS/prism/commit/cde5b0fa"><code>cde5b0fa</code></a></li>
<li><strong>XML doc (.net)</strong> (<a href="https://github-redirect.dependabot.com/PrismJS/prism/issues/2340">#2340</a>) <a href="https://github.com/PrismJS/prism/commit/caec5e30"><code>caec5e30</code></a></li>
<li><strong>YANG</strong> (<a href="https://github-redirect.dependabot.com/PrismJS/prism/issues/2467">#2467</a>) <a href="https://github.com/PrismJS/prism/commit/ed1df1e1"><code>ed1df1e1</code></a></li>
</ul>
<h3>Updated components</h3>
<ul>
<li>Markup &amp; JSON: Added new aliases (<a href="https://github-redirect.dependabot.com/PrismJS/prism/issues/2390">#2390</a>) <a href="https://github.com/PrismJS/prism/commit/9782cfe6"><code>9782cfe6</code></a></li>
<li>Fixed several cases of exponential backtracking (<a href="https://github-redirect.dependabot.com/PrismJS/prism/issues/2268">#2268</a>) <a href="https://github.com/PrismJS/prism/commit/7a554b5f"><code>7a554b5f</code></a></li>
<li><strong>APL</strong>
<ul>
<li>Added <code>⍥</code> (<a href="https://github-redirect.dependabot.com/PrismJS/prism/issues/2409">#2409</a>) <a href="https://github.com/PrismJS/prism/commit/0255cb6a"><code>0255cb6a</code></a></li>
</ul>
</li>
<li><strong>AutoHotkey</strong>
<ul>
<li>Added missing <code>format</code> built-in (<a href="https://github-redirect.dependabot.com/PrismJS/prism/issues/2450">#2450</a>) <a href="https://github.com/PrismJS/prism/commit/7c66cfc4"><code>7c66cfc4</code></a></li>
<li>Improved comments and other improvements (<a href="https://github-redirect.dependabot.com/PrismJS/prism/issues/2412">#2412</a>) <a href="https://github.com/PrismJS/prism/commit/ddf3cc62"><code>ddf3cc62</code></a></li>
<li>Added missing definitions (<a href="https://github-redirect.dependabot.com/PrismJS/prism/issues/2400">#2400</a>) <a href="https://github.com/PrismJS/prism/commit/4fe03676"><code>4fe03676</code></a></li>
</ul>
</li>
<li><strong>Bash</strong>
<ul>
<li>Added <code>composer</code> command (<a href="https://github-redirect.dependabot.com/PrismJS/prism/issues/2298">#2298</a>) <a href="https://github.com/PrismJS/prism/commit/044dd271"><code>044dd271</code></a></li>
</ul>
</li>
<li><strong>Batch</strong>
<ul>
<li>Fix escaped double quote (<a href="https://github-redirect.dependabot.com/PrismJS/prism/issues/2485">#2485</a>) <a href="https://github.com/PrismJS/prism/commit/f0f8210c"><code>f0f8210c</code></a></li>
</ul>
</li>
<li><strong>C</strong>
<ul>
<li>Improved macros and expressions (<a href="https://github-redirect.dependabot.com/PrismJS/prism/issues/2440">#2440</a>) <a href="https://github.com/PrismJS/prism/commit/8a72fa6f"><code>8a72fa6f</code></a></li>
<li>Improved macros (<a href="https://github-redirect.dependabot.com/PrismJS/prism/issues/2320">#2320</a>) <a href="https://github.com/PrismJS/prism/commit/fdcf7ed2"><code>fdcf7ed2</code></a></li>
</ul>
</li>
<li><strong>C#</strong>
<ul>
<li>Improved pattern matching (<a href="https://github-redirect.dependabot.com/PrismJS/prism/issues/2411">#2411</a>) <a href="https://github.com/PrismJS/prism/commit/7f341fc1"><code>7f341fc1</code></a></li>
<li>Fixed adjacent string interpolations (<a href="https://github-redirect.dependabot.com/PrismJS/prism/issues/2402">#2402</a>) <a href="https://github.com/PrismJS/prism/commit/2a2e79ed"><code>2a2e79ed</code></a></li>
</ul>
</li>
<li><strong>C++</strong>
<ul>
<li>Added support for default comparison operator (<a href="https://github-redirect.dependabot.com/PrismJS/prism/issues/2426">#2426</a>) <a href="https://github.com/PrismJS/prism/commit/8e9d161c"><code>8e9d161c</code></a></li>
<li>Improved class name detection (<a href="https://github-redirect.dependabot.com/PrismJS/prism/issues/2348">#2348</a>) <a href="https://github.com/PrismJS/prism/commit/e3fe9040"><code>e3fe9040</code></a></li>
<li>Fixed <code>enum class</code> class names (<a href="https://github-redirect.dependabot.com/PrismJS/prism/issues/2342">#2342</a>) <a href="https://github.com/PrismJS/prism/commit/30b4e254"><code>30b4e254</code></a></li>
</ul>
</li>
<li><strong>Content-Security-Policy</strong>
<ul>
<li>Fixed directives (<a href="https://github-redirect.dependabot.com/PrismJS/prism/issues/2461">#2461</a>) <a href="https://github.com/PrismJS/prism/commit/537a9e80"><code>537a9e80</code></a></li>
</ul>
</li>
<li><strong>CSS</strong>
<ul>
<li>Improved url and added keywords (<a href="https://github-redirect.dependabot.com/PrismJS/prism/issues/2432">#2432</a>) <a href="https://github.com/PrismJS/prism/commit/964de5a1"><code>964de5a1</code></a></li>
</ul>
</li>
</ul>

</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="187c8a607e"><code>187c8a6</code></a> 1.21.0</li>
<li><a href="bf4f323391"><code>bf4f323</code></a> Changelog for v1.21.0 (<a href="https://github-redirect.dependabot.com/PrismJS/prism/issues/2507">#2507</a>)</li>
<li><a href="8bba488020"><code>8bba488</code></a> Previewers: Fixed XSS (<a href="https://github-redirect.dependabot.com/PrismJS/prism/issues/2506">#2506</a>)</li>
<li><a href="158caf5234"><code>158caf5</code></a> JSON: Greedy comments (<a href="https://github-redirect.dependabot.com/PrismJS/prism/issues/2479">#2479</a>)</li>
<li><a href="f0f8210c1a"><code>f0f8210</code></a> Batch: Fix escaped double quote (<a href="https://github-redirect.dependabot.com/PrismJS/prism/issues/2485">#2485</a>)</li>
<li><a href="649e51e562"><code>649e51e</code></a> Added support for Dhall (<a href="https://github-redirect.dependabot.com/PrismJS/prism/issues/2473">#2473</a>)</li>
<li><a href="453079bf96"><code>453079b</code></a> Line Numbers: Fixed class name on website</li>
<li><a href="a0efa40bde"><code>a0efa40</code></a> Fixed Treeview page (<a href="https://github-redirect.dependabot.com/PrismJS/prism/issues/2484">#2484</a>)</li>
<li><a href="78161d607f"><code>78161d6</code></a> VB: Added VBA alias (<a href="https://github-redirect.dependabot.com/PrismJS/prism/issues/2469">#2469</a>)</li>
<li><a href="ed1df1e120"><code>ed1df1e</code></a> Added support for YANG (<a href="https://github-redirect.dependabot.com/PrismJS/prism/issues/2467">#2467</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/PrismJS/prism/compare/v1.20.0...v1.21.0">compare view</a></li>
</ul>
</details>
<br />

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

Reviewed By: jknoxville

Differential Revision: D23022453

Pulled By: passy

fbshipit-source-id: 380eccc7cc85798cb702692813ce14504083ffae
2020-08-11 07:26:40 -07:00
John Knox
b1e16a3160 Move using at facebook wiki page to website
Reviewed By: passy

Differential Revision: D23029433

fbshipit-source-id: bc1559fbeed9ad6838d5793000e6bd5f594bba0b
2020-08-11 03:08:36 -07:00
John Knox
9efcbdceaf Send large responses in chunks
Summary:
It's common for responses to be completely missing in the network inspector. This is because they are larger than can be serialized in one go on some devices, so we drop all messages larger than 1MB.

This changes the android client to send large responses in individually serialized batches. This way we avoid running out of memory and can still send arbitrarily large payloads.

Changelog: Android network inspector can now handle responses large than 1MB.

Reviewed By: passy

Differential Revision: D22999905

fbshipit-source-id: ff4eb8fa72a7e42ea90d12ffe0f20c6d1e58b7e5
2020-08-10 08:47:32 -07:00
Alex Dickson
0065ddedd7 Provide explicit failure reason when connection can't be established
Reviewed By: jknoxville

Differential Revision: D22999785

fbshipit-source-id: 301ec8230a89ee9dbc82d006fa6520d8bac80b3e
2020-08-10 04:31:12 -07:00
Anton Nikolaev
b96f164fd3 Upgrade babel
Summary: Upgraded all babel libraries

Reviewed By: passy

Differential Revision: D23002525

fbshipit-source-id: 03d40fd688f5cdf8284cbfdd184f6b44e95bf1ea
2020-08-07 13:28:59 -07:00
Anton Nikolaev
4a1c2a9ece Custom eslint rule for disallowing cross-package references
Summary:
Added infra for writing and using custom eslint rules and created a rule for disallowing cross-package file imports. Such imports are anti-pattern and they also break standalone plugin bundling.

We still have a bunch of places where Flipper core references code directly from plugins. I've ignored these places for now and added task T71355623 to revisit them.

Reviewed By: passy

Differential Revision: D22998955

fbshipit-source-id: d04cff8fc115ba1300a7e6830306ec134046e927
2020-08-07 10:22:04 -07:00
James Harmon
6989fa608d Add HTTP Status Code to mock response for Route (#1441)
Summary:
Mock requests can currently only return an HTTP Status Code of 200.  This is not sufficient to take full advantage of the mocking feature.  It would be more useful to specify a status code for the response.  Then not only can the original request be tested, but failure of the call could be tested as well.

This is described in Issue https://github.com/facebook/flipper/issues/1423 [https://github.com/facebook/flipper/issues/1423]

Changelog: Allow user to change response code for a mock request

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

Test Plan:
Here is a video demonstrating the change
[Uploading response-status-code.mp4.zip…]

Here is a screenshot showing where the new HTTP status code is entered for the mock request:
![image](https://user-images.githubusercontent.com/337874/89370139-a1c1c500-d6a5-11ea-9a55-e5e99ba37af5.png)

This screenshot shows a mock response with an alternate return code:
![image](https://user-images.githubusercontent.com/337874/89370265-ecdbd800-d6a5-11ea-82e7-10afbd5dd939.png)

Reviewed By: jknoxville

Differential Revision: D22977811

Pulled By: passy

fbshipit-source-id: c1662dd02abeb4546c80a416ed87f8e0dadbf96a
2020-08-07 09:30:10 -07:00
John Knox
5f8ba09534 Add github links to changelog
Summary:
thefutureisnowoldman

Changelog: Changelog entries now link to their GitHub commits

Reviewed By: passy

Differential Revision: D22999105

fbshipit-source-id: 77e4884a3515245ba9296d8c4f59cdcb3c4b098d
2020-08-07 09:27:44 -07:00
GitHub
b5b2bea899 Automated: Update Podfile.lock (#1444)
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/1444

Reviewed By: nikoant

Differential Revision: D22998104

Pulled By: passy

fbshipit-source-id: a36d2e8bcf618dabea05e65228433ee33fa78a0d
2020-08-07 09:20:00 -07:00
Dominik Wielgórski
3a628019f7 Detect classes which are Litho Sections
Summary:
Populate class name for Litho Sections.
See D22922106 (86cafb9e80) for reference

Reviewed By: adityasharat

Differential Revision: D22949896

fbshipit-source-id: d804971708cf8c8466dd74eda3e750957dc95fc9
2020-08-06 13:11:27 -07:00
generatedunixname89002005306973
f7ecbdb132 Flipper Snapshot Bump: v0.52.2-SNAPSHOT
Summary: Releasing snapshot version 0.52.2-SNAPSHOT

Reviewed By: passy

Differential Revision: D22976341

fbshipit-source-id: 9a098c2913ef80ba64db9fba91dd2bcfda1e36c1
2020-08-06 10:14:30 -07:00
generatedunixname89002005306973
d15ae99601 Flipper Release: v0.52.1
Summary: Releasing version 0.52.1

Reviewed By: passy

Differential Revision: D22976342

fbshipit-source-id: a4857df03cd1142615754a52f69d0f1578175f18
2020-08-06 10:14:30 -07:00