Update Flow to 0.247 (#34245)
`$Call` was removed.
Jan Kassens committed
Aug 20, 2025 at 22:19 UTC
5f06c3d22a666e2fd426704aa896a9049294b9b4
4 files changed
+9
-10
.eslintrc.js
-1
@@ -547,7 +547,6 @@ module.exports = {
547
},
548
549
globals: {
550
- $Call: 'readonly',
550
$ElementType: 'readonly',
551
$Flow$ModuleRef: 'readonly',
552
$FlowFixMe: 'readonly',
package.json
+2
-2
@@ -72,8 +72,8 @@
72
"eslint-plugin-react-internal": "link:./scripts/eslint-rules",
73
"fbjs-scripts": "^3.0.1",
74
"filesize": "^6.0.1",
75
- "flow-bin": "^0.246",
76
- "flow-remove-types": "^2.246",
75
+ "flow-bin": "^0.247",
76
+ "flow-remove-types": "^2.247",
77
"glob": "^7.1.6",
78
"glob-stream": "^6.1.0",
79
"google-closure-compiler": "^20230206.0.0",
packages/react-devtools-shared/src/hooks/parseHookNames/loadSourceAndMetadata.js
+2
-2
@@ -134,7 +134,7 @@ function decodeBase64String(encoded: string): Object {
134
135
function extractAndLoadSourceMapJSON(
136
locationKeyToHookSourceAndMetadata: LocationKeyToHookSourceAndMetadata,
137
-): Promise<Array<$Call<<T>(p: Promise<T> | T) => T, Promise<void>>>> {
137
+): Promise<mixed> {
138
// Deduplicate fetches, since there can be multiple location keys per source map.
139
const dedupedFetchPromises = new Map<string, Promise<$FlowFixMe>>();
140
@@ -461,7 +461,7 @@ function isUnnamedBuiltInHook(hook: HooksNode) {
461
function loadSourceFiles(
462
locationKeyToHookSourceAndMetadata: LocationKeyToHookSourceAndMetadata,
463
fetchFileWithCaching: FetchFileWithCaching | null,
464
-): Promise<Array<$Call<<T>(p: Promise<T> | T) => T, Promise<void>>>> {
464
+): Promise<mixed> {
465
// Deduplicate fetches, since there can be multiple location keys per file.
466
const dedupedFetchPromises = new Map<string, Promise<$FlowFixMe>>();
467
yarn.lock
+5
-5
@@ -9101,12 +9101,12 @@ flatted@^3.2.9:
9101
resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.3.1.tgz#21db470729a6734d4997002f439cb308987f567a"
9102
integrity sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==
9103
9104
-flow-bin@^0.246:
9105
- version "0.246.0"
9106
- resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.246.0.tgz#d08a696e6f796c497f7a7e98b22057dd0df0c38d"
9107
- integrity sha512-RB0gaPxrehIE0WoUbUMKgX/XpaY55JbtBhNhix5WzKFIDmRTVojJa+EJEbrTlo2BWRAZnnqOl13wanHmWwb1eA==
9104
+flow-bin@^0.247:
9105
+ version "0.247.1"
9106
+ resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.247.1.tgz#8c8d08fcee11ca43cbb6059edb9933a29bdedc57"
9107
+ integrity sha512-03wwQ5kPW4CYqhXvxTseMs2v6QuVwCtifVkON2UUyDg6Jp1+CaQpLAZK+sFNzQOExKp0Yvoug+fZOUb33ARwHQ==
9108
9109
-flow-remove-types@^2.246:
9109
+flow-remove-types@^2.247:
9110
version "2.279.0"
9111
resolved "https://registry.yarnpkg.com/flow-remove-types/-/flow-remove-types-2.279.0.tgz#3a3388d9158eba0f82c40d80d31d9640b883a3f5"
9112
integrity sha512-bPFloMR/A2b/r/sIsf7Ix0LaMicCJNjwhXc4xEEQVzJCIz5u7C7XDaEOXOiqveKlCYK7DcBNn6R01Cbbc9gsYA==