Skip to content

Commit 71bf8b2

Browse files
committed
refactor(shared-scripts): Use plugin-transform-async-generator-functions
`plugin-proposal-async-generator-functions` is unmaintained and was replaced by `plugin-transform-async-generator-functions`
1 parent aaaca8d commit 71bf8b2

File tree

4 files changed

+63
-35
lines changed

4 files changed

+63
-35
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"@angular/benchpress": "0.3.0",
2121
"@angular/build": "19.2.0-rc.0",
2222
"@babel/core": "^7.16.0",
23-
"@babel/plugin-proposal-async-generator-functions": "^7.20.1",
23+
"@babel/plugin-transform-async-generator-functions": "^7.26.8",
2424
"@bazel/buildifier": "6.3.3",
2525
"@bazel/concatjs": "5.8.1",
2626
"@bazel/esbuild": "5.8.1",

shared-scripts/angular-optimization/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ js_library(
2626
"@npm//@angular/build",
2727
"@npm//@angular/compiler-cli",
2828
"@npm//@babel/core",
29-
"@npm//@babel/plugin-proposal-async-generator-functions",
29+
"@npm//@babel/plugin-transform-async-generator-functions",
3030
],
3131
)

shared-scripts/angular-optimization/esbuild-plugin.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export async function createEsbuildAngularOptimizePlugin(opts, additionalBabelPl
3636

3737
if (opts.downlevelAsyncGeneratorsIfPresent) {
3838
downlevelAsyncGeneratorPlugin = (
39-
await import('@babel/plugin-proposal-async-generator-functions')
39+
await import('@babel/plugin-transform-async-generator-functions')
4040
).default.default;
4141
}
4242

yarn.lock

Lines changed: 60 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ __metadata:
241241
"@angular/platform-browser-dynamic": "npm:20.0.0-next.0"
242242
"@angular/router": "npm:20.0.0-next.0"
243243
"@babel/core": "npm:^7.16.0"
244-
"@babel/plugin-proposal-async-generator-functions": "npm:^7.20.1"
244+
"@babel/plugin-transform-async-generator-functions": "npm:^7.26.8"
245245
"@bazel/bazelisk": "npm:^1.11.0"
246246
"@bazel/buildifier": "npm:6.3.3"
247247
"@bazel/concatjs": "npm:5.8.1"
@@ -706,6 +706,19 @@ __metadata:
706706
languageName: node
707707
linkType: hard
708708

709+
"@babel/generator@npm:^7.26.10":
710+
version: 7.26.10
711+
resolution: "@babel/generator@npm:7.26.10"
712+
dependencies:
713+
"@babel/parser": "npm:^7.26.10"
714+
"@babel/types": "npm:^7.26.10"
715+
"@jridgewell/gen-mapping": "npm:^0.3.5"
716+
"@jridgewell/trace-mapping": "npm:^0.3.25"
717+
jsesc: "npm:^3.0.2"
718+
checksum: 10c0/88b3b3ea80592fc89349c4e1a145e1386e4042866d2507298adf452bf972f68d13bf699a845e6ab8c028bd52c2247013eb1221b86e1db5c9779faacba9c4b10e
719+
languageName: node
720+
linkType: hard
721+
709722
"@babel/generator@npm:^7.26.9":
710723
version: 7.26.9
711724
resolution: "@babel/generator@npm:7.26.9"
@@ -741,15 +754,6 @@ __metadata:
741754
languageName: node
742755
linkType: hard
743756

744-
"@babel/helper-environment-visitor@npm:^7.18.9":
745-
version: 7.24.7
746-
resolution: "@babel/helper-environment-visitor@npm:7.24.7"
747-
dependencies:
748-
"@babel/types": "npm:^7.24.7"
749-
checksum: 10c0/36ece78882b5960e2d26abf13cf15ff5689bf7c325b10a2895a74a499e712de0d305f8d78bb382dd3c05cfba7e47ec98fe28aab5674243e0625cd38438dd0b2d
750-
languageName: node
751-
linkType: hard
752-
753757
"@babel/helper-module-imports@npm:^7.25.9":
754758
version: 7.25.9
755759
resolution: "@babel/helper-module-imports@npm:7.25.9"
@@ -773,14 +777,14 @@ __metadata:
773777
languageName: node
774778
linkType: hard
775779

776-
"@babel/helper-plugin-utils@npm:^7.20.2, @babel/helper-plugin-utils@npm:^7.25.9, @babel/helper-plugin-utils@npm:^7.8.0":
780+
"@babel/helper-plugin-utils@npm:^7.25.9, @babel/helper-plugin-utils@npm:^7.26.5":
777781
version: 7.26.5
778782
resolution: "@babel/helper-plugin-utils@npm:7.26.5"
779783
checksum: 10c0/cdaba71d4b891aa6a8dfbe5bac2f94effb13e5fa4c2c487667fdbaa04eae059b78b28d85a885071f45f7205aeb56d16759e1bed9c118b94b16e4720ef1ab0f65
780784
languageName: node
781785
linkType: hard
782786

783-
"@babel/helper-remap-async-to-generator@npm:^7.18.9":
787+
"@babel/helper-remap-async-to-generator@npm:^7.25.9":
784788
version: 7.25.9
785789
resolution: "@babel/helper-remap-async-to-generator@npm:7.25.9"
786790
dependencies:
@@ -855,39 +859,38 @@ __metadata:
855859
languageName: node
856860
linkType: hard
857861

858-
"@babel/plugin-proposal-async-generator-functions@npm:^7.20.1":
859-
version: 7.20.7
860-
resolution: "@babel/plugin-proposal-async-generator-functions@npm:7.20.7"
862+
"@babel/parser@npm:^7.26.10":
863+
version: 7.26.10
864+
resolution: "@babel/parser@npm:7.26.10"
861865
dependencies:
862-
"@babel/helper-environment-visitor": "npm:^7.18.9"
863-
"@babel/helper-plugin-utils": "npm:^7.20.2"
864-
"@babel/helper-remap-async-to-generator": "npm:^7.18.9"
865-
"@babel/plugin-syntax-async-generators": "npm:^7.8.4"
866-
peerDependencies:
867-
"@babel/core": ^7.0.0-0
868-
checksum: 10c0/0f4bc01805704ae4840536acc9888c50a32250e9188d025063bd17fe77ed171a12361c3dc83ce99664dcd73aec612accb8da95b0d8b825c854931b2860c0bfb5
866+
"@babel/types": "npm:^7.26.10"
867+
bin:
868+
parser: ./bin/babel-parser.js
869+
checksum: 10c0/c47f5c0f63cd12a663e9dc94a635f9efbb5059d98086a92286d7764357c66bceba18ccbe79333e01e9be3bfb8caba34b3aaebfd8e62c3d5921c8cf907267be75
869870
languageName: node
870871
linkType: hard
871872

872-
"@babel/plugin-syntax-async-generators@npm:^7.8.4":
873-
version: 7.8.4
874-
resolution: "@babel/plugin-syntax-async-generators@npm:7.8.4"
873+
"@babel/plugin-syntax-import-attributes@npm:7.26.0":
874+
version: 7.26.0
875+
resolution: "@babel/plugin-syntax-import-attributes@npm:7.26.0"
875876
dependencies:
876-
"@babel/helper-plugin-utils": "npm:^7.8.0"
877+
"@babel/helper-plugin-utils": "npm:^7.25.9"
877878
peerDependencies:
878879
"@babel/core": ^7.0.0-0
879-
checksum: 10c0/d13efb282838481348c71073b6be6245b35d4f2f964a8f71e4174f235009f929ef7613df25f8d2338e2d3e44bc4265a9f8638c6aaa136d7a61fe95985f9725c8
880+
checksum: 10c0/e594c185b12bfe0bbe7ca78dfeebe870e6d569a12128cac86f3164a075fe0ff70e25ddbd97fd0782906b91f65560c9dc6957716b7b4a68aba2516c9b7455e352
880881
languageName: node
881882
linkType: hard
882883

883-
"@babel/plugin-syntax-import-attributes@npm:7.26.0":
884-
version: 7.26.0
885-
resolution: "@babel/plugin-syntax-import-attributes@npm:7.26.0"
884+
"@babel/plugin-transform-async-generator-functions@npm:^7.26.8":
885+
version: 7.26.8
886+
resolution: "@babel/plugin-transform-async-generator-functions@npm:7.26.8"
886887
dependencies:
887-
"@babel/helper-plugin-utils": "npm:^7.25.9"
888+
"@babel/helper-plugin-utils": "npm:^7.26.5"
889+
"@babel/helper-remap-async-to-generator": "npm:^7.25.9"
890+
"@babel/traverse": "npm:^7.26.8"
888891
peerDependencies:
889892
"@babel/core": ^7.0.0-0
890-
checksum: 10c0/e594c185b12bfe0bbe7ca78dfeebe870e6d569a12128cac86f3164a075fe0ff70e25ddbd97fd0782906b91f65560c9dc6957716b7b4a68aba2516c9b7455e352
893+
checksum: 10c0/f6fefce963fe2e6268dde1958975d7adbce65fba94ca6f4bc554c90da03104ad1dd2e66d03bc0462da46868498428646e30b03a218ef0e5a84bfc87a7e375cec
891894
languageName: node
892895
linkType: hard
893896

@@ -917,6 +920,21 @@ __metadata:
917920
languageName: node
918921
linkType: hard
919922

923+
"@babel/traverse@npm:^7.26.8":
924+
version: 7.26.10
925+
resolution: "@babel/traverse@npm:7.26.10"
926+
dependencies:
927+
"@babel/code-frame": "npm:^7.26.2"
928+
"@babel/generator": "npm:^7.26.10"
929+
"@babel/parser": "npm:^7.26.10"
930+
"@babel/template": "npm:^7.26.9"
931+
"@babel/types": "npm:^7.26.10"
932+
debug: "npm:^4.3.1"
933+
globals: "npm:^11.1.0"
934+
checksum: 10c0/4e86bb4e3c30a6162bb91df86329df79d96566c3e2d9ccba04f108c30473a3a4fd360d9990531493d90f6a12004f10f616bf9b9229ca30c816b708615e9de2ac
935+
languageName: node
936+
linkType: hard
937+
920938
"@babel/types@npm:^7.0.0, @babel/types@npm:^7.20.7, @babel/types@npm:^7.24.7, @babel/types@npm:^7.25.9, @babel/types@npm:^7.26.9":
921939
version: 7.26.9
922940
resolution: "@babel/types@npm:7.26.9"
@@ -927,6 +945,16 @@ __metadata:
927945
languageName: node
928946
linkType: hard
929947

948+
"@babel/types@npm:^7.26.10":
949+
version: 7.26.10
950+
resolution: "@babel/types@npm:7.26.10"
951+
dependencies:
952+
"@babel/helper-string-parser": "npm:^7.25.9"
953+
"@babel/helper-validator-identifier": "npm:^7.25.9"
954+
checksum: 10c0/7a7f83f568bfc3dfabfaf9ae3a97ab5c061726c0afa7dcd94226d4f84a81559da368ed79671e3a8039d16f12476cf110381a377ebdea07587925f69628200dac
955+
languageName: node
956+
linkType: hard
957+
930958
"@bazel/bazelisk@npm:^1.11.0":
931959
version: 1.25.0
932960
resolution: "@bazel/bazelisk@npm:1.25.0"

0 commit comments

Comments
 (0)