From 76fb6488749f619e5cf0a0ad45399d67435261ce Mon Sep 17 00:00:00 2001 From: Jan Kassens Date: Sat, 15 Oct 2022 17:33:51 -0400 Subject: [PATCH] Flow upgrade to 0.190 (#25483) --- package.json | 2 +- .../react-dom-bindings/src/client/ReactDOMComponent.js | 4 +++- scripts/flow/config/flowconfig | 3 ++- yarn.lock | 8 ++++---- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 12c3022c2a360..c3aa7eb0b9270 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.188.0", + "flow-bin": "^0.190.0", "glob": "^7.1.6", "glob-stream": "^6.1.0", "google-closure-compiler": "^20200517.0.0", diff --git a/packages/react-dom-bindings/src/client/ReactDOMComponent.js b/packages/react-dom-bindings/src/client/ReactDOMComponent.js index fdcdf9801a218..50619642d1891 100644 --- a/packages/react-dom-bindings/src/client/ReactDOMComponent.js +++ b/packages/react-dom-bindings/src/client/ReactDOMComponent.js @@ -91,7 +91,9 @@ const CHILDREN = 'children'; const STYLE = 'style'; const HTML = '__html'; -let warnedUnknownTags; +let warnedUnknownTags: { + [key: string]: boolean, +}; let validatePropertiesInDevelopment; let warnForPropDifference; diff --git a/scripts/flow/config/flowconfig b/scripts/flow/config/flowconfig index 5525dd81e6016..f746dfa43bdae 100644 --- a/scripts/flow/config/flowconfig +++ b/scripts/flow/config/flowconfig @@ -43,9 +43,10 @@ untyped-type-import=error %CI_MAX_WORKERS% exact_by_default=true munge_underscores=false +enforce_local_inference_annotations=false # Substituted by createFlowConfig.js: %REACT_RENDERER_FLOW_OPTIONS% [version] -^0.188.0 +^0.190.0 diff --git a/yarn.lock b/yarn.lock index 49abd32449176..8c2ade1055d95 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7912,10 +7912,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.188.0: - version "0.188.1" - resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.188.1.tgz#1043ec955eec8cd402ec9fb4c49054bf14368c06" - integrity sha512-tQehbFoeXKz/MZqEClBB2ezuT1HHKoBlv6t8mAoUdFk1PaFhqcEmjx+1Bn0xygykrqHy0FY6C3z+AGleOnFbdQ== +flow-bin@^0.190.0: + version "0.190.0" + resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.190.0.tgz#cfc50e1474facf8150232a6c498fe66a6bb75969" + integrity sha512-Qo3bvN3cmGFXsq63ZxcHFZXQDvgx84fCuq8cXuKk5xbvuebBGwMqS+ku/rH+gEkciRrcTYrXqoSzb9b6ShcoJg== fluent-syntax@0.13.0: version "0.13.0"