Summary:
Never really liked this code. Before this change, calls to connect were blocking.
Because of this, we had to make use of promises and a bit of really not that good-looking code.
So, this change makes connect non-blocking meaning that we make full use of our event handler.
These changes contain:
- CSR is not getting generated after each failed attempt.
- Connect is no longer blocking.
- Do not report events via the handler when explicitly disconnecting.
Reviewed By: jknoxville
Differential Revision: D46853228
fbshipit-source-id: 00e6a9c7c039a756175fe14982959e078d92bacb
Summary:
Bumps [metro-config](https://github.com/facebook/metro) from 0.76.0 to 0.76.4.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/facebook/metro/releases">metro-config's releases</a>.</em></p>
<blockquote>
<h2>v0.76.4</h2>
<ul>
<li><strong>[Feature]</strong>: Support the <a href="https://developer.chrome.com/articles/x-google-ignore-list/"><code>x_google_ignoreList</code></a> source map extension. (<a href="https://redirect.github.com/facebook/metro/pull/973">facebook/metro#973</a>, 82bd64a9720174a9e2a02fb73bbef292153e20f1 by <a href="https://github.com/motiz88"><code>@motiz88</code></a>)</li>
<li><strong>[Feature]</strong>: Support bundling KTX files as image assets. (<a href="https://redirect.github.com/facebook/metro/pull/975">facebook/metro#975</a> by <a href="https://github.com/rshest"><code>@rshest</code></a>)</li>
<li><strong>[Fix]</strong>: Fix crash on a module added+modified+removed between updates. (5d7305e2f3a9f5f4aebc889a452afb03b1db12a7 by <a href="https://github.com/robhogan"><code>@robhogan</code></a>)</li>
<li><strong>[Fix]</strong>: Fix missed modification on module removed+modified+added between updates. (5d7305e2f3a9f5f4aebc889a452afb03b1db12a7 by <a href="https://github.com/robhogan"><code>@robhogan</code></a>)</li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/facebook/metro/compare/v0.76.3...v0.76.4">https://github.com/facebook/metro/compare/v0.76.3...v0.76.4</a></p>
<h2>v0.76.3</h2>
<ul>
<li><strong>[Feature]</strong>: Support custom <code>__loadBundleAsync</code> implementations in the default <code>asyncRequire</code> function. See the <a href="https://github.com/react-native-community/discussions-and-proposals/blob/main/proposals/0605-lazy-bundling.md">lazy bundling RFC</a> for more details. (<a href="ac3adced45</a>, <a href="f07ce5c455</a> by <a href="https://github.com/motiz88"><code>@motiz88</code></a>)</li>
<li><strong>[Feature]</strong>: Support <code>lazy</code> parameter in bundle requests. See the <a href="https://github.com/react-native-community/discussions-and-proposals/blob/main/proposals/0605-lazy-bundling.md">lazy bundling RFC</a> for more details. (<a href="4ef14f9a2f</a> by <a href="https://github.com/motiz88"><code>@motiz88</code></a>)</li>
<li><strong>[Feature]</strong>: Preserve comments in unminified builds, while continuing to strip all comments from minified builds. (<a href="https://redirect.github.com/facebook/metro/pull/967">facebook/metro#967</a> by <a href="https://github.com/tido64"><code>@tido64</code></a>)</li>
<li><strong>[Deprecated]</strong>: The <code>transformer.asyncRequireModulePath</code> config option is deprecated. Use <a href="https://github.com/react-native-community/discussions-and-proposals/blob/main/proposals/0605-lazy-bundling.md#__loadbundleasync-in-metro"><code>__loadBundleAsync</code></a> instead.(<a href="c7b684f0ae</a> by <a href="https://github.com/motiz88"><code>@motiz88</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> Package Exports unstable_conditionNames now defaults to ['require', 'import'] (<a href="e70ceef126</a> by <a href="https://github.com/huntie"><code>@huntie</code></a>)</li>
<li><strong>[Experimental]</strong> Removed <code>server.experimentalImportBundleSupport</code> config option. (<a href="4ef14f9a2f</a> by <a href="https://github.com/motiz88"><code>@motiz88</code></a>)</li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/facebook/metro/compare/v0.76.2...v0.76.3">https://github.com/facebook/metro/compare/v0.76.2...v0.76.3</a></p>
<h2>v0.76.2</h2>
<ul>
<li><strong>[Feature]</strong>: Added customizeStack hook to Metro's <code>/symbolicate</code> endpoint to allow custom frame skipping logic on a stack level. (<a href="ce266ddafd</a> by <a href="https://github.com/GijsWeterings"><code>@GijsWeterings</code></a>)</li>
<li><strong>[Feature]</strong>: Re-export <code>metro-core</code>'s <code>Terminal</code> from <code>metro</code>. (<a href="86e3f934d4</a> by <a href="https://github.com/robhogan"><code>@robhogan</code></a>)</li>
<li><strong>[Feature]</strong>: Re-export <code>metro-config</code>'s <code>resolveConfig</code> from <code>metro</code>. (<a href="cc1666415f</a> by <a href="https://github.com/robhogan"><code>@robhogan</code></a>)</li>
<li><strong>[Types]</strong>: Remove dependency on <code>types/babel__code-frame</code>. (<a href="41cdc034a9</a> by <a href="https://github.com/robhogan"><code>@robhogan</code></a>)</li>
<li><strong>[Types]</strong>: Remove dependency on <code>types/ws</code>. (<a href="7deb525916</a> by <a href="https://github.com/robhogan"><code>@robhogan</code></a>)</li>
<li><strong>[Types]</strong>: Fix TypeScript types entry point for metro-source-map. (<a href="3238bbc9f4</a> by <a href="https://github.com/huntie"><code>@huntie</code></a>)</li>
<li><strong>[Deprecated]</strong>: Deprecate <code>ResolutionContext.getPackageForModule</code>. (<a href="2d0a01cd7e</a> by <a href="https://github.com/huntie"><code>@huntie</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>: Pass full path and query params to <code>asyncRequire</code> for lazy bundles. (<a href="61a30b7fc2</a> by <a href="https://github.com/motiz88"><code>@motiz88</code></a>)</li>
<li><strong>[Experimental]</strong>: Fix bug where Package Exports warnings may have been logged for nested <code>node_modules</code> path candidates. (<a href="29c77bff31</a> by <a href="https://github.com/huntie"><code>@huntie</code></a>)</li>
<li><strong>[Experimental]</strong>: Fix <code>package.json</code> discovery against root package specifiers for Package Exports. (<a href="b995303024</a> by <a href="https://github.com/huntie"><code>@huntie</code></a>, fixes <a href="https://redirect.github.com/facebook/metro/issues/965">facebook/metro#965</a> reported by <a href="https://github.com/shamilovtim"><code>@shamilovtim</code></a>)</li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/facebook/metro/compare/v0.76.1...v0.76.2">https://github.com/facebook/metro/compare/v0.76.1...v0.76.2</a></p>
<h2>v0.76.1</h2>
<ul>
<li><strong>[Feature]</strong>: Support custom transformer/resolver options in <code>metro build</code> and <code>runBuild</code> API. (<a href="fcfecc9672</a> by <a href="https://github.com/motiz88"><code>@motiz88</code></a>)</li>
<li><strong>[Feature]</strong>: <code>metro get-dependencies --entryFile <entryFile></code> can now be called as <code>metro get-dependencies <entryFile></code>. (<a href="6fdce04007</a> by <a href="https://github.com/huntie"><code>@huntie</code></a>)</li>
<li><strong>[Feature]</strong>: Add <code>Content-Type</code> and <code>Content-Length</code> headers for assets to Metro server. (<a href="https://redirect.github.com/facebook/metro/pull/953">facebook/metro#953</a> by <a href="https://github.com/aleqsio"><code>@aleqsio</code></a>, <a href="https://redirect.github.com/facebook/metro/pull/961">facebook/metro#961</a> by <a href="https://github.com/byCedric"><code>@byCedric</code></a>)</li>
<li><strong>[Feature]</strong>: Expose <code>mergeConfig</code> util from <code>metro</code> package. (<a href="aa8ec904ce</a> by <a href="https://github.com/huntie"><code>@huntie</code></a>)</li>
<li><strong>[Fix]</strong>: <code>metro-file-map</code>: consistently abort crawl when <code>end()</code> is called. (<a href="51877a8c50</a> by <a href="https://github.com/motiz88"><code>@motiz88</code></a>)</li>
<li><strong>[Fix]</strong>: <code>metro-config</code>: Don't mutate argument to <code>loadConfig</code>. (<a href="38ec62d1a0</a> by <a href="https://github.com/motiz88"><code>@motiz88</code></a>)</li>
<li><strong>[Fix]</strong>: Babel transformers: Provide correct absolute source path to plugins when Metro is not run from the project root. (<a href="de19bbd33f</a> by <a href="https://github.com/robhogan"><code>@robhogan</code></a>)</li>
<li><strong>[Fix]</strong>: <a href="https://facebook.github.io/metro/docs/configuration/#assetexts"><code>resolver.assetExts</code></a> will now match asset files for extension values that include a dot (<code>.</code>). (<a href="6d65a328e6</a> by <a href="https://github.com/huntie"><code>@huntie</code></a>)</li>
<li><strong>[Fix]</strong>: Don't register an <a href="https://nodejs.org/api/process.html#event-unhandledrejection"><code>unhandledRejection</code></a> listener, fix spammy EventEmitter leak warning. (<a href="833f2ffc36</a> by <a href="https://github.com/motiz88"><code>@motiz88</code></a>)</li>
<li><strong>[Types]</strong>: Add bundled TypeScript definitions (partial) for all packages previously on DefinitelyTyped. (<a href="c022c361d0</a>, <a href="07732e778b</a>, <a href="9ee5280bd4</a> by <a href="https://github.com/huntie"><code>@huntie</code></a>, with <a href="https://github.com/afoxman"><code>@afoxman</code></a> and <a href="https://github.com/tido64"><code>@tido64</code></a>)</li>
</ul>
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="5d7305e2f3"><code>5d7305e</code></a> Fix graph delta bugs when a dependency is added+modified+removed / removed+mo...</li>
<li><a href="cc9a3463ae"><code>cc9a346</code></a> Release 0.76.4</li>
<li><a href="d21cff8720"><code>d21cff8</code></a> Bump TypeScript in template from 4.8.4 to 5.0.4</li>
<li><a href="024caf7349"><code>024caf7</code></a> Remove Promise libdef override in xplat</li>
<li><a href="c11f75acfc"><code>c11f75a</code></a> Bump "image-size" dependency version 0.6.0->1.0.2 and enable KTX support (<a href="https://redirect.github.com/facebook/metro/issues/975">https://github.com/facebook/flipper/issues/975</a>)</li>
<li><a href="4bcee6a108"><code>4bcee6a</code></a> upgrade to flow v0.205.1</li>
<li><a href="e04c65d4a6"><code>e04c65d</code></a> Codemod <code>$Shape</code> to <code>Partial</code>, some final updates</li>
<li><a href="97d5544f8d"><code>97d5544</code></a> Deploy 0.205.0 to xplat (<a href="https://redirect.github.com/facebook/metro/issues/37172">#37172</a>)</li>
<li><a href="b2facd9e14"><code>b2facd9</code></a> Add package migration guide to Package Exports docs</li>
<li><a href="453f3a677a"><code>453f3a6</code></a> Add Package Exports guide detailing breaking changes</li>
<li>Additional commits viewable in <a href="https://github.com/facebook/metro/compare/v0.76.0...v0.76.4">compare view</a></li>
</ul>
</details>
<br />
[](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/4741
Reviewed By: passy
Differential Revision: D46015927
Pulled By: ivanmisuno
fbshipit-source-id: fe21a81b1d2943132e1e5a8d369b98df5af3f6b7
Summary:
Bumps [metro-config](https://github.com/facebook/metro) from 0.75.0 to 0.76.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/facebook/metro/releases">metro-config's releases</a>.</em></p>
<blockquote>
<h2>v0.76.0</h2>
<ul>
<li><strong>[Breaking]</strong>: Increase minimum Node version from 14 to 16. (<a href="e5950aeaf0</a> by <a href="https://github.com/huntie"><code>@huntie</code></a>)</li>
<li><strong>[Breaking]</strong>: Remove <code>isAssetFile</code> from custom resolver context, add <code>assetExts</code>. (<a href="c6548f7ccc</a> by <a href="https://github.com/huntie"><code>@huntie</code></a>)</li>
<li><strong>[Feature]</strong>: Support <a href="https://facebook.github.io/metro/docs/module-api#requireresolveweak"><code>require.resolveWeak()</code></a>. (<a href="354d6e487a</a> by <a href="https://github.com/motiz88"><code>@motiz88</code></a>)</li>
<li><strong>[Fix]</strong>: Don't over-invalidate on symlink changes if resolution through symlinks is not enabled. (<a href="2303c10b6b</a> by <a href="https://github.com/robhogan"><code>@robhogan</code></a>)</li>
<li><strong>[Fix]</strong>: Returning <code>false</code> from <a href="https://facebook.github.io/metro/docs/resolution#redirectmodulepath-string--string--false"><code>context.redirectModulePath</code></a> will resolve to empty module in all cases. (<a href="0f1846a64d</a> by <a href="https://github.com/huntie"><code>@huntie</code></a>)</li>
<li><strong>[Fix]</strong>: Respect extensionless entries in <code>browser</code>, <code>react-native</code> etc when resolving subpath package specifiers. (<a href="7e922270de</a> by <a href="https://github.com/huntie"><code>@huntie</code></a>)</li>
<li><strong>[Fix]</strong>: Remove undocumented Meta-only <code>__jsResource</code> and <code>__conditionallySplitJsResource</code> functions from module API. (<a href="f1d905bb60</a> and <a href="69c8fc707b</a> by <a href="https://github.com/motiz88"><code>@motiz88</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>: Fixes and improvements for symlink support. (<a href="0e2a70a439</a>, <a href="3bef954304</a>, and <a href="eeb211fdcf</a> by <a href="https://github.com/robhogan"><code>@robhogan</code></a>)</li>
<li><strong>[Experimental]</strong>: Fix bug where <code>"exports"</code> field would be used on relative imports within a package. (<a href="cd25c2b5bb</a> by <a href="https://github.com/huntie"><code>@huntie</code></a>)</li>
</ul>
<h2>v0.75.1</h2>
<ul>
<li><strong>[Feature]</strong>: <code>metro-inspector-proxy</code>: Add a human-readable reference to each inspector entries/pages.(<a href="https://github-redirect.dependabot.com/facebook/metro/pull/921">facebook/metro#921</a> by <a href="https://github.com/byCedric"><code>@byCedric</code></a>)</li>
<li><strong>[Feature]</strong>: <code>metro-inspector-proxy</code>: Report errors in the console. (<a href="da8b41b279</a> by <a href="https://github.com/mattbfb"><code>@mattbfb</code></a>)</li>
<li><strong>[Fix]</strong>: Race condition where a very recently modified file might have missing metadata.(<a href="baf28ab0ee</a> by <a href="https://github.com/robhogan"><code>@robhogan</code></a>)</li>
<li><strong>[Fix]</strong>: Source maps may have invalid entries when using Terser minification. (<a href="https://github-redirect.dependabot.com/facebook/metro/pull/928">facebook/metro#928</a> by <a href="https://github.com/robhogan"><code>@robhogan</code></a>)</li>
<li><strong>[Fix]</strong>: <code>metro-inspector-proxy</code>: Fetch source maps from Metro. (<a href="6690b393cc</a> by <a href="https://github.com/mattbfb"><code>@mattbfb</code></a>)</li>
<li><strong>[Fix]</strong>: Mitigate potential source map mismatches with concurrent transformations due to <a href="https://github-redirect.dependabot.com/terser/terser/issues/1341">terser#1341</a>. (<a href="https://github-redirect.dependabot.com/facebook/metro/pull/929">facebook/metro#929</a> by <a href="https://github.com/robhogan"><code>@robhogan</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 initial_build annotation to Resolving and Transforming Dependencies (<a href="fc83b521b2</a> by <a href="https://github.com/blakef"><code>@blakef</code></a>)</li>
<li><strong>[Experimental]</strong>: Implement support for Package Exports (enabled via <code>resolver.unstable_enablePackageExports</code>) (<a href="4d7ab38ba9</a>, <a href="38b96f872a</a>, <a href="216d3e234c</a>, <a href="6e6f36fd98</a> by <a href="https://github.com/huntie"><code>@huntie</code></a>)</li>
<li><strong>[Experimental]</strong>: Implement support for symlinks (enabled via <code>resolver.unstable_enableSymlinks</code>) (<a href="https://github-redirect.dependabot.com/facebook/metro/pull/925">facebook/metro#925</a>, <a href="https://github-redirect.dependabot.com/facebook/metro/pull/926">facebook/metro#926</a>, etc. by <a href="https://github.com/robhogan"><code>@robhogan</code></a>)</li>
</ul>
<p><strong>Full Changelog:</strong> <a href="https://github.com/facebook/metro/compare/v0.75.0...v0.75.1">https://github.com/facebook/metro/compare/v0.75.0...v0.75.1</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="64d85f0c06"><code>64d85f0</code></a> Release 0.76.0</li>
<li><a href="c6548f7ccc"><code>c6548f7</code></a> Add assetExts to ResolutionContext, remove isAssetFile</li>
<li><a href="64426854e3"><code>6442685</code></a> Upgrade to Flow 0.201.0</li>
<li><a href="4876b6e701"><code>4876b6e</code></a> Bump <code>@braintree/sanitize-url</code> from 6.0.0 to 6.0.2 in /website (<a href="https://github-redirect.dependabot.com/facebook/metro/issues/935">https://github.com/facebook/flipper/issues/935</a>)</li>
<li><a href="79baa715cd"><code>79baa71</code></a> Update website Open Graph image</li>
<li><a href="3cbd9ae2ad"><code>3cbd9ae</code></a> Fix Haste map cleanup with Haste module duplicates</li>
<li><a href="cd25c2b5bb"><code>cd25c2b</code></a> Update exports resolution to ignore absolute and relative imports</li>
<li><a href="7e922270de"><code>7e92227</code></a> Fix resolution edge case for package subpaths redirected by mainFields</li>
<li><a href="4c520eda2e"><code>4c520ed</code></a> Document module API</li>
<li><a href="ad31b162d8"><code>ad31b16</code></a> Replace regex String.replace uses with String.replaceAll (drop Node.js 14 com...</li>
<li>Additional commits viewable in <a href="https://github.com/facebook/metro/compare/v0.75.0...v0.76.0">compare view</a></li>
</ul>
</details>
<br />
[](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/4580
Reviewed By: ivanmisuno
Differential Revision: D44215164
Pulled By: mweststrate
fbshipit-source-id: 1fb6d4bd05f5e4ca85f2b2fa3df084721f3cf003
Summary:
In newer builds of react-native if you passed parameters PRODUCTION=1, flipper pods won't get installed
you can see that in their codebase here [react_native_pods.rb](6a43fafd78/scripts/react_native_pods.rb (L140))
so when building ios `react-native-flipper` set `compiler_flags = '-DFB_SONARKIT_ENABLED=1'` in the podspec file
which initializeFlipper and lead to the following error:
`node_modules/react-native-flipper/ios/FlipperReactNativeJavaScriptPluginManager.h:12:9: 'FlipperKit/FlipperClient.h' file not found`
## Changelog
use same condition as react-native to wrap `s.compiler_flags = compiler_flags`
and conditionally pass `compiler_flags = '-DFB_SONARKIT_ENABLED=1'` to compiler_flags to avoid build problems
Pull Request resolved: https://github.com/facebook/flipper/pull/4275
Test Plan:
To reproduce
- create new react-native app
- install react-native-flipper `yarn add react-native-flipper`
- run `env PRODUCTION=1 npx pod-install `
- run `yarn ios`
Before patch:
```sh
node_modules/react-native-flipper/ios/FlipperReactNativeJavaScriptPluginManager.h:12:9: 'FlipperKit/FlipperClient.h' file not found
```
After patch:
```sh
▸ Build Succeeded
success Successfully built the app
```
Reviewed By: jknoxville
Differential Revision: D41298345
Pulled By: mweststrate
fbshipit-source-id: fb46772d46b8105fccb1abb673502bca428eea1d
Summary:
Bumps [metro-config](https://github.com/facebook/metro) from 0.73.1 to 0.75.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/facebook/metro/releases">metro-config'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 "unknown module" 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 "engines" field to all packages to indicate minimum Node JS version</li>
<li><a href="e890c997d0"><code>e890c99</code></a> Back out "Process files before adding them to <code>FileSystem</code>"</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.73.1...v0.75.0">compare view</a></li>
</ul>
</details>
<br />
[](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/4488
Reviewed By: lblasa
Differential Revision: D43345664
Pulled By: ivanmisuno
fbshipit-source-id: 5d790d6f3990692f6c9021c9c3ee8c62fade5a7e
Summary:
allow-large-files
Bumps [react-native](https://github.com/facebook/react-native) from 0.68.2 to 0.68.4.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/facebook/react-native/releases">react-native's releases</a>.</em></p>
<blockquote>
<h2>0.68.4</h2>
<h3>Changed</h3>
<ul>
<li>Bump version of <code>promise</code> from 8.0.3 to 8.2.0, enabling <code>Promise.allSettled</code> (<a href="951538c080">951538c080</a> by <a href="https://github.com/retyui"><code>@retyui</code></a>)</li>
<li>Bump react-native-codegen to 0.0.18 (<a href="40a3ae3613">40a3ae3613</a> by <a href="https://github.com/dmytrorykun"><code>@dmytrorykun</code></a>)</li>
</ul>
<h4>Android specific</h4>
<ul>
<li>Correctly resolve classes with FindClass(..) (<a href="361b310bcc">361b310bcc</a> by <a href="https://github.com/evancharlton"><code>@evancharlton</code></a>)</li>
</ul>
<h3>Fixed</h3>
<ul>
<li>Codegen should ignore <code>.d.ts</code> files (<a href="0f0d52067c">0f0d52067c</a> by <a href="https://github.com/tido64"><code>@tido64</code></a>)</li>
</ul>
<h4>iOS specific</h4>
<ul>
<li>Fix the way the orientation events are published (<a href="7d42106d4c">7d42106d4c</a> by <a href="https://github.com/lbaldy">lbaldy</a>)</li>
</ul>
<hr />
<p>You can participate in the conversation on the status of this release in this <a href="https://github.com/reactwg/react-native-releases/discussions/37">discussion</a></p>
<hr />
<p>To help you upgrade to this version, you can use the <a href="https://react-native-community.github.io/upgrade-helper/">upgrade helper</a> ⚛️</p>
<hr />
<p>You can find the whole changelog history in the <a href="https://github.com/facebook/react-native/blob/main/CHANGELOG.md">changelog.md file</a></p>
<h2>0.68.3</h2>
<h3>Changed</h3>
<h4>Android specific</h4>
<ul>
<li>Let's not build reactnativeutilsjni shared library (<a href="af9225ec5f">af9225ec5f</a> by <a href="https://github.com/SparshaSaha"><code>@SparshaSaha</code></a>)</li>
<li>Modified <strong>getDefaultJSExecutorFactory</strong> method (<a href="87cfd386cb">87cfd386cb</a> by <a href="https://github.com/KunalFarmah98"><code>@KunalFarmah98</code></a>)</li>
</ul>
<h3>Fixed</h3>
<ul>
<li>Use monotonic clock for performance.now() (<a href="114d31feee">114d31feee</a>)</li>
</ul>
<h4>Android specific</h4>
<ul>
<li>Logging a soft error when ReactRootView has an id other than -1 instead of crashing the app in hybrid apps (<a href="1ca2c24930">1ca2c24930</a> by <a href="https://github.com/Kunal-Airtel2022"><code>@Kunal-Airtel2022</code></a>)</li>
</ul>
<hr />
<p>You can participate in the conversation on the status of this release in this <a href="https://github.com/reactwg/react-native-releases/discussions/29">discussion</a></p>
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/facebook/react-native/blob/main/CHANGELOG.md">react-native's changelog</a>.</em></p>
<blockquote>
<h2>v0.68.4</h2>
<h3>Changed</h3>
<ul>
<li>Bump version of <code>promise</code> from 8.0.3 to 8.2.0, enabling <code>Promise.allSettled</code> (<a href="951538c080">951538c080</a> by <a href="https://github.com/retyui"><code>@retyui</code></a>)</li>
<li>Bump react-native-codegen to 0.0.18 (<a href="40a3ae3613">40a3ae3613</a> by <a href="https://github.com/dmytrorykun"><code>@dmytrorykun</code></a>)</li>
</ul>
<h4>Android specific</h4>
<ul>
<li>Correctly resolve classes with FindClass(..) (<a href="361b310bcc">361b310bcc</a> by <a href="https://github.com/evancharlton"><code>@evancharlton</code></a>)</li>
</ul>
<h3>Fixed</h3>
<ul>
<li>Codegen should ignore <code>.d.ts</code> files (<a href="0f0d52067c">0f0d52067c</a> by <a href="https://github.com/tido64"><code>@tido64</code></a>)</li>
</ul>
<h4>iOS specific</h4>
<ul>
<li>Fix the way the orientation events are published (<a href="7d42106d4c">7d42106d4c</a> by <a href="https://github.com/lbaldy">lbaldy</a>)</li>
</ul>
<h2>v0.68.3</h2>
<h3>Changed</h3>
<h4>Android specific</h4>
<ul>
<li>Let's not build reactnativeutilsjni shared library (<a href="af9225ec5f">af9225ec5f</a> by <a href="https://github.com/SparshaSaha"><code>@SparshaSaha</code></a>)</li>
<li>Modified <strong>getDefaultJSExecutorFactory</strong> method (<a href="87cfd386cb">87cfd386cb</a> by <a href="https://github.com/KunalFarmah98"><code>@KunalFarmah98</code></a>)</li>
</ul>
<h3>Fixed</h3>
<ul>
<li>Use monotonic clock for performance.now() (<a href="114d31feee">114d31feee</a>)</li>
</ul>
<h4>Android specific</h4>
<ul>
<li>Logging a soft error when ReactRootView has an id other than -1 instead of crashing the app in hybrid apps (<a href="1ca2c24930">1ca2c24930</a> by <a href="https://github.com/Kunal-Airtel2022"><code>@Kunal-Airtel2022</code></a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="b55518c4bf"><code>b55518c</code></a> [0.68.4] Bump version numbers</li>
<li><a href="40a3ae3613"><code>40a3ae3</code></a> Bump react-native-codegen to 0.0.18</li>
<li><a href="782e0bff4a"><code>782e0bf</code></a> Add support <code>Promise.allSettled</code> out of box (<a href="https://github-redirect.dependabot.com/facebook/react-native/issues/34544">#34544</a>)</li>
<li><a href="e22ed7d676"><code>e22ed7d</code></a> fix: Correctly resolve classes with FindClass(..) (<a href="https://github-redirect.dependabot.com/facebook/react-native/issues/34533">#34533</a>)</li>
<li><a href="4575ef516f"><code>4575ef5</code></a> Fix codegen trying to parse <code>.d.ts</code> files (<a href="https://github-redirect.dependabot.com/facebook/react-native/issues/34439">#34439</a>)</li>
<li><a href="4f7eb6197f"><code>4f7eb61</code></a> prevent from publishing dimensions change event when app changes state (<a href="https://github-redirect.dependabot.com/facebook/react-native/issues/34014">#34014</a>)</li>
<li><a href="36153e2557"><code>36153e2</code></a> [0.68.3] Bump version numbers</li>
<li><a href="d2d244cb8f"><code>d2d244c</code></a> [LOCAL] align pods version config with the rest of the repo</li>
<li><a href="af9225ec5f"><code>af9225e</code></a> Let's not build reactnativeutilsjni shared library (<a href="https://github-redirect.dependabot.com/facebook/react-native/issues/34345">#34345</a>)</li>
<li><a href="4555fc7865"><code>4555fc7</code></a> Added additional builder method receiving arguments for using jsc or hermes t...</li>
<li>Additional commits viewable in <a href="https://github.com/facebook/react-native/compare/v0.68.2...v0.68.4">compare view</a></li>
</ul>
</details>
<br />
[](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/4206
Reviewed By: aigoncharov
Differential Revision: D40334958
Pulled By: mweststrate
fbshipit-source-id: d9f520596ea7c9868686d5f7d9c41e53abfcb4dc
Summary:
Bumps [metro-config](https://github.com/facebook/metro) from 0.72.3 to 0.73.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/facebook/metro/releases">metro-config's releases</a>.</em></p>
<blockquote>
<h2>Release v0.73.1</h2>
<ul>
<li><strong>[Fix]</strong>: Generate a unique name for each Watchman subscription. (3b0e78a76f4eea9f02e8b8464cf5b5e4549d6ac7)</li>
</ul>
<blockquote>
<p>NOTE: Experimental features are not covered by semver and can change at any time.</p>
</blockquote>
<ul>
<li><strong>[Experimental][Fix]</strong>: Normalize file paths for <code>require.context</code> on Windows (<a href="https://github-redirect.dependabot.com/facebook/metro/pull/876">facebook/metro#876</a> by <a href="https://github.com/byCedric"><code>@byCedric</code></a>)</li>
</ul>
<p><strong>Full Changelog:</strong> <a href="https://github.com/facebook/metro/compare/v0.73.0...v0.73.1">https://github.com/facebook/metro/compare/v0.73.0...v0.73.1</a></p>
<h2>Release v0.73.0</h2>
<ul>
<li><strong>[Breaking]</strong> Switch default minifier from <code>uglify-es</code> to <code>terser</code>. (<a href="https://github-redirect.dependabot.com/facebook/metro/issues/871">https://github.com/facebook/flipper/issues/871</a>)</li>
<li><strong>[Breaking]</strong>: Increase minimum supported Node.js version to ^14.17.0. (<a href="https://github-redirect.dependabot.com/facebook/metro/issues/872">https://github.com/facebook/flipper/issues/872</a>)</li>
<li><strong>[Breaking]</strong>: Drop support for old (pre-CalVer) Watchman versions. (422055a5ccaca41edb1864ca07d4f810b3e03791)</li>
<li><strong>[Feature]</strong>: Support <code>fsevents</code> watcher on Apple Silicon. (<a href="https://github-redirect.dependabot.com/facebook/metro/issues/875">https://github.com/facebook/flipper/issues/875</a>)</li>
<li><strong>[Feature]</strong>: Support loading source URLs in inspector-proxy. (db19b06bdd6d2fbbe109e4f3be4b3af3489c1f1c)</li>
<li><strong>[Fix]</strong>: Log warning on unexpected error during <code>metro-file-map</code> cache read. (7028b7f51074f9ceef22258a8643d0f90de2388b)</li>
<li><strong>[Fix]</strong>: Remove exponentiation operator transform from <code>metro-react-native-babel-preset</code>. (c2365bb1d72a3773b31c05feab13a96afac484df)</li>
<li><strong>[Fix]</strong>: Don’t check <code>watchman --version</code> if <code>useWatchman</code> is false. (76c9307ed61efa7794b30b4e585cc5941ed73e16)</li>
</ul>
<p><strong>Full Changelog:</strong> <a href="https://github.com/facebook/metro/compare/v0.72.3...v0.73.0">https://github.com/facebook/metro/compare/v0.72.3...v0.73.0</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="79266cc0ef"><code>79266cc</code></a> Release 0.73.1</li>
<li><a href="3b0e78a76f"><code>3b0e78a</code></a> Use per-watch Watchman subscription names</li>
<li><a href="4bace2a9f3"><code>4bace2a</code></a> Normalize file paths for require context on Windows (<a href="https://github-redirect.dependabot.com/facebook/metro/issues/876">https://github.com/facebook/flipper/issues/876</a>)</li>
<li><a href="3ab9c00f3f"><code>3ab9c00</code></a> Fix a $FlowFixMe</li>
<li><a href="1b064f2639"><code>1b064f2</code></a> Release 0.73.0</li>
<li><a href="4b78430648"><code>4b78430</code></a> Introduce a platform allowlist for libraries</li>
<li><a href="f0e9c731da"><code>f0e9c73</code></a> Add watch-related <code>debug</code> and <code>perfLogger</code> output to <code>metro-file-map</code></li>
<li><a href="43a1ba4ca0"><code>43a1ba4</code></a> Revert D39966518: Release 0.73.0</li>
<li><a href="b83ad852ed"><code>b83ad85</code></a> Release 0.73.0</li>
<li><a href="db19b06bdd"><code>db19b06</code></a> Support loading source URLs in inspector-proxy</li>
<li>Additional commits viewable in <a href="https://github.com/facebook/metro/compare/v0.72.3...v0.73.1">compare view</a></li>
</ul>
</details>
<br />
[](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/4193
Reviewed By: aigoncharov
Differential Revision: D40334991
Pulled By: mweststrate
fbshipit-source-id: 2e069dd11263fe5c9c77b4955074a5e8ee46abe2
Summary: Allowing Flipper react native code also when FB_SONARKIT_ENABLED is defined
Reviewed By: lblasa
Differential Revision: D40224308
fbshipit-source-id: e9cf1c0e04b5748ffb5bb97fe9fd9046956b32b5