Commit Graph

158 Commits

Author SHA1 Message Date
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
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
Aria Fallah
0d34662698 Support the monaco editor in flipper and add it to the smax plugin
Summary:
## Context

The editor for mocks is currently just a textarea. It'd be nicer as a monaco editor :D

## Changes
* Add monaco editor
* Change bundler for flipper plugins to allow loading .ttf as `dataurl`
* Resize the input/button for name and save and put them at the top next to each other
* Add a default mock template for when the editor is empty

allow-large-files

Reviewed By: aigoncharov

Differential Revision: D45929635

fbshipit-source-id: 66f3103d073ac630cb41d21f2ce3a7f89e15fed8
2023-05-17 21:16:31 -07:00
Luke De Feo
da268f0095 Bump mock-fs
Summary: various tests failing due to this dep

Reviewed By: antonk52

Differential Revision: D45731274

fbshipit-source-id: cb79199c15a8973f50e5075dab16605d0120b30c
2023-05-10 07:47:19 -07: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
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
Andrey Goncharov
3fc319ea36 Fix rebuilding plugins with intern references in dev mode when started as flipper-server
Summary: require.resolve conflicts with require monkey patch in flipper-server

Reviewed By: mweststrate

Differential Revision: D41917678

fbshipit-source-id: 3bcd35ec4090cda85c372f23d6f8d0bcd9e7c74d
2022-12-12 05:46:01 -08:00
Andrey Goncharov
9597e672a1 Provide @emotion/css to plugins
Summary: Changelog: Provide `emotion/css` to plugins

Reviewed By: antonk52

Differential Revision: D40057817

fbshipit-source-id: 1e931eb8527d62dd4312556a6d493fdf3e17b45a
2022-10-04 05:07:36 -07:00
Aero Wang
b596c9c797 Fix electron error during build for desktop plugins (#4145)
Summary:
Related GH issue: https://github.com/facebook/flipper/issues/4139

Context:
The current direction is that all plugins should be able to run in browser envs. Opening external windows, deeplinks and etc. should be abstracted away in getFlipperLib().
For plugin developers, it could be challenging to upgrade the existing plugins that rely on electron being present. We should not failing the build process for them because their plugins depend on electron.

Allow desktop plugin to build

Relevant ticket: https://github.com/facebook/flipper/issues/4139

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

Reviewed By: mweststrate

Differential Revision: D39887902

Pulled By: mweststrate

fbshipit-source-id: 4132912b5a2b598c7897d434647cffed6980de19
2022-09-29 09:09:44 -07:00
Andrey Goncharov
982193df48 Fix plugin source maps in dev mode
Summary:
Start bundling source maps together with the source code itself in the dev mode. Therefore it is no longer required to add a link to the external source map file in dev mode.
In prod mode we still ship them separately.

Reviewed By: mweststrate

Differential Revision: D39775064

fbshipit-source-id: 6c56df7a3fce084c07a8618a63dbd8ae4741348c
2022-09-26 06:54:03 -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
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
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
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
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
094c5bdfdd Provide external modules to plugins
Summary: esbuild references external modules via `require`. We wrap `require` to point the references to built-in modules to global variables

Reviewed By: lblasa

Differential Revision: D39311893

fbshipit-source-id: a99480161c082f4095d78c22271f114532f32c16
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
Pascal Hartig
342e22bd87 Upgrade more /desktop deps
Summary: More bumps for patch and minor releases. allow-large-files

Reviewed By: aigoncharov

Differential Revision: D36104098

fbshipit-source-id: 6db995e660afbe4febd72aa70ed8150cc16a8c93
2022-05-04 04:03:19 -07:00
Pascal Hartig
ef19d06239 Upgrade metro
Summary: Bunch of dependabot PRs showed that the signal is green, but still wanted to have all in one diff.

Reviewed By: aigoncharov

Differential Revision: D36102480

fbshipit-source-id: 88d472fdc2a910a7441a9e8164fe8af0f2d90f7b
2022-05-04 04:03:19 -07:00
Pascal Hartig
cc3aca0e8b Upgrade @types/node to one version everywhere
Summary: Caused some inconsistencies when running `tsc`. This brings them back in line.

Reviewed By: aigoncharov

Differential Revision: D36101548

fbshipit-source-id: b8f757c59f879911c9b0920fe11396246ffa37e2
2022-05-04 04:03:19 -07:00
dependabot[bot]
2d46b8bc48 Bump metro from 0.69.0 to 0.69.1 in /desktop (#3560)
Summary:
Bumps [metro](https://github.com/facebook/metro) from 0.69.0 to 0.69.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/facebook/metro/releases">metro's releases</a>.</em></p>
<blockquote>
<h2>Release v0.69.1</h2>
<ul>
<li><strong>[Fix]</strong> buck-worker-tool: Implement worker <a href="https://buck.build/rule/worker_tool.html#:~:text=it%20should%20exit%20after%20replying%20on%20stdout">termination</a> correctly. (22af8747469529ed2532b5392d695514930fb298)</li>
<li><strong>[Fix]</strong> metro-resolver: Export the <code>CustomResolutionContext</code> Flow type for use in custom resolvers. (cde639ca3c4d118a46448eb2a960cfb7bcdc4227)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="32408b89dc"><code>32408b8</code></a> Release 0.69.1</li>
<li><a href="cde639ca3c"><code>cde639c</code></a> Export CustomResolutionContext type from metro-resolver</li>
<li><a href="0fe1253cc4"><code>0fe1253</code></a> deploy 0.172.0</li>
<li><a href="fa06113363"><code>fa06113</code></a> Bump normalize-url from 4.5.0 to 4.5.1 in /website (<a href="https://github-redirect.dependabot.com/facebook/metro/issues/784">https://github.com/facebook/flipper/issues/784</a>)</li>
<li><a href="8c3f4bffee"><code>8c3f4bf</code></a> Bump extend from 3.0.1 to 3.0.2 in /website (<a href="https://github-redirect.dependabot.com/facebook/metro/issues/782">https://github.com/facebook/flipper/issues/782</a>)</li>
<li><a href="64ea6be3cf"><code>64ea6be</code></a> Bump minimist from 1.2.0 to 1.2.5 in /website (<a href="https://github-redirect.dependabot.com/facebook/metro/issues/786">https://github.com/facebook/flipper/issues/786</a>)</li>
<li><a href="d37dea360b"><code>d37dea3</code></a> Bump browserslist from 4.16.0 to 4.19.3 in /website (<a href="https://github-redirect.dependabot.com/facebook/metro/issues/785">https://github.com/facebook/flipper/issues/785</a>)</li>
<li><a href="e0cf1daaf4"><code>e0cf1da</code></a> Bump ini from 1.3.5 to 1.3.8 in /website (<a href="https://github-redirect.dependabot.com/facebook/metro/issues/783">https://github.com/facebook/flipper/issues/783</a>)</li>
<li><a href="521aebd686"><code>521aebd</code></a> Add sass plugin, style announcement banner</li>
<li><a href="9e06ce6e5b"><code>9e06ce6</code></a> Update docusaurus</li>
<li>Additional commits viewable in <a href="https://github.com/facebook/metro/compare/v0.69.0...v0.69.1">compare view</a></li>
</ul>
</details>
<br />

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

Reviewed By: passy

Differential Revision: D35181291

Pulled By: mweststrate

fbshipit-source-id: 248d4efa40dfb1c5d2751f952ed9e6e5ddbbed1b
2022-03-29 09:54:15 -07:00
dependabot[bot]
c406b37287 Bump metro-cache from 0.69.0 to 0.69.1 in /desktop (#3564)
Summary:
Bumps [metro-cache](https://github.com/facebook/metro) from 0.69.0 to 0.69.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/facebook/metro/releases">metro-cache's releases</a>.</em></p>
<blockquote>
<h2>Release v0.69.1</h2>
<ul>
<li><strong>[Fix]</strong> buck-worker-tool: Implement worker <a href="https://buck.build/rule/worker_tool.html#:~:text=it%20should%20exit%20after%20replying%20on%20stdout">termination</a> correctly. (22af8747469529ed2532b5392d695514930fb298)</li>
<li><strong>[Fix]</strong> metro-resolver: Export the <code>CustomResolutionContext</code> Flow type for use in custom resolvers. (cde639ca3c4d118a46448eb2a960cfb7bcdc4227)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="32408b89dc"><code>32408b8</code></a> Release 0.69.1</li>
<li><a href="cde639ca3c"><code>cde639c</code></a> Export CustomResolutionContext type from metro-resolver</li>
<li><a href="0fe1253cc4"><code>0fe1253</code></a> deploy 0.172.0</li>
<li><a href="fa06113363"><code>fa06113</code></a> Bump normalize-url from 4.5.0 to 4.5.1 in /website (<a href="https://github-redirect.dependabot.com/facebook/metro/issues/784">https://github.com/facebook/flipper/issues/784</a>)</li>
<li><a href="8c3f4bffee"><code>8c3f4bf</code></a> Bump extend from 3.0.1 to 3.0.2 in /website (<a href="https://github-redirect.dependabot.com/facebook/metro/issues/782">https://github.com/facebook/flipper/issues/782</a>)</li>
<li><a href="64ea6be3cf"><code>64ea6be</code></a> Bump minimist from 1.2.0 to 1.2.5 in /website (<a href="https://github-redirect.dependabot.com/facebook/metro/issues/786">https://github.com/facebook/flipper/issues/786</a>)</li>
<li><a href="d37dea360b"><code>d37dea3</code></a> Bump browserslist from 4.16.0 to 4.19.3 in /website (<a href="https://github-redirect.dependabot.com/facebook/metro/issues/785">https://github.com/facebook/flipper/issues/785</a>)</li>
<li><a href="e0cf1daaf4"><code>e0cf1da</code></a> Bump ini from 1.3.5 to 1.3.8 in /website (<a href="https://github-redirect.dependabot.com/facebook/metro/issues/783">https://github.com/facebook/flipper/issues/783</a>)</li>
<li><a href="521aebd686"><code>521aebd</code></a> Add sass plugin, style announcement banner</li>
<li><a href="9e06ce6e5b"><code>9e06ce6</code></a> Update docusaurus</li>
<li>Additional commits viewable in <a href="https://github.com/facebook/metro/compare/v0.69.0...v0.69.1">compare view</a></li>
</ul>
</details>
<br />

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

Reviewed By: antonk52

Differential Revision: D35181283

Pulled By: mweststrate

fbshipit-source-id: 6f980bc445c33cccc937a236f45caa6877a4dd3e
2022-03-28 06:56:19 -07:00
Andrey Goncharov
6ec3771824 Upgrade Metro
Reviewed By: passy

Differential Revision: D34789498

fbshipit-source-id: 9e984b308ac6d0dbc917ddaa20812f76d2a69d77
2022-03-10 10:31:24 -08:00
Pascal Hartig
6d05e6c226 Bump /desktop again
Summary:
New round of releases and PRs came up, so bumping again.

Very selective Metro update as some dependencies don't play well together. A bunch of other dependencies use ESM and fail at various stages of the build or runtime process.

Reviewed By: mweststrate

Differential Revision: D34688830

fbshipit-source-id: 2ff5c46c253b814140f634a986ba0d246e9b0945
2022-03-08 03:02:11 -08:00
Pascal Hartig
7c1251075f Dep bump for /desktop
Summary:
Combining a bunch of dependabot PRs.

N.B. I had to manually clean up the `yarn.lock` a few times because some dependencies resolved to multiple version numbers, catching tsc off-guard.
allow-large-files

Reviewed By: nikoant

Differential Revision: D34579180

fbshipit-source-id: a4848e1010ff240d9b0e721d3878585e7b4bd078
2022-03-03 04:11:52 -08:00
Andrey Goncharov
9449f61adb Add server add-on babel transform
Reviewed By: antonk52

Differential Revision: D34393126

fbshipit-source-id: d910392d9ac7e7a44e2e9ede690a6bed77f018c7
2022-02-28 03:50:34 -08:00
Andrey Goncharov
5cdb7c952e Update build scripts to support bundling server add-ons
Summary: Summary

Reviewed By: nikoant

Differential Revision: D34170565

fbshipit-source-id: be9904809bf33e85536a4c6ead0e753ef05209ff
2022-02-28 03:50:34 -08:00
dependabot[bot]
8a25eddf3b Bump metro-cache from 0.66.2 to 0.67.0 in /desktop (#3418)
Summary:
Bumps [metro-cache](https://github.com/facebook/metro) from 0.66.2 to 0.67.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/facebook/metro/releases">metro-cache's releases</a>.</em></p>
<blockquote>
<h2>Release v0.67.0</h2>
<ul>
<li><strong>[Breaking]</strong> Use custom resolvers (<code>resolver.resolveRequest</code>) before checking the Haste map. (96fb6e904e1660b37f4d1f5353ca1e5477c4afbf)</li>
<li><strong>[Feature]</strong> Update React Native lazy imports list with the removal of <code>StatusBarIOS</code>. (2a0f77925e3299e01c2bfe82d0356145a643adc0)</li>
<li><strong>[Feature]</strong> Allow configuring the path of the canonical empty module, which now lives in <code>metro-runtime</code> by default. (bd5f9323337b03a77bc219636937bb75cd8c18ca, 6e3e789b685b95ea59a58364a751e8010d536e8b, 7723be545795c936cb81cad214ee202f72e169b3)</li>
<li><strong>[Feature]</strong> Add <code>initialize_done</code>, <code>transformer_loading</code>, and <code>transformer_loaded</code> events to the <code>Reporter</code> interface. (d19cf5d7e88207a8d46c17b570f14a239dae8926)</li>
<li><strong>[Feature]</strong> Add <code>waitForBundler</code> option to the <code>runServer()</code> and <code>runMetro()</code> APIs. (57d8a92583185a97dffcdc1c95fef7780be9104d)</li>
<li><strong>[Feature]</strong> Add <code>resolver.disableHierarchicalLookup</code> option. (01416f1bc41a3d557b24e4b508fed5f158990108)</li>
<li><strong>[Feature]</strong> Remove confusing troubleshooting steps from missing module errors. (1fa45c21f7508cc3a852071b775f592873700ad0)</li>
<li><strong>[Feature]</strong> Infer names for anonymous functions in optional calls. (4ced2a1be8a42a9c7df71b566918a457bad207c1)</li>
<li><strong>[Feature]</strong> Infer names for anonymous functions memoized with useCallback. (2611f618b245fd2bd2c3558d2536011269bb5a68)</li>
<li><strong>[Feature]</strong> Update terser to v5 in <code>metro-minify-terser</code>. (<a href="https://github-redirect.dependabot.com/facebook/metro/pull/754">facebook/metro#754</a> by <a href="https://github.com/rockwotj"><code>@​rockwotj</code></a>, <a href="https://github-redirect.dependabot.com/facebook/metro/pull/606">facebook/metro#606</a> by <a href="https://github.com/janicduplessis"><code>@​janicduplessis</code></a>)</li>
<li><strong>[Fix]</strong> Fix a caching issue with custom resolvers. (793b1a03c1f0b5e63869b471adab3f1ad61b199b)</li>
<li><strong>[Fix]</strong> Specify UTF-8 encoding when serving bundles. (<a href="https://github-redirect.dependabot.com/facebook/metro/pull/695">facebook/metro#695</a> by <a href="https://github.com/zhiqingchen"><code>@​zhiqingchen</code></a>)</li>
<li><strong>[Fix]</strong> Support <a href="https://github.com/defunctzombie/package-browser-field-spec#replace-specific-files---advanced">package.json module replacements</a> for requires with implicit extensions. (41522a25bec9325d1df5981b55d4672db7126895)</li>
<li><strong>[Fix]</strong> Resolve <a href="https://github.com/defunctzombie/package-browser-field-spec#replace-specific-files---advanced">package.json module replacements</a> when the replaced module isn't a physical file. (171393a6319e507935eeb3d40561e908c1a2abfe)</li>
<li><strong>[Fix]</strong> Fix stack trace symbolication when input files have non-Unix line endings. (<a href="https://github-redirect.dependabot.com/facebook/metro/pull/691">facebook/metro#691</a> by <a href="https://github.com/danielsmc"><code>@​danielsmc</code></a>)</li>
<li><strong>[Fix]</strong> Decrease the precedence of <code>resolver.nodeModulesPaths</code> to respect transitive dependencies. (<a href="https://github-redirect.dependabot.com/facebook/metro/pull/738">facebook/metro#738</a> by <a href="https://github.com/sharmilajesupaul"><code>@​sharmilajesupaul</code></a>)</li>
<li><strong>[Fix]</strong> Respect <code>mangle: false</code> &amp; <code>sourceMap: false</code> in <code>minifierConfig</code>. (<a href="https://github-redirect.dependabot.com/facebook/metro/pull/749">facebook/metro#749</a> by <a href="https://github.com/mfbx9da4"><code>@​mfbx9da4</code></a>)</li>
<li><strong>[Fix]</strong> Update hash function from MD4 to MD5 for Node 17 compatibility. (<a href="https://github-redirect.dependabot.com/facebook/metro/pull/752">facebook/metro#752</a> by <a href="https://github.com/tobua"><code>@​tobua</code></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> Add <code>server.unstable_serverRoot</code> option to allow serving bundles from folders outside the project root. (026a66cf40df1bd05da2afc1660efa1d9605c55a, ca86682012eb836e2b6aeb001f2b3112129e38c3, e061cf342505f3d07fb21f85f22925e3d05557c9, 70e98882ad24d7c25c9b73eaf347e60f2a74c8ca, baacea28635dae7fea3bd30dd485252ae59a937e)</li>
<li><strong>[Experimental]</strong> Update <code>metro-hermes-compiler</code>. (e80434cf329619e1a0c6c56ae7be6c88cb350c99)</li>
<li><strong>[Experimental]</strong> Provide safe access to assets outside the project root using <code>/assets?unstable_path=...</code>. (f3d1157bacc341dff82efea2f70b634141105fc0)</li>
<li><strong>[Experimental]</strong> Add <code>resolver.unstable_hasteMapModulePath</code> option. (e8c0de0411148bd31e3decb6a5c4c1dc1d645666)</li>
</ul>
<p>Thanks to all the contributors mentioned above for helping improve Metro! 🚇</p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="ccfec1e846"><code>ccfec1e</code></a> Release 0.67.0</li>
<li><a href="b31f5a462d"><code>b31f5a4</code></a> Deploy v0.170.0 to xplat</li>
<li><a href="36e3ffe4bd"><code>36e3ffe</code></a> Bump node-fetch from 2.6.1 to 2.6.7 (<a href="https://github-redirect.dependabot.com/facebook/metro/issues/762">https://github.com/facebook/flipper/issues/762</a>)</li>
<li><a href="3fb4da8fae"><code>3fb4da8</code></a> Bump trim-off-newlines from 1.0.1 to 1.0.3 (<a href="https://github-redirect.dependabot.com/facebook/metro/issues/757">https://github.com/facebook/flipper/issues/757</a>)</li>
<li><a href="ed7d5d6f47"><code>ed7d5d6</code></a> Update terser to v5 in <code>metro-minify-terser</code> (<a href="https://github-redirect.dependabot.com/facebook/metro/issues/606">https://github.com/facebook/flipper/issues/606</a>)</li>
<li><a href="216e0a2cfc"><code>216e0a2</code></a> Allow for async minifiers (<a href="https://github-redirect.dependabot.com/facebook/metro/issues/754">https://github.com/facebook/flipper/issues/754</a>)</li>
<li><a href="0116ae9758"><code>0116ae9</code></a> Bump follow-redirects from 1.10.0 to 1.14.7 in /website (<a href="https://github-redirect.dependabot.com/facebook/metro/issues/756">https://github.com/facebook/flipper/issues/756</a>)</li>
<li><a href="e3c83a8522"><code>e3c83a8</code></a> Respect <code>mangle: false</code> &amp; <code>sourceMap: false</code> in <code>minifierConfig</code> (<a href="https://github-redirect.dependabot.com/facebook/metro/issues/749">https://github.com/facebook/flipper/issues/749</a>)</li>
<li><a href="1cfb483486"><code>1cfb483</code></a> Bump shelljs from 0.8.4 to 0.8.5 in /website (<a href="https://github-redirect.dependabot.com/facebook/metro/issues/755">https://github.com/facebook/flipper/issues/755</a>)</li>
<li><a href="3dfe9f3107"><code>3dfe9f3</code></a> chore(docs): display last update time (<a href="https://github-redirect.dependabot.com/facebook/metro/issues/753">https://github.com/facebook/flipper/issues/753</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/facebook/metro/compare/v0.66.2...v0.67.0">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=metro-cache&package-manager=npm_and_yarn&previous-version=0.66.2&new-version=0.67.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/3418

Reviewed By: passy

Differential Revision: D34049927

Pulled By: mweststrate

fbshipit-source-id: 08a0052c0f01753d84d77cb14a7979e10944c831
2022-02-08 10:40:15 -08:00
Anton Kastritskiy
48d43c7367 rename from ts to tsx in pkg and pkg-lib
Summary: mass rename files

Reviewed By: passy

Differential Revision: D33890034

fbshipit-source-id: 1c654a4f7f5b83eaa56a8c11df863003e8d7bed7
2022-01-31 06:22:56 -08:00
Andres Suarez
79023ee190 Update copyright headers from Facebook to Meta
Reviewed By: bhamodi

Differential Revision: D33331422

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

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

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

Reviewed By: lawrencelomax

Differential Revision: D33124441

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

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

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

{F686704253}

{F686704295}

Reviewed By: antonk52

Differential Revision: D33062859

fbshipit-source-id: 5afaa4f2103d055188382a3370c1fffa295a298a
2021-12-16 14:54:59 -08:00
dependabot[bot]
6313a3da3a Bump mock-fs from 5.0.0 to 5.1.2 in /desktop (#3114)
Summary:
Bumps [mock-fs](https://github.com/tschaub/mock-fs) from 5.0.0 to 5.1.2.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/tschaub/mock-fs/blob/main/changelog.md">mock-fs's changelog</a>.</em></p>
<blockquote>
<h2>5.1.2</h2>
<ul>
<li>Avoid open <code>FSREQCALLBACK</code> file handles (thanks <a href="https://github.com/jloleysens"><code>@​jloleysens</code></a>, see <a href="https://github-redirect.dependabot.com/tschaub/mock-fs/issues/342">https://github.com/facebook/flipper/issues/342</a><a href="https://github-redirect.dependabot.com/tschaub/mock-fs/issues/342">https://github.com/facebook/flipper/issues/342</a>)</li>
</ul>
<h2>5.1.1</h2>
<ul>
<li>Added <code>engines</code> to <code>package.json</code> to clarify that Node &gt;= 12 is required (thanks <a href="https://github.com/tillig"><code>@​tillig</code></a>, see <a href="https://github-redirect.dependabot.com/tschaub/mock-fs/issues/337">https://github.com/facebook/flipper/issues/337</a><a href="https://github-redirect.dependabot.com/tschaub/mock-fs/issues/337">https://github.com/facebook/flipper/issues/337</a>)</li>
</ul>
<h2>5.1.0</h2>
<ul>
<li>Added support for Node &gt;= 16.3 (thanks <a href="https://github.com/Rugvip"><code>@​Rugvip</code></a>, see <a href="https://github-redirect.dependabot.com/tschaub/mock-fs/issues/335">https://github.com/facebook/flipper/issues/335</a><a href="https://github-redirect.dependabot.com/tschaub/mock-fs/issues/335">https://github.com/facebook/flipper/issues/335</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="ebfc4b7aa9"><code>ebfc4b7</code></a> 5.1.2</li>
<li><a href="7e3a746e26"><code>7e3a746</code></a> Log changes</li>
<li><a href="abd285a86e"><code>abd285a</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/tschaub/mock-fs/issues/342">https://github.com/facebook/flipper/issues/342</a> from jloleysens/fix/call-original-fsBinding-open</li>
<li><a href="9bbd98719f"><code>9bbd987</code></a> also return the result of originalOpen</li>
<li><a href="2d48c6cd58"><code>2d48c6c</code></a> call original fsBinding.open when collecting ReadFileContext proto to avoid c...</li>
<li><a href="313cd08c4a"><code>313cd08</code></a> 5.1.1</li>
<li><a href="69283aa62c"><code>69283aa</code></a> Log changes</li>
<li><a href="31d901796c"><code>31d9017</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/tschaub/mock-fs/issues/337">https://github.com/facebook/flipper/issues/337</a> from tillig/patch-1</li>
<li><a href="0b8d63e77c"><code>0b8d63e</code></a> <code>engines</code> block to specify min requirements</li>
<li><a href="8a6ad90999"><code>8a6ad90</code></a> 5.1.0</li>
<li>Additional commits viewable in <a href="https://github.com/tschaub/mock-fs/compare/v5.0.0...v5.1.2">compare view</a></li>
</ul>
</details>
<br />

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

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

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

 ---

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

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

</details>

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

Reviewed By: jknoxville

Differential Revision: D32698511

Pulled By: passy

fbshipit-source-id: 0e1a698bab4ffdf01186184176848d8180789400
2021-11-30 23:11:39 -08:00
Pascal Hartig
b3fa8dd6c1 Dep bump
Summary:
Took a few iterations to make offline mirror happy, but everything is green now.

allow-large-files

Reviewed By: nikoant

Differential Revision: D31690614

fbshipit-source-id: 38d0d6cb5e3f63b3707d917a1ed6fc6144762731
2021-10-19 09:21:36 -07:00
Pascal Hartig
dd190ef2e0 Big dep bump
Summary: Conservatively bumping only patch versions (except the ones we know break stuff).

Reviewed By: nikoant

Differential Revision: D31511737

fbshipit-source-id: 5b55b4689e71975824577f0ac43d806ca37ea232
2021-10-11 02:32:44 -07:00
dependabot[bot]
5d910f662a Bump prettier from 2.3.2 to 2.4.1 in /desktop (#2892)
Summary:
Bumps [prettier](https://github.com/prettier/prettier) from 2.3.2 to 2.4.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/prettier/prettier/releases">prettier's releases</a>.</em></p>
<blockquote>
<h2>2.4.1</h2>
<p>{emoji:1f517} <a href="https://github.com/prettier/prettier/blob/main/CHANGELOG.md#241">Changelog</a></p>
<h2>2.4.0</h2>
<p><a href="https://github.com/prettier/prettier/compare/2.3.2...2.4.0">diff</a></p>
<p><a href="https://prettier.io/blog/2021/09/09/2.4.0.html">Release note</a></p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/prettier/prettier/blob/main/CHANGELOG.md">prettier's changelog</a>.</em></p>
<blockquote>
<h1>2.4.1</h1>
<p><a href="https://github.com/prettier/prettier/compare/2.4.0...2.4.1">diff</a></p>
<h4>Fix wildcard syntax in <code>forward</code> (<a href="https://github-redirect.dependabot.com/prettier/prettier/pull/11482">#11482</a>) (<a href="https://github-redirect.dependabot.com/prettier/prettier/pull/11487">#11487</a> by <a href="https://github.com/niksy"><code>@​niksy</code></a>)</h4>

<pre lang="scss"><code>// Input
forward &quot;library&quot; as btn-*;
<p>// Prettier 2.4.0
<a href="https://github.com/forward"><code>@​forward</code></a> &quot;library&quot; as btn- *;</p>
<p>// Prettier 2.4.1
<a href="https://github.com/forward"><code>@​forward</code></a> &quot;library&quot; as btn-*;
</code></pre></p>
<h4>Add new CLI option <code>debug-print-ast</code> (<a href="https://github-redirect.dependabot.com/prettier/prettier/pull/11514">#11514</a> by <a href="https://github.com/sosukesuzuki"><code>@​sosukesuzuki</code></a>)</h4>
<p>A new <code>--debug-print-ast</code> CLI flag for debugging.</p>
<h1>2.4.0</h1>
<p><a href="https://github.com/prettier/prettier/compare/2.3.2...2.4.0">diff</a></p>
<p>{emoji:1f517} <a href="https://prettier.io/blog/2021/09/09/2.4.0.html">Release Notes</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="7ced9e6654"><code>7ced9e6</code></a> Release 2.4.1</li>
<li><a href="59b5eb4e1f"><code>59b5eb4</code></a> Fix wildcard syntax in <code>forward</code> (<a href="https://github-redirect.dependabot.com/prettier/prettier/issues/11482">#11482</a>) (<a href="https://github-redirect.dependabot.com/prettier/prettier/issues/11487">#11487</a>)</li>
<li><a href="aa63269743"><code>aa63269</code></a> Add new CLI option <code>debug-print-ast</code> (<a href="https://github-redirect.dependabot.com/prettier/prettier/issues/11514">#11514</a>)</li>
<li><a href="ae33e494a9"><code>ae33e49</code></a> fix(docs): lint-staged install instructions (<a href="https://github-redirect.dependabot.com/prettier/prettier/issues/11363">#11363</a>)</li>
<li><a href="a1a7502f4f"><code>a1a7502</code></a> Update integrating-with-linters.md (<a href="https://github-redirect.dependabot.com/prettier/prettier/issues/11399">#11399</a>)</li>
<li><a href="f63e15d1cd"><code>f63e15d</code></a> Build(deps): Bump typescript from 4.4.2 to 4.4.3 (<a href="https://github-redirect.dependabot.com/prettier/prettier/issues/11507">#11507</a>)</li>
<li><a href="dec24722d6"><code>dec2472</code></a> Build(deps-dev): Bump <code>@​babel/preset-env</code> from 7.15.4 to 7.15.6 (<a href="https://github-redirect.dependabot.com/prettier/prettier/issues/11499">#11499</a>)</li>
<li><a href="ac3912cd47"><code>ac3912c</code></a> Build(deps-dev): Bump eslint-plugin-unicorn from 35.0.0 to 36.0.0 (<a href="https://github-redirect.dependabot.com/prettier/prettier/issues/11504">#11504</a>)</li>
<li><a href="bf5a027794"><code>bf5a027</code></a> Revert workaround for node 16.9 (<a href="https://github-redirect.dependabot.com/prettier/prettier/issues/11493">#11493</a>)</li>
<li><a href="ddee8dbaae"><code>ddee8db</code></a> Build(deps): Bump espree from 8.0.0 to 9.0.0 (<a href="https://github-redirect.dependabot.com/prettier/prettier/issues/11509">#11509</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/prettier/prettier/compare/2.3.2...2.4.1">compare view</a></li>
</ul>
</details>
<br />

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

Reviewed By: mweststrate

Differential Revision: D31150434

Pulled By: passy

fbshipit-source-id: 9babc0c91c931330dad615e74598cc29a713dbf4
2021-09-27 06:31:53 -07:00
Michel Weststrate
1a91dc53fd Upgrade TS to 4.4
Summary: per title. TS 4.4 is awesome btw, with the much improved control flow analysis.

Reviewed By: timur-valiev

Differential Revision: D30806769

fbshipit-source-id: a41aa7bf10fdb0047ddb6210082b5e1fbdfb255f
2021-09-08 09:59:38 -07:00
Pascal Hartig
d48293c30f Bump dependencies
Summary: Again, bundling a bunch of dependabot tasks I've received.

Reviewed By: mweststrate

Differential Revision: D30667465

fbshipit-source-id: 1acd29a36a642984105bbccfc75e0e3dd9e0f79b
2021-09-02 03:30:25 -07:00
Pascal Hartig
fa8827c103 Bump deps (#2736)
Summary:
Pull Request resolved: https://github.com/facebook/flipper/pull/2736

This should fix a bunch of open dependabot issues on GitHub.

Reviewed By: fabiomassimo

Differential Revision: D30539761

fbshipit-source-id: b355d41336b3b1d85b50fb0736fc1b33b12e83d0
2021-08-25 09:02:17 -07:00
Pascal Hartig
1304e7c5d7 Monday patch dep bump
Summary:
allow-large-files
Only patch bumps of >1.0.0, should be safe.

Reviewed By: jknoxville

Differential Revision: D30482302

fbshipit-source-id: b5f331822ba6931b6e5f68190c7d50c62611a153
2021-08-24 17:08:25 -07:00
Pascal Hartig
6791b29e45 Big dep bump
Summary: The markdown bump required ignoring another prop, the rest was smooth.

Reviewed By: timur-valiev

Differential Revision: D30067682

fbshipit-source-id: 6038ffe29d2e0041c81bac132eed747cbfe40f54
2021-08-03 05:18:34 -07:00
dependabot[bot]
20f4cfe70c Bump metro-cache from 0.66.1 to 0.66.2 in /desktop (#2660)
Summary:
Bumps [metro-cache](https://github.com/facebook/metro) from 0.66.1 to 0.66.2.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/facebook/metro/releases">metro-cache's releases</a>.</em></p>
<blockquote>
<h2>Release v0.66.2</h2>
<ul>
<li><strong>[Fix]</strong> Fix crash in React Native 0.65.0-rc.2. (f7c6325)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="c21daba415"><code>c21daba</code></a> Bump metro to 0.66.2</li>
<li><a href="4972832419"><code>4972832</code></a> Deploy Flow v0.155.1</li>
<li><a href="f0247a811b"><code>f0247a8</code></a> Deploy Flow v0.155.1</li>
<li><a href="f7c6325cbe"><code>f7c6325</code></a> fix(metro): cannot read property 'toUpperCase' of undefined (<a href="https://github-redirect.dependabot.com/facebook/metro/issues/687">https://github.com/facebook/flipper/issues/687</a>)</li>
<li><a href="48b5b1eaa8"><code>48b5b1e</code></a> Update xplat to Flow v0.155.0</li>
<li>See full diff in <a href="https://github.com/facebook/metro/compare/v0.66.1...v0.66.2">compare view</a></li>
</ul>
</details>
<br />

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

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

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

 ---

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

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

</details>

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

Reviewed By: passy

Differential Revision: D30044649

Pulled By: cekkaewnumchai

fbshipit-source-id: fbd9c77eb93accf8db241b37076dfdef75c82a4e
2021-08-02 14:08:04 -07:00
dependabot[bot]
b742a3c200 Bump globby from 11.0.4 to 12.0.0 in /desktop (#2631)
Summary:
Bumps [globby](https://github.com/sindresorhus/globby) from 11.0.4 to 12.0.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/sindresorhus/globby/releases">globby's releases</a>.</em></p>
<blockquote>
<h2>v12.0.0</h2>
<h3>Breaking</h3>
<ul>
<li>Require Node.js 12.20 (<a href="https://github-redirect.dependabot.com/sindresorhus/globby/issues/181">https://github.com/facebook/flipper/issues/181</a>)  5c32b4a</li>
<li>This package is now pure ESM. Please <a href="https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c">read this</a>.</li>
<li>This package now uses named exports instead of a default export
<ul>
<li><code>globby</code> → <code>{globby}</code></li>
<li><code>globby.sync</code> → <code>{globbySync}</code></li>
<li><code>globby.stream</code> → <code>{globbyStream}</code></li>
<li><code>globby.generateGlobTasks</code> → <code>{generateGlobTasks}</code></li>
<li><code>globby.hasMagic</code> → <code>{isDynamicPattern}</code></li>
<li><code>globby.gitignore</code> → <code>{isGitIgnored}</code></li>
<li><code>globby.gitignore.sync</code> → <code>{isGitIgnoredSync}</code></li>
</ul>
</li>
</ul>
<pre lang="diff"><code>-const globby = require('globby');
+import {globby} from 'globby';
</code></pre>
<p><a href="https://github.com/sindresorhus/globby/compare/v11.0.4...v12.0.0">https://github.com/sindresorhus/globby/compare/v11.0.4...v12.0.0</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="24453e6bff"><code>24453e6</code></a> 12.0.0</li>
<li><a href="662cafc794"><code>662cafc</code></a> Minor tweaks</li>
<li><a href="5c32b4ab94"><code>5c32b4a</code></a> Require Node.js 12.20 and move to ESM (<a href="https://github-redirect.dependabot.com/sindresorhus/globby/issues/181">https://github.com/facebook/flipper/issues/181</a>)</li>
<li>See full diff in <a href="https://github.com/sindresorhus/globby/compare/v11.0.4...v12.0.0">compare view</a></li>
</ul>
</details>
<br />

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

Reviewed By: timur-valiev

Differential Revision: D30012641

Pulled By: passy

fbshipit-source-id: e37e70084e8169d567361e22acce44848ef7d2c6
2021-08-02 05:36:00 -07:00
Pascal Hartig
27eaf4f03d Tuesday dep bump
Summary:
allow-large-files
Got a ton of open bumps in GitHub. Want to address a bunch of them in one swoop.

Reviewed By: jknoxville, nikoant

Differential Revision: D29933570

fbshipit-source-id: d5dc18fab22e8c5b300ab318e60dd1514aecfd52
2021-07-27 11:42:46 -07:00
dependabot[bot]
52c262cc78 Bump metro-cache from 0.66.0 to 0.66.1 in /desktop (#2591)
Summary:
Bumps [metro-cache](https://github.com/facebook/metro) from 0.66.0 to 0.66.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/facebook/metro/releases">metro-cache's releases</a>.</em></p>
<blockquote>
<h2>Release v0.66.1</h2>
<ul>
<li><strong>[Feature]</strong> Add option to use the Hermes parser in the transformer. (6dae163)</li>
<li><strong>[Feature]</strong> Update the list of default React Native lazy imports to match the <a href="https://github.com/facebook/metro/blob/HEAD/facebook/react-native@ad0ccac">removal of Picker</a>, which was already deprecated. (7dcb20d)</li>
<li><strong>[Feature]</strong> Make the input transform options (e.g. <code>platform</code>) available to <code>experimentalSerializerHook</code> and <code>customSerializer</code>. (<a href="https://github-redirect.dependabot.com/facebook/metro/issues/679">https://github.com/facebook/flipper/issues/679</a>)</li>
<li><strong>[Fix]</strong> Avoid triggering Babel scope caching bugs. (4fea2bd, 1370b7a)</li>
<li><strong>[Fix]</strong> Fix Hermes debugger proxy for IPv6. (<a href="https://github-redirect.dependabot.com/facebook/metro/issues/662">https://github.com/facebook/flipper/issues/662</a>)</li>
<li><strong>[Types]</strong> Remove documentation and types for the <code>postMinifyProcess</code> option which has been broken since Metro v0.33.0. (5d778de)</li>
<li><strong>[Experimental]</strong> Various unstable additions to the transformer config. <em>These are not covered by semver and can change at any time.</em> (6482241, 3390274, 5b913fa, <a href="https://github-redirect.dependabot.com/facebook/metro/issues/677">https://github.com/facebook/flipper/issues/677</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="2b44ec39b4"><code>2b44ec3</code></a> Publish 0.66.1</li>
<li><a href="3bd12ad712"><code>3bd12ad</code></a> Remove biased terminology in test file</li>
<li><a href="b5adfa00a5"><code>b5adfa0</code></a> Explicitly turn off indexed_access flowconfig option in Xplat</li>
<li><a href="57106d2736"><code>57106d2</code></a> Add transformOptions to each graph. Update tests. (<a href="https://github-redirect.dependabot.com/facebook/metro/issues/679">https://github.com/facebook/flipper/issues/679</a>)</li>
<li><a href="598de6f537"><code>598de6f</code></a> Add experimental transformer setting for disabling require() renaming (<a href="https://github-redirect.dependabot.com/facebook/metro/issues/677">https://github.com/facebook/flipper/issues/677</a>)</li>
<li><a href="25be2a8e28"><code>25be2a8</code></a> Update inspectorProxy with IPV6 localhost address (<a href="https://github-redirect.dependabot.com/facebook/metro/issues/662">https://github.com/facebook/flipper/issues/662</a>)</li>
<li><a href="fb0a075647"><code>fb0a075</code></a> Support processing grouped assets in transformCommand</li>
<li><a href="42cca5e4d3"><code>42cca5e</code></a> Update library command to support early grouping of asset files</li>
<li><a href="47fe403c87"><code>47fe403</code></a> Accessibility improvement (<a href="https://github-redirect.dependabot.com/facebook/metro/issues/669">https://github.com/facebook/flipper/issues/669</a>)</li>
<li><a href="a400debcc7"><code>a400deb</code></a> Deploy v0.154.0 to xplat</li>
<li>Additional commits viewable in <a href="https://github.com/facebook/metro/compare/v0.66.0...v0.66.1">compare view</a></li>
</ul>
</details>
<br />

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

Reviewed By: mweststrate

Differential Revision: D29752889

Pulled By: passy

fbshipit-source-id: 2e2371e63fc4ef8cc2e03cf4828c33a688691380
2021-07-20 02:19:21 -07:00
Pascal Hartig
3981ac9b1e Monday dep bump
Summary:
Going through all the patch updates and other small updates to pre-empt dependabot.

allow-large-files

Reviewed By: jknoxville

Differential Revision: D29547777

fbshipit-source-id: 86ef2408da0564049916cd96d66665074cdc23f2
2021-07-05 08:30:31 -07:00
Pascal Hartig
0e1f8e45ec Refactor out strip source map fn
Summary: Remove the duplicate function and centralise it as nikoant suggested.

Reviewed By: fabiomassimo

Differential Revision: D29548480

fbshipit-source-id: 3e931cc88198415017c557c6b7c81cb35c3f22c9
2021-07-05 06:37:09 -07:00
Anton Nikolaev
56f502af07 Exclude docs from package checksum computation
Summary: We don't need to re-publish plugin package when only docs are changed, so excluding "docs" from checksum computation

Differential Revision: D29508239

fbshipit-source-id: dfae89432f68b784caf07ae24ba7711f76c649b4
2021-07-01 02:59:09 -07:00
Pascal Hartig
bf1b10c130 Tuesday dep bump
Summary:
allow-large-files

More easy patch version updates.

Reviewed By: jknoxville

Differential Revision: D29453190

fbshipit-source-id: ef9bd37317f9e8e1809d624db5ed62ce34b56931
2021-06-29 09:33:22 -07:00
Pascal Hartig
77612a3f7b Strip source map URL from bundled plugins
Summary: Sandcastle embedded the box ID in the source map URL which caused it to invalidate the caches. It shouldn't be there to begin with but the Metro option doesn't work as it's documented.

Reviewed By: nikoant

Differential Revision: D29456824

fbshipit-source-id: 5d8c5f29e2b344d046c802693e4da68fda92b8db
2021-06-29 07:48:05 -07:00