From c40988cc22b0ea4d5250580adbf8a67586edf7b2 Mon Sep 17 00:00:00 2001 From: Nat Mote Date: Thu, 16 Jan 2020 14:03:30 -0800 Subject: [PATCH] Deploy Flow v0.116 to xplat Summary: Changelog: [Internal] Reviewed By: gkz Differential Revision: D19416307 fbshipit-source-id: 32767f24e5bfeb1912f7dd5527eb8c4db7a08a1a --- .flowconfig | 2 +- .flowconfig.android | 2 +- Libraries/Image/ImageViewNativeComponent.js | 3 ++- Libraries/Image/ImageViewViewConfig.js | 3 ++- Libraries/StyleSheet/processTransform.js | 6 ------ package.json | 2 +- template/_flowconfig | 2 +- yarn.lock | 8 ++++---- 8 files changed, 12 insertions(+), 16 deletions(-) diff --git a/.flowconfig b/.flowconfig index b23b074f14b..4c413037a12 100644 --- a/.flowconfig +++ b/.flowconfig @@ -84,4 +84,4 @@ untyped-import untyped-type-import [version] -^0.115.0 +^0.116.0 diff --git a/.flowconfig.android b/.flowconfig.android index 45caa62b699..cbe0fae787d 100644 --- a/.flowconfig.android +++ b/.flowconfig.android @@ -84,4 +84,4 @@ untyped-import untyped-type-import [version] -^0.115.0 +^0.116.0 diff --git a/Libraries/Image/ImageViewNativeComponent.js b/Libraries/Image/ImageViewNativeComponent.js index 3d42a66a11c..b5dea64e6f1 100644 --- a/Libraries/Image/ImageViewNativeComponent.js +++ b/Libraries/Image/ImageViewNativeComponent.js @@ -52,4 +52,5 @@ if (global.RN$Bridgeless) { ); } -export default ((ImageViewNativeComponent: any): HostComponent); // flowlint-line unclear-type:off +// flowlint-next-line unclear-type:off +export default ((ImageViewNativeComponent: any): HostComponent); diff --git a/Libraries/Image/ImageViewViewConfig.js b/Libraries/Image/ImageViewViewConfig.js index 7c6c1beda4e..5870038e97d 100644 --- a/Libraries/Image/ImageViewViewConfig.js +++ b/Libraries/Image/ImageViewViewConfig.js @@ -39,7 +39,8 @@ const ImageViewViewConfig = { validAttributes: { ...ReactNativeViewViewConfig.validAttributes, blurRadius: true, - capInsets: {diff: (require('../Utilities/differ/insetsDiffer'): any)}, // flowlint-line unclear-type:off + // flowlint-next-line unclear-type:off + capInsets: {diff: (require('../Utilities/differ/insetsDiffer'): any)}, defaultSource: { process: require('./resolveAssetSource'), }, diff --git a/Libraries/StyleSheet/processTransform.js b/Libraries/StyleSheet/processTransform.js index 353d3de776e..051c363f3a0 100644 --- a/Libraries/StyleSheet/processTransform.js +++ b/Libraries/StyleSheet/processTransform.js @@ -170,9 +170,6 @@ function _validateTransform(key, value, transformation) { switch (key) { case 'matrix': invariant( - /* $FlowFixMe(>=0.88.0 site=react_native_fb) This comment suppresses an - * error found when Flow v0.88 was deployed. To see the error, delete - * this comment and run Flow. */ value.length === 9 || value.length === 16, 'Matrix transform must have a length of 9 (2d) or 16 (3d). ' + 'Provided matrix has a length of %s: %s', @@ -185,9 +182,6 @@ function _validateTransform(key, value, transformation) { break; case 'translate': invariant( - /* $FlowFixMe(>=0.88.0 site=react_native_fb) This comment suppresses an - * error found when Flow v0.88 was deployed. To see the error, delete - * this comment and run Flow. */ value.length === 2 || value.length === 3, 'Transform with key translate must be an array of length 2 or 3, found %s: %s', /* $FlowFixMe(>=0.84.0 site=react_native_fb) This comment suppresses an diff --git a/package.json b/package.json index 9ef9962e7be..c2686908f2b 100644 --- a/package.json +++ b/package.json @@ -141,7 +141,7 @@ "eslint-plugin-react-hooks": "^2.0.1", "eslint-plugin-react-native": "3.8.1", "eslint-plugin-relay": "1.4.1", - "flow-bin": "^0.115.0", + "flow-bin": "^0.116.0", "flow-remove-types": "1.2.3", "jest": "^24.8.0", "jest-junit": "^6.3.0", diff --git a/template/_flowconfig b/template/_flowconfig index fed57808e52..e05f3b0b998 100644 --- a/template/_flowconfig +++ b/template/_flowconfig @@ -73,4 +73,4 @@ untyped-import untyped-type-import [version] -^0.115.0 +^0.116.0 diff --git a/yarn.lock b/yarn.lock index facb8b1112f..570326f5afc 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3382,10 +3382,10 @@ flat-cache@^1.2.1: rimraf "~2.6.2" write "^0.2.1" -flow-bin@^0.115.0: - version "0.115.0" - resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.115.0.tgz#22e3ad9e5c7198967de80138ba8a9154ff387960" - integrity sha512-xW+U2SrBaAr0EeLvKmXAmsdnrH6x0Io17P6yRJTNgrrV42G8KXhBAD00s6oGbTTqRyHD0nP47kyuU34zljZpaQ== +flow-bin@^0.116.0: + version "0.116.0" + resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.116.0.tgz#f2e5ef318838ceb760e3f588b66076bc8ee1dc87" + integrity sha512-6q1f84mhAzHlUp9eTpIIJqINFBXf2+HGQllYfrkdQ+DfOLkF2wEZNHpVlYX1DL0G3uS8D//XEfsN2seZAc7jiw== flow-parser@0.*: version "0.89.0"