Skip to content

Commit 5301492

Browse files
chore(deps): update dependency core-js to ~3.41.0 (#4691)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: neverland <[email protected]>
1 parent 42eae17 commit 5301492

File tree

5 files changed

+42
-37
lines changed

5 files changed

+42
-37
lines changed

packages/compat/plugin-webpack-swc/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"dependencies": {
2929
"@modern-js/swc-plugins": "0.6.11",
3030
"@swc/helpers": "^0.5.15",
31-
"core-js": "~3.40.0",
31+
"core-js": "~3.41.0",
3232
"deepmerge": "^4.3.1",
3333
"lodash": "^4.17.21",
3434
"picocolors": "^1.1.1",

packages/compat/plugin-webpack-swc/tests/__snapshots__/plugin.test.ts.snap

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ exports[`plugin-webpack-swc > output.sourceMap config for swcMinimizerPlugin 1`]
1313
"options": {
1414
"cwd": "<ROOT>/packages/compat/plugin-webpack-swc/tests",
1515
"env": {
16-
"coreJs": "3.40",
16+
"coreJs": "3.41",
1717
"targets": [
1818
"chrome >= 87",
1919
"edge >= 88",
@@ -70,7 +70,7 @@ exports[`plugin-webpack-swc > output.sourceMap config for swcMinimizerPlugin 1`]
7070
"options": {
7171
"cwd": "<ROOT>/packages/compat/plugin-webpack-swc/tests",
7272
"env": {
73-
"coreJs": "3.40",
73+
"coreJs": "3.41",
7474
"targets": [
7575
"chrome >= 87",
7676
"edge >= 88",
@@ -166,7 +166,7 @@ exports[`plugin-webpack-swc > should apply multiple environment configs correctl
166166
"options": {
167167
"cwd": "<ROOT>/packages/compat/plugin-webpack-swc/tests",
168168
"env": {
169-
"coreJs": "3.40",
169+
"coreJs": "3.41",
170170
"targets": [
171171
"chrome >= 87",
172172
"edge >= 88",
@@ -223,7 +223,7 @@ exports[`plugin-webpack-swc > should apply multiple environment configs correctl
223223
"options": {
224224
"cwd": "<ROOT>/packages/compat/plugin-webpack-swc/tests",
225225
"env": {
226-
"coreJs": "3.40",
226+
"coreJs": "3.41",
227227
"targets": [
228228
"chrome >= 87",
229229
"edge >= 88",
@@ -283,7 +283,7 @@ exports[`plugin-webpack-swc > should apply multiple environment configs correctl
283283
"options": {
284284
"cwd": "<ROOT>/packages/compat/plugin-webpack-swc/tests",
285285
"env": {
286-
"coreJs": "3.40",
286+
"coreJs": "3.41",
287287
"targets": [
288288
"node >= 16",
289289
],
@@ -338,7 +338,7 @@ exports[`plugin-webpack-swc > should apply multiple environment configs correctl
338338
"options": {
339339
"cwd": "<ROOT>/packages/compat/plugin-webpack-swc/tests",
340340
"env": {
341-
"coreJs": "3.40",
341+
"coreJs": "3.41",
342342
"targets": [
343343
"node >= 16",
344344
],
@@ -400,7 +400,7 @@ exports[`plugin-webpack-swc > should apply source.include and source.exclude cor
400400
"options": {
401401
"cwd": "<ROOT>/packages/compat/plugin-webpack-swc/tests",
402402
"env": {
403-
"coreJs": "3.40",
403+
"coreJs": "3.41",
404404
"targets": [
405405
"chrome >= 87",
406406
"edge >= 88",
@@ -457,7 +457,7 @@ exports[`plugin-webpack-swc > should apply source.include and source.exclude cor
457457
"options": {
458458
"cwd": "<ROOT>/packages/compat/plugin-webpack-swc/tests",
459459
"env": {
460-
"coreJs": "3.40",
460+
"coreJs": "3.41",
461461
"targets": [
462462
"chrome >= 87",
463463
"edge >= 88",
@@ -519,7 +519,7 @@ exports[`plugin-webpack-swc > should disable react refresh when dev.hmr is false
519519
"options": {
520520
"cwd": "<ROOT>/packages/compat/plugin-webpack-swc/tests",
521521
"env": {
522-
"coreJs": "3.40",
522+
"coreJs": "3.41",
523523
"targets": [
524524
"chrome >= 87",
525525
"edge >= 88",
@@ -576,7 +576,7 @@ exports[`plugin-webpack-swc > should disable react refresh when dev.hmr is false
576576
"options": {
577577
"cwd": "<ROOT>/packages/compat/plugin-webpack-swc/tests",
578578
"env": {
579-
"coreJs": "3.40",
579+
"coreJs": "3.41",
580580
"targets": [
581581
"chrome >= 87",
582582
"edge >= 88",
@@ -632,7 +632,7 @@ exports[`plugin-webpack-swc > should disable react refresh when target is not we
632632
"options": {
633633
"cwd": "<ROOT>/packages/compat/plugin-webpack-swc/tests",
634634
"env": {
635-
"coreJs": "3.40",
635+
"coreJs": "3.41",
636636
"targets": [
637637
"node >= 16",
638638
],
@@ -686,7 +686,7 @@ exports[`plugin-webpack-swc > should disable react refresh when target is not we
686686
"options": {
687687
"cwd": "<ROOT>/packages/compat/plugin-webpack-swc/tests",
688688
"env": {
689-
"coreJs": "3.40",
689+
"coreJs": "3.41",
690690
"targets": [
691691
"node >= 16",
692692
],
@@ -739,7 +739,7 @@ exports[`plugin-webpack-swc > should disable react refresh when target is not we
739739
"options": {
740740
"cwd": "<ROOT>/packages/compat/plugin-webpack-swc/tests",
741741
"env": {
742-
"coreJs": "3.40",
742+
"coreJs": "3.41",
743743
"targets": [
744744
"chrome >= 87",
745745
"edge >= 88",
@@ -796,7 +796,7 @@ exports[`plugin-webpack-swc > should disable react refresh when target is not we
796796
"options": {
797797
"cwd": "<ROOT>/packages/compat/plugin-webpack-swc/tests",
798798
"env": {
799-
"coreJs": "3.40",
799+
"coreJs": "3.41",
800800
"targets": [
801801
"chrome >= 87",
802802
"edge >= 88",
@@ -852,7 +852,7 @@ exports[`plugin-webpack-swc > should disable react refresh when target is not we
852852
"options": {
853853
"cwd": "<ROOT>/packages/compat/plugin-webpack-swc/tests",
854854
"env": {
855-
"coreJs": "3.40",
855+
"coreJs": "3.41",
856856
"targets": [
857857
"chrome >= 87",
858858
"edge >= 88",
@@ -909,7 +909,7 @@ exports[`plugin-webpack-swc > should disable react refresh when target is not we
909909
"options": {
910910
"cwd": "<ROOT>/packages/compat/plugin-webpack-swc/tests",
911911
"env": {
912-
"coreJs": "3.40",
912+
"coreJs": "3.41",
913913
"targets": [
914914
"chrome >= 87",
915915
"edge >= 88",
@@ -1068,7 +1068,7 @@ exports[`plugin-webpack-swc > should set multiple swc-loader 1`] = `
10681068
"options": {
10691069
"cwd": "<ROOT>/packages/compat/plugin-webpack-swc/tests",
10701070
"env": {
1071-
"coreJs": "3.40",
1071+
"coreJs": "3.41",
10721072
"targets": [
10731073
"chrome >= 87",
10741074
"edge >= 88",
@@ -1118,7 +1118,7 @@ exports[`plugin-webpack-swc > should set multiple swc-loader 1`] = `
11181118
"options": {
11191119
"cwd": "<ROOT>/packages/compat/plugin-webpack-swc/tests",
11201120
"env": {
1121-
"coreJs": "3.40",
1121+
"coreJs": "3.41",
11221122
"targets": [
11231123
"chrome >= 87",
11241124
"edge >= 88",
@@ -1176,7 +1176,7 @@ exports[`plugin-webpack-swc > should set multiple swc-loader 1`] = `
11761176
"options": {
11771177
"cwd": "<ROOT>/packages/compat/plugin-webpack-swc/tests",
11781178
"env": {
1179-
"coreJs": "3.40",
1179+
"coreJs": "3.41",
11801180
"targets": [
11811181
"chrome >= 87",
11821182
"edge >= 88",
@@ -1233,7 +1233,7 @@ exports[`plugin-webpack-swc > should set swc-loader 1`] = `
12331233
"options": {
12341234
"cwd": "<ROOT>/packages/compat/plugin-webpack-swc/tests",
12351235
"env": {
1236-
"coreJs": "3.40",
1236+
"coreJs": "3.41",
12371237
"targets": [
12381238
"chrome >= 87",
12391239
"edge >= 88",
@@ -1290,7 +1290,7 @@ exports[`plugin-webpack-swc > should set swc-loader 1`] = `
12901290
"options": {
12911291
"cwd": "<ROOT>/packages/compat/plugin-webpack-swc/tests",
12921292
"env": {
1293-
"coreJs": "3.40",
1293+
"coreJs": "3.41",
12941294
"targets": [
12951295
"chrome >= 87",
12961296
"edge >= 88",
@@ -1354,7 +1354,7 @@ exports[`plugin-webpack-swc > should use output config 1`] = `
13541354
"options": {
13551355
"cwd": "<ROOT>/packages/compat/plugin-webpack-swc/tests",
13561356
"env": {
1357-
"coreJs": "3.40",
1357+
"coreJs": "3.41",
13581358
"targets": [
13591359
"chrome >= 87",
13601360
"edge >= 88",
@@ -1411,7 +1411,7 @@ exports[`plugin-webpack-swc > should use output config 1`] = `
14111411
"options": {
14121412
"cwd": "<ROOT>/packages/compat/plugin-webpack-swc/tests",
14131413
"env": {
1414-
"coreJs": "3.40",
1414+
"coreJs": "3.41",
14151415
"targets": [
14161416
"chrome >= 87",
14171417
"edge >= 88",

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"@rspack/core": "1.2.5",
5555
"@rspack/lite-tapable": "~1.0.1",
5656
"@swc/helpers": "^0.5.15",
57-
"core-js": "~3.40.0",
57+
"core-js": "~3.41.0",
5858
"jiti": "^2.4.2"
5959
},
6060
"devDependencies": {

packages/core/tests/__snapshots__/swc.test.ts.snap

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ exports[`plugin-swc > should apply environment config correctly 1`] = `
426426
"loader": "builtin:swc-loader",
427427
"options": {
428428
"env": {
429-
"coreJs": "3.40",
429+
"coreJs": "3.41",
430430
"mode": "usage",
431431
"shippedProposals": true,
432432
"targets": [
@@ -482,7 +482,7 @@ exports[`plugin-swc > should apply environment config correctly 1`] = `
482482
"loader": "builtin:swc-loader",
483483
"options": {
484484
"env": {
485-
"coreJs": "3.40",
485+
"coreJs": "3.41",
486486
"mode": "usage",
487487
"shippedProposals": true,
488488
"targets": [
@@ -1146,7 +1146,7 @@ exports[`plugin-swc > should enable entry mode preset_env 1`] = `
11461146
"loader": "builtin:swc-loader",
11471147
"options": {
11481148
"env": {
1149-
"coreJs": "3.40",
1149+
"coreJs": "3.41",
11501150
"mode": "entry",
11511151
"targets": [
11521152
"chrome >= 87",
@@ -1194,7 +1194,7 @@ exports[`plugin-swc > should enable entry mode preset_env 1`] = `
11941194
"loader": "builtin:swc-loader",
11951195
"options": {
11961196
"env": {
1197-
"coreJs": "3.40",
1197+
"coreJs": "3.41",
11981198
"mode": "entry",
11991199
"targets": [
12001200
"chrome >= 87",
@@ -1272,7 +1272,7 @@ exports[`plugin-swc > should enable usage mode preset_env 1`] = `
12721272
"loader": "builtin:swc-loader",
12731273
"options": {
12741274
"env": {
1275-
"coreJs": "3.40",
1275+
"coreJs": "3.41",
12761276
"mode": "usage",
12771277
"shippedProposals": true,
12781278
"targets": [
@@ -1321,7 +1321,7 @@ exports[`plugin-swc > should enable usage mode preset_env 1`] = `
13211321
"loader": "builtin:swc-loader",
13221322
"options": {
13231323
"env": {
1324-
"coreJs": "3.40",
1324+
"coreJs": "3.41",
13251325
"mode": "usage",
13261326
"shippedProposals": true,
13271327
"targets": [
@@ -1401,7 +1401,7 @@ exports[`plugin-swc > should has correct core-js 1`] = `
14011401
"loader": "builtin:swc-loader",
14021402
"options": {
14031403
"env": {
1404-
"coreJs": "3.40",
1404+
"coreJs": "3.41",
14051405
"mode": "entry",
14061406
"targets": [
14071407
"chrome >= 87",
@@ -1449,7 +1449,7 @@ exports[`plugin-swc > should has correct core-js 1`] = `
14491449
"loader": "builtin:swc-loader",
14501450
"options": {
14511451
"env": {
1452-
"coreJs": "3.40",
1452+
"coreJs": "3.41",
14531453
"mode": "entry",
14541454
"targets": [
14551455
"chrome >= 87",

pnpm-lock.yaml

Lines changed: 9 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)