Skip to content

Commit

Permalink
chore(deps): update babel to v7.25.6 (prettier#16627)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <[email protected]>
  • Loading branch information
renovate[bot] and fisker authored Aug 31, 2024
1 parent db465b4 commit c067d27
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 29 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
"dependencies": {
"@angular/compiler": "18.2.1",
"@babel/code-frame": "7.24.7",
"@babel/parser": "7.25.4",
"@babel/types": "7.25.4",
"@babel/parser": "7.25.6",
"@babel/types": "7.25.6",
"@glimmer/syntax": "0.92.0",
"@prettier/is-es5-identifier-name": "0.2.0",
"@prettier/parse-srcset": "3.1.0",
Expand Down Expand Up @@ -105,7 +105,7 @@
"yaml-unist-parser": "2.0.1"
},
"devDependencies": {
"@babel/generator": "7.25.5",
"@babel/generator": "7.25.6",
"@eslint/compat": "1.1.1",
"@eslint/eslintrc": "3.1.0",
"@eslint/js": "9.9.1",
Expand Down
18 changes: 9 additions & 9 deletions tests/unit/syntax-transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,25 +25,25 @@ test(".at", () => {
expect(transform("foo.at(-1)")).toMatchInlineSnapshot(`
"import __at from "<SHIMS>/at.js";
__at( /* isOptionalObject */false, foo, -1);"
__at(/* isOptionalObject */false, foo, -1);"
`);

expect(transform("foo?.at(-1)")).toMatchInlineSnapshot(`
"import __at from "<SHIMS>/at.js";
__at( /* isOptionalObject */true, foo, -1);"
__at(/* isOptionalObject */true, foo, -1);"
`);

expect(transform("foo?.bar.baz.at(-1)")).toMatchInlineSnapshot(`
"import __at from "<SHIMS>/at.js";
__at( /* isOptionalObject */true, foo?.bar.baz, -1);"
__at(/* isOptionalObject */true, foo?.bar.baz, -1);"
`);

expect(transform("foo.at(-1)?.bar")).toMatchInlineSnapshot(`
"import __at from "<SHIMS>/at.js";
__at( /* isOptionalObject */false, foo, -1)?.bar;"
__at(/* isOptionalObject */false, foo, -1)?.bar;"
`);

// Don't support optional call
Expand All @@ -54,20 +54,20 @@ test("String#replaceAll", () => {
expect(transform("foo.replaceAll('a', 'b')")).toMatchInlineSnapshot(`
"import __stringReplaceAll from "<SHIMS>/string-replace-all.js";
__stringReplaceAll( /* isOptionalObject */false, foo, 'a', 'b');"
__stringReplaceAll(/* isOptionalObject */false, foo, 'a', 'b');"
`);
});

test("Array#findLast", () => {
expect(transform("foo.findLast(callback)")).toMatchInlineSnapshot(`
"import __arrayFindLast from "<SHIMS>/array-find-last.js";
__arrayFindLast( /* isOptionalObject */false, foo, callback);"
__arrayFindLast(/* isOptionalObject */false, foo, callback);"
`);
expect(transform("foo?.findLast(callback)")).toMatchInlineSnapshot(`
"import __arrayFindLast from "<SHIMS>/array-find-last.js";
__arrayFindLast( /* isOptionalObject */true, foo, callback);"
__arrayFindLast(/* isOptionalObject */true, foo, callback);"
`);

// Don't support
Expand All @@ -80,12 +80,12 @@ test("Array#findLastIndex", () => {
expect(transform("foo.findLastIndex(callback)")).toMatchInlineSnapshot(`
"import __arrayFindLastIndex from "<SHIMS>/array-find-last-index.js";
__arrayFindLastIndex( /* isOptionalObject */false, foo, callback);"
__arrayFindLastIndex(/* isOptionalObject */false, foo, callback);"
`);
expect(transform("foo?.findLastIndex(callback)")).toMatchInlineSnapshot(`
"import __arrayFindLastIndex from "<SHIMS>/array-find-last-index.js";
__arrayFindLastIndex( /* isOptionalObject */true, foo, callback);"
__arrayFindLastIndex(/* isOptionalObject */true, foo, callback);"
`);

// Don't support
Expand Down
34 changes: 17 additions & 17 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,15 @@ __metadata:
languageName: node
linkType: hard

"@babel/generator@npm:7.25.5, @babel/generator@npm:^7.24.7, @babel/generator@npm:^7.7.2":
version: 7.25.5
resolution: "@babel/generator@npm:7.25.5"
"@babel/generator@npm:7.25.6, @babel/generator@npm:^7.24.7, @babel/generator@npm:^7.7.2":
version: 7.25.6
resolution: "@babel/generator@npm:7.25.6"
dependencies:
"@babel/types": "npm:^7.25.4"
"@babel/types": "npm:^7.25.6"
"@jridgewell/gen-mapping": "npm:^0.3.5"
"@jridgewell/trace-mapping": "npm:^0.3.25"
jsesc: "npm:^2.5.1"
checksum: 10/e6d046afe739cfa706c40c127b7436731acb2a3146d408a7d89dbf16448491b35bc09b7d285cc19c2c1f8980d74b5a99df200d67c859bb5260986614685b0770
checksum: 10/541e4fbb6ea7806f44232d70f25bf09dee9a57fe43d559e375536870ca5261ebb4647fec3af40dcbb3325ea2a49aff040e12a4e6f88609eaa88f10c4e27e31f8
languageName: node
linkType: hard

Expand Down Expand Up @@ -225,14 +225,14 @@ __metadata:
languageName: node
linkType: hard

"@babel/parser@npm:7.25.4, @babel/parser@npm:^7.1.0, @babel/parser@npm:^7.14.7, @babel/parser@npm:^7.20.7, @babel/parser@npm:^7.23.9, @babel/parser@npm:^7.24.7":
version: 7.25.4
resolution: "@babel/parser@npm:7.25.4"
"@babel/parser@npm:7.25.6, @babel/parser@npm:^7.1.0, @babel/parser@npm:^7.14.7, @babel/parser@npm:^7.20.7, @babel/parser@npm:^7.23.9, @babel/parser@npm:^7.24.7":
version: 7.25.6
resolution: "@babel/parser@npm:7.25.6"
dependencies:
"@babel/types": "npm:^7.25.4"
"@babel/types": "npm:^7.25.6"
bin:
parser: ./bin/babel-parser.js
checksum: 10/343b8a76c43549e370fe96f4f6d564382a6cdff60e9c3b8a594c51e4cefd58ec9945e82e8c4dfbf15ac865a04e4b29806531440760748e28568e6aec21bc9cb5
checksum: 10/830aab72116aa14eb8d61bfa8f9d69fc8f3a43d909ce993cb4350ae14d3af1a2f740a54410a22d821c48a253263643dfecbc094f9608e6a70ce9ff3c0bbfe91a
languageName: node
linkType: hard

Expand Down Expand Up @@ -419,14 +419,14 @@ __metadata:
languageName: node
linkType: hard

"@babel/types@npm:7.25.4, @babel/types@npm:^7.0.0, @babel/types@npm:^7.20.7, @babel/types@npm:^7.24.7, @babel/types@npm:^7.25.4, @babel/types@npm:^7.3.3":
version: 7.25.4
resolution: "@babel/types@npm:7.25.4"
"@babel/types@npm:7.25.6, @babel/types@npm:^7.0.0, @babel/types@npm:^7.20.7, @babel/types@npm:^7.24.7, @babel/types@npm:^7.25.6, @babel/types@npm:^7.3.3":
version: 7.25.6
resolution: "@babel/types@npm:7.25.6"
dependencies:
"@babel/helper-string-parser": "npm:^7.24.8"
"@babel/helper-validator-identifier": "npm:^7.24.7"
to-fast-properties: "npm:^2.0.0"
checksum: 10/d4a1194612d0a2a6ce9a0be325578b43d74e5f5278c67409468ba0a924341f0ad349ef0245ee8a36da3766efe5cc59cd6bb52547674150f97d8dc4c8cfa5d6b8
checksum: 10/7b54665e1b51f525fe0f451efdd9fe7a4a6dfba3fd4956c3530bc77336b66ffe3d78c093796ed044119b5d213176af7cf326f317a2057c538d575c6cefcb3562
languageName: node
linkType: hard

Expand Down Expand Up @@ -7295,9 +7295,9 @@ __metadata:
dependencies:
"@angular/compiler": "npm:18.2.1"
"@babel/code-frame": "npm:7.24.7"
"@babel/generator": "npm:7.25.5"
"@babel/parser": "npm:7.25.4"
"@babel/types": "npm:7.25.4"
"@babel/generator": "npm:7.25.6"
"@babel/parser": "npm:7.25.6"
"@babel/types": "npm:7.25.6"
"@eslint/compat": "npm:1.1.1"
"@eslint/eslintrc": "npm:3.1.0"
"@eslint/js": "npm:9.9.1"
Expand Down

0 comments on commit c067d27

Please sign in to comment.