universalBuild
84 Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
bfcdb82b43 |
Move flipper-server client to flipper-frontend-core
Summary: ^ Reviewed By: aigoncharov Differential Revision: D36410944 fbshipit-source-id: 2adb5904cd0f5f15d08be22c611d6774e7533f94 |
||
|
|
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 |
||
|
|
3032736294 |
Fix type errors for flipper-server and flipper-ui-browser
Summary: Before: ``` flipper-server/src/startBaseServer.tsx(222,30): error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'string'. Type 'undefined' is not assignable to type 'string'. flipper-ui-browser/src/flipperServerConnection.tsx(25,9): error TS2322: Type 'Timeout' is not assignable to type 'number'. ``` Reviewed By: nikoant Differential Revision: D36100188 fbshipit-source-id: 1913a43109a0e068394a188d362f6a9e473e7904 |
||
|
|
1f83b4b414 |
Migrate to React 18
Summary: Sadly, we have to use the experimental version of React to decapitate React Devtools. See https://fb.workplace.com/groups/react.devtools/posts/3135684459978453/?comment_id=3135711763309056&reply_comment_id=3135760513304181 On the bright side, Replay.io and Code Sandbox also use experimental React without any problem. Reviewed By: lblasa Differential Revision: D34926473 fbshipit-source-id: 5cd63cc065c2535f0583464c7b5e37891dadaf14 |
||
|
|
f85def32fb |
Migrate from socket.io
Reviewed By: passy Differential Revision: D34787674 fbshipit-source-id: 63d7c166ea29d14c96f0646a045e3f6fa93472e2 |
||
|
|
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 |
||
|
|
c18aabd8ac |
Bump metro-runtime from 0.66.2 to 0.68.0 in /desktop (#3451)
Summary: Bumps [metro-runtime](https://github.com/facebook/metro) from 0.66.2 to 0.68.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/facebook/metro/releases">metro-runtime's releases</a>.</em></p> <blockquote> <h2>Release v0.68.0</h2> <ul> <li><strong>[Breaking]</strong> <code>resolver.resolveRequest</code> moved to the front of the resolution algorithm and <a href="https://facebook.github.io/metro/docs/configuration/#resolverequest">has a new API</a> (d81d8877c05637eac2b4ea946a9fa1e8ae869b06)</li> <li><strong>[Feature]</strong> <code>metro-react-native-babel-preset</code>: Support async iterators, "for await ... of" (<a href="https://github-redirect.dependabot.com/facebook/metro/issues/747">https://github.com/facebook/flipper/issues/747</a> by <a href="https://github.com/newyankeecodeshop"><code>@newyankeecodeshop</code></a>)</li> </ul> <p>Thanks to all of our contributors for helping improve Metro! 🚇</p> <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> & <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=" |
||
|
|
2d2b214fb7 |
Bump pretty-format from 27.4.6 to 27.5.0 in /desktop (#3414)
Summary: Bumps [pretty-format](https://github.com/facebook/jest/tree/HEAD/packages/pretty-format) from 27.4.6 to 27.5.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/facebook/jest/releases">pretty-format's releases</a>.</em></p> <blockquote> <h2>v27.5.0</h2> <h2>Features</h2> <ul> <li><code>[expect]</code> Add asymmetric matcher <code>expect.closeTo</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12243">#12243</a>)</li> <li><code>[jest-mock]</code> Added <code>mockFn.mock.lastCall</code> to retrieve last argument (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12285">#12285</a>)</li> </ul> <h2>Fixes</h2> <ul> <li><code>[expect]</code> Add a fix for <code>.toHaveProperty('')</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12251">#12251</a>)</li> <li><code>[jest-each, jest/globals]</code> Allow passing <code>ReadonlyArray</code> type of a table to <code>describe.each</code> and <code>test.each</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12297">#12297</a>)</li> <li><code>[jest/globals]</code> Add missing <code>options</code> argument to <code>jest.doMock</code> typing (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12292">#12292</a>)</li> <li><code>[jest-environment-node]</code> Add <code>atob</code> and <code>btoa</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12269">#12269</a>)</li> <li><code>[jest-matcher-utils]</code> Correct diff for expected asymmetric matchers (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12264">#12264</a>)</li> <li><code>[jest-message-util]</code> Fix <code>.getTopFrame()</code> (and <code>toMatchInlineSnapshot()</code>) with <code>mjs</code> files (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12277">#12277</a>)</li> </ul> <h2>Chore & Maintenance</h2> <ul> <li><code>[*]</code> Update <code>graceful-fs</code> to <code>^4.2.9</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11749">#11749</a>)</li> </ul> <h2>Performance</h2> <ul> <li><code>[jest-resolve]</code> perf: skip error creation on not found <code>stat</code> calls (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11749">#11749</a>)</li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/markjm"><code>@markjm</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/facebook/jest/pull/11749">facebook/jest#11749</a></li> <li><a href="https://github.com/benjamingr"><code>@benjamingr</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/facebook/jest/pull/12266">facebook/jest#12266</a></li> <li><a href="https://github.com/aduh95"><code>@aduh95</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/facebook/jest/pull/12269">facebook/jest#12269</a></li> <li><a href="https://github.com/piranna"><code>@piranna</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/facebook/jest/pull/12272">facebook/jest#12272</a></li> <li><a href="https://github.com/od-c0d3r"><code>@od-c0d3r</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/facebook/jest/pull/12234">facebook/jest#12234</a></li> <li><a href="https://github.com/davidnormo"><code>@davidnormo</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/facebook/jest/pull/12264">facebook/jest#12264</a></li> <li><a href="https://github.com/mshima"><code>@mshima</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/facebook/jest/pull/12277">facebook/jest#12277</a></li> <li><a href="https://github.com/Cambuchi"><code>@Cambuchi</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/facebook/jest/pull/12246">facebook/jest#12246</a></li> <li><a href="https://github.com/vladsholokhov"><code>@vladsholokhov</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/facebook/jest/pull/12185">facebook/jest#12185</a></li> <li><a href="https://github.com/robdy"><code>@robdy</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/facebook/jest/pull/12254">facebook/jest#12254</a></li> <li><a href="https://github.com/Michael-M-Judd"><code>@Michael-M-Judd</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/facebook/jest/pull/12212">facebook/jest#12212</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/facebook/jest/compare/v27.4.7...v27.5.0">https://github.com/facebook/jest/compare/v27.4.7...v27.5.0</a></p> <h2>v27.4.7</h2> <h2>Fixes</h2> <ul> <li><code>jest-config</code> Add missing <code>babel/core</code> dependency (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12216">#12216</a>)</li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/facebook/jest/compare/v27.4.6...v27.4.7">https://github.com/facebook/jest/compare/v27.4.6...v27.4.7</a></p> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/facebook/jest/blob/main/CHANGELOG.md">pretty-format's changelog</a>.</em></p> <blockquote> <h2>27.5.0</h2> <h3>Features</h3> <ul> <li><code>[expect]</code> Add asymmetric matcher <code>expect.closeTo</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12243">#12243</a>)</li> <li><code>[jest-mock]</code> Added <code>mockFn.mock.lastCall</code> to retrieve last argument (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12285">#12285</a>)</li> </ul> <h3>Fixes</h3> <ul> <li><code>[expect]</code> Add a fix for <code>.toHaveProperty('')</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12251">#12251</a>)</li> <li><code>[jest-each, jest/globals]</code> Allow passing <code>ReadonlyArray</code> type of a table to <code>describe.each</code> and <code>test.each</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12297">#12297</a>)</li> <li><code>[jest/globals]</code> Add missing <code>options</code> argument to <code>jest.doMock</code> typing (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12292">#12292</a>)</li> <li><code>[jest-environment-node]</code> Add <code>atob</code> and <code>btoa</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12269">#12269</a>)</li> <li><code>[jest-matcher-utils]</code> Correct diff for expected asymmetric matchers (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12264">#12264</a>)</li> <li><code>[jest-message-util]</code> Fix <code>.getTopFrame()</code> (and <code>toMatchInlineSnapshot()</code>) with <code>mjs</code> files (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12277">#12277</a>)</li> </ul> <h3>Chore & Maintenance</h3> <ul> <li><code>[*]</code> Update <code>graceful-fs</code> to <code>^4.2.9</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11749">#11749</a>)</li> </ul> <h3>Performance</h3> <ul> <li><code>[jest-resolve]</code> perf: skip error creation on not found <code>stat</code> calls (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11749">#11749</a>)</li> </ul> <h2>27.4.7</h2> <h3>Fixes</h3> <ul> <li><code>jest-config</code> Add missing <code>babel/core</code> dependency (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12216">#12216</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
||
|
|
c5dd1fc350 |
rename files from ts to tsx in flipper-* packages
Summary: mass files rename Reviewed By: nikoant Differential Revision: D33890252 fbshipit-source-id: d5afaa60af7340313a97d8e4967fe37f00abd9db |
||
|
|
08c09e6c6e |
Bump socket.io-client from 4.4.0 to 4.4.1 in /desktop (#3347)
Summary: Bumps [socket.io-client](https://github.com/socketio/socket.io-client) from 4.4.0 to 4.4.1. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/socketio/socket.io-client/releases">socket.io-client's releases</a>.</em></p> <blockquote> <h2>4.4.1</h2> <p>This release only contains minor changes. Please see the diff for more details.</p> <h4>Links:</h4> <ul> <li>Diff: <a href="https://github.com/socketio/socket.io-client/compare/4.4.0...4.4.1">https://github.com/socketio/socket.io-client/compare/4.4.0...4.4.1</a></li> <li>Server release: <a href="https://github.com/socketio/socket.io/releases/tag/4.4.1">4.4.1</a></li> <li>engine.io-client version: <code>~6.1.1</code></li> <li>ws version: <code>~8.2.3</code></li> </ul> <p>Size of the bundles:</p> <table> <thead> <tr> <th></th> <th>min</th> <th>min+gzip</th> </tr> </thead> <tbody> <tr> <td>socket.io.min.js</td> <td>40.4 KB (-)</td> <td>13.1 KB (-)</td> </tr> <tr> <td>socket.io.msgpack.min.js</td> <td>45.6 KB (-)</td> <td>14.2 KB (-)</td> </tr> <tr> <td>socket.io.esm.min.js</td> <td>33.1 KB (-)</td> <td>11.3 KB (-)</td> </tr> </tbody> </table> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/socketio/socket.io-client/blob/master/CHANGELOG.md">socket.io-client's changelog</a>.</em></p> <blockquote> <h2><a href="https://github.com/socketio/socket.io-client/compare/4.4.0...4.4.1">4.4.1</a> (2022-01-06)</h2> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
||
|
|
96b99ac23e |
Bump pretty-format from 27.4.2 to 27.4.6 in /desktop (#3262)
Summary: Bumps [pretty-format](https://github.com/facebook/jest/tree/HEAD/packages/pretty-format) from 27.4.2 to 27.4.6. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/facebook/jest/releases">pretty-format's releases</a>.</em></p> <blockquote> <h2>v27.4.6</h2> <h3>Fixes</h3> <ul> <li><code>[jest-environment-node]</code> Add <code>AbortSignal</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12157">#12157</a>)</li> <li><code>[jest-environment-node]</code> Add Missing node global <code>performance</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12002">#12002</a>)</li> <li><code>[jest-runtime]</code> Handle missing <code>mocked</code> property (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12213">#12213</a>)</li> <li><code>[jest/transform]</code> Update dependency package <code>pirates</code> to 4.0.4 (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12002">#12002</a>)</li> </ul> <h3>Performance</h3> <ul> <li><code>jest-config</code> perf: only register ts-node once when loading TS config files (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12160">#12160</a>)</li> </ul> <h3>New Contributors</h3> <ul> <li><a href="https://github.com/laozhu"><code>@laozhu</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/facebook/jest/pull/12136">facebook/jest#12136</a></li> <li><a href="https://github.com/sfiquet"><code>@sfiquet</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/facebook/jest/pull/12161">facebook/jest#12161</a></li> <li><a href="https://github.com/SimonSiefke"><code>@SimonSiefke</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/facebook/jest/pull/12002">facebook/jest#12002</a></li> <li><a href="https://github.com/Semigradsky"><code>@Semigradsky</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/facebook/jest/pull/12190">facebook/jest#12190</a></li> <li><a href="https://github.com/cmpadden"><code>@cmpadden</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/facebook/jest/pull/12204">facebook/jest#12204</a></li> <li><a href="https://github.com/LitoMore"><code>@LitoMore</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/facebook/jest/pull/12211">facebook/jest#12211</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/facebook/jest/compare/v27.4.5...v27.4.6">https://github.com/facebook/jest/compare/v27.4.5...v27.4.6</a></p> <h2>v27.4.5</h2> <h2>Fixes</h2> <ul> <li><code>[jest-worker]</code> Stop explicitly passing <code>process.env</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12141">#12141</a>)</li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/4geru"><code>@4geru</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/facebook/jest/pull/12144">facebook/jest#12144</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/facebook/jest/compare/v27.4.4...v27.4.5">https://github.com/facebook/jest/compare/v27.4.4...v27.4.5</a></p> <h2>v27.4.4</h2> <h2>Fixes</h2> <ul> <li><code>[babel-jest]</code> Add <code>process.version</code> chunk to the cache key (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12122">#12122</a>)</li> <li><code>[jest-environment]</code> Add <code>mocked</code> to <code>jest</code> object (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12133">#12133</a>)</li> <li><code>[jest-worker]</code> Stop explicitly passing <code>execArgv</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12128">#12128</a>)</li> </ul> <h2>Chore & Maintenance</h2> <ul> <li><code>[website]</code> Fix the card front that looks overlapping part of the card back</li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/aghArdeshir"><code>@aghArdeshir</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/facebook/jest/pull/12109">facebook/jest#12109</a></li> <li><a href="https://github.com/ony3000"><code>@ony3000</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/facebook/jest/pull/12127">facebook/jest#12127</a></li> <li><a href="https://github.com/liesislukas"><code>@liesislukas</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/facebook/jest/pull/12135">facebook/jest#12135</a></li> <li><a href="https://github.com/nicolo-ribaudo"><code>@nicolo-ribaudo</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/facebook/jest/pull/12128">facebook/jest#12128</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/facebook/jest/compare/v27.4.3...v27.4.4">https://github.com/facebook/jest/compare/v27.4.3...v27.4.4</a></p> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/facebook/jest/blob/main/CHANGELOG.md">pretty-format's changelog</a>.</em></p> <blockquote> <h2>27.4.6</h2> <h3>Fixes</h3> <ul> <li><code>[jest-environment-node]</code> Add <code>AbortSignal</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12157">#12157</a>)</li> <li><code>[jest-environment-node]</code> Add Missing node global <code>performance</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12002">#12002</a>)</li> <li><code>[jest-runtime]</code> Handle missing <code>mocked</code> property (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12213">#12213</a>)</li> <li><code>[jest/transform]</code> Update dependency package <code>pirates</code> to 4.0.4 (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12002">#12002</a>)</li> </ul> <h3>Performance</h3> <ul> <li><code>jest-config</code> perf: only register ts-node once when loading TS config files (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12160">#12160</a>)</li> </ul> <h2>27.4.5</h2> <h3>Fixes</h3> <ul> <li><code>[jest-worker]</code> Stop explicitly passing <code>process.env</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12141">#12141</a>)</li> </ul> <h2>27.4.4</h2> <h3>Fixes</h3> <ul> <li><code>[babel-jest]</code> Add <code>process.version</code> chunk to the cache key (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12122">#12122</a>)</li> <li><code>[jest-environment]</code> Add <code>mocked</code> to <code>jest</code> object (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12133">#12133</a>)</li> <li><code>[jest-worker]</code> Stop explicitly passing <code>execArgv</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12128">#12128</a>)</li> </ul> <h3>Chore & Maintenance</h3> <ul> <li><code>[website]</code> Fix the card front that looks overlapping part of the card back</li> </ul> <h2>27.4.3</h2> <h3>Fixes</h3> <ul> <li><code>[jest-environment-jsdom]</code> Remove <code>types/jsdom</code> dependency (and make its <code>dom</code> property <code>private</code>) (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12107">#12107</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
||
|
|
79023ee190 |
Update copyright headers from Facebook to Meta
Reviewed By: bhamodi Differential Revision: D33331422 fbshipit-source-id: 016e8dcc0c0c7f1fc353a348b54fda0d5e2ddc01 |
||
|
|
54dacb7e5d |
Make sure icons are bundled
Summary: Make sure icons are prefetched for flipper-server prod builds, like we do for electron, so that the user doesn't need an internet connection to see icons Reviewed By: nikoant Differential Revision: D33296389 fbshipit-source-id: bfa92d78d8d77030238e5cca10d7aa6dcfb88e8b |
||
|
|
72fa481d27 |
Fix generation of bundled.json, make source maps work in prod builds
Summary: This diff fixes several issues around loading plugin, such as: * make suresource maps work in the flipper-server production build * make sure default plugins are no symlinked, which wouldn't work anywhere else but on the the system where it was build * support release channel param for flipper-server Bundled flipper-server is now 42MB (with icons (see later diffs) and plugins ``` ll flipper-server-v0.0.0.tgz -rw-r--r-- 1 mweststrate staff 42M 23 Dec 15:29 flipper-server-v0.0.0.tgz ``` Reviewed By: nikoant Differential Revision: D33294677 fbshipit-source-id: 63538dc8127f883fee6a3608673ad11ce239b350 |
||
|
|
b1d960e4c4 |
Make sure plugin loading works in NPX builds
Summary: Make sure non-bundled plugins load correctly . Note that sourcemaps don't load yet Reviewed By: nikoant Differential Revision: D33278639 fbshipit-source-id: 9951286ec6df65f33149e4687261a43e6c072c31 |
||
|
|
bbff1d2fb7 |
Bump pretty-format from 27.3.1 to 27.4.2 in /desktop (#3165)
Summary: Bumps [pretty-format](https://github.com/facebook/jest/tree/HEAD/packages/pretty-format) from 27.3.1 to 27.4.2. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/facebook/jest/releases">pretty-format's releases</a>.</em></p> <blockquote> <h2>v27.4.2</h2> <h2>27.4.2</h2> <h3>Fixes</h3> <ul> <li><code>[jest-worker]</code> Add additional <code>execArgv</code> to filter (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12103">#12103</a>)</li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/JonWallsten"><code>@JonWallsten</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/facebook/jest/pull/12103">facebook/jest#12103</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/facebook/jest/compare/v27.4.1...v27.4.2">https://github.com/facebook/jest/compare/v27.4.1...v27.4.2</a></p> <h2>v27.4.1</h2> <h3>Fixes</h3> <ul> <li><code>[jest-worker]</code> Filter <code>execArgv</code> correctly (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12097">#12097</a>)</li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/SuperOleg39"><code>@SuperOleg39</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/facebook/jest/pull/12097">facebook/jest#12097</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/facebook/jest/compare/v27.4.0...v27.4.1">https://github.com/facebook/jest/compare/v27.4.0...v27.4.1</a></p> <h2>v27.4.0</h2> <h3>Features</h3> <ul> <li><code>[expect]</code> Enhancing the <code>toHaveProperty</code> matcher to support array selection (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12092">#12092</a>)</li> <li><code>[jest-core]</code> Add support for <code>testResultsProcessor</code> written in ESM (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12006">#12006</a>)</li> <li><code>[jest-diff, pretty-format]</code> Add <code>compareKeys</code> option for custom sorting of object keys (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11992">#11992</a>)</li> <li><code>[jest-mock]</code> Add <code>ts-jest</code> mock util functions (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12089">#12089</a>)</li> </ul> <h3>Fixes</h3> <ul> <li><code>[expect]</code> Allow again <code>expect.Matchers</code> generic with single value (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11986">#11986</a>)</li> <li><code>[jest-circus, jest-jasmine2]</code> Avoid false concurrent test failures due to unhandled promise rejections (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11987">#11987</a>)</li> <li><code>[jest-config]</code> Add missing <code>slash</code> dependency to <code>package.json</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12080">#12080</a>)</li> <li><code>[jest-core]</code> Incorrect detection of open ZLIB handles (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12022">#12022</a>)</li> <li><code>[jest-diff]</code> Break dependency cycle (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10818">#10818</a>)</li> <li><code>[jest-environment-jsdom]</code> Add <code>types/jsdom</code> dependency (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11999">#11999</a>)</li> <li><code>[jest-environment-jsdom]</code> Do not reset the global.document too early on teardown (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11871">#11871</a>)</li> <li><code>[jest-transform]</code> Improve error and warning messages (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11998">#11998</a>)</li> <li><code>[jest-worker]</code> Pass <code>execArgv</code> correctly to <code>worker_threads</code> worker (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12069">#12069</a>)</li> </ul> <h3>Chore & Maintenance</h3> <ul> <li><code>[docs]</code> CLI options alphabetized (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11586">#11586</a>)</li> <li><code>[jest-runner]</code> Add info regarding timers to forcedExit message(<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12083">#12083</a>)</li> <li><code>[*]</code> Replaced <code>substr</code> method with <code>substring</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12066">#12066</a>)</li> <li><code>[*]</code> Add <code>types</code> entry to all export maps (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12073">#12073</a>)</li> </ul> <h3>New Contributors</h3> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/facebook/jest/blob/main/CHANGELOG.md">pretty-format's changelog</a>.</em></p> <blockquote> <h2>27.4.2</h2> <h3>Fixes</h3> <ul> <li><code>[jest-worker]</code> Add additional <code>execArgv</code> to filter (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12103">#12103</a>)</li> </ul> <h2>27.4.1</h2> <h3>Fixes</h3> <ul> <li><code>[jest-worker]</code> Filter <code>execArgv</code> correctly (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12097">#12097</a>)</li> </ul> <h2>27.4.0</h2> <h3>Features</h3> <ul> <li><code>[expect]</code> Enhancing the <code>toHaveProperty</code> matcher to support array selection (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12092">#12092</a>)</li> <li><code>[jest-core]</code> Add support for <code>testResultsProcessor</code> written in ESM (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12006">#12006</a>)</li> <li><code>[jest-diff, pretty-format]</code> Add <code>compareKeys</code> option for custom sorting of object keys (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11992">#11992</a>)</li> <li><code>[jest-mock]</code> Add <code>ts-jest</code> mock util functions (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12089">#12089</a>)</li> </ul> <h3>Fixes</h3> <ul> <li><code>[expect]</code> Allow again <code>expect.Matchers</code> generic with single value (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11986">#11986</a>)</li> <li><code>[jest-circus, jest-jasmine2]</code> Avoid false concurrent test failures due to unhandled promise rejections (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11987">#11987</a>)</li> <li><code>[jest-config]</code> Add missing <code>slash</code> dependency to <code>package.json</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12080">#12080</a>)</li> <li><code>[jest-core]</code> Incorrect detection of open ZLIB handles (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12022">#12022</a>)</li> <li><code>[jest-diff]</code> Break dependency cycle (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/10818">#10818</a>)</li> <li><code>[jest-environment-jsdom]</code> Add <code>types/jsdom</code> dependency (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11999">#11999</a>)</li> <li><code>[jest-environment-jsdom]</code> Do not reset the global.document too early on teardown (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11871">#11871</a>)</li> <li><code>[jest-transform]</code> Improve error and warning messages (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11998">#11998</a>)</li> <li><code>[jest-worker]</code> Pass <code>execArgv</code> correctly to <code>worker_threads</code> worker (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12069">#12069</a>)</li> </ul> <h3>Chore & Maintenance</h3> <ul> <li><code>[docs]</code> CLI options alphabetized (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/11586">#11586</a>)</li> <li><code>[jest-runner]</code> Add info regarding timers to forcedExit message(<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12083">#12083</a>)</li> <li><code>[*]</code> Replaced <code>substr</code> method with <code>substring</code> (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12066">#12066</a>)</li> <li><code>[*]</code> Add <code>types</code> entry to all export maps (<a href="https://github-redirect.dependabot.com/facebook/jest/pull/12073">#12073</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
||
|
|
cea7be7fde |
Clean up globals
Summary: This diff is some boyscouting on cleaning up our globals, and stop using them inconsistently icmw global or window Reviewed By: aigoncharov Differential Revision: D33171108 fbshipit-source-id: 400893e5f31523631a7ab6fda428524c751901f1 |
||
|
|
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 |
||
|
|
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
|
||
|
|
78413c1ecf |
Register shortcuts on window instead of globally
Summary: Changelog: Register shortcuts only for Flipper application instead of globally. Fixes https://github.com/facebook/flipper/issues/3090 As reported, during decapitation we accidentally started registering shortcuts globally, rather per app as it used to be in the menu's. This diff fixes that and also makes sure shortcuts are supported in the browser version of flipper Reviewed By: lawrencelomax Differential Revision: D33158445 fbshipit-source-id: 8371e5b96e772152eeb93ba990e1f5edb9e67085 |
||
|
|
5ce5d897c8 |
Make loading of bundled plugins working and robust
Summary: Bundled plugins so far didn't load because the defaultPlugins was not generated yet. Fixed follow up errors that resulted from node modules not being available in the browser, and made the process more robust so that one plugin that fails to initialise doesn't kill all bundled plugins from being loaded. Cleaned up the server scripts, and reused the BUILTINS list that is already maintained in the babel transformer. Report errors during the build process if modules are referred that are stubbed out (later on we could maybe error on that) Reviewed By: aigoncharov Differential Revision: D33020243 fbshipit-source-id: 3ce13b0049664b5fb19c1f45f0b33c1d7fdbea4c |
||
|
|
ac9080abac |
Remove 'process' usage
Summary: Removed process, adbkit and electron usages that were still remaining. Verified changes by disabling the built-in module stubbing (will be cleaned up further later in this stack). Reviewed By: aigoncharov Differential Revision: D33019083 fbshipit-source-id: 8bfce31f4b5ed349cb4fd86d34c9b41b9b8b8360 |
||
|
|
0510786dec |
Fixed relilability issues in running health checks
Summary: Run doctor checks remained pending when the socket disonnected during a check. This Reviewed By: aigoncharov Differential Revision: D32984539 fbshipit-source-id: 277005e78803afaaa220cc5ca7fdc9cca6254453 |
||
|
|
73c6e8ee05 |
Make flipper server debuggable
Summary: This diffs adds debugging support to flipper server, by adding VSCode config for it Reviewed By: timur-valiev, aigoncharov Differential Revision: D32982874 fbshipit-source-id: 8e187ad05a05566a598db04b97e8b08e3de7e835 |
||
|
|
ae56f2b62f |
change server build process to respect babel transforms
Summary: The build process for the server was a simple ts-node that compiled all deps. However, that didn't do any source transformations we need, like replacing `fb-stubs` with `fb` in facebook builds. This diff works out the dev build process to align more with how other parts of the code base is build, by starting metro to build and bundle the server (only the sources of flipper-server, flipper-server-core and other flipper packages are bundled, node-deps are left as is). To achieve this, since metro doesn't have support for 'external' packages like any arbitrarily other bundler, we recycle the electronRequire work around that is used in the desktop app as well Reviewed By: aigoncharov Differential Revision: D32949677 fbshipit-source-id: 00d326bb17b68aece6fb43af98d0def13b335e74 |
||
|
|
bb23b36051 |
Fixed flipper settings not being loaded / saved on fresh install
Summary: I was running flipper-server on a fresh machine without Flipper installed and discovered that reading / writing settings failed since `~/.flipper` wasn't existing, due to using `access` instead of `pathExists`. Added a warning about needing to restart the server after making changes, since that is tricky to do from the UI. Fixed an issue in the settings screen, which would fs.stat as part of rendering, causing the Settings UI not to load. Reviewed By: timur-valiev, aigoncharov Differential Revision: D32984538 fbshipit-source-id: 2b2011ad9d84c72ac824d92a8c96f636237b8771 |
||
|
|
e458ae76f9 |
Add exec Node API to FlipperLib
Summary: Changelog: Allow flipper plugins to run "exec" Node API on Flipper server. Reviewed By: mweststrate Differential Revision: D32881149 fbshipit-source-id: 46486a47ee9824ca68897c19fd86b4afc7f8bf1d |
||
|
|
ad4a55f263 |
move node types, stub node modules
Summary: This diff stubs all node modules when running in the browser, so that, albeit with a lot of errors and without plugins, the UI loads in a browser. To be continued in the rest of this diff Reviewed By: antonk52 Differential Revision: D32665705 fbshipit-source-id: 4632e241f59c5b9712a41d01a26878afb01f69b5 |
||
|
|
86995e0d11 |
Introduce static resource URLs
Summary: Introduced an API that converts a filepath, relatively to the `desktop/static/` folder in a url that can be resolved by the render environment. This will generate `file://` urls in Electron, and root relative `/` urls in browser envs Reviewed By: aigoncharov Differential Revision: D32767427 fbshipit-source-id: 378da7709bcb19449873358a8703b9c5a5809c57 |
||
|
|
2a4fe77404 |
Extract environment config initialisation to server-core
Summary: This diff makes most stuff that is read from the `os` package, and version info etc available from the `serverConfig` object, so that flipper-ui-core no longer needs the `os` package. Reviewed By: passy Differential Revision: D32694848 fbshipit-source-id: 93af1e95d898da9aaf351a6970b5a7652ee835c8 |
||
|
|
de59bbedd2 |
Make plugin loading async
Summary: This diff makes plugin loading async, which we'd need in a browser env (either because we'd use `import()` or we need to fetch the source and than eval it), and deals with all the fallout of that Reviewed By: timur-valiev Differential Revision: D32669995 fbshipit-source-id: 73babf38a6757c451b8200c3b320409f127b8b5b |
||
|
|
5d45bd741b |
Initialise flipper-ui-browser with socket connection
Summary: This diff sets up the socket connection between flipper-browser and flipper-server, and verifies that the initial UI initialisation work (e.g. `get-config` command works). The initial RenderHost is initialised as well based on the config and browser APIs. Note that flipper-ui-core itself isn't started yet, as that has still a plethora of node imports, so Metro will correctly refuse to bundle Not in this diff * remove Node usage from flipper-ui-core * implement all RenderHost APIs Reviewed By: aigoncharov Differential Revision: D32644074 fbshipit-source-id: 2c8065caf0191771a3867b69a431ca50eeb7a5a3 |
||
|
|
0dfc73da93 |
setup webserver for flipper-server
Summary: This sets up the metro bundler for flipper-server, to be able to serve the front end. Note that this is a setup that is only relevant for development purposes Done in this diff: * setup metro * setup fast refresh * setup nodemon to be able to refresh on server changes Not done in this diff * Setup FlipperServerImpl in the flipper-server * Load flipper-ui-core in flipper-ui-browser * Load plugins * Support options, env vars etc etc * Make flipper-server stand alone (it is largely self contained, but still requires some static resources like theming) Reviewed By: passy, aigoncharov Differential Revision: D32626137 fbshipit-source-id: 47f580356ddf0993392d3b583082b187661727e9 |
||
|
|
c3ff0ff355 |
Set up Flipper decapitated packages
Summary: This diff introduces the packages necessary for Flipper decapitated. * flipper-common: utilities & types shared between client, server, flipper-plugin * flipper-server-core: all device & client management goes in here. Basically flipper's backend * flipper-ui-core: all UI goes in here, as far as it doesn't depend on Electron * desktop: the Electron app, will load server-core and ui-core, and glue them together, providing implementations for some electron specific stuff like dialgos * flipper-server: A node process hosting flipper-server-core, that can be connected to over websockets. And probably can serve a browser version of the UI as well. * flipper-ui-browser: thin wrapper around flipper-ui-core, providing some browser specific behavior / stubs. * flipper-dump: (might remove later), but want to hack a quick and dirt flipper dump in here, as alternative way to test flipper-server-core. This diff just creates the packages, but doesn't move any code, so it can be summarized as: restoftheowl Reviewed By: nikoant Differential Revision: D30218646 fbshipit-source-id: 735598a1261a98e584f52504b5eba01ec0afa162 |