Upgrade to Flow v0.50.0

Reviewed By: gabelevi

Differential Revision: D5438335

fbshipit-source-id: 7a96f68e7147e984c6f0cb84f957e639d36ca6b3
This commit is contained in:
Nat Mote 2017-07-20 14:37:04 -07:00 committed by Facebook Github Bot
parent b8fafb46c1
commit 8e8fecdcf8
3 changed files with 2 additions and 8 deletions

View File

@ -52,4 +52,4 @@ suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
unsafe.enable_getters_and_setters=true unsafe.enable_getters_and_setters=true
[version] [version]
^0.49.1 ^0.50.0

View File

@ -79,9 +79,6 @@ class XHRExampleDownload extends React.Component {
} }
const onreadystatechange = () => { 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) { if (xhr.readyState === xhr.HEADERS_RECEIVED) {
const contentLength = const contentLength =
parseInt(xhr.getResponseHeader('Content-Length'), 10); parseInt(xhr.getResponseHeader('Content-Length'), 10);
@ -89,9 +86,6 @@ class XHRExampleDownload extends React.Component {
contentLength, contentLength,
responseLength: 0, 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) { } else if (xhr.readyState === xhr.LOADING && xhr.response) {
this.setState({ this.setState({
responseLength: xhr.response.length, responseLength: xhr.response.length,

View File

@ -229,7 +229,7 @@
"eslint-plugin-flowtype": "^2.33.0", "eslint-plugin-flowtype": "^2.33.0",
"eslint-plugin-prettier": "2.1.1", "eslint-plugin-prettier": "2.1.1",
"eslint-plugin-react": "^7.0.1", "eslint-plugin-react": "^7.0.1",
"flow-bin": "^0.49.1", "flow-bin": "^0.50.0",
"jest": "20.1.0-chi.1", "jest": "20.1.0-chi.1",
"jest-phabricator": "20.1.0-chi.1", "jest-phabricator": "20.1.0-chi.1",
"jest-repl": "20.1.0-chi.1", "jest-repl": "20.1.0-chi.1",