Permalink
Browse files

Upgrade to Flow v0.50.0

Reviewed By: gabelevi

Differential Revision: D5438335

fbshipit-source-id: 7a96f68e7147e984c6f0cb84f957e639d36ca6b3
  • Loading branch information...
nmote authored and facebook-github-bot committed Jul 20, 2017
1 parent b8fafb4 commit 8e8fecdcf8fdfcd8e7433d0f8cb9de6452c39018
Showing with 2 additions and 8 deletions.
  1. +1 −1 .flowconfig
  2. +0 −6 RNTester/js/XHRExampleDownload.js
  3. +1 −1 package.json
View
@@ -52,4 +52,4 @@ suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
unsafe.enable_getters_and_setters=true
[version]
^0.49.1
^0.50.0
@@ -79,19 +79,13 @@ 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);
this.setState({
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,
View
@@ -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",

0 comments on commit 8e8fecd

Please sign in to comment.