Skip to content

Commit dc4032a

Browse files
authored
chore: Update Webpack versions (#206)
1 parent 0efd87f commit dc4032a

File tree

6 files changed

+141
-151
lines changed

6 files changed

+141
-151
lines changed

examples/webpack/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"devDependencies": {
1212
"@codecov/webpack-plugin": "workspace:^",
13-
"webpack": "^5.90.0",
13+
"webpack": "^5.96.1",
1414
"webpack-cli": "^5.1.4"
1515
},
1616
"engines": {

integration-tests/fixtures/generate-bundle-stats/webpack/__snapshots__/webpack-plugin.test.ts.snap

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -4,44 +4,44 @@ exports[`Generating webpack stats 5 {"format":"array-push","expected":"array-pus
44
{
55
"assets": [
66
{
7-
"gzipSize": 25254,
8-
"name": "main-6c1d26e76f6ba1fc75c8.js",
7+
"gzipSize": 25250,
8+
"name": "main-2c458a0c7e378af1ec1a.js",
99
"normalized": "main-*.js",
10-
"size": 70961,
10+
"size": 70959,
1111
},
1212
],
1313
"builtAt": Any<Number>,
1414
"bundleName": StringContaining "test-webpack-v5-array-push",
1515
"bundler": {
1616
"name": "webpack",
17-
"version": "5.90.0",
17+
"version": "5.96.1",
1818
},
1919
"chunks": [
2020
{
2121
"entry": true,
2222
"files": [
23-
"main-6c1d26e76f6ba1fc75c8.js",
23+
"main-2c458a0c7e378af1ec1a.js",
2424
],
25-
"id": "179",
25+
"id": "792",
2626
"initial": true,
2727
"names": [
2828
"main",
2929
],
30-
"uniqueId": "0-179",
30+
"uniqueId": "0-792",
3131
},
3232
],
3333
"duration": Any<Number>,
3434
"modules": [
3535
{
3636
"chunkUniqueIds": [
37-
"0-179",
37+
"0-792",
3838
],
3939
"name": "./test-apps/webpack/src/main.js + 1 modules",
4040
"size": 395,
4141
},
4242
{
4343
"chunkUniqueIds": [
44-
"0-179",
44+
"0-792",
4545
],
4646
"name": "../node_modules/.pnpm/[email protected]/node_modules/lodash/lodash.js",
4747
"size": 544098,
@@ -53,14 +53,14 @@ exports[`Generating webpack stats 5 {"format":"array-push","expected":"array-pus
5353
},
5454
{
5555
"chunkUniqueIds": [
56-
"0-179",
56+
"0-792",
5757
],
5858
"name": "webpack/runtime/global",
5959
"size": 221,
6060
},
6161
{
6262
"chunkUniqueIds": [
63-
"0-179",
63+
"0-792",
6464
],
6565
"name": "webpack/runtime/node module decorator",
6666
"size": 123,
@@ -79,44 +79,44 @@ exports[`Generating webpack stats 5 {"format":"commonjs","expected":"cjs"} match
7979
{
8080
"assets": [
8181
{
82-
"gzipSize": 25254,
83-
"name": "main-6c1d26e76f6ba1fc75c8.js",
82+
"gzipSize": 25250,
83+
"name": "main-2c458a0c7e378af1ec1a.js",
8484
"normalized": "main-*.js",
85-
"size": 70961,
85+
"size": 70959,
8686
},
8787
],
8888
"builtAt": Any<Number>,
8989
"bundleName": StringContaining "test-webpack-v5-cjs",
9090
"bundler": {
9191
"name": "webpack",
92-
"version": "5.90.0",
92+
"version": "5.96.1",
9393
},
9494
"chunks": [
9595
{
9696
"entry": true,
9797
"files": [
98-
"main-6c1d26e76f6ba1fc75c8.js",
98+
"main-2c458a0c7e378af1ec1a.js",
9999
],
100-
"id": "179",
100+
"id": "792",
101101
"initial": true,
102102
"names": [
103103
"main",
104104
],
105-
"uniqueId": "0-179",
105+
"uniqueId": "0-792",
106106
},
107107
],
108108
"duration": Any<Number>,
109109
"modules": [
110110
{
111111
"chunkUniqueIds": [
112-
"0-179",
112+
"0-792",
113113
],
114114
"name": "./test-apps/webpack/src/main.js + 1 modules",
115115
"size": 395,
116116
},
117117
{
118118
"chunkUniqueIds": [
119-
"0-179",
119+
"0-792",
120120
],
121121
"name": "../node_modules/.pnpm/[email protected]/node_modules/lodash/lodash.js",
122122
"size": 544098,
@@ -128,14 +128,14 @@ exports[`Generating webpack stats 5 {"format":"commonjs","expected":"cjs"} match
128128
},
129129
{
130130
"chunkUniqueIds": [
131-
"0-179",
131+
"0-792",
132132
],
133133
"name": "webpack/runtime/global",
134134
"size": 221,
135135
},
136136
{
137137
"chunkUniqueIds": [
138-
"0-179",
138+
"0-792",
139139
],
140140
"name": "webpack/runtime/node module decorator",
141141
"size": 123,
@@ -154,44 +154,44 @@ exports[`Generating webpack stats 5 {"format":"module","expected":"esm"} matches
154154
{
155155
"assets": [
156156
{
157-
"gzipSize": 25254,
158-
"name": "main-6c1d26e76f6ba1fc75c8.js",
157+
"gzipSize": 25250,
158+
"name": "main-2c458a0c7e378af1ec1a.js",
159159
"normalized": "main-*.js",
160-
"size": 70961,
160+
"size": 70959,
161161
},
162162
],
163163
"builtAt": Any<Number>,
164164
"bundleName": StringContaining "test-webpack-v5-esm",
165165
"bundler": {
166166
"name": "webpack",
167-
"version": "5.90.0",
167+
"version": "5.96.1",
168168
},
169169
"chunks": [
170170
{
171171
"entry": true,
172172
"files": [
173-
"main-6c1d26e76f6ba1fc75c8.js",
173+
"main-2c458a0c7e378af1ec1a.js",
174174
],
175-
"id": "179",
175+
"id": "792",
176176
"initial": true,
177177
"names": [
178178
"main",
179179
],
180-
"uniqueId": "0-179",
180+
"uniqueId": "0-792",
181181
},
182182
],
183183
"duration": Any<Number>,
184184
"modules": [
185185
{
186186
"chunkUniqueIds": [
187-
"0-179",
187+
"0-792",
188188
],
189189
"name": "./test-apps/webpack/src/main.js + 1 modules",
190190
"size": 395,
191191
},
192192
{
193193
"chunkUniqueIds": [
194-
"0-179",
194+
"0-792",
195195
],
196196
"name": "../node_modules/.pnpm/[email protected]/node_modules/lodash/lodash.js",
197197
"size": 544098,
@@ -203,14 +203,14 @@ exports[`Generating webpack stats 5 {"format":"module","expected":"esm"} matches
203203
},
204204
{
205205
"chunkUniqueIds": [
206-
"0-179",
206+
"0-792",
207207
],
208208
"name": "webpack/runtime/global",
209209
"size": 221,
210210
},
211211
{
212212
"chunkUniqueIds": [
213-
"0-179",
213+
"0-792",
214214
],
215215
"name": "webpack/runtime/node module decorator",
216216
"size": 123,
@@ -229,44 +229,44 @@ exports[`Generating webpack stats 5 source maps are enabled does not include any
229229
{
230230
"assets": [
231231
{
232-
"gzipSize": 25254,
233-
"name": "main-6c1d26e76f6ba1fc75c8.js",
232+
"gzipSize": 25250,
233+
"name": "main-2c458a0c7e378af1ec1a.js",
234234
"normalized": "main-*.js",
235-
"size": 70961,
235+
"size": 70959,
236236
},
237237
],
238238
"builtAt": Any<Number>,
239239
"bundleName": StringNotContaining ".map",
240240
"bundler": {
241241
"name": "webpack",
242-
"version": "5.90.0",
242+
"version": "5.96.1",
243243
},
244244
"chunks": [
245245
{
246246
"entry": true,
247247
"files": [
248-
"main-6c1d26e76f6ba1fc75c8.js",
248+
"main-2c458a0c7e378af1ec1a.js",
249249
],
250-
"id": "179",
250+
"id": "792",
251251
"initial": true,
252252
"names": [
253253
"main",
254254
],
255-
"uniqueId": "0-179",
255+
"uniqueId": "0-792",
256256
},
257257
],
258258
"duration": Any<Number>,
259259
"modules": [
260260
{
261261
"chunkUniqueIds": [
262-
"0-179",
262+
"0-792",
263263
],
264264
"name": "./test-apps/webpack/src/main.js + 1 modules",
265265
"size": 395,
266266
},
267267
{
268268
"chunkUniqueIds": [
269-
"0-179",
269+
"0-792",
270270
],
271271
"name": "../node_modules/.pnpm/[email protected]/node_modules/lodash/lodash.js",
272272
"size": 544098,
@@ -278,14 +278,14 @@ exports[`Generating webpack stats 5 source maps are enabled does not include any
278278
},
279279
{
280280
"chunkUniqueIds": [
281-
"0-179",
281+
"0-792",
282282
],
283283
"name": "webpack/runtime/global",
284284
"size": 221,
285285
},
286286
{
287287
"chunkUniqueIds": [
288-
"0-179",
288+
"0-792",
289289
],
290290
"name": "webpack/runtime/node module decorator",
291291
"size": 123,

packages/nextjs-webpack-plugin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"unbuild": "^2.0.0",
6464
"vite-tsconfig-paths": "^4.3.2",
6565
"vitest": "^1.5.0",
66-
"webpack": "^5.90.0"
66+
"webpack": "^5.96.1"
6767
},
6868
"peerDependencies": {
6969
"next": "14.x || 15.x",

packages/webpack-plugin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"unbuild": "^2.0.0",
6262
"vite-tsconfig-paths": "^4.3.2",
6363
"vitest": "^1.5.0",
64-
"webpack": "^5.90.0"
64+
"webpack": "^5.96.1"
6565
},
6666
"peerDependencies": {
6767
"webpack": "5.x"

packages/webpack-plugin/src/webpack-bundle-analysis/utils/__tests__/processChunks.test.ts

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ describe("processChunks", () => {
88
it("should process chunks", () => {
99
const chunks = [
1010
{
11-
id: 1,
11+
id: "1",
1212
entry: true,
1313
initial: true,
1414
files: ["file1.js"],
@@ -17,6 +17,10 @@ describe("processChunks", () => {
1717
recorded: true,
1818
size: 1000,
1919
hash: "hash1",
20+
sizes: {},
21+
idHints: [],
22+
auxiliaryFiles: [],
23+
childrenByOrder: {},
2024
},
2125
{
2226
id: 2,
@@ -28,6 +32,10 @@ describe("processChunks", () => {
2832
recorded: true,
2933
size: 2000,
3034
hash: "hash2",
35+
sizes: {},
36+
idHints: [],
37+
auxiliaryFiles: [],
38+
childrenByOrder: {},
3139
},
3240
] satisfies StatsChunk[];
3341

@@ -66,6 +74,10 @@ describe("processChunks", () => {
6674
recorded: true,
6775
size: 1000,
6876
hash: "hash1",
77+
sizes: {},
78+
idHints: [],
79+
auxiliaryFiles: [],
80+
childrenByOrder: {},
6981
},
7082
{
7183
entry: true,
@@ -76,6 +88,10 @@ describe("processChunks", () => {
7688
recorded: true,
7789
size: 2000,
7890
hash: "hash2",
91+
sizes: {},
92+
idHints: [],
93+
auxiliaryFiles: [],
94+
childrenByOrder: {},
7995
},
8096
] satisfies StatsChunk[];
8197

0 commit comments

Comments
 (0)