Skip to content

Commit 432b9f1

Browse files
authored
Upgrade Flow to 0.221.0 (#27689)
Upgrades Flow and dependencies ``` yarn add -W flow-bin flow-remove-types hermes-parser hermes-eslint ```
1 parent 6b3834a commit 432b9f1

File tree

4 files changed

+16
-19
lines changed

4 files changed

+16
-19
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@
6464
"eslint-plugin-react-internal": "link:./scripts/eslint-rules",
6565
"fbjs-scripts": "^3.0.1",
6666
"filesize": "^6.0.1",
67-
"flow-bin": "^0.220.1",
68-
"flow-remove-types": "^2.220.1",
67+
"flow-bin": "^0.221.0",
68+
"flow-remove-types": "^2.221.0",
6969
"glob": "^7.1.6",
7070
"glob-stream": "^6.1.0",
7171
"google-closure-compiler": "^20230206.0.0",

packages/react-native-renderer/src/ReactNativePublicCompat.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,12 @@ export function findNodeHandle(componentOrHandle: any): ?number {
142142
}
143143

144144
if (hostInstance == null) {
145+
// $FlowFixMe[incompatible-return] Flow limitation in refining an opaque type
145146
return hostInstance;
146147
}
147148

148-
// $FlowFixMe[incompatible-type] For compatibility with legacy renderer instances
149149
if (hostInstance._nativeTag != null) {
150+
// $FlowFixMe[incompatible-return] For compatibility with legacy renderer instances
150151
return hostInstance._nativeTag;
151152
}
152153

packages/react/src/ReactChildren.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ function mapChildren(
245245
context: mixed,
246246
): ?Array<React$Node> {
247247
if (children == null) {
248+
// $FlowFixMe limitation refining abstract types in Flow
248249
return children;
249250
}
250251
const result: Array<React$Node> = [];

yarn.lock

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7878,22 +7878,17 @@ flatted@^3.1.0:
78787878
resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.2.7.tgz#609f39207cb614b89d0765b477cb2d437fbf9787"
78797879
integrity sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==
78807880

7881-
flow-bin@^0.220.1:
7882-
version "0.220.1"
7883-
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.220.1.tgz#637d522e43ed5c0d4319e8fe51f4e0a708e56bb1"
7884-
integrity sha512-p25Ga+f3yWG0/Nlua6jGary2ptR4vHWt6cWh6MXGLR41NFlOwtrZtDtEjLpSWgOLUphTN4tEQjqoaruU72JObg==
7885-
7886-
flow-parser@^0.220.0:
7887-
version "0.220.1"
7888-
resolved "https://registry.yarnpkg.com/flow-parser/-/flow-parser-0.220.1.tgz#8302ef224e2efb549cccb69fcfb8fb8fb2346668"
7889-
integrity sha512-RoM3ARqVYvxnwtkM36RjQFzo5Z9p22jUqtuMrN8gzA/8fU6iMLFE3cXkdSFPyfHRXLU8ILH8TCtSFADk1ACPCg==
7890-
7891-
flow-remove-types@^2.220.1:
7892-
version "2.220.1"
7893-
resolved "https://registry.yarnpkg.com/flow-remove-types/-/flow-remove-types-2.220.1.tgz#c5c44bc40976bbfdd48ca694ec30105b0c0e0e22"
7894-
integrity sha512-XtJKOdJY1Im35z4YwKzDCbAkt62Blu+EMneigTW0BmIZ+CdDAKvkyrAOl+3Cbnw2leyuyOFnq+h2Z/7dv2nL4Q==
7895-
dependencies:
7896-
flow-parser "^0.220.0"
7881+
flow-bin@^0.221.0:
7882+
version "0.221.0"
7883+
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.221.0.tgz#ebf2cef7301ce330dee53a4e8c3e817a9daf5dc0"
7884+
integrity sha512-ozjD7cMb7tY6NuRqf6THALc4CDmiuodePYYVj1CS4vkepU9C3qx7/Q6jlieE7SBUN4CkWzlbt4LSMsWFu5a1eQ==
7885+
7886+
flow-remove-types@^2.221.0:
7887+
version "2.221.0"
7888+
resolved "https://registry.yarnpkg.com/flow-remove-types/-/flow-remove-types-2.221.0.tgz#98da76051cadcb641afc9bf16a1fa8eabf16d591"
7889+
integrity sha512-mQ/rmIy9jEYZtbXMn+avJCHUyINy3wAX50CEYlkJ2kwlkJi9EjmyzgkyHkA+1fraxnbh70J2GV/mXyk3PhbFew==
7890+
dependencies:
7891+
hermes-parser "0.17.1"
78977892
pirates "^3.0.2"
78987893
vlq "^0.2.1"
78997894

0 commit comments

Comments
 (0)