@samitouri / QOS-React-1 / commits / 432b9f1d97

Upgrade Flow to 0.221.0 (#27689)

Upgrades Flow and dependencies ``` yarn add -W flow-bin flow-remove-types hermes-parser hermes-eslint ```

Jan Kassens committed Nov 10, 2023 at 14:14 UTC 432b9f1d9729aaea010730d546bda89b9842eaa1
4 files changed +16 -19
package.json
+2 -2
@@ -64,8 +64,8 @@
64 "eslint-plugin-react-internal": "link:./scripts/eslint-rules",
65 "fbjs-scripts": "^3.0.1",
66 "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",
69 "glob": "^7.1.6",
70 "glob-stream": "^6.1.0",
71 "google-closure-compiler": "^20230206.0.0",
packages/react-native-renderer/src/ReactNativePublicCompat.js
+2 -1
@@ -142,11 +142,12 @@ export function findNodeHandle(componentOrHandle: any): ?number {
142 }
143
144 if (hostInstance == null) {
145 + // $FlowFixMe[incompatible-return] Flow limitation in refining an opaque type
146 return hostInstance;
147 }
148
148 - // $FlowFixMe[incompatible-type] For compatibility with legacy renderer instances
149 if (hostInstance._nativeTag != null) {
150 + // $FlowFixMe[incompatible-return] For compatibility with legacy renderer instances
151 return hostInstance._nativeTag;
152 }
153
packages/react/src/ReactChildren.js
+1
@@ -245,6 +245,7 @@ function mapChildren(
245 context: mixed,
246 ): ?Array<React$Node> {
247 if (children == null) {
248 + // $FlowFixMe limitation refining abstract types in Flow
249 return children;
250 }
251 const result: Array<React$Node> = [];
yarn.lock
+11 -16
@@ -7878,22 +7878,17 @@ flatted@^3.1.0:
7878 resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.2.7.tgz#609f39207cb614b89d0765b477cb2d437fbf9787"
7879 integrity sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==
7880
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"
7892 pirates "^3.0.2"
7893 vlq "^0.2.1"
7894