Skip to content

Commit 3fe5dee

Browse files
authored
Merge pull request #1290 from samwgoldman/master
Update to Flow v0.68
2 parents 70f008e + 207a2fd commit 3fe5dee

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

.flowconfig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
[libs]
1010

1111
[options]
12+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)?)\\)
13+
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)?)\\)?:? #[0-9]+
1214

1315
[version]
14-
^0.66.0
16+
^0.68.0

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"eslint-plugin-babel": "4.1.2",
6363
"eslint-plugin-flowtype": "2.42.0",
6464
"eslint-plugin-prettier": "2.6.0",
65-
"flow-bin": "0.66.0",
65+
"flow-bin": "0.68.0",
6666
"isparta": "4.0.0",
6767
"mocha": "5.0.0",
6868
"prettier": "1.10.2",

src/error/locatedError.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export function locatedError(
2222
): GraphQLError {
2323
// Note: this uses a brand-check to support GraphQL errors originating from
2424
// other contexts.
25+
// $FlowFixMe(>=0.68.0)
2526
if (originalError && Array.isArray(originalError.path)) {
2627
return (originalError: any);
2728
}

src/subscription/mapAsyncIterator.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export default function mapAsyncIterator<T, U>(
2222
const iterator = getAsyncIterator(iterable);
2323
let $return;
2424
let abruptClose;
25+
// $FlowFixMe(>=0.68.0)
2526
if (typeof iterator.return === 'function') {
2627
$return = iterator.return;
2728
abruptClose = error => {
@@ -56,6 +57,7 @@ export default function mapAsyncIterator<T, U>(
5657
: Promise.resolve({ value: undefined, done: true });
5758
},
5859
throw(error) {
60+
// $FlowFixMe(>=0.68.0)
5961
if (typeof iterator.throw === 'function') {
6062
return iterator.throw(error).then(mapResult, mapReject);
6163
}

yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1390,9 +1390,9 @@ flat-cache@^1.2.1:
13901390
graceful-fs "^4.1.2"
13911391
write "^0.2.1"
13921392

1393-
flow-bin@0.66.0:
1394-
version "0.66.0"
1395-
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.66.0.tgz#a96dde7015dc3343fd552a7b4963c02be705ca26"
1393+
flow-bin@0.68.0:
1394+
version "0.68.0"
1395+
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.68.0.tgz#86c2d14857d306eb2e85e274f2eebf543564f623"
13961396

13971397
for-in@^1.0.1:
13981398
version "1.0.2"

0 commit comments

Comments
 (0)