Skip to content

Commit 7f9a087

Browse files
authored
Update dependency flow-parser to v0.180.0 (#12990)
* Update `flow-parser` * Update snapshots
1 parent aa1d536 commit 7f9a087

File tree

7 files changed

+9
-16
lines changed

7 files changed

+9
-16
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"fast-glob": "3.2.11",
4949
"fast-json-stable-stringify": "2.1.0",
5050
"find-parent-dir": "0.3.1",
51-
"flow-parser": "0.176.3",
51+
"flow-parser": "0.180.0",
5252
"get-stdin": "8.0.0",
5353
"graphql": "15.6.1",
5454
"html-element-attributes": "3.1.0",

tests/format/js/regex/__snapshots__/jsfmt.spec.js.snap

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`d-flag.js [flow] format 1`] = `
4-
"Invalid flags supplied to RegExp constructor 'd' (1:5)
5-
> 1 | /./d;
6-
| ^
7-
2 |"
8-
`;
9-
103
exports[`d-flag.js [meriyah] format 1`] = `
114
"Unexpected regular expression flag (1:3)
125
> 1 | /./d;

tests/format/js/regex/jsfmt.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
run_spec(__dirname, ["babel", "flow", "typescript"], {
22
errors: {
3-
flow: ["d-flag.js", "v-flag.js"],
3+
flow: ["v-flag.js"],
44
acorn: ["v-flag.js"],
55
espree: ["v-flag.js"],
66
meriyah: ["d-flag.js", "v-flag.js"],

tests/format/misc/errors/flow/__snapshots__/jsfmt.spec.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ exports[`async-arrow-invalid.js [flow] format 1`] = `
99
`;
1010
1111
exports[`default-escaped.js [flow] format 1`] = `
12-
"Unexpected identifier, expected the token \`{\` (1:8)
12+
"Unexpected token \`async\`, expected a declaration, statement or export specifiers (1:8)
1313
> 1 | export asyn\\u{63} from "async";
1414
| ^^^^^^^^^^
1515
2 |"

tests/format/misc/errors/invalid/__snapshots__/jsfmt.spec.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ exports[`snippet: #1 [espree] format 1`] = `
127127
`;
128128

129129
exports[`snippet: #1 [flow] format 1`] = `
130-
"Unexpected token \`switch\` (1:7)
130+
"Unexpected token \`switch\`, expected an identifier (1:7)
131131
> 1 | class switch() {}
132132
| ^^^^^^"
133133
`;

tests/format/typescript/typeparams/consistent/__snapshots__/jsfmt.spec.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ exports[`template-literal-types.ts [babel-flow] format 1`] = `
9292
`;
9393
9494
exports[`template-literal-types.ts [flow] format 1`] = `
95-
"Unexpected token \`\`\` (1:84)
95+
"Unexpected token \`\`\`, expected a type (1:84)
9696
> 1 | const foo1: Fooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo<\`Hello, \${keyof World}\`> = a;
9797
| ^
9898
2 |"

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3427,10 +3427,10 @@ flatten@^1.0.2:
34273427
resolved "https://registry.yarnpkg.com/flatten/-/flatten-1.0.3.tgz#c1283ac9f27b368abc1e36d1ff7b04501a30356b"
34283428
integrity sha512-dVsPA/UwQ8+2uoFe5GHtiBMu48dWLTdsuEd7CKGlZlD78r1TTWBvDuFaFGKCo/ZfEr95Uk56vZoX86OsHkUeIg==
34293429

3430-
flow-parser@0.176.3:
3431-
version "0.176.3"
3432-
resolved "https://registry.yarnpkg.com/flow-parser/-/flow-parser-0.176.3.tgz#a12d9c79ff1e857b70c9574c3e88be06d2f96181"
3433-
integrity sha512-KDzHEoEtc/kbW7NzujhfFkcTCdNi6VK91UpcdT3tc3yEAQdh4JXAEY/0TVJKipjRuVm8E2FxX/3B5Xpm3EFWXA==
3430+
flow-parser@0.180.0:
3431+
version "0.180.0"
3432+
resolved "https://registry.yarnpkg.com/flow-parser/-/flow-parser-0.180.0.tgz#05d49a88715ceca0457607499a018e2bf5908d72"
3433+
integrity sha512-kkzsuGAhckWgn/G+JfCyEa6BYslGrjlH4CJL0LZhdn9of9ukvi7SzVQSFsrEhuhh/zQUghfUEoaeZy1wjQXpUg==
34343434

34353435
form-data@^3.0.0:
34363436
version "3.0.1"

0 commit comments

Comments
 (0)