Commit Graph

250 Commits

Author SHA1 Message Date
Lorenzo Blasa
17cfa0e571 Session Id moved to server config
Summary:
Session Id should be shared between client and server, but it was defined deep in the client (redux store).

The proposed solution presented below is to move the session id to the server configuration. By doing this, it becomes available to both server and client VERY early in the application life-cycle for both Electron and non-Electron builds.

Reviewed By: LukeDefeo

Differential Revision: D48520367

fbshipit-source-id: ca959b27ab18b1a2e4cd2fac1d28545664f1b514
2023-08-22 05:16:20 -07:00
Pascal Hartig
bf6afe329f Fix electron build on arm64
Summary:
Electron-builder puts its results in a different directory, based on the architecture you build on.

While we don't have plans to release an arm64 build internally, we still need to support local builds for testing.

Without this, it fails with a rather confusing error message:

```
Script termnated. Error: spawn zip ENOENT
    at Process.ChildProcess._handle.onexit (node:internal/child_process:283:19)
    at onErrorNT (node:internal/child_process:476:16)
    at processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'spawn zip',
  path: 'zip',
  spawnargs: [ '-qyr9', '../Flipper-mac.zip', 'Flipper.app' ]
```

Reviewed By: lblasa

Differential Revision: D48517426

fbshipit-source-id: 21a133f8fce3aee0737ce5cbccc7a692a613b98e
2023-08-21 06:36:37 -07:00
Pascal Hartig
160b05a5bd Bump deps
Summary:
This updates minor and patch level dependencies. Frustratingly, I had to revert a bunch
of changes in that version range that still caused incompatibilities and test failures.

If I find time, I'll dig a bit deeper.

Reviewed By: ivanmisuno

Differential Revision: D48433210

fbshipit-source-id: 9ab12e774c1992d4f22cc1428d34f102ce820b75
2023-08-21 03:03:30 -07:00
Lorenzo Blasa
47b718d104 Remove TCP option as it will be the only option
Summary: UDS will be removed. The first step would be to remove the TCP optionality.

Reviewed By: passy

Differential Revision: D48264741

fbshipit-source-id: ca9e1b68be61e99240e95bcd4f26f2db63a64005
2023-08-11 08:19:51 -07:00
Lorenzo Blasa
dc0fd0a9e7 Windows server packaging
Summary: ^

Reviewed By: passy

Differential Revision: D47833317

fbshipit-source-id: b500f58b4ef0e201d8a711f3a83774fa82a7199b
2023-07-27 07:58:22 -07:00
Lorenzo Blasa
566125af3f spawn to set shell option
Summary: This is needed on Windows, otherwise it just throws an error when using spawn.

Reviewed By: passy

Differential Revision: D47832379

fbshipit-source-id: c1a5094c2e72683a695949cd99b2a1054f01aced
2023-07-27 07:06:58 -07:00
Lorenzo Blasa
5b2d20e0e0 Scaffolding for windows bundle
Summary: Just adds a function stub that will add the necessary run script for windows.

Reviewed By: passy

Differential Revision: D47627532

fbshipit-source-id: 09b6a203c2a5def20e586b5753d95ca58797852a
2023-07-27 07:06:58 -07:00
Sanjaiyan Parthipan
7cef8286f9 Concurrent Function Upgrade for Enhanced Performance (#4918)
Summary:
Republishing sanjaiyan-dev's PR https://github.com/facebook/flipper/pull/4889 running `git rebase` because of a conflict.

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

Reviewed By: lblasa

Differential Revision: D47294545

Pulled By: passy

fbshipit-source-id: 74904ec6179ed5a3bab6f9b701c3cd769ecad3bf
2023-07-17 04:43:14 -07:00
Lorenzo Blasa
a165d37ab3 Grey icon for PWA
Summary:
Right now, both Launcher and PWA share the same icon.

As to make it easier to identify which one is which, PWA will have a greyed icon instead.

Reviewed By: antonk52

Differential Revision: D47436998

fbshipit-source-id: 69d4d273c35e327263fbbf02d4ac7a005013f1d9
2023-07-13 07:41:44 -07:00
Michel Weststrate
50f50fa46c fall back to larger images if requested size is not available
Summary: This diff follows up on the previous one, by trying a larger icon size if the original requested icon size was missing.

Reviewed By: lblasa

Differential Revision: D46556076

fbshipit-source-id: 4a078088aa27390f247e39afeda4b1df261d8b30
2023-06-08 07:31:34 -07:00
Michel Weststrate
a6dac1d8d9 make icon download more robust, and use assets_DO_NOT_HARDCODE urls instead of asset urls.
Summary:
Since ~yesterday all our builds started failing due to being unable to download static assets. Although those assets load correctly in the browser, and by using the browsers's generated `curl` command, which looks like:

```
curl 'https://facebook.com/assets/?name=face-unhappy&variant=outline&size=24&set=facebook_icons&density=1x' \
  -H 'authority: facebook.com' \
  -H 'accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7' \
  -H 'accept-language: nl,en-GB;q=0.9,en;q=0.8,nl-NL;q=0.7,en-US;q=0.6' \
  -H 'cache-control: no-cache' \
  -H 'cookie: OMITTED' \
  -H 'pragma: no-cache' \
  -H 'sec-ch-ua: "Not.A/Brand";v="8", "Chromium";v="114", "Google Chrome";v="114"' \
  -H 'sec-ch-ua-mobile: ?0' \
  -H 'sec-ch-ua-platform: "macOS"' \
  -H 'sec-fetch-dest: document' \
  -H 'sec-fetch-mode: navigate' \
  -H 'sec-fetch-site: none' \
  -H 'sec-fetch-user: ?1' \
  -H 'upgrade-insecure-requests: 1' \
  -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36' \
  --compressed
```

Download fails as soon as the cookie header is dropped.

Changes the base url to `https://facebook.com/images/assets_DO_NOT_HARDCODE/facebook_icons/` fixes that problem, unless the resolution doesn't exist (addressed in next diff).

This also seems to remove the flakiness we were experiencing before, so dropped the retry mechanism for now.

Also made failing to download an icon a warning instead of a build failure.

Reviewed By: lblasa

Differential Revision: D46552986

fbshipit-source-id: f1382d6a8fc6669691f0c8da6b77834d24a373c5
2023-06-08 07:31:34 -07:00
Lorenzo Blasa
2815ba0fb8 Copy/Paste implementation
Summary: ^

Reviewed By: aigoncharov

Differential Revision: D46515194

fbshipit-source-id: 0ee6931569d5248d5643b391683e230e0c095e41
2023-06-07 06:04:46 -07:00
Lorenzo Blasa
6430403da0 Jest update v26.6.3 -> v29.5.1
Summary:
^

Basically, update Jest and fix any raised issues. Mainly:
- Update necessary dependencies
- Update snapshots
- `useFakeTimers` caused a few issues which meant that the way we hook into the performance object had to be tweaked. The main code change is: `//fbsource/xplat/sonar/desktop/scripts/jest-setup-after.tsx`
- `mocked` -> `jest.mocked`

Changelog: Update Jest to v29.5.1

Reviewed By: antonk52

Differential Revision: D46319818

fbshipit-source-id: d218ca8f7e43abac6b00844953ddeb7f4e1010a2
2023-05-31 14:19:29 -07:00
Lorenzo Blasa
49c356059a Use a direct download from Node distribution instead of relying on pkg-fetch
Summary:
It seems the available binary for macOS arm64 is not signed:

```
codesign -dv --verbose=4 ./node-v16.16.0-macos-arm64
./node-v16.16.0-macos-arm64: code object is not signed
```

This is an issue as it crashes for our flipper server releases.

This can be compared to a binary downloaded from the Node distribution page:

```
codesign -dv --verbose=4 ./node
    Executable=/Users/realpassy/Downloads/node-v16.15.0-darwin-arm64/bin/node
    Identifier=node
    Format=Mach-O thin (arm64)
    CodeDirectory v=20500 size=597360 flags=0x10000(runtime) hashes=18657+7 location=embedded
    VersionPlatform=1
    VersionMin=720896
    VersionSDK=721152
    Hash type=sha256 size=32
    CandidateCDHash sha256=31cdf84cac42a622c1a68558376700a2dd12d40d
    CandidateCDHashFull sha256=31cdf84cac42a622c1a68558376700a2dd12d40d81c5118f3b0e0370c414eb69
    Hash choices=sha256
 CMSDigest=31cdf84cac42a622c1a68558376700a2dd12d40d81c5118f3b0e0370c414eb69
    CMSDigestType=2
    Executable Segment base=0
    Executable Segment limit=56082432
    Executable Segment flags=0x1
    Page size=4096
    Launch Constraints:
        None
    CDHash=31cdf84cac42a622c1a68558376700a2dd12d40d
    Signature size=8986
    Authority=Developer ID Application: Node.js Foundation (HX7739G8FX)
    Authority=Developer ID Certification Authority
    Authority=Apple Root CA
    Timestamp=26 Apr 2022 at 23:00:57
    Info.plist=not bound
    TeamIdentifier=HX7739G8FX
    Runtime Version=11.1.0
    Sealed Resources=none
    Internal requirements count=1 size=164
```

For additional context:

Node binary by using pkg-fetch. We just get the binary from this release page: https://github.com/vercel/pkg-fetch/releases/tag/v3.4

The exact binary we're downloading is https://github.com/vercel/pkg-fetch/releases/download/v3.4/node-v16.15.0-macos-arm64

If you just download that via Chrome, it will trigger Gatekeeper and you need to manually click "Allow" in the system privacy settings. You can also do the same by just running:

    xattr -c ./node-v16*

Afterwards you can:
   chmod +x ./node*

It will crash in the same way that it does after our distribution.

Reviewed By: passy

Differential Revision: D46225503

fbshipit-source-id: f0ae2d5101b99c9db7fe80333573caef52c787a2
2023-05-31 01:06:17 -07:00
Lorenzo Blasa
eaaac54bc4 Manifest as template
Summary:
The file manifest.json is injected with the auth token and it happens with every launch.

Because the file is tracked, these changes will always get picked no matter what the .gitignore file specifies, because is a tracked file.

So, the solution is to have a template with a different name, that gets copied into the right location during build time.

Reviewed By: LukeDefeo

Differential Revision: D46184772

fbshipit-source-id: 938b9433045485d9846a6a50c1c955ebe7925581
2023-05-25 08:21:41 -07:00
Lorenzo Blasa
76fbaf245c Replace existing running instance, if any
Summary:
Replace an existing running instance, if any.

This is useful for:
- Applying updates
- Ensuring freshness of server

Reviewed By: passy

Differential Revision: D46146814

fbshipit-source-id: bfb760f3ab26b7632510773609f1c6ca3a97c4ec
2023-05-25 06:32:18 -07:00
Pascal Hartig
558316153c Build server release for Mac AARCH64
Reviewed By: lblasa

Differential Revision: D46144878

fbshipit-source-id: 1aa2982fc99e5dc6cdfbe4d9fcf87f7fc55a1abe
2023-05-24 10:48:00 -07:00
Lorenzo Blasa
c6d5eb3334 Flipper as PWA
Summary:
^

Reference: https://docs.google.com/document/d/1flQJUzTe4AuQz3QCpvbloQycenHsu7ZxbKScov7K7ao

Reviewed By: passy

Differential Revision: D45693382

fbshipit-source-id: 5a2e6c213a7e7e2cf9cd5f3033cff3e5291a2a92
2023-05-16 04:32:47 -07:00
Andrey Goncharov
423a8d1935 Revamp newScript detailed view
Summary: Project: https://docs.google.com/document/d/1SbFrpvfIShX5npANNa1AkgHliR1M-VMLW5Q9RhREt94/edit#

Reviewed By: antonk52

Differential Revision: D45353402

fbshipit-source-id: 88cc26f9886fd7b2cdcd5ca3d021790d8669c140
2023-04-28 12:19:45 -07:00
Niccolò Belli
6452816de7 fix(build-utils): await stripSourceMapComment (#4586)
Summary:
I've just packaged Flipper for Gentoo Linux and I wanted to use the system electron instead of bundling its own copy into the flipper executable. To do so I use my custom `electron-builder` and `app-builder` versions, which also allows me to support otherwise unsupported architectures like ppc64. That means skipping the downloading/unzipping/bundling steps for electron, which greatly shortens the overall build process.
Being that fast resulted in countless hours of debugging, because the resulting `app.asar` wouldn't work. At some point I noticed that electron-builder cli was working flawlessly while processing the same exact config through the Javascript API resulted in failure, so I started digging into your scripts and I've noticed that you didn't await `stripSourceMapComment` into `desktop/scripts/build-utils.ts`.
In particular the `compile` function was returning before `stripSourceMapComment` had finished doing its stuff, which ended up messing with electron-builder later.
You didn't notice because you download electron, unzip it, etc which takes enough time to let `stripSourceMapComment` finish its stuff before the actual build starts, but since I skip these steps in order to use system electron I've been able to notice it.

## Changelog

I simply await `stripSourceMapComment` promises in `build-utils`.

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

Test Plan:
`cd desktop && yarn && yarn build` is enough to test this.

## Additional Suggestions

I also suggest to enable the [no-floating-promises](https://typescript-eslint.io/rules/no-floating-promises/) eslint rule in order to ensure similar mistakes won't happen in the future.

Reviewed By: ivanmisuno, mweststrate

Differential Revision: D43974442

Pulled By: passy

fbshipit-source-id: 5acfa3d1479828e9373070c40fe3dd865a862561
2023-03-10 06:34:10 -08:00
Pascal Hartig
859653e111 Build Linux executable
Summary: Currently, Flipper server cannot be used with Flipper Launcher on Linux because there is no `flipper` binary in the root of the directory. Adding a quick shell script bridges the call from the checked-in node binary and the server JS file.

Reviewed By: ardavank

Differential Revision: D43837781

fbshipit-source-id: d954ae21d5330aa549d4bc76aefb1d76af8e2c84
2023-03-08 02:35:24 -08:00
dependabot[bot]
6cb64f0af0 Bump app-builder-lib from 23.4.0 to 23.6.0 in /desktop (#4515)
Summary:
Bumps [app-builder-lib](https://github.com/electron-userland/electron-builder/tree/HEAD/packages/app-builder-lib) from 23.4.0 to 23.6.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/electron-userland/electron-builder/releases">app-builder-lib's releases</a>.</em></p>
<blockquote>
<h2>v23.6.0</h2>
<h2>What's Changed</h2>
<ul>
<li>feat: add nsis option to remove the default uninstall welcome page by <a href="https://github.com/moulinierf"><code>@​moulinierf</code></a> in <a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/7141">electron-userland/electron-builder#7141</a></li>
<li>feat: add Github Actions environment variable to isPullRequest method by <a href="https://github.com/kuidaoring"><code>@​kuidaoring</code></a> in <a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/7152">electron-userland/electron-builder#7152</a></li>
<li>fix: formatting of Code in the MacOS PKG docs by <a href="https://github.com/hrueger"><code>@​hrueger</code></a> in <a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/7142">electron-userland/electron-builder#7142</a></li>
<li>chore: Updating node 16 docker images by <a href="https://github.com/Tarrowren"><code>@​Tarrowren</code></a> in <a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/7158">electron-userland/electron-builder#7158</a></li>
<li>fix(ci): workflows security hardening by <a href="https://github.com/sashashura"><code>@​sashashura</code></a> in <a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/7156">electron-userland/electron-builder#7156</a></li>
<li>feat: non-silent mode allow not to run the app when the installation is complete by <a href="https://github.com/shenglianlee"><code>@​shenglianlee</code></a> in <a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/7136">electron-userland/electron-builder#7136</a></li>
<li>feat: update note for pnpm by <a href="https://github.com/romadryud"><code>@​romadryud</code></a> in <a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/7163">electron-userland/electron-builder#7163</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/moulinierf"><code>@​moulinierf</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/7141">electron-userland/electron-builder#7141</a></li>
<li><a href="https://github.com/kuidaoring"><code>@​kuidaoring</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/7152">electron-userland/electron-builder#7152</a></li>
<li><a href="https://github.com/hrueger"><code>@​hrueger</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/7142">electron-userland/electron-builder#7142</a></li>
<li><a href="https://github.com/Tarrowren"><code>@​Tarrowren</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/7158">electron-userland/electron-builder#7158</a></li>
<li><a href="https://github.com/sashashura"><code>@​sashashura</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/7156">electron-userland/electron-builder#7156</a></li>
<li><a href="https://github.com/shenglianlee"><code>@​shenglianlee</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/7136">electron-userland/electron-builder#7136</a></li>
<li><a href="https://github.com/romadryud"><code>@​romadryud</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/7163">electron-userland/electron-builder#7163</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/electron-userland/electron-builder/compare/v23.5.1...v23.6.0">https://github.com/electron-userland/electron-builder/compare/v23.5.1...v23.6.0</a></p>
<h2>v23.5.1</h2>
<h2>What's Changed</h2>
<ul>
<li>fix: Revert &quot;feat: Upgrade to Ubuntu 22.04 and python 3.10&quot; by <a href="https://github.com/mmaietta"><code>@​mmaietta</code></a> in <a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/7109">electron-userland/electron-builder#7109</a></li>
<li>feat: allow dev update config to be forced for testing auto-updater flow by <a href="https://github.com/mmaietta"><code>@​mmaietta</code></a> in <a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/7117">electron-userland/electron-builder#7117</a></li>
<li>docs: declare node-linker when using Yarn 3 by <a href="https://github.com/ouliuquan"><code>@​ouliuquan</code></a> in <a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/7113">electron-userland/electron-builder#7113</a></li>
<li>fix: allow CSC_LINK to have a mime-type prefix by <a href="https://github.com/mmaietta"><code>@​mmaietta</code></a> in <a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/7119">electron-userland/electron-builder#7119</a></li>
<li>fix: strip extra fields out before creating snap.yaml (<a href="https://github.com/electron-userland/electron-builder/tree/HEAD/packages/app-builder-lib/issues/7104">#7104</a>) by <a href="https://github.com/MikeJerred"><code>@​MikeJerred</code></a> in <a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/7110">electron-userland/electron-builder#7110</a></li>
<li>docs: fix typo by <a href="https://github.com/cjeonguk"><code>@​cjeonguk</code></a> in <a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/7120">electron-userland/electron-builder#7120</a></li>
<li>chore(deploy): Release by <a href="https://github.com/github-actions"><code>@​github-actions</code></a> in <a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/7111">electron-userland/electron-builder#7111</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/ouliuquan"><code>@​ouliuquan</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/7113">electron-userland/electron-builder#7113</a></li>
<li><a href="https://github.com/MikeJerred"><code>@​MikeJerred</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/7110">electron-userland/electron-builder#7110</a></li>
<li><a href="https://github.com/cjeonguk"><code>@​cjeonguk</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/7120">electron-userland/electron-builder#7120</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/electron-userland/electron-builder/compare/v23.5.0...v23.5.1">https://github.com/electron-userland/electron-builder/compare/v23.5.0...v23.5.1</a></p>
<h2>v23.5.0</h2>
<h2>What's Changed</h2>
<ul>
<li>docs(signing): add tip for installer env by <a href="https://github.com/richtlu"><code>@​richtlu</code></a> in <a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/7059">electron-userland/electron-builder#7059</a></li>
<li>fix: updating integration test for prerelease flag by <a href="https://github.com/mmaietta"><code>@​mmaietta</code></a> in <a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/7072">electron-userland/electron-builder#7072</a></li>
<li>fix: replace update-notifier and update deps by <a href="https://github.com/mmaietta"><code>@​mmaietta</code></a> in <a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/7078">electron-userland/electron-builder#7078</a></li>
<li>fix: use <code>buildVersion</code> not <code>buildNumber</code> for fpm <code>--iteration</code> flag by <a href="https://github.com/davej"><code>@​davej</code></a> in <a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/7075">electron-userland/electron-builder#7075</a></li>
<li>fix: Invalid code signing for MAS build (<a href="https://github.com/electron-userland/electron-builder/tree/HEAD/packages/app-builder-lib/issues/7040">#7040</a>) by <a href="https://github.com/jeanfbrito"><code>@​jeanfbrito</code></a> in <a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/7089">electron-userland/electron-builder#7089</a></li>
<li>fix: improve <code>downloadUpdate</code> typing by <a href="https://github.com/alefoll"><code>@​alefoll</code></a> in <a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/7099">electron-userland/electron-builder#7099</a></li>
<li>chore: Add details to entitlement option for macOS configurations by <a href="https://github.com/AxelTerizaki"><code>@​AxelTerizaki</code></a> in <a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/7097">electron-userland/electron-builder#7097</a></li>
<li>fix: close file stream when error by <a href="https://github.com/HppZ"><code>@​HppZ</code></a> in <a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/7094">electron-userland/electron-builder#7094</a></li>
<li>chore(deploy): Release by <a href="https://github.com/github-actions"><code>@​github-actions</code></a> in <a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/7081">electron-userland/electron-builder#7081</a></li>
</ul>

</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/electron-userland/electron-builder/blob/master/packages/app-builder-lib/CHANGELOG.md">app-builder-lib's changelog</a>.</em></p>
<blockquote>
<h2>23.6.0</h2>
<h3>Minor Changes</h3>
<ul>
<li><a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/7141">#7141</a> <a href="d71a5790a9"><code>d71a5790</code></a> Thanks <a href="https://github.com/moulinierf"><code>@​moulinierf</code></a>! - feat: add nsis option to remove the default uninstall welcome page</li>
</ul>
<h3>Patch Changes</h3>
<ul>
<li>
<p><a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/7142">#7142</a> <a href="9338097a9f"><code>9338097a</code></a> Thanks <a href="https://github.com/hrueger"><code>@​hrueger</code></a>! - fix: formatting of Code in the MacOS PKG docs</p>
</li>
<li>
<p>Updated dependencies [<a href="4583273ebe"><code>4583273e</code></a>]:</p>
<ul>
<li>builder-util@23.6.0</li>
<li>electron-publish@23.6.0</li>
</ul>
</li>
</ul>
<h2>23.5.1</h2>
<h3>Patch Changes</h3>
<ul>
<li><a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/7110">#7110</a> <a href="0a7025e518"><code>0a7025e5</code></a> Thanks <a href="https://github.com/MikeJerred"><code>@​MikeJerred</code></a>! - fix: strip extra fields out that are not allowed when creating snap.yaml (<a href="https://github.com/electron-userland/electron-builder/tree/HEAD/packages/app-builder-lib/issues/7104">#7104</a>)</li>
</ul>
<ul>
<li><a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/7120">#7120</a> <a href="740c41146f"><code>740c4114</code></a> Thanks <a href="https://github.com/cjeonguk"><code>@​cjeonguk</code></a>! - fix(docs): typo of docs/generated/NsisOptions.md.</li>
</ul>
<ul>
<li><a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/7119">#7119</a> <a href="323618f791"><code>323618f7</code></a> Thanks <a href="https://github.com/mmaietta"><code>@​mmaietta</code></a>! - fix: allow CSC_LINK to have a mime-type prefix that is stripped when converting it to a p12 for signing</li>
</ul>
<h2>23.5.0</h2>
<h3>Minor Changes</h3>
<ul>
<li><a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/7075">#7075</a> <a href="8166267d48"><code>8166267d</code></a> Thanks <a href="https://github.com/davej"><code>@​davej</code></a>! - Allow explicit <code>buildNumber</code> in config. <code>buildNumber</code> will take precedence over any environment variables (<a href="https://github.com/electron-userland/electron-builder/tree/HEAD/packages/app-builder-lib/issues/6945">#6945</a>)</li>
</ul>
<h3>Patch Changes</h3>
<ul>
<li><a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/7097">#7097</a> <a href="e78a65c46a"><code>e78a65c4</code></a> Thanks <a href="https://github.com/AxelTerizaki"><code>@​AxelTerizaki</code></a>! - chore: Add documentation details to entitlement option for macOS configurations</li>
</ul>
<ul>
<li>
<p><a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/7089">#7089</a> <a href="a1d86fd75b"><code>a1d86fd7</code></a> Thanks <a href="https://github.com/jeanfbrito"><code>@​jeanfbrito</code></a>! - fix: Swaps order of Apple certificate selection to fix publishing the MAS package on Mac Apple Store. (<a href="https://github.com/electron-userland/electron-builder/tree/HEAD/packages/app-builder-lib/issues/7040">#7040</a>)</p>
</li>
<li>
<p>Updated dependencies [<a href="1023a93e92"><code>1023a93e</code></a>, <a href="8166267d48"><code>8166267d</code></a>]:</p>
<ul>
<li>builder-util-runtime@9.1.1</li>
<li>builder-util@23.5.0</li>
<li>electron-publish@23.5.0</li>
</ul>
</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="f6944a3c12"><code>f6944a3</code></a> chore(deploy): Release 23.6.0 (electron-updater@5.3.0) (<a href="https://github.com/electron-userland/electron-builder/tree/HEAD/packages/app-builder-lib/issues/7146">#7146</a>)</li>
<li><a href="9338097a9f"><code>9338097</code></a> fix: formatting of Code in the MacOS PKG docs (<a href="https://github.com/electron-userland/electron-builder/tree/HEAD/packages/app-builder-lib/issues/7142">#7142</a>)</li>
<li><a href="d71a5790a9"><code>d71a579</code></a> feat: add nsis option <code>removeDefaultUninstallWelcomePage</code> to remove the defau...</li>
<li><a href="1b24dbb9d2"><code>1b24dbb</code></a> chore(deploy): Release 23.5.1 (electron-updater@5.2.4) (<a href="https://github.com/electron-userland/electron-builder/tree/HEAD/packages/app-builder-lib/issues/7111">#7111</a>)</li>
<li><a href="740c41146f"><code>740c411</code></a> fix(docs): typo of docs/generated/NsisOptions.md (<a href="https://github.com/electron-userland/electron-builder/tree/HEAD/packages/app-builder-lib/issues/7120">#7120</a>)</li>
<li><a href="0a7025e518"><code>0a7025e</code></a> fix: strip extra fields out that are not allowed when creating snap.yaml (<a href="https://github.com/electron-userland/electron-builder/tree/HEAD/packages/app-builder-lib/issues/71">https://github.com/facebook/flipper/issues/71</a>...</li>
<li><a href="323618f791"><code>323618f</code></a> fix: allow CSC_LINK to have a mime-type prefix before extracting it to a p12 ...</li>
<li><a href="dd29013dbd"><code>dd29013</code></a> chore(deploy): Release v23.5.0 (electron-updater@5.2.3) (<a href="https://github.com/electron-userland/electron-builder/tree/HEAD/packages/app-builder-lib/issues/7081">#7081</a>)</li>
<li><a href="b363bcd812"><code>b363bcd</code></a> chore(docs): regenerating documentation and schema per new Configuration changes</li>
<li><a href="e78a65c46a"><code>e78a65c</code></a> chore(docs): Add details to entitlement option in documentation for macOS con...</li>
<li>Additional commits viewable in <a href="https://github.com/electron-userland/electron-builder/commits/v23.6.0/packages/app-builder-lib">compare view</a></li>
</ul>
</details>
<br />

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

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

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

 ---

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

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

</details>

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

Reviewed By: mweststrate

Differential Revision: D43305222

Pulled By: ivanmisuno

fbshipit-source-id: 77b454320253fb6cd74e4b3f915d5fb20a7db774
2023-02-16 06:33:32 -08:00
dependabot[bot]
420e1df4e4 Bump metro-minify-terser from 0.70.2 to 0.75.0 in /desktop (#4493)
Summary:
Bumps [metro-minify-terser](https://github.com/facebook/metro) from 0.70.2 to 0.75.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/facebook/metro/releases">metro-minify-terser's releases</a>.</em></p>
<blockquote>
<h2>Release v0.75.0</h2>
<ul>
<li><strong>[Breaking]</strong>: Formalise minimum Node JS requirement at 14.17.0 via <code>package.json#engines</code>. (<a href="c3e453ede5</a>)</li>
<li><strong>[Breaking]</strong>: Filter untyped context properties passed to custom resolvers. (<a href="cb01ec09c6</a>)</li>
<li><strong>[Breaking]</strong>: Change default <code>context.redirectModulePath</code> implementation to return absolute path in all cases. (<a href="acbfe63d83</a>)</li>
<li><strong>[Feature]</strong>: Add <code>mainFields</code>, <code>getPackage</code>, and <code>getPackageForModule</code> to custom resolver context. (<a href="adfb59329f</a>)</li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/facebook/metro/compare/v0.74.1...v0.75.0">https://github.com/facebook/metro/compare/v0.74.1...v0.75.0</a></p>
<h2>Release v0.74.1</h2>
<ul>
<li><strong>[Feature]</strong>: Add <code>babel/plugin-proposal-numeric-separator</code> to <code>metro-react-native-babel-preset</code> (<a href="https://github-redirect.dependabot.com/facebook/metro/pull/681">facebook/metro#681</a> by <a href="https://github.com/SConaway"><code>@​SConaway</code></a>)</li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/facebook/metro/compare/v0.74.0...v0.74.1">https://github.com/facebook/metro/compare/v0.74.0...v0.74.1</a></p>
<h2>Release v0.74.0</h2>
<ul>
<li><strong>[Breaking]</strong> Remove <code>@​babel/plugin-transform-template-literals</code> from metro-react-native-babel-preset (<a href="322dea8dc7</a>)</li>
<li><strong>[Breaking]</strong> Remove <code>postProcessBundleSourcemap</code> from config (<a href="339794e434</a>)</li>
<li><strong>[Fix]</strong> Don't log ENOENT errors to console for expected URL stack frames (<a href="1031ae6713</a>)</li>
<li><strong>[Fix]</strong> Don't attempt to use the <code>find</code> crawler on Windows (<a href="735aa9f523</a>)</li>
<li><strong>[Performance]</strong> Improve AST processing during transformation (<a href="https://github-redirect.dependabot.com/facebook/metro/pull/854">facebook/metro#854</a> by <a href="https://github.com/EvanBacon"><code>@​EvanBacon</code></a>)</li>
<li><strong>[Performance]</strong> Improve Fast Refresh responsiveness when watching a large number of files (<a href="b942eca551</a>)</li>
</ul>
<p><strong>Full Changelog:</strong> <a href="https://github.com/facebook/metro/compare/v0.73.6...v0.74.0">https://github.com/facebook/metro/compare/v0.73.6...v0.74.0</a></p>
<h2>Release v0.73.7</h2>
<p><em>This is a hotfix on the <code>0.73.x</code> branch.</em></p>
<ul>
<li><strong>[Fix]</strong> Don't attempt to use the <code>find</code> crawler on Windows (<a href="370301981b</a>)</li>
</ul>
<h2>Release v0.73.6</h2>
<ul>
<li><strong>[Fix]</strong> Fix duplicate 'add' events, reduce dropped events on new subtrees in <code>NodeWatcher</code> (non-Watchman, non-macOS).(<a href="51fb7e349c</a>)</li>
</ul>
<blockquote>
<p>NOTE: Experimental features are not covered by semver and can change at any time.</p>
</blockquote>
<ul>
<li><strong>[Experimental]</strong> <code>experimentalImportBundleSupport</code>: Move bundle path hints into serialised dependency map(<a href="https://github-redirect.dependabot.com/facebook/metro/pull/901">facebook/metro#901</a>)</li>
</ul>
<p><strong>Full Changelog:</strong> <a href="https://github.com/facebook/metro/compare/v0.73.5...v0.73.6">https://github.com/facebook/metro/compare/v0.73.5...v0.73.6</a></p>
<h2>Release v0.73.5</h2>
<ul>
<li><strong>[Fix]</strong>: Make all <code>getTransformOptions</code> result properties optional. (<a href="a07c8235a3</a>)</li>
<li><strong>[Fix]</strong>: Bug that can lead to &quot;unknown module&quot; errors at runtime after an incremental build. (<a href="b1be263f7d</a>)</li>
<li><strong>[Fix]</strong>: <code>metro-runtime</code>: Re-throw cached module errors without wrapping. (<a href="032c4a1e03</a>)</li>
<li><strong>[Fix]</strong> Bump <code>babel/types</code> dependency to <code>^7.20.0</code> for more consistent exposed AST Bump <code>babel/types</code> dependency to <code>^7.20.0</code> for more consistent exposed AST</li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/facebook/metro/compare/v0.73.4...v0.73.5">https://github.com/facebook/metro/compare/v0.73.4...v0.73.5</a></p>
<h2>Release v0.73.4</h2>
<ul>
<li><strong>[Feature]:</strong> Expose <code>watch</code> option in <code>RunServerOptions</code> (<a href="https://github-redirect.dependabot.com/facebook/metro/pull/889">facebook/metro#889</a> by <a href="https://github.com/EvanBacon"><code>@​EvanBacon</code></a>)</li>
<li><strong>[Feature]:</strong> <code>metro-runtime</code>: Emit additional context on WebSocket <code>'close'</code> events (<a href="d54986c49c</a>)</li>
</ul>
<blockquote>
<p>NOTE: Experimental features are not covered by semver and can change at any time.</p>
</blockquote>

</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="a110931489"><code>a110931</code></a> Release 0.75.0</li>
<li><a href="28b38bb0af"><code>28b38bb</code></a> Remove duplicated engines entry from metro-symbolicate package.json</li>
<li><a href="acbfe63d83"><code>acbfe63</code></a> Refactor subpath matching logic in browser spec resolution</li>
<li><a href="c3e453ede5"><code>c3e453e</code></a> Add &quot;engines&quot; field to all packages to indicate minimum Node JS version</li>
<li><a href="e890c997d0"><code>e890c99</code></a> Back out &quot;Process files before adding them to <code>FileSystem</code>&quot;</li>
<li><a href="1a81060c6c"><code>1a81060</code></a> Process files before adding them to <code>FileSystem</code></li>
<li><a href="aa442cacdb"><code>aa442ca</code></a> Move default redirectModulePath implementation into metro-resolver</li>
<li><a href="adfb59329f"><code>adfb593</code></a> Add getPackageForModule function to resolution context</li>
<li><a href="11a468140c"><code>11a4681</code></a> Document unstable_perfLoggerFactory (<a href="https://github-redirect.dependabot.com/facebook/metro/issues/920">https://github.com/facebook/flipper/issues/920</a>)</li>
<li><a href="7acb686f28"><code>7acb686</code></a> allow passing config for unstable_perfLoggerFactory without warning</li>
<li>Additional commits viewable in <a href="https://github.com/facebook/metro/compare/v0.70.2...v0.75.0">compare view</a></li>
</ul>
</details>
<br />

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

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

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

 ---

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

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

</details>

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

Reviewed By: ivanmisuno

Differential Revision: D43117867

Pulled By: mweststrate

fbshipit-source-id: b842b25da921f1ca0cee563365c58f6f1c881791
2023-02-09 03:22:18 -08:00
dependabot[bot]
d02bfabfbf Bump ignore from 5.2.0 to 5.2.4 in /desktop (#4420)
Summary:
Bumps [ignore](https://github.com/kaelzhang/node-ignore) from 5.2.0 to 5.2.4.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/kaelzhang/node-ignore/releases">ignore's releases</a>.</em></p>
<blockquote>
<h2>5.2.4</h2>
<ul>
<li><strong>PATCH</strong> fixes normal single asterisk and normal consecutive asterisks defined in gitignore spec (<a href="https://github-redirect.dependabot.com/kaelzhang/node-ignore/issues/57">https://github.com/facebook/flipper/issues/57</a>)</li>
<li><strong>PATCH</strong> invalid trailing backslash will not throw unexpectedly</li>
</ul>
<p>An upgrade is recommended for all dependents</p>
<hr />
<p>The following rules could be not properly parsed with previous <code>ignore</code> versions</p>
<pre lang=".gitignore"><code>**foo
*bar
qu*ux
abc\   # `ignore` would throw if no whitespace after `\`
</code></pre>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="45a5a9f4e0"><code>45a5a9f</code></a> 5.2.4: README: update github action badge</li>
<li><a href="85a88c7056"><code>85a88c7</code></a> test/coverage: do not force test coverage on windows since it is quite hard t...</li>
<li><a href="c710cf6a67"><code>c710cf6</code></a> test/coverage: remove the buggy &quot;istanbul ignore next&quot; (nyc <a href="https://github.com/15"><code>@​15</code></a>.1.0)</li>
<li><a href="adf1f1437d"><code>adf1f14</code></a> test: another test cases related to <a href="https://github-redirect.dependabot.com/kaelzhang/node-ignore/issues/57">https://github.com/facebook/flipper/issues/57</a></li>
<li><a href="7be791be36"><code>7be791b</code></a> dev: upgrade dev dependencies</li>
<li><a href="69ea16f015"><code>69ea16f</code></a> test: remove timeout setting for git-check-ignore</li>
<li><a href="9e4e370278"><code>9e4e370</code></a> 5.2.3: fixes <a href="https://github-redirect.dependabot.com/kaelzhang/node-ignore/issues/57">https://github.com/facebook/flipper/issues/57</a>: fixes normal single / consecutive asterisks</li>
<li><a href="8d56752956"><code>8d56752</code></a> <a href="https://github-redirect.dependabot.com/kaelzhang/node-ignore/issues/57">https://github.com/facebook/flipper/issues/57</a>: test: support test.only</li>
<li><a href="189ff4f8b3"><code>189ff4f</code></a> <a href="https://github-redirect.dependabot.com/kaelzhang/node-ignore/issues/81">https://github.com/facebook/flipper/issues/81</a>: fixes windows test cases</li>
<li><a href="a514e5e46a"><code>a514e5e</code></a> <a href="https://github-redirect.dependabot.com/kaelzhang/node-ignore/issues/81">https://github.com/facebook/flipper/issues/81</a>: fixes windows test cases</li>
<li>Additional commits viewable in <a href="https://github.com/kaelzhang/node-ignore/compare/5.2.0...5.2.4">compare view</a></li>
</ul>
</details>
<br />

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

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

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

 ---

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

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

</details>

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

Reviewed By: ivanmisuno

Differential Revision: D43117887

Pulled By: mweststrate

fbshipit-source-id: 7c5832cce671c259a7ab2e85d4dc692fcbfaf7e9
2023-02-09 03:22:18 -08:00
Pascal Hartig
18b6ce6f24 Dep bump
Summary: Combining a bunch of individual tasks for dep upgrades into one diff.

Reviewed By: ivanmisuno

Differential Revision: D42706074

fbshipit-source-id: 054b2545ad1295699f47f4c6eb5065b7b9a1d6a0
2023-01-25 04:35:09 -08:00
Ranesh Saha
7a28ed1fe5 Pipe through --updater/--no-updater flag for flipper.exe (#4277)
Summary:
In our organization, Flipper is distributed in a version controlled way. As a result, we do not want users to manually update or receive prompts to update when a new version is available. There is already a `--updater` flag in the command line arguments for flipper.exe, but it isn't piped through. This change pipes it through and disables all update related UI when `--no-updater` is passed in.
## Changelog

Support --updater and --no-updater options for flipper.exe

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

Test Plan: Ran `yarn build --win` in flipper/desktop, and launched flipper.exe from flipper/dist/win-unpacked with the `--updater`, `--no-updater` and no flags and ensured the proper behavior was observed (update UI shows by default or when `--updater` is specified, and doesn't show when `--no-updater` is specified).

Reviewed By: passy

Differential Revision: D41298321

Pulled By: mweststrate

fbshipit-source-id: 5ddfede2700954f0fdd6a111b20d0836fab25565
2022-11-15 03:23:55 -08:00
Lorenzo Blasa
587f428cf8 Allow plugins to use css
Summary:
Flipper plugins fail when importing css from third-party dependencies. This diff tries to fix that.

Effectively, the plugin can import the css and export it when is bundled.

When we load the plugin, we check if there's a css file for it. If there's one, we return it and try to use it.

Reviewed By: aigoncharov

Differential Revision: D40758178

fbshipit-source-id: e53afffcc481504905d5eeb1aea1f9114ee2a86b
2022-10-27 22:50:30 -07:00
dependabot[bot]
404449d499 Bump yargs from 17.4.1 to 17.6.0 in /desktop (#4165)
Summary:
Bumps [yargs](https://github.com/yargs/yargs) from 17.4.1 to 17.6.0.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/yargs/yargs/blob/main/CHANGELOG.md">yargs's changelog</a>.</em></p>
<blockquote>
<h2><a href="https://github.com/yargs/yargs/compare/v17.5.1...v17.6.0">17.6.0</a> (2022-10-01)</h2>
<h3>Features</h3>
<ul>
<li><strong>lang:</strong> Czech locale (<a href="https://github-redirect.dependabot.com/yargs/yargs/issues/2220">https://github.com/facebook/flipper/issues/2220</a>) (<a href="5895cf1ba1">5895cf1</a>)</li>
<li><strong>usage:</strong> add YARGS_DISABLE_WRAP env variable to disable wrap (<a href="https://github-redirect.dependabot.com/yargs/yargs/issues/2210">https://github.com/facebook/flipper/issues/2210</a>) (<a href="b680ace299">b680ace</a>)</li>
</ul>
<h3>Bug Fixes</h3>
<ul>
<li><strong>deno:</strong> use 'globalThis' instead of 'window' (<a href="https://github-redirect.dependabot.com/yargs/yargs/issues/2186">https://github.com/facebook/flipper/issues/2186</a>) (<a href="https://github-redirect.dependabot.com/yargs/yargs/issues/2215">https://github.com/facebook/flipper/issues/2215</a>) (<a href="561fc7a787">561fc7a</a>)</li>
<li><strong>deps:</strong> cliui with forced strip-ansi update (<a href="https://github-redirect.dependabot.com/yargs/yargs/issues/2241">https://github.com/facebook/flipper/issues/2241</a>) (<a href="38e8df10f0">38e8df1</a>)</li>
<li>dont clobber description for multiple option calls (<a href="https://github-redirect.dependabot.com/yargs/yargs/issues/2171">https://github.com/facebook/flipper/issues/2171</a>) (<a href="f91d9b334a">f91d9b3</a>)</li>
<li><strong>typescript:</strong> address warning with objectKeys (<a href="394f5f86d1">394f5f8</a>)</li>
</ul>
<h3><a href="https://github.com/yargs/yargs/compare/v17.5.0...v17.5.1">17.5.1</a> (2022-05-16)</h3>
<h3>Bug Fixes</h3>
<ul>
<li>add missing entries to published files (<a href="https://github-redirect.dependabot.com/yargs/yargs/issues/2185">https://github.com/facebook/flipper/issues/2185</a>) (<a href="5685382d18">5685382</a>)</li>
<li>address bug when strict and async middleware used together (<a href="https://github-redirect.dependabot.com/yargs/yargs/issues/2164">https://github.com/facebook/flipper/issues/2164</a>) (<a href="cbc2eb726e">cbc2eb7</a>)</li>
<li><strong>completion:</strong> correct zsh installation instructions (<a href="22e9af28bb">22e9af2</a>)</li>
<li>handle multiple node_modules folders determining mainFilename for ESM (<a href="https://github-redirect.dependabot.com/yargs/yargs/issues/2123">https://github.com/facebook/flipper/issues/2123</a>) (<a href="e0823dd7e6">e0823dd</a>)</li>
<li><strong>lang:</strong> add missing terms to Russian translation (<a href="https://github-redirect.dependabot.com/yargs/yargs/issues/2181">https://github.com/facebook/flipper/issues/2181</a>) (<a href="1c331f22c7">1c331f2</a>)</li>
<li>prevent infinite loop with empty locale (<a href="https://github-redirect.dependabot.com/yargs/yargs/issues/2179">https://github.com/facebook/flipper/issues/2179</a>) (<a href="b672e709e4">b672e70</a>)</li>
<li>veriadic arguments override array provided in config (the same as multiple dash arguments). (<a href="4dac5b8c2f">4dac5b8</a>)</li>
</ul>
<h2><a href="https://github.com/yargs/yargs/compare/v17.4.1...v17.5.0">17.5.0</a> (2022-05-11)</h2>
<h3>Features</h3>
<ul>
<li>add browser.d.ts and check for existence of Error.captureStackTrace() (<a href="https://github-redirect.dependabot.com/yargs/yargs/issues/2144">https://github.com/facebook/flipper/issues/2144</a>) (<a href="6192990509">6192990</a>)</li>
</ul>
<h3>Bug Fixes</h3>
<ul>
<li><strong>completion:</strong> support for default flags (<a href="db35423270">db35423</a>)</li>
<li>import yargs/yargs in esm projects (<a href="https://github-redirect.dependabot.com/yargs/yargs/issues/2151">https://github.com/facebook/flipper/issues/2151</a>) (<a href="95aed1c175">95aed1c</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="6cd8e2d6a4"><code>6cd8e2d</code></a> chore(main): release 17.6.0 (<a href="https://github-redirect.dependabot.com/yargs/yargs/issues/2213">https://github.com/facebook/flipper/issues/2213</a>)</li>
<li><a href="38e8df10f0"><code>38e8df1</code></a> fix(deps): cliui with forced strip-ansi update (<a href="https://github-redirect.dependabot.com/yargs/yargs/issues/2241">https://github.com/facebook/flipper/issues/2241</a>)</li>
<li><a href="394f5f86d1"><code>394f5f8</code></a> fix(typescript): address warning with objectKeys</li>
<li><a href="561fc7a787"><code>561fc7a</code></a> fix(deno): use 'globalThis' instead of 'window' (<a href="https://github-redirect.dependabot.com/yargs/yargs/issues/2186">https://github.com/facebook/flipper/issues/2186</a>) (<a href="https://github-redirect.dependabot.com/yargs/yargs/issues/2215">https://github.com/facebook/flipper/issues/2215</a>)</li>
<li><a href="5895cf1ba1"><code>5895cf1</code></a> feat(lang): Czech locale (<a href="https://github-redirect.dependabot.com/yargs/yargs/issues/2220">https://github.com/facebook/flipper/issues/2220</a>)</li>
<li><a href="f91d9b334a"><code>f91d9b3</code></a> fix: dont clobber description for multiple option calls (<a href="https://github-redirect.dependabot.com/yargs/yargs/issues/2171">https://github.com/facebook/flipper/issues/2171</a>)</li>
<li><a href="b680ace299"><code>b680ace</code></a> feat(usage): add YARGS_DISABLE_WRAP env variable to disable wrap (<a href="https://github-redirect.dependabot.com/yargs/yargs/issues/2210">https://github.com/facebook/flipper/issues/2210</a>)</li>
<li><a href="659dbbb4a4"><code>659dbbb</code></a> docs: update links to main branch</li>
<li><a href="02515116f8"><code>0251511</code></a> chore(main): release 17.5.1 (<a href="https://github-redirect.dependabot.com/yargs/yargs/issues/2187">https://github.com/facebook/flipper/issues/2187</a>)</li>
<li><a href="22e9af28bb"><code>22e9af2</code></a> fix(completion): correct zsh installation instructions</li>
<li>Additional commits viewable in <a href="https://github.com/yargs/yargs/compare/v17.4.1...v17.6.0">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=17.4.1&new-version=17.6.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

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

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

 ---

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

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

</details>

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

Reviewed By: aigoncharov

Differential Revision: D40022361

Pulled By: aigoncharov

fbshipit-source-id: 5408257376334746865b27b27461ec29dea8e78a
2022-10-05 02:27:07 -07:00
Andrey Goncharov
dd7ba2d6fc Fix fb-stubs replacement for plugin bundling
Reviewed By: nikoant

Differential Revision: D39765543

fbshipit-source-id: 14cbf8a9bdf35031e636bbbde3dbc955faedb66b
2022-09-23 05:50:28 -07:00
Andrey Goncharov
61a8fe09e9 Stop failing the entire plugin compatibility check if a shared plugin lib fails it
Summary: Currently, if we publish a new shared plugin lib in a separate diff, the compatibility check fails for it while it should exit with a warning only

Reviewed By: antonk52

Differential Revision: D39731259

fbshipit-source-id: 7651642ebfb5e18ace047d36b52907bca65c4462
2022-09-23 04:52:42 -07:00
Andrey Goncharov
fd811db12b Rebuild all plugins if a shared lib changed
Summary: Some plugins import from shared directories. These directories are not plugins themselves, therefore the current plugin root searching mechanism does nto work for them. To support plugin reloading for this scenario, we start re-building all plugins if we fail to find a plugin root.

Reviewed By: lblasa

Differential Revision: D39693820

fbshipit-source-id: 33dd7de4121bd5665a39b0ea96adce4603dc7df0
2022-09-22 04:17:24 -07:00
Ken Yee
fa9ba6f2d0 Adds a notifyAvailableUpdate flag to config.json to disable update (#3992)
Summary:
We would like to version control Flipper and some of our custom plugins that are installed on developers' systems.
Flipper by default prompts users to upgrade so they sometimes do the update and then all our custom plugins break because they were compiled for an older version.
See https://github.com/facebook/flipper/issues/3947 for feature request info.

## Changelog

Adds notifyAvailable flag to config.json to disable prompting for users that "an update is available"

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

Test Plan:
Tested by running locally.
Had to comment out the isProduction() check to confirm this it worked properly because this flag is false on dev versions.
Couldn't figure out how to manually test the handleOpenPluginDeeplink.tsx change but made a similar change there; happy to test that if you can tell me how to exercise that path.

Reviewed By: antonk52

Differential Revision: D39654481

Pulled By: antonk52

fbshipit-source-id: cef6b48d870915c48f620269c42d24b8ef1f4c29
2022-09-21 09:47:44 -07:00
Andrey Goncharov
3314c77ce9 Add exportFileBinary to FlipperLib
Reviewed By: antonk52

Differential Revision: D39692937

fbshipit-source-id: 7b3c78d004a9734cd8ae660d5782be1f02c00009
2022-09-21 09:26:19 -07:00
Andrey Goncharov
d81dac18b5 Work around empty file restirction
Reviewed By: nikoant

Differential Revision: D39578561

fbshipit-source-id: 3a471e7dd06a1e8cee2c7823b1d7f764110ecf80
2022-09-16 09:00:21 -07:00
Andrey Goncharov
2aa3dc9bd8 Remove reference to flipper-server bundle map
Summary: flipper-server is currently shipped unbundled and unminified

Reviewed By: nikoant

Differential Revision: D39577062

fbshipit-source-id: cd78aded878358e9f90792c695b6d1b27863f05a
2022-09-16 08:09:31 -07:00
Andrey Goncharov
7c66a83328 Add source map copying for plugins
Reviewed By: nikoant

Differential Revision: D39576201

fbshipit-source-id: cd6b11bdb0a4c89e2f84d1c4772f08acc4b86418
2022-09-16 07:22:09 -07:00
Andrey Goncharov
8dc5f4d3ea Remove stale build options
Summary: Now that we build all plugins at all times and it is super-fast, these options are redundant

Reviewed By: lblasa

Differential Revision: D39542723

fbshipit-source-id: 1b30ba384267ec4fd0c35b4dc14f0223ffe414c9
2022-09-15 10:02:19 -07:00
Andrey Goncharov
ab03140201 Fix list of watch folders for electron dev build
Summary: Restart electron app if we had any server-code changes

Reviewed By: lblasa

Differential Revision: D39542169

fbshipit-source-id: fb8e335f3e3fe0cf34e57a79b96e9cc8377e9fda
2022-09-15 10:02:19 -07:00
Andrey Goncharov
c69d102ca1 Track plugin changes and notify frontend
Summary: Watch source plugin folders and notify frontend that any of them changed. In subsequent diffs, we will start reloading plugins that changed.

Reviewed By: lblasa

Differential Revision: D39539443

fbshipit-source-id: 726916c0bce336a2c0179558526bcb1b74e35b93
2022-09-15 10:02:19 -07:00
Andrey Goncharov
3639feef61 Watch and rebuild plugins
Summary: Now, once we build all plugins before we start Flipper, we need to rebuild some of them when they change. Previously, it was handled by Metro when we included plugins int he bundle, but we no longer include them in the bundle.

Reviewed By: lblasa

Differential Revision: D39510213

fbshipit-source-id: a352d78946f844a25d9127ac09c26e43e6739ca9
2022-09-15 10:02:19 -07:00
Andrey Goncharov
9dda947371 Fix flipper server prod build
Summary: Make flipper-server link local flipper-* deps for intern prod build. Update flipper-* deps versions for public builds so `npx` pulls them from npm

Reviewed By: lblasa

Differential Revision: D39497944

fbshipit-source-id: ca2674a4ac8f5b6c3efa9546b631f2526bf48f8e
2022-09-15 10:02:19 -07:00
Andrey Goncharov
ed93dfe978 Refine prod and dev deps
Summary: Move flipper local deps to prod deps, so yarn installs them later when we build a bundle

Reviewed By: lblasa

Differential Revision: D39475545

fbshipit-source-id: 5b61d15b45ee315c3b35d8e6836c114b90503b1a
2022-09-15 10:02:19 -07:00
Andrey Goncharov
f835e07c46 Build all plugins before start
Summary: prepareDefaultPlugins builds all plugins now. We no longer need extra helpers

Reviewed By: lblasa

Differential Revision: D39308098

fbshipit-source-id: 4f12a0bdbc2afd2b306565fff3494daa630e1a20
2022-09-15 10:02:19 -07:00
Andrey Goncharov
642a3ebf81 Remove default plugin entrypoints for hot-reloading
Summary: As we stopped bundling plugins in D39276249, we no longer need the entry points for the bundled plugins (these entry points are always going to be empty)

Reviewed By: lblasa

Differential Revision: D39307565

fbshipit-source-id: 43751fe31c8bd962677c226b27cfe52093d3f2d4
2022-09-15 10:02:19 -07:00
Andrey Goncharov
94df830dfb Migrate plugin bundling to esbuild
Summary: With esbuild bundling all plugins takes a couple of seconds instead of 3-5 minutes with metro. As a result, we can stop including plugins into Flipper's bundle for development and always bundle them separately. It reduces complexity of our build pipeline and makes the dev build work more like our prod build. It also allows us to stop bundling flipper-server code and just compile it instead.

Reviewed By: lblasa

Differential Revision: D39262048

fbshipit-source-id: c4da0f2ea2807015d98e0d070349c39b2118e189
2022-09-15 10:02:19 -07:00
Andrey Goncharov
a888e6affa Simplify bundled plugin setup
Summary: Stop bundling plugins into Flipper Server bundles. In later diffs, we will start building all plugins even in dev mode which removes the need to bundle them.

Reviewed By: lblasa

Differential Revision: D39276249

fbshipit-source-id: 091405cfcf58aa7e1bd2b382da40f8d9841ae6b1
2022-09-15 10:02:19 -07:00
Andrey Goncharov
a67a4e5d0f Remove babel transforms for flipper-server
Summary: Flipper server itself requires no babel transforms. We applied extra transforms only for the bundled plugins. However, we pack and ship all plugins in the /static folder. They are always available on the FS. Therefore we could stop bundling any plugins into flipper-server's source code.

Reviewed By: lblasa

Differential Revision: D38910251

fbshipit-source-id: b3e9fe5ae2ab69ce5579b01b6793ebf7e88baf66
2022-09-15 10:02:19 -07:00
Andrey Goncharov
218cb6abf2 Fix server bundling order
Summary: prepareDefaultPlugins and prepareHeadlessPlugins should come before compileServerMain to bundle plugins

Reviewed By: passy

Differential Revision: D38862132

fbshipit-source-id: 952a2f6d4f857f4faacfc952bebb4e59afcbc5b0
2022-09-15 10:02:19 -07:00
dependabot[bot]
ef66d452ee Bump app-builder-lib from 23.0.8 to 23.4.0 in /desktop (#4008)
Summary:
Bumps [app-builder-lib](https://github.com/electron-userland/electron-builder/tree/HEAD/packages/app-builder-lib) from 23.0.8 to 23.4.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/electron-userland/electron-builder/releases">app-builder-lib's releases</a>.</em></p>
<blockquote>
<h2>v23.4.0</h2>
<h2>What's Changed</h2>
<ul>
<li>feat: Adding timeout to publisher config for api requests and uploads by <a href="https://github.com/mmaietta"><code>@​mmaietta</code></a> in <a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/7028">electron-userland/electron-builder#7028</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/electron-userland/electron-builder/compare/v23.3.3...v23.4.0">https://github.com/electron-userland/electron-builder/compare/v23.3.3...v23.4.0</a></p>
<h2>v23.3.3</h2>
<h2>What's Changed</h2>
<ul>
<li>docs: highlight, thanks by <a href="https://github.com/gaoyia"><code>@​gaoyia</code></a> in <a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/7010">electron-userland/electron-builder#7010</a></li>
<li>fix: Duplicate values during deep assign of extra files by <a href="https://github.com/mmaietta"><code>@​mmaietta</code></a> in <a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/7019">electron-userland/electron-builder#7019</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/gaoyia"><code>@​gaoyia</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/7010">electron-userland/electron-builder#7010</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/electron-userland/electron-builder/compare/v23.3.2...v23.3.3">https://github.com/electron-userland/electron-builder/compare/v23.3.2...v23.3.3</a></p>
<h2>v23.3.2</h2>
<h2>What's Changed</h2>
<ul>
<li>fix: Wrap the nsProcess include in a !ifndef by <a href="https://github.com/titus-anromedonn"><code>@​titus-anromedonn</code></a> in <a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/6996">electron-userland/electron-builder#6996</a></li>
<li>fix: installDir definition <a href="https://github.com/electron-userland/electron-builder/tree/HEAD/packages/app-builder-lib/issues/6907">#6907</a> by <a href="https://github.com/panther7"><code>@​panther7</code></a> in <a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/6995">electron-userland/electron-builder#6995</a></li>
<li>fix(electron-updater): fix backward compatibility for GitHub provider without channels by <a href="https://github.com/matejkriz"><code>@​matejkriz</code></a> in <a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/6998">electron-userland/electron-builder#6998</a></li>
<li>chore: Adding allowPrerelease github integration tests by <a href="https://github.com/mmaietta"><code>@​mmaietta</code></a> in <a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/7003">electron-userland/electron-builder#7003</a></li>
<li>docs: Add customWelcomePage example to Custom NSIS script by <a href="https://github.com/hueyyeng"><code>@​hueyyeng</code></a> in <a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/7001">electron-userland/electron-builder#7001</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/titus-anromedonn"><code>@​titus-anromedonn</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/6996">electron-userland/electron-builder#6996</a></li>
<li><a href="https://github.com/matejkriz"><code>@​matejkriz</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/6998">electron-userland/electron-builder#6998</a></li>
<li><a href="https://github.com/hueyyeng"><code>@​hueyyeng</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/7001">electron-userland/electron-builder#7001</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/electron-userland/electron-builder/compare/v23.3.1...v23.3.2">https://github.com/electron-userland/electron-builder/compare/v23.3.1...v23.3.2</a></p>
<h2>v23.3.1</h2>
<h2>What's Changed</h2>
<ul>
<li>feat: Add installDir property for NsisUpdater by <a href="https://github.com/panther7"><code>@​panther7</code></a> in <a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/6907">electron-userland/electron-builder#6907</a></li>
<li>chore(deps): update dependency <code>@​types/archiver</code> to v5.3.1 by <a href="https://github.com/renovate"><code>@​renovate</code></a> in <a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/6979">electron-userland/electron-builder#6979</a></li>
<li>chore(deps): update dependency <code>@​types/node</code> to v16.11.43 by <a href="https://github.com/renovate"><code>@​renovate</code></a> in <a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/6980">electron-userland/electron-builder#6980</a></li>
<li>fix: parallel release creation with Keygen publisher by <a href="https://github.com/ezekg"><code>@​ezekg</code></a> in <a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/6989">electron-userland/electron-builder#6989</a></li>
<li>fix: add product scope to Keygen publisher by <a href="https://github.com/ezekg"><code>@​ezekg</code></a> in <a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/6990">electron-userland/electron-builder#6990</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/electron-userland/electron-builder/compare/v23.3.0...v23.3.1">https://github.com/electron-userland/electron-builder/compare/v23.3.0...v23.3.1</a></p>
<h2>v23.3.0</h2>
<h2>What's Changed</h2>
<ul>
<li>feat: upgrade Keygen integration to v1.1 by <a href="https://github.com/ezekg"><code>@​ezekg</code></a> in <a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/6941">electron-userland/electron-builder#6941</a></li>
<li>fix(mac): allow Mac Developer certs for non Mac App Store builds by <a href="https://github.com/regentcid434"><code>@​regentcid434</code></a> in <a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/6956">electron-userland/electron-builder#6956</a></li>
<li>fix: prevent infinite looping of overwriteArtifact by <a href="https://github.com/CCInc"><code>@​CCInc</code></a> in <a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/6958">electron-userland/electron-builder#6958</a></li>
<li>fix: add product scope to keygen provider by <a href="https://github.com/ezekg"><code>@​ezekg</code></a> in <a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/6975">electron-userland/electron-builder#6975</a></li>
<li>fix(mas): Allow signing with &quot;3rd Party Mac Developer Application&quot; by <a href="https://github.com/csett86"><code>@​csett86</code></a> in <a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/6970">electron-userland/electron-builder#6970</a></li>
<li>fix(nsis): fix typo in German installer message by <a href="https://github.com/tkleinke"><code>@​tkleinke</code></a> in <a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/6960">electron-userland/electron-builder#6960</a></li>
<li>fix: nsis-web target set APP_PACKAGE_URL_IS_INCOMPLETE by <a href="https://github.com/geovie"><code>@​geovie</code></a> in <a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/6964">electron-userland/electron-builder#6964</a></li>
</ul>

</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/electron-userland/electron-builder/blob/master/packages/app-builder-lib/CHANGELOG.md">app-builder-lib's changelog</a>.</em></p>
<blockquote>
<h2>23.4.0</h2>
<h3>Minor Changes</h3>
<ul>
<li><a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/7028">#7028</a> <a href="e7179b57bd"><code>e7179b57</code></a> Thanks <a href="https://github.com/mmaietta"><code>@​mmaietta</code></a>! - feat: Adding timeout to publisher config for api requests and uploads</li>
</ul>
<h3>Patch Changes</h3>
<ul>
<li>Updated dependencies [<a href="e7179b57bd"><code>e7179b57</code></a>]:
<ul>
<li>builder-util-runtime@9.1.0</li>
<li>builder-util@23.4.0</li>
<li>electron-publish@23.4.0</li>
</ul>
</li>
</ul>
<h2>23.3.3</h2>
<h3>Patch Changes</h3>
<ul>
<li>Updated dependencies [<a href="98d3a6361d"><code>98d3a636</code></a>]:
<ul>
<li>builder-util@23.3.3</li>
<li>electron-publish@23.3.3</li>
</ul>
</li>
</ul>
<h2>23.3.2</h2>
<h3>Patch Changes</h3>
<ul>
<li><a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/6996">#6996</a> <a href="5301525393"><code>53015253</code></a> Thanks <a href="https://github.com/titus-anromedonn"><code>@​titus-anromedonn</code></a>! - fix: Wrap the nsProcess.nsh include in a !ifndef in case it has already been imported in a custom install script</li>
</ul>
<h2>23.3.1</h2>
<h3>Patch Changes</h3>
<ul>
<li><a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/6989">#6989</a> <a href="7ad5101b4a"><code>7ad5101b</code></a> Thanks <a href="https://github.com/ezekg"><code>@​ezekg</code></a>! - Fix issue where, upon publishing a new release, electron-builder would attempt to create the same release for each artifact in parallel, resulting in conflict errors.</li>
</ul>
<ul>
<li><a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/6990">#6990</a> <a href="c3407a202d"><code>c3407a20</code></a> Thanks <a href="https://github.com/ezekg"><code>@​ezekg</code></a>! - Fix release conflicts for Keygen publisher when releases share the same version across open/licensed products.</li>
</ul>
<h2>23.3.0</h2>
<h3>Minor Changes</h3>
<ul>
<li><a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/6941">#6941</a> <a href="14503ceb99"><code>14503ceb</code></a> Thanks <a href="https://github.com/ezekg"><code>@​ezekg</code></a>! - Upgrade Keygen publisher/updater integration to API version v1.1.</li>
</ul>
<h3>Patch Changes</h3>
<ul>
<li><a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/6964">#6964</a> <a href="b0e1b6f8af"><code>b0e1b6f8</code></a> Thanks <a href="https://github.com/geovie"><code>@​geovie</code></a>! - fix: nsis-web target set APP_PACKAGE_URL_IS_INCOMPLETE</li>
</ul>
<ul>
<li><a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/6970">#6970</a> <a href="28c07b4392"><code>28c07b43</code></a> Thanks <a href="https://github.com/csett86"><code>@​csett86</code></a>! - fix(mas): Allow signing with &quot;3rd Party Mac Developer Application&quot;</li>
</ul>
<ul>
<li><a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/6960">#6960</a> <a href="6e90c84591"><code>6e90c845</code></a> Thanks <a href="https://github.com/tkleinke"><code>@​tkleinke</code></a>! - fix(nsis): fix typo in German installer message</li>
</ul>
<ul>
<li><a href="https://github-redirect.dependabot.com/electron-userland/electron-builder/pull/6961">#6961</a> <a href="4c867aa017"><code>4c867aa0</code></a> Thanks <a href="https://github.com/aripollak"><code>@​aripollak</code></a>! - fix: Optionally allow removing DISABLE_WAYLAND flag for snaps</li>
</ul>

</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="217f4af53a"><code>217f4af</code></a> chore(deploy): Release 23.4.0 (electron-updater@5.2.2) (<a href="https://github.com/electron-userland/electron-builder/tree/HEAD/packages/app-builder-lib/issues/7030">#7030</a>)</li>
<li><a href="e7179b57bd"><code>e7179b5</code></a> feat: Adding timeout to publisher config for api requests and uploads (<a href="https://github.com/electron-userland/electron-builder/tree/HEAD/packages/app-builder-lib/issues/7028">#7028</a>)</li>
<li><a href="94982619c1"><code>9498261</code></a> chore(deploy): Release 23.3.3 (<a href="https://github.com/electron-userland/electron-builder/tree/HEAD/packages/app-builder-lib/issues/7020">#7020</a>)</li>
<li><a href="3e9cd2c88e"><code>3e9cd2c</code></a> chore(deploy): Release 23.3.2 (electron-updater@5.2.1) (<a href="https://github.com/electron-userland/electron-builder/tree/HEAD/packages/app-builder-lib/issues/7002">#7002</a>)</li>
<li><a href="5301525393"><code>5301525</code></a> fix: Wrap the nsProcess include in a !ifndef (<a href="https://github.com/electron-userland/electron-builder/tree/HEAD/packages/app-builder-lib/issues/6996">#6996</a>)</li>
<li><a href="d99da8286b"><code>d99da82</code></a> chore(deploy): Release 23.3.1 (electron-updater@5.2.0) (<a href="https://github.com/electron-userland/electron-builder/tree/HEAD/packages/app-builder-lib/issues/6986">#6986</a>)</li>
<li><a href="c3407a202d"><code>c3407a2</code></a> fix: add product scope to keygen publisher (<a href="https://github.com/electron-userland/electron-builder/tree/HEAD/packages/app-builder-lib/issues/6990">#6990</a>)</li>
<li><a href="7ad5101b4a"><code>7ad5101</code></a> fix: parallel release creation with keygen publisher (<a href="https://github.com/electron-userland/electron-builder/tree/HEAD/packages/app-builder-lib/issues/6989">#6989</a>)</li>
<li><a href="e7912d92b2"><code>e7912d9</code></a> chore(deploy): Release 23.3.0 (electron-updater@5.1.0) (<a href="https://github.com/electron-userland/electron-builder/tree/HEAD/packages/app-builder-lib/issues/6950">#6950</a>)</li>
<li><a href="f70abf1628"><code>f70abf1</code></a> fix: regenerating docs and schema</li>
<li>Additional commits viewable in <a href="https://github.com/electron-userland/electron-builder/commits/v23.4.0/packages/app-builder-lib">compare view</a></li>
</ul>
</details>
<br />

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

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

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

 ---

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

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

</details>

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

Reviewed By: lawrencelomax

Differential Revision: D38781621

Pulled By: passy

fbshipit-source-id: 6fe8bcbd584cab6fc60abd5fe34b7340ea27ab12
2022-08-18 07:46:18 -07:00
Feiyu Wong
3ffb25e672 Update UI for enabling persisted logs feature
Summary:
This is the first diff to implement the feature for the Flipper logs plugin to have an option to persist logs in the table between crashes, disconnections, etc.

Since this is not a local change, the UI option for persistence will be located in the settings for the Flipper UI(as seen in the test plan). The setting is associated with the Redux Store `Settings` and is stored globally to be used across all plugins. So the plan is making the persistence pertain to all plugins.

Reviewed By: mweststrate

Differential Revision: D37786988

fbshipit-source-id: 7ffc6077cbca559b3401b16770eda657a6c45620
2022-07-28 13:56:34 -07:00