UNPKG

21 kBMarkdownView Raw
1# Changelog
2
3> **Tags:**
4> - [Breaking Change]
5> - [New Feature]
6> - [Improvement]
7> - [Bug Fix]
8> - [Internal]
9> - [Documentation]
10
11_Note: Gaps between patch versions are faulty, broken or test releases._
12
13## UNRELEASED
14
15## 4.7.0
16
17 * **New Feature**
18 * Add the ability to filter to displaying only initial chunks per entrypoint ([#519](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/519) by [@pas-trop-de-zele](https://github.com/pas-trop-de-zele))
19
20## 4.6.1
21
22* **Bug Fix**
23 * fix outputting different URL in cli mode ([#524](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/524) by [@southorange1228](https://github.com/southorange1228))
24
25## 4.6.0
26
27* **New Feature**
28 * Support outputting different URL in server mode ([#520](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/520) by [@southorange1228](https://github.com/southorange1228))
29 * Use deterministic chunk colors (#[501](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/501) by [@CreativeTechGuy](https://github.com/CreativeTechGuy))
30
31## 4.5.0
32
33 * **Improvement**
34 * Stop publishing src folder to npm ([#478](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/478) by [@wood1986](https://github.com/wood1986))
35
36* **Internal**
37 * Update some dependencies ([#448](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/448))
38 * Replace nightmare with Puppeteer ([#469](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/469) by [@valscion](https://github.com/valscion))
39 * Replace Mocha with Jest ([#470](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/470) by [@valscion](https://github.com/valscion))
40
41## 4.4.2
42
43 * **Bug Fix**
44 * Fix failure with `compiler.outputFileSystem.constructor` being `undefined` ([#447](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/447) by [@kedarv](https://github.com/kedarv) and [@alexander-akait](https://github.com/alexander-akait))
45 * **NOTE:** This fix doesn't have added test coverage so the fix might break in future versions unless test coverage is added later.
46
47## 4.4.1
48
49 * **Bug Fix**
50 * Fix missing module chunks ([#433](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/433) by [@deanshub](https://github.com/deanshub))
51
52 * **Internal**
53 * Fix tests timing out in CI ([#435](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/435) by [@deanshub](https://github.com/deanshub))
54 * Fix command in issue template ([#428](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/428) by [@cncolder](https://github.com/cncolder))
55
56## 4.4.0
57
58 * **Improvement**
59 * Keep treemap labels visible during zooming animations for better user experience ([#414](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/414) by [@stanislawosinski](https://github.com/stanislawosinski))
60
61 * **Bug Fix**
62 * Don't show an empty tooltip when hovering over the FoamTree attribution group or between top-level groups ([#413](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/413) by [@stanislawosinski](https://github.com/stanislawosinski))
63
64 * **Internal**
65 * Upgrade FoamTree to version 3.5.0, replace vendor dependency with an NPM package ([#412](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/412) by [@stanislawosinski](https://github.com/stanislawosinski))
66
67## 4.3.0
68
69 * **Improvement**
70 * Replace express with builtin node server, reducing number of dependencies ([#398](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/398) by [@TrySound](https://github.com/TrySound))
71 * Move `filesize` to dev dependencies, reducing number of dependencies ([#401](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/401) by [@realityking](https://github.com/realityking))
72
73 * **Internal**
74 * Replace Travis with GitHub actions ([#402](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/402) by [@valscion](https://github.com/valscion))
75
76## 4.2.0
77
78 * **Improvement**
79 * A number of improvements to reduce the number of dependencies ([#391](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/391), [#396](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/396), [#397](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/397))
80
81 * **Bug Fix**
82 * Prevent crashes for bundles generated from webpack array configs. ([#394](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/394) by [@ctavan](https://github.com/ctavan))
83 * Fix `non-asset` assets causing analyze failure. ([#385](https://github.com/webpack-contrib/webpack-bundle-analyzer/issues/385) by [@ZKHelloworld](https://github.com/ZKHelloworld))
84
85## 4.1.0
86
87 * **Improvement**
88 * Significantly speed up generation of `stats.json` file (see `generateStatsFile` option).
89
90## 4.0.0
91
92 * **Breaking change**
93 * Dropped support for Node.js 6 and 8. Minimal required version now is v10.13.0
94
95 * **Improvement**
96 * Support for Webpack 5
97
98 * **Bug Fix**
99 * Prevent crashes when `openAnalyzer` was set to true in environments where there's no program to handle opening. ([#382](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/382) by [@wbobeirne](https://github.com/wbobeirne))
100
101 * **Internal**
102 * Updated dependencies
103 * Added support for multiple Webpack versions in tests
104
105## 3.9.0
106
107 * **New Feature**
108 * Adds option `reportTitle` to set title in HTML reports; default remains date of report generation ([#354](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/354) by [@eoingroat](https://github.com/eoingroat))
109
110 * **Improvement**
111 * Added capability to parse bundles that have child assets generated ([#376](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/376) by [@masterkidan](https://github.com/masterkidan) and [#378](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/378) by [@https://github.com/dabbott](https://github.com/https://github.com/dabbott))
112
113## 3.8.0
114
115 * **Improvement**
116 * Added support for exports.modules when webpack target = node ([#345](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/345) by [@Spikef](https://github.com/Spikef))
117
118 * **New Feature**
119 * Support [WebWorkerChunkTemplatePlugin](https://github.com/webpack/webpack/blob/c9d4ff7b054fc581c96ce0e53432d44f9dd8ca72/lib/webworker/WebWorkerChunkTemplatePlugin.js) ([#353](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/353) by [@Gongreg](https://github.com/Gongreg))
120
121 * **Bug Fix**
122 * Support any custom `globalObject` option in Webpack Config. ([#352](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/352) by [@Gongreg](https://github.com/Gongreg))
123
124## 3.7.0
125
126 * **New Feature**
127 * Added JSON output option (`analyzerMode: "json"` in plugin, `--mode json` in CLI) ([#341](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/341) by [@Gongreg](https://github.com/Gongreg))
128
129 * **Improvement**
130 * Persist "Show content of concatenated modules" option ([#322](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/322) by [@lorenzos](https://github.com/lorenzos))
131
132## 3.6.1
133
134 * **Bug Fix**
135 * Add leading zero to hour & minute on `<title />` when needed ([#314](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/314) by [@mhxbe](https://github.com/mhxbe))
136
137 * **Internal**
138 * Update some dependencies to get rid of vulnerability warnings ([#339](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/339))
139
140## 3.6.0
141
142 * **Improvement**
143 * Support webpack builds where `output.globalObject` is set to `'self'` ([#323](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/323) by [@lemonmade](https://github.com/lemonmade))
144 * Improve readability of tooltips ([#320](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/320) by [@lorenzos](https://github.com/lorenzos))
145
146## 3.5.2
147
148 * **Bug Fix**
149 * Fix sidebar not showing visibility status of chunks hidden via popup menu (issue [#316](https://github.com/webpack-contrib/webpack-bundle-analyzer/issues/316) by [@gaokun](https://github.com/gaokun), fixed in [#317](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/317) by [@bregenspan](https://github.com/bregenspan))
150
151## 3.5.1
152
153 * **Bug Fix**
154 * Fix regression in support of webpack dev server and `webpack --watch` (issue [#312](https://github.com/webpack-contrib/webpack-bundle-analyzer/issues/312), fixed in [#313](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/313) by [@gaokun](https://github.com/gaokun))
155
156## 3.5.0
157
158 * **Improvements**
159 * Improved report title and added favicon ([#310](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/310), [@gaokun](https://github.com/gaokun))
160
161## 3.4.1
162
163 * **Bug Fix**
164 * Fix regression of requiring an object to be passed to `new BundleAnalyzerPlugin()` (issue [#300](https://github.com/webpack-contrib/webpack-bundle-analyzer/issues/300), fixed in [#302](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/302) by [@jerryOnlyZRJ](https://github.com/jerryOnlyZRJ))
165
166## 3.4.0
167
168 * **Improvements**
169 * Add `port: 'auto'` option ([#290](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/290), [@avin-kavish](https://github.com/avin-kavish))
170
171 * **Bug Fix**
172 * Avoid mutation of the generated `stats.json` ([#293](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/293), [@wood1986](https://github.com/wood1986))
173
174 * **Internal**
175 * Use Autoprefixer ([#266](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/266), [@bregenspan](https://github.com/bregenspan))
176 * Detect `AsyncMFS` to support dev-server of Nuxt 2.5 and above ([#275](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/275), [@amoshydra](https://github.com/amoshydra))
177
178## 3.3.2
179
180 * **Bug Fix**
181 * Fix regression with escaping internal assets ([#264](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/264), fixes [#263](https://github.com/webpack-contrib/webpack-bundle-analyzer/issues/263))
182
183## 3.3.1
184
185 * **Improvements**
186 * Use relative links for serving internal assets ([#261](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/261), fixes [#254](https://github.com/webpack-contrib/webpack-bundle-analyzer/issues/254))
187 * Properly escape embedded JS/JSON ([#262](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/262))
188
189 * **Bug Fix**
190 * Fix showing help message on `-h` flag ([#260](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/260), fixes [#239](https://github.com/webpack-contrib/webpack-bundle-analyzer/issues/239))
191
192## 3.3.0
193
194 * **New Feature**
195 * Show/hide chunks using context menu ([#246](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/246), [@bregenspan](https://github.com/bregenspan))
196
197 * **Internal**
198 * Updated dev dependencies
199
200## 3.2.0
201
202 * **Improvements**
203 * Add support for .mjs output files ([#252](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/252), [@jlopezxs](https://github.com/jlopezxs))
204
205## 3.1.0
206
207 * **Bug Fix**
208 * Properly determine the size of the modules containing special characters ([#223](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/223), [@hulkish](https://github.com/hulkish))
209 * Update acorn to v6 ([#248](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/248), [@realityking](https://github.com/realityking))
210
211## 3.0.4
212
213 * **Bug Fix**
214 * Make webpack's done hook wait until analyzer writes report or stat file ([#247](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/247), [@mareolan](https://github.com/mareolan))
215
216## 3.0.3
217
218 * **Bug Fix**
219 * Disable viewer websocket connection when report is generated in `static` mode ([#215](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/215), [@sebastianhaeni](https://github.com/sebastianhaeni))
220
221## 3.0.2
222
223 * **Improvements**
224 * Drop `@babel/runtime` dependency ([#209](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/209), [@realityking](https://github.com/realityking))
225 * Properly specify minimal Node.js version in `.babelrc` ([#209](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/209), [@realityking](https://github.com/realityking))
226
227 * **Bug Fix**
228 * Move some "dependencies" to "devDependencies" ([#209](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/209), [@realityking](https://github.com/realityking))
229
230## 3.0.1
231
232 * **Bug Fix**
233 * Small UI fixes
234
235## 3.0.0
236
237 * **Breaking change**
238 * Dropped support for Node.js v4. Minimal required version now is v6.14.4
239 * Contents of concatenated modules are now hidden by default because of a number of related issues ([details](https://github.com/webpack-contrib/webpack-bundle-analyzer/issues/188)), but can be shown using a new checkbox in the sidebar.
240
241 * **New Feature**
242 * Added modules search
243 * Added ability to pin and resize the sidebar
244 * Added button to toggle the sidebar
245 * Added checkbox to show/hide contents of concatenated modules
246
247 * **Improvements**
248 * Nested folders that contain only one child folder are now visually merged i.e. `folder1 => folder2 => file1` is now shown like `folder1/folder2 => file1` (thanks to [@varun-singh-1](https://github.com/varun-singh-1) for the idea)
249
250 * **Internal**
251 * Dropped support for Node.js v4
252 * Using MobX for state management
253 * Updated dependencies
254
255## 2.13.1
256
257 * **Improvement**
258 * Pretty-format the generated stats.json ([#180](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/180)) [@edmorley](https://github.com/edmorley))
259
260 * **Bug Fix**
261 * Properly parse Webpack 4 async chunk with `Array.concat` optimization ([#184](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/184), fixes [#183](https://github.com/webpack-contrib/webpack-bundle-analyzer/issues/183))
262
263 * **Internal**
264 * Refactor bundle parsing logic ([#184](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/184))
265
266## 2.13.0
267
268 * **Improvement**
269 * Loosen bundle parsing logic ([#181](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/181)). Now analyzer will still show parsed sizes even if:
270 * It can't parse some bundle chunks. Those chunks just won't have content in the report. Fixes issues like [#160](https://github.com/webpack-contrib/webpack-bundle-analyzer/issues/160).
271 * Some bundle chunks are missing (it couldn't find files to parse). Those chunks just won't be visible in the report for parsed/gzipped sizes.
272
273## 2.12.0
274
275 * **New Feature**
276 * Add option that allows to exclude assets from the report ([#178](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/178))
277
278## 2.11.3
279
280 * **Bug Fix**
281 * Filter out modules that weren't found during bundles parsing ([#177](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/177))
282
283## 2.11.2
284
285 * **Bug Fix**
286 * Properly process stat files that contain modules inside of `chunks` array ([#175](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/175))
287 * Fix parsing of async chunks that push to `this.webpackJsonp` array ([#176](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/176))
288
289## 2.11.1
290
291 * **Improvement**
292 * Add support for parsing Webpack 4's chunked modules ([#159](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/159), [@jdelStrother](https://github.com/jdelStrother))
293
294## 2.11.0
295
296 * **Improvement**
297 * Show contents of concatenated module (requires Webpack 4) ([#158](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/158), closes [#157](https://github.com/webpack-contrib/webpack-bundle-analyzer/issues/157))
298
299## 2.10.1
300
301 * **Improvement**
302 * Support webpack 4 without deprecation warnings. @ai in [#156](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/156), fixes [#154](https://github.com/webpack-contrib/webpack-bundle-analyzer/issues/154)
303
304## 2.10.0
305
306 * **Bug Fix**
307 * Fix "out of memory" crash when dealing with huge stats objects ([#129](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/129), [@ryan953](https://github.com/ryan953))
308
309 * **Internal**
310 * Update dependencies ([#146](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/146))
311 * Update gulp to v4 and simplify gulpfile ([#146](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/146), [#149](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/149))
312 * Simplify ESLint configs ([#148](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/148))
313
314## 2.9.2
315
316 * **Bug Fix**
317 * Add a listener for the 'error' event on the WebSocket server client (#140)
318
319 * **Internal**
320 * Clean up .travis.yml (#140)
321 * Update ws to version 4.0.0 (#140)
322
323## 2.9.1
324
325 * **Bug Fix**
326 * Bump `ws` dependency to fix DoS vulnerability (closes [#130](https://github.com/webpack-contrib/webpack-bundle-analyzer/issues/130))
327
328## 2.9.0
329 * **New Feature**
330 * Show chunk sizes in sidebar (closes #91)
331
332 * **Bug Fix**
333 * Properly parse webpack bundles that use arrow functions as module wrappers (#108, @regiontog)
334
335## 2.8.3
336 * **Bug Fix**
337 * Correctly advertise port when using a random one (#89, @yannickcr)
338 * Add proper support for `multi` entries (fixes #92, #87)
339 * Support parsing of ESNext features (fixes #94)
340
341## 2.8.2
342 * **Improvement**
343 * Greatly improved accuracy of gzip sizes
344
345 * **Bug Fix**
346 * Generate report file in the bundle output directory when used with Webpack Dev Server (fixes #75)
347
348## 2.8.1
349 * **Improvement**
350 * Improve warning message when analyzer client couldn't connect to WebSocket server
351
352## 2.8.0
353 * **Improvement**
354 * Analyzer now supports `webpack --watch` and Webpack Dev Server!
355 It will automatically update modules treemap according to changes in the sources via WebSockets!
356
357 * **Internal**
358 * Use `babel-preset-env` and two different Babel configs to compile node and browser code
359 * Update deps
360
361## 2.7.0
362 * **New Feature**
363 * Add control to sidebar that allows to choose shown chunks (closes #71 and partially addresses #38)
364
365## 2.6.0
366 * **New Feature**
367 * Add `defaultSizes` option (closes #52)
368
369## 2.5.0
370 * **New Feature**
371 * Added `--host` CLI option (@difelice)
372
373## 2.4.1
374 * **Improvement**
375 * Support `NamedChunksPlugin` (@valscion)
376
377## 2.4.0
378 * **Bug Fix**
379 * Fix `TypeError: currentFolder.addModule is not a function`
380
381 * **Internal**
382 * Update deps
383
384## 2.3.1
385 * **Improvement**
386 * Improve compatibility with Webpack 2 (@valscion)
387
388## 2.3.0
389 * **Improvement**
390 * Add `analyzerHost` option (@freaz)
391
392 * **Internal**
393 * Update deps
394
395## 2.2.3
396 * **Bug Fix**
397 * Support bundles that uses `Array.concat` expression in modules definition (@valscion)
398
399## 2.2.1
400 * **Bug Fix**
401 * Fix regression in analyzing stats files with non-empty `children` property (@gbakernet)
402
403## 2.2.0
404 * **Improvement**
405 * Improve treemap sharpness on hi-res displays (fixes #33)
406 * Add support for stats files with all the information under `children` property (fixes #10)
407
408 * **Internal**
409 * Update deps
410
411## 2.1.1
412 * **Improvement**
413 * Add support for `output.jsonpFunction` webpack config option (fixes #16)
414
415## 2.1.0
416 * **New Feature**
417 * Add `logLevel` option (closes #19)
418
419## 2.0.1
420 * **Bug Fix**
421 * Support query in bundle filenames (fixes #22)
422
423 * **Internal**
424 * Minimize CSS for report UI
425
426## 2.0.0
427 * **New Feature**
428 * Analyzer now also shows gzipped sizes (closes #6)
429 * Added switcher that allows to choose what sizes will be used to generate tree map.
430 Just move your mouse to the left corner of the browser and settings sidebar will appear.
431
432 * **Bug Fix**
433 * Properly show sizes for some asset modules (e.g. CSS files loaded with `css-loader`)
434
435 * **Internal**
436 * Completely rewritten analyzer UI. Now uses Preact and Webpack 2.
437
438## 1.5.4
439
440 * **Bug Fix**
441 * Fix bug when Webpack build is being controlled by some wrapper like `grunt-webpack` (see #21)
442
443## 1.5.3
444
445 * **Bug Fix**
446 * Workaround `Express` bug that caused wrong `ejs` version to be used as view engine (fixes #17)
447
448## 1.5.2
449
450 * **Bug Fix**
451 * Support array module descriptors that can be generated if `DedupePlugin` is used (fixes #4)
452
453## 1.5.1
454
455 * **Internal**
456 * Plug analyzer to Webpack compiler `done` event instead of `emit`. Should fix #15.
457
458## 1.5.0
459
460 * **New Feature**
461 * Add `statsOptions` option for `BundleAnalyzerPlugin`
462
463## 1.4.2
464
465 * **Bug Fix**
466 * Fix "Unable to find bundle asset" error when bundle name starts with `/` (fixes #3)
467
468## 1.4.1
469
470 * **Bug Fix**
471 * Add partial support for `DedupePlugin` (see #4 for more info)
472
473## 1.4.0
474
475 * **New Feature**
476 * Add "static report" mode (closes #2)
477
478## 1.3.0
479
480 * **Improvement**
481 * Add `startAnalyzer` option for `BundleAnalyzerPlugin` (fixes #1)
482 * **Internal**
483 * Make module much slimmer - remove/replace bloated dependencies
484
485## 1.2.5
486
487 * Initial public release