From 302049f81ef661a30a25f65a3f7ae1bcb4418a3c Mon Sep 17 00:00:00 2001 From: Jan Kassens Date: Fri, 9 Sep 2022 12:21:44 -0400 Subject: [PATCH] Flow: upgrade to 0.127 (#25221) A smaller incremental update as some next version was changing more. --- package.json | 2 +- packages/react-native-renderer/src/ReactFabric.js | 1 + packages/react-native-renderer/src/ReactNativeRenderer.js | 1 + scripts/flow/config/flowconfig | 2 +- yarn.lock | 8 ++++---- 5 files changed, 8 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 47514e3ec2d3a..1036d8e0a6918 100644 --- a/package.json +++ b/package.json @@ -63,7 +63,7 @@ "eslint-plugin-react-internal": "link:./scripts/eslint-rules", "fbjs-scripts": "1.2.0", "filesize": "^6.0.1", - "flow-bin": "^0.122", + "flow-bin": "^0.127", "glob": "^7.1.6", "glob-stream": "^6.1.0", "google-closure-compiler": "^20200517.0.0", diff --git a/packages/react-native-renderer/src/ReactFabric.js b/packages/react-native-renderer/src/ReactFabric.js index 1010b4a4b84ad..428ffe20acd37 100644 --- a/packages/react-native-renderer/src/ReactFabric.js +++ b/packages/react-native-renderer/src/ReactFabric.js @@ -97,6 +97,7 @@ function findHostInstance_DEPRECATED( return (hostInstance: any).canonical; } // $FlowFixMe[incompatible-return] + // $FlowFixMe[incompatible-exact] return hostInstance; } diff --git a/packages/react-native-renderer/src/ReactNativeRenderer.js b/packages/react-native-renderer/src/ReactNativeRenderer.js index 046c4f4b93734..68241f8def7ac 100644 --- a/packages/react-native-renderer/src/ReactNativeRenderer.js +++ b/packages/react-native-renderer/src/ReactNativeRenderer.js @@ -96,6 +96,7 @@ function findHostInstance_DEPRECATED( return (hostInstance: any).canonical; } // $FlowFixMe[incompatible-return] + // $FlowFixMe[incompatible-exact] return hostInstance; } diff --git a/scripts/flow/config/flowconfig b/scripts/flow/config/flowconfig index 86fe4f9fe2ed4..cb52d604a7c1b 100644 --- a/scripts/flow/config/flowconfig +++ b/scripts/flow/config/flowconfig @@ -50,4 +50,4 @@ munge_underscores=false %REACT_RENDERER_FLOW_OPTIONS% [version] -^0.122.0 +^0.127.0 diff --git a/yarn.lock b/yarn.lock index 15c796b9b7e34..ac6d35f47ea72 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7913,10 +7913,10 @@ flatted@^2.0.0: resolved "https://registry.yarnpkg.com/flatted/-/flatted-2.0.2.tgz#4575b21e2bcee7434aa9be662f4b7b5f9c2b5138" integrity sha512-r5wGx7YeOwNWNlCA0wQ86zKyDLMQr+/RB8xy74M4hTphfmjlijTSSXGuH8rnvKZnfT9i+75zmd8jcKdMR4O6jA== -flow-bin@^0.122: - version "0.122.0" - resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.122.0.tgz#c723a2b33b1a70bd10204704ae1dc776d5d89d79" - integrity sha512-my8N5jgl/A+UVby9E7NDppHdhLgRbWgKbmFZSx2MSYMRh3d9YGnM2MM+wexpUpl0ftY1IM6ZcUwaAhrypLyvlA== +flow-bin@^0.127: + version "0.127.0" + resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.127.0.tgz#0614cff4c1b783beef1feeb7108d536e09d77632" + integrity sha512-ywvCCdV4NJWzrqjFrMU5tAiVGyBiXjsJQ1+/kj8thXyX15V17x8BFvNwoAH97NrUU8T1HzmFBjLzWc0l2319qg== fluent-syntax@0.13.0: version "0.13.0"