From 8e8fecdcf8fdfcd8e7433d0f8cb9de6452c39018 Mon Sep 17 00:00:00 2001 From: Nat Mote Date: Thu, 20 Jul 2017 14:37:04 -0700 Subject: [PATCH] Upgrade to Flow v0.50.0 Reviewed By: gabelevi Differential Revision: D5438335 fbshipit-source-id: 7a96f68e7147e984c6f0cb84f957e639d36ca6b3 --- .flowconfig | 2 +- RNTester/js/XHRExampleDownload.js | 6 ------ package.json | 2 +- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/.flowconfig b/.flowconfig index 2edf60073..16c68958e 100644 --- a/.flowconfig +++ b/.flowconfig @@ -52,4 +52,4 @@ suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError unsafe.enable_getters_and_setters=true [version] -^0.49.1 +^0.50.0 diff --git a/RNTester/js/XHRExampleDownload.js b/RNTester/js/XHRExampleDownload.js index 595e9a215..1b6e172af 100644 --- a/RNTester/js/XHRExampleDownload.js +++ b/RNTester/js/XHRExampleDownload.js @@ -79,9 +79,6 @@ class XHRExampleDownload extends React.Component { } const onreadystatechange = () => { - /* $FlowFixMe(>=0.48.0 site=react_native_fb,react_native_oss) This comment - * suppresses an error found when Flow v0.48 was deployed. To see the - * error delete this comment and run Flow. */ if (xhr.readyState === xhr.HEADERS_RECEIVED) { const contentLength = parseInt(xhr.getResponseHeader('Content-Length'), 10); @@ -89,9 +86,6 @@ class XHRExampleDownload extends React.Component { contentLength, responseLength: 0, }); - /* $FlowFixMe(>=0.48.0 site=react_native_fb,react_native_oss) This comment - * suppresses an error found when Flow v0.48 was deployed. To see the - * error delete this comment and run Flow. */ } else if (xhr.readyState === xhr.LOADING && xhr.response) { this.setState({ responseLength: xhr.response.length, diff --git a/package.json b/package.json index f661d710d..58635cb7b 100644 --- a/package.json +++ b/package.json @@ -229,7 +229,7 @@ "eslint-plugin-flowtype": "^2.33.0", "eslint-plugin-prettier": "2.1.1", "eslint-plugin-react": "^7.0.1", - "flow-bin": "^0.49.1", + "flow-bin": "^0.50.0", "jest": "20.1.0-chi.1", "jest-phabricator": "20.1.0-chi.1", "jest-repl": "20.1.0-chi.1",