Upgrade Flow to 0.221.0 (#27689)

Upgrades Flow and dependencies
```
yarn add -W flow-bin flow-remove-types hermes-parser hermes-eslint
```
This commit is contained in:
Jan Kassens
2023-11-10 14:14:53 -05:00
committed by GitHub
parent 6b3834a45b
commit 432b9f1d97
4 changed files with 14 additions and 17 deletions

View File

@@ -64,8 +64,8 @@
"eslint-plugin-react-internal": "link:./scripts/eslint-rules",
"fbjs-scripts": "^3.0.1",
"filesize": "^6.0.1",
"flow-bin": "^0.220.1",
"flow-remove-types": "^2.220.1",
"flow-bin": "^0.221.0",
"flow-remove-types": "^2.221.0",
"glob": "^7.1.6",
"glob-stream": "^6.1.0",
"google-closure-compiler": "^20230206.0.0",

View File

@@ -142,11 +142,12 @@ export function findNodeHandle(componentOrHandle: any): ?number {
}
if (hostInstance == null) {
// $FlowFixMe[incompatible-return] Flow limitation in refining an opaque type
return hostInstance;
}
// $FlowFixMe[incompatible-type] For compatibility with legacy renderer instances
if (hostInstance._nativeTag != null) {
// $FlowFixMe[incompatible-return] For compatibility with legacy renderer instances
return hostInstance._nativeTag;
}

View File

@@ -245,6 +245,7 @@ function mapChildren(
context: mixed,
): ?Array<React$Node> {
if (children == null) {
// $FlowFixMe limitation refining abstract types in Flow
return children;
}
const result: Array<React$Node> = [];

View File

@@ -7878,22 +7878,17 @@ flatted@^3.1.0:
resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.2.7.tgz#609f39207cb614b89d0765b477cb2d437fbf9787"
integrity sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==
flow-bin@^0.220.1:
version "0.220.1"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.220.1.tgz#637d522e43ed5c0d4319e8fe51f4e0a708e56bb1"
integrity sha512-p25Ga+f3yWG0/Nlua6jGary2ptR4vHWt6cWh6MXGLR41NFlOwtrZtDtEjLpSWgOLUphTN4tEQjqoaruU72JObg==
flow-bin@^0.221.0:
version "0.221.0"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.221.0.tgz#ebf2cef7301ce330dee53a4e8c3e817a9daf5dc0"
integrity sha512-ozjD7cMb7tY6NuRqf6THALc4CDmiuodePYYVj1CS4vkepU9C3qx7/Q6jlieE7SBUN4CkWzlbt4LSMsWFu5a1eQ==
flow-parser@^0.220.0:
version "0.220.1"
resolved "https://registry.yarnpkg.com/flow-parser/-/flow-parser-0.220.1.tgz#8302ef224e2efb549cccb69fcfb8fb8fb2346668"
integrity sha512-RoM3ARqVYvxnwtkM36RjQFzo5Z9p22jUqtuMrN8gzA/8fU6iMLFE3cXkdSFPyfHRXLU8ILH8TCtSFADk1ACPCg==
flow-remove-types@^2.220.1:
version "2.220.1"
resolved "https://registry.yarnpkg.com/flow-remove-types/-/flow-remove-types-2.220.1.tgz#c5c44bc40976bbfdd48ca694ec30105b0c0e0e22"
integrity sha512-XtJKOdJY1Im35z4YwKzDCbAkt62Blu+EMneigTW0BmIZ+CdDAKvkyrAOl+3Cbnw2leyuyOFnq+h2Z/7dv2nL4Q==
flow-remove-types@^2.221.0:
version "2.221.0"
resolved "https://registry.yarnpkg.com/flow-remove-types/-/flow-remove-types-2.221.0.tgz#98da76051cadcb641afc9bf16a1fa8eabf16d591"
integrity sha512-mQ/rmIy9jEYZtbXMn+avJCHUyINy3wAX50CEYlkJ2kwlkJi9EjmyzgkyHkA+1fraxnbh70J2GV/mXyk3PhbFew==
dependencies:
flow-parser "^0.220.0"
hermes-parser "0.17.1"
pirates "^3.0.2"
vlq "^0.2.1"