@samitouri / QOS-React-2 / commits / 8bc95bb3c8

Flow upgrade to 0.154

ghstack-source-id: d84024950a249f209db88be6788b80f7fa4f26d0 Pull Request resolved: https://github.com/facebook/react/pull/25413

Jan Kassens committed Oct 4, 2022 at 11:39 UTC 8bc95bb3c8c975d650161e472de4d8a92d9a92fd
8 files changed +11 -8
package.json
+1 -1
@@ -63,7 +63,7 @@
63 "eslint-plugin-react-internal": "link:./scripts/eslint-rules",
64 "fbjs-scripts": "1.2.0",
65 "filesize": "^6.0.1",
66 - "flow-bin": "^0.153.0",
66 + "flow-bin": "^0.154.0",
67 "glob": "^7.1.6",
68 "glob-stream": "^6.1.0",
69 "google-closure-compiler": "^20200517.0.0",
packages/react-devtools-shared/src/devtools/views/Components/KeyValue.js
+1 -1
@@ -411,7 +411,7 @@ export default function KeyValue({
411 const hasChildren = entries.length > 0 || canEditValues;
412 const displayName = getMetaValueLabel(value);
413
414 - children = entries.map<ReactElement<any>>(([key, keyValue]) => (
414 + children = entries.map(([key, keyValue]): ReactElement<any> => (
415 <KeyValue
416 key={key}
417 alphaSort={alphaSort}
packages/react-devtools-shared/src/devtools/views/Profiler/Updaters.js
+1 -1
@@ -26,7 +26,7 @@ export default function Updaters({commitTree, updaters}: Props): React.Node {
26
27 const children =
28 updaters.length > 0 ? (
29 - updaters.map<React$Node>((serializedElement: SerializedElement) => {
29 + updaters.map((serializedElement: SerializedElement): React$Node => {
30 const {displayName, id, key, type} = serializedElement;
31 const isVisibleInTree =
32 commitTree.nodes.has(id) && type !== ElementTypeRoot;
packages/react-native-renderer/src/ReactFabricHostConfig.js
+1
@@ -317,6 +317,7 @@ class ReactFabricHostComponent {
317
318 // eslint-disable-next-line no-unused-expressions
319 // $FlowFixMe[class-object-subtyping] found when upgrading Flow
320 +// $FlowFixMe[method-unbinding] found when upgrading Flow
321 (ReactFabricHostComponent.prototype: $ReadOnly<{...NativeMethods, ...}>);
322
323 export * from 'react-reconciler/src/ReactFiberHostConfigWithNoMutation';
packages/react-native-renderer/src/ReactNativeFiberHostComponent.js
+1
@@ -128,6 +128,7 @@ class ReactNativeFiberHostComponent {
128
129 // eslint-disable-next-line no-unused-expressions
130 // $FlowFixMe[class-object-subtyping] found when upgrading Flow
131 +// $FlowFixMe[method-unbinding] found when upgrading Flow
132 (ReactNativeFiberHostComponent.prototype: $ReadOnly<{...NativeMethods, ...}>);
133
134 export default ReactNativeFiberHostComponent;
packages/shared/objectIs.js
+1
@@ -18,6 +18,7 @@ function is(x: any, y: any) {
18 }
19
20 const objectIs: (x: any, y: any) => boolean =
21 + // $FlowFixMe[method-unbinding]
22 typeof Object.is === 'function' ? Object.is : is;
23
24 export default objectIs;
scripts/flow/config/flowconfig
+1 -1
@@ -47,4 +47,4 @@ munge_underscores=false
47 %REACT_RENDERER_FLOW_OPTIONS%
48
49 [version]
50 -^0.153.0
50 +^0.154.0
yarn.lock
+4 -4
@@ -7912,10 +7912,10 @@ flatted@^2.0.0:
7912 resolved "https://registry.yarnpkg.com/flatted/-/flatted-2.0.2.tgz#4575b21e2bcee7434aa9be662f4b7b5f9c2b5138"
7913 integrity sha512-r5wGx7YeOwNWNlCA0wQ86zKyDLMQr+/RB8xy74M4hTphfmjlijTSSXGuH8rnvKZnfT9i+75zmd8jcKdMR4O6jA==
7914
7915 -flow-bin@^0.153.0:
7916 - version "0.153.0"
7917 - resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.153.0.tgz#44d941acaf5ef977fa26d1b4b5dc3cf56b68eefc"
7918 - integrity sha512-sxP9nfXnoyCUT6hjAO+zDyHLO3dZcWg0h+4HttHs/5wg/2oAkTDwmsWbj095IQsEmwTicq2TfqWq5QRuLxynlQ==
7915 +flow-bin@^0.154.0:
7916 + version "0.154.0"
7917 + resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.154.0.tgz#e086964398e671daa8f56ed8663d7876337f77e5"
7918 + integrity sha512-I6u2ETdkAyard+8C5na6bfZp4EM0zIMB7O5zH4GKzBLv9/y8/NYRTxEXQe5T0hvj9R9DxFBUoPsFK76ziweUFw==
7919
7920 fluent-syntax@0.13.0:
7921 version "0.13.0"