Skip to content

Commit 2328676

Browse files
committed
build(flow): upgrade flow from 66 to 133
Removed suppress comment option as it is removed from flow 133. $FlowIgnore is now a supported suppressed comment. See https://flow.org/en/docs/config/options/#toc-suppress-comment-regex for more details.
1 parent 5f7ee1e commit 2328676

File tree

5 files changed

+11
-8
lines changed

5 files changed

+11
-8
lines changed

Diff for: .flowconfig

-3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,3 @@
44

55
[libs]
66
flow
7-
8-
[options]
9-
suppress_comment= \\(.\\|\n\\)*\\$FlowIgnore

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"eslint-plugin-flowtype": "^2.46.1",
3535
"eslint-plugin-markdown": "^1.0.0-beta.6",
3636
"eslint-plugin-vue-libs": "^2.1.0",
37-
"flow-bin": "^0.66.0",
37+
"flow-bin": "^0.131.0",
3838
"lerna": "^3.20.2",
3939
"markdown-it-include": "^1.0.0",
4040
"rollup": "1",

Diff for: packages/shared/util.js

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ function hasOwnProperty(obj, prop) {
3939
}
4040

4141
export function keys<T: string>(obj: any): Array<T> {
42+
// $FlowIgnore
4243
return Object.keys(obj)
4344
}
4445

Diff for: packages/test-utils/src/wrapper.js

+5
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,9 @@ export default class Wrapper implements BaseWrapper {
378378
let element = this.element
379379
while (element) {
380380
if (
381+
// $FlowIgnore
381382
element.hidden ||
383+
// $FlowIgnore
382384
(element.style &&
383385
(element.style.visibility === 'hidden' ||
384386
element.style.display === 'none'))
@@ -541,6 +543,7 @@ export default class Wrapper implements BaseWrapper {
541543
const event = getCheckedEvent()
542544

543545
if (tagName === 'INPUT' && type === 'checkbox') {
546+
// $FlowIgnore
544547
if (this.element.checked === checked) {
545548
return nextTick()
546549
}
@@ -559,6 +562,7 @@ export default class Wrapper implements BaseWrapper {
559562
)
560563
}
561564

565+
// $FlowIgnore
562566
if (this.element.checked === checked) {
563567
return nextTick()
564568
}
@@ -592,6 +596,7 @@ export default class Wrapper implements BaseWrapper {
592596
throwError(`wrapper.setSelected() cannot be called on this element`)
593597
}
594598

599+
// $FlowIgnore
595600
if (this.element.selected) {
596601
return nextTick()
597602
}

Diff for: yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -6361,10 +6361,10 @@ flatted@^2.0.1, flatted@^2.0.2:
63616361
resolved "https://registry.yarnpkg.com/flatted/-/flatted-2.0.2.tgz#4575b21e2bcee7434aa9be662f4b7b5f9c2b5138"
63626362
integrity sha512-r5wGx7YeOwNWNlCA0wQ86zKyDLMQr+/RB8xy74M4hTphfmjlijTSSXGuH8rnvKZnfT9i+75zmd8jcKdMR4O6jA==
63636363

6364-
flow-bin@^0.66.0:
6365-
version "0.66.0"
6366-
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.66.0.tgz#a96dde7015dc3343fd552a7b4963c02be705ca26"
6367-
integrity sha1-qW3ecBXcM0P9VSp7SWPAK+cFyiY=
6364+
flow-bin@^0.131.0:
6365+
version "0.131.0"
6366+
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.131.0.tgz#d4228b6070afdf3b2a76acdee77a7f3f8e8f5133"
6367+
integrity sha512-fZmoIBcDrtLhy/NNMxwJysSYzMr1ksRcAOMi3AHSoYXfcuQqTvhGJx+wqjlIOqIwz8RRYm8J4V4JrSJbIKP+Xg==
63686368

63696369
flow-remove-types-no-whitespace@^1.0.3:
63706370
version "1.0.5"

0 commit comments

Comments
 (0)