From 7b150690b65a65d55c51d875bcbe4adf04cd67dd Mon Sep 17 00:00:00 2001 From: Marshall Roch Date: Sat, 13 Oct 2018 01:30:48 -0700 Subject: [PATCH] @allow-large-files [flow] update to v0.83 Reviewed By: fishythefish Differential Revision: D10362346 fbshipit-source-id: 0f4cc9977cfaa947e3b23112dd1cf482642e2319 --- .flowconfig | 2 +- .flowconfig.android | 2 +- Libraries/Interaction/InteractionManager.js | 3 --- Libraries/Lists/FlatList.js | 6 ------ Libraries/Lists/MetroListView.js | 1 - Libraries/Lists/SectionList.js | 1 - Libraries/Lists/VirtualizedList.js | 1 - local-cli/bundle/buildBundle.js | 1 - local-cli/bundle/types.flow.js | 1 - local-cli/templates/HelloWorld/_flowconfig | 2 +- package.json | 2 +- yarn.lock | 8 ++++---- 12 files changed, 8 insertions(+), 22 deletions(-) diff --git a/.flowconfig b/.flowconfig index 30979c7df..0d79af75b 100644 --- a/.flowconfig +++ b/.flowconfig @@ -100,4 +100,4 @@ untyped-import untyped-type-import [version] -^0.82.0 +^0.83.0 diff --git a/.flowconfig.android b/.flowconfig.android index 8f789827a..79ffdcae8 100644 --- a/.flowconfig.android +++ b/.flowconfig.android @@ -100,4 +100,4 @@ untyped-import untyped-type-import [version] -^0.82.0 +^0.83.0 diff --git a/Libraries/Interaction/InteractionManager.js b/Libraries/Interaction/InteractionManager.js index 59f1d5589..94590ce66 100644 --- a/Libraries/Interaction/InteractionManager.js +++ b/Libraries/Interaction/InteractionManager.js @@ -17,9 +17,6 @@ const TaskQueue = require('TaskQueue'); const infoLog = require('infoLog'); const invariant = require('fbjs/lib/invariant'); -/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error - * found when Flow v0.54 was deployed. To see the error delete this comment and - * run Flow. */ const keyMirror = require('fbjs/lib/keyMirror'); type Handle = number; diff --git a/Libraries/Lists/FlatList.js b/Libraries/Lists/FlatList.js index eace68274..2b89e5cb1 100644 --- a/Libraries/Lists/FlatList.js +++ b/Libraries/Lists/FlatList.js @@ -650,14 +650,8 @@ class FlatList extends React.PureComponent, void> { render() { if (this.props.legacyImplementation) { return ( - /* $FlowFixMe(>=0.66.0 site=react_native_fb) This comment suppresses an - * error found when Flow v0.66 was deployed. To see the error delete - * this comment and run Flow. */ =0.66.0 site=react_native_fb) This comment suppresses - * an error found when Flow v0.66 was deployed. To see the error - * delete this comment and run Flow. */ items={this.props.data} ref={this._captureRef} /> diff --git a/Libraries/Lists/MetroListView.js b/Libraries/Lists/MetroListView.js index 66c9079f4..0da36d072 100644 --- a/Libraries/Lists/MetroListView.js +++ b/Libraries/Lists/MetroListView.js @@ -29,7 +29,6 @@ type NormalProps = { // Provide either `items` or `sections` items?: ?Array, // By default, an Item is assumed to be {key: string} - // $FlowFixMe - Something is a little off with the type Array sections?: ?Array<{key: string, data: Array}>, /** diff --git a/Libraries/Lists/SectionList.js b/Libraries/Lists/SectionList.js index 32fd2c859..b26a13c58 100644 --- a/Libraries/Lists/SectionList.js +++ b/Libraries/Lists/SectionList.js @@ -288,7 +288,6 @@ class SectionList> extends React.PureComponent< */ recordInteraction() { const listRef = this._wrapperListRef && this._wrapperListRef.getListRef(); - // $FlowFixMe Found when typing ListView listRef && listRef.recordInteraction(); } diff --git a/Libraries/Lists/VirtualizedList.js b/Libraries/Lists/VirtualizedList.js index f576fa593..05c15e8d4 100644 --- a/Libraries/Lists/VirtualizedList.js +++ b/Libraries/Lists/VirtualizedList.js @@ -947,7 +947,6 @@ class VirtualizedList extends React.PureComponent { (this.props.renderScrollComponent || this._defaultRenderScrollComponent)( scrollProps, ), - // $FlowFixMe Invalid prop usage { ref: this._captureScrollRef, }, diff --git a/local-cli/bundle/buildBundle.js b/local-cli/bundle/buildBundle.js index 03c547451..0de330e38 100644 --- a/local-cli/bundle/buildBundle.js +++ b/local-cli/bundle/buildBundle.js @@ -11,7 +11,6 @@ 'use strict'; const log = require('../util/log').out('bundle'); -/* $FlowFixMe(site=react_native_oss) */ const Server = require('metro/src/Server'); /* $FlowFixMe(site=react_native_oss) */ diff --git a/local-cli/bundle/types.flow.js b/local-cli/bundle/types.flow.js index bbad114db..04bc1c385 100644 --- a/local-cli/bundle/types.flow.js +++ b/local-cli/bundle/types.flow.js @@ -10,5 +10,4 @@ 'use strict'; -/* $FlowFixMe(site=react_native_oss) */ export type {OutputOptions, RequestOptions} from 'metro/src/shared/types.flow'; diff --git a/local-cli/templates/HelloWorld/_flowconfig b/local-cli/templates/HelloWorld/_flowconfig index 77aa3cd9e..818888f0e 100644 --- a/local-cli/templates/HelloWorld/_flowconfig +++ b/local-cli/templates/HelloWorld/_flowconfig @@ -67,4 +67,4 @@ suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError [version] -^0.82.0 +^0.83.0 diff --git a/package.json b/package.json index 3f5d14346..678993117 100644 --- a/package.json +++ b/package.json @@ -218,7 +218,7 @@ "eslint-plugin-prettier": "2.6.0", "eslint-plugin-react": "7.8.2", "eslint-plugin-react-native": "^3.2.1", - "flow-bin": "^0.82.0", + "flow-bin": "^0.83.0", "jest": "23.4.1", "jest-junit": "5.1.0", "prettier": "1.13.6", diff --git a/yarn.lock b/yarn.lock index f29ae933f..db71c276d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2827,10 +2827,10 @@ flat-cache@^1.2.1: graceful-fs "^4.1.2" write "^0.2.1" -flow-bin@^0.82.0: - version "0.82.0" - resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.82.0.tgz#fbec84c0d6cab7877565eca8214d655f3aefb8db" - integrity sha512-D7ViTCVJSVv19CB6dFWS9k2iKQlavtkRXn9el0ofVTTpGuybe+EPE8DZwdyohzEt6wRhHV8gwkteWvxdcVuOzg== +flow-bin@^0.83.0: + version "0.83.0" + resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.83.0.tgz#fd26f5f95758d7701264b3f9a1e1a3d4cbcab1a9" + integrity sha512-1K83EL/U9Gh0BaXPKkZe6TRizSmNSKx9Wuws1c8gh7DJEwiburtCxYT+4o7in1+GnNEm3CZWnbnVV8n9HMpiDA== for-in@^1.0.1, for-in@^1.0.2: version "1.0.2"