From 454bbff3ba94c3e900562d686ed2b69fbfd74f63 Mon Sep 17 00:00:00 2001 From: Panagiotis Vekris Date: Wed, 26 Jun 2019 19:03:53 -0700 Subject: [PATCH] Flow v0.102 in xplat/js Summary: https://our.intern.facebook.com/intern/wiki/Flow/Flow_Release_Process/Updating_Internal_Repositories/#update-xplat-js allow-large-files Reviewed By: jbrown215 Differential Revision: D16013696 fbshipit-source-id: 1a6185dafd14ef9c9e1aa214cdbf8cf9c573b08f --- .flowconfig | 2 +- .flowconfig.android | 2 +- Libraries/Sample/Sample.android.js | 4 ++-- Libraries/Utilities/HMRClient.js | 4 ---- package.json | 2 +- template/_flowconfig | 2 +- yarn.lock | 8 ++++---- 7 files changed, 10 insertions(+), 14 deletions(-) diff --git a/.flowconfig b/.flowconfig index c2ee912c358c5e..d8118f28430b18 100644 --- a/.flowconfig +++ b/.flowconfig @@ -78,4 +78,4 @@ untyped-import untyped-type-import [version] -^0.101.0 +^0.102.0 diff --git a/.flowconfig.android b/.flowconfig.android index 98a7ac56e78e08..1e6b97df045bf4 100644 --- a/.flowconfig.android +++ b/.flowconfig.android @@ -78,4 +78,4 @@ untyped-import untyped-type-import [version] -^0.101.0 +^0.102.0 diff --git a/Libraries/Sample/Sample.android.js b/Libraries/Sample/Sample.android.js index a03410f8f756a5..5dfb07309045ac 100644 --- a/Libraries/Sample/Sample.android.js +++ b/Libraries/Sample/Sample.android.js @@ -16,8 +16,8 @@ const warning = require('fbjs/lib/warning'); const Sample = { test: function() { - /* $FlowFixMe(>=0.101.0 site=react_native_android_fb) This comment - * suppresses an error found when Flow v0.101 was deployed. To see the + /* $FlowFixMe(>=0.102.0 site=react_native_android_fb) This comment + * suppresses an error found when Flow v0.102 was deployed. To see the * error, delete this comment and run Flow. */ warning('Not yet implemented for Android.'); }, diff --git a/Libraries/Utilities/HMRClient.js b/Libraries/Utilities/HMRClient.js index 233759f445c3c9..e5973d4f75244f 100644 --- a/Libraries/Utilities/HMRClient.js +++ b/Libraries/Utilities/HMRClient.js @@ -90,10 +90,6 @@ const HMRClient = { // Moving to top gives errors due to NativeModules not being initialized const HMRLoadingView = require('./HMRLoadingView'); - /* $FlowFixMe(>=0.84.0 site=react_native_fb) This comment suppresses an - * error found when Flow v0.84 was deployed. To see the error, delete this - * comment and run Flow. */ - const wsHostPort = port !== null && port !== '' ? `${host}:${port}` : host; bundleEntry = bundleEntry.replace(/\.(bundle|delta)/, '.js'); diff --git a/package.json b/package.json index a686e8b83009a1..6f6b0de8983ea7 100644 --- a/package.json +++ b/package.json @@ -132,7 +132,7 @@ "eslint-plugin-react-hooks": "^1.5.1", "eslint-plugin-react-native": "3.6.0", "eslint-plugin-relay": "1.3.0", - "flow-bin": "^0.101.0", + "flow-bin": "^0.102.0", "flow-remove-types": "1.2.3", "jest": "^24.7.1", "jest-junit": "^6.3.0", diff --git a/template/_flowconfig b/template/_flowconfig index 36cf88f35fbd4c..01efd9b17be152 100644 --- a/template/_flowconfig +++ b/template/_flowconfig @@ -72,4 +72,4 @@ untyped-import untyped-type-import [version] -^0.101.0 +^0.102.0 diff --git a/yarn.lock b/yarn.lock index 1c9c9f189c42d6..b99f3c809fb0cc 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3195,10 +3195,10 @@ flat-cache@^1.2.1: rimraf "~2.6.2" write "^0.2.1" -flow-bin@^0.101.0: - version "0.101.0" - resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.101.0.tgz#c56fa0afb9c151eeba7954136e9066d408691063" - integrity sha512-2xriPEOSrGQklAArNw1ixoIUiLTWhIquYV26WqnxEu7IcXWgoZUcfJXufG9kIvrNbdwCNd5RBjTwbB0p6L6XaA== +flow-bin@^0.102.0: + version "0.102.0" + resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.102.0.tgz#3d5de44bcc26d26585e932b3201988b766f9b380" + integrity sha512-mYon6noeLO0Q5SbiWULLQeM1L96iuXnRtYMd47j3bEWXAwUW9EnwNWcn+cZg/jC/Dg4Wj/jnkdTDEuFtbeu1ww== flow-parser@0.*: version "0.89.0"