Skip to content

Commit c8e72bb

Browse files
mrochfacebook-github-bot
authored andcommitted
@allow-large-files [flow] deploy flow 0.60
Reviewed By: gabelevi Differential Revision: D6466441 fbshipit-source-id: c51eeb53a2465498ad77b3865b5f8c03758d1d35
1 parent 4ebe76d commit c8e72bb

File tree

7 files changed

+10
-14
lines changed

7 files changed

+10
-14
lines changed

.flowconfig

+3-3
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ suppress_type=$FlowFixMe
4545
suppress_type=$FlowFixMeProps
4646
suppress_type=$FlowFixMeState
4747

48-
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(5[0-9]\\|[1-4][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*[react_native_oss|react_native_fb][a-z,_]*\\)?)\\)
49-
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(5[0-9]\\|[1-4][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*[react_native_oss|react_native_fb][a-z,_]*\\)?)\\)?:? #[0-9]+
48+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*[react_native_oss|react_native_fb][a-z,_]*\\)?)\\)
49+
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*[react_native_oss|react_native_fb][a-z,_]*\\)?)\\)?:? #[0-9]+
5050
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
5151
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
5252

5353
unsafe.enable_getters_and_setters=true
5454

5555
[version]
56-
^0.59.0
56+
^0.60.0

Libraries/Components/ScrollResponder.js

+3
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,9 @@ var ScrollResponderMixin = {
474474
) {
475475
invariant(ScrollViewManager && ScrollViewManager.zoomToRect, 'zoomToRect is not implemented');
476476
if ('animated' in rect) {
477+
/* $FlowFixMe(>=0.60.0 site=react_native_fb) This comment suppresses an
478+
* error found when Flow v0.60 was deployed. To see the error delete this
479+
* comment and run Flow. */
477480
var { animated, ...rect } = rect;
478481
} else if (typeof animated !== 'undefined') {
479482
console.warn('`scrollResponderZoomTo` `animated` argument is deprecated. Use `options.animated` instead');

Libraries/Components/StatusBar/StatusBar.js

-2
Original file line numberDiff line numberDiff line change
@@ -324,15 +324,13 @@ class StatusBar extends React.Component<{
324324
componentWillUnmount() {
325325
// When a StatusBar is unmounted, remove itself from the stack and update
326326
// the native bar with the next props.
327-
// $FlowFixMe found when converting React.createClass to ES6
328327
const index = StatusBar._propsStack.indexOf(this._stackEntry);
329328
StatusBar._propsStack.splice(index, 1);
330329

331330
this._updatePropsStack();
332331
}
333332

334333
componentDidUpdate() {
335-
// $FlowFixMe found when converting React.createClass to ES6
336334
const index = StatusBar._propsStack.indexOf(this._stackEntry);
337335
this._stackEntry = createStackEntry(this.props);
338336
StatusBar._propsStack[index] = this._stackEntry;

Libraries/StyleSheet/StyleSheetValidation.js

-3
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@ class StyleSheetValidation {
3939
/* $FlowFixMe(>=0.56.0 site=react_native_oss) This comment suppresses an
4040
* error found when Flow v0.56 was deployed. To see the error delete this
4141
* comment and run Flow. */
42-
/* $FlowFixMe(>=0.56.0 site=react_native_fb,react_native_oss) This
43-
* comment suppresses an error found when Flow v0.56 was deployed. To see
44-
* the error delete this comment and run Flow. */
4542
styleError(message1, style, caller, message2);
4643
}
4744
var error = allStylePropTypes[prop](

local-cli/server/runServer.js

-2
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,6 @@ function runServer(
8989
var wsProxy = null;
9090
var ms = null;
9191

92-
/* $FlowFixMe: Flow is wrong, Node.js docs specify that process.stdout is an
93-
* instance of a net.Socket (a local socket, not network). */
9492
const terminal = new Terminal(process.stdout);
9593
const ReporterImpl = getReporterImpl(args.customLogReporterPath || null);
9694
const reporter = new ReporterImpl(terminal);

local-cli/templates/HelloWorld/_flowconfig

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ suppress_type=$FlowFixMe
4141
suppress_type=$FlowFixMeProps
4242
suppress_type=$FlowFixMeState
4343

44-
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(5[0-9]\\|[1-4][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
45-
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(5[0-9]\\|[1-4][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
44+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
45+
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
4646
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
4747
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
4848

4949
unsafe.enable_getters_and_setters=true
5050

5151
[version]
52-
^0.59.0
52+
^0.60.0

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@
208208
"eslint-plugin-flowtype": "^2.33.0",
209209
"eslint-plugin-prettier": "2.1.1",
210210
"eslint-plugin-react": "^7.2.1",
211-
"flow-bin": "^0.59.0",
211+
"flow-bin": "^0.60.1",
212212
"jest": "21.3.0-beta.8",
213213
"prettier": "1.7.0",
214214
"react": "16.2.0",

0 commit comments

Comments
 (0)