Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: webpack/webpack-bundle-analyzer
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v4.10.2
Choose a base ref
...
head repository: webpack/webpack-bundle-analyzer
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v5.1.0
Choose a head ref
  • 18 commits
  • 50 files changed
  • 9 contributors

Commits on Apr 11, 2024

  1. v4.10.2

    valscion committed Apr 11, 2024
    Configuration menu
    Copy the full SHA
    f8d4711 View commit details
    Browse the repository at this point in the history

Commits on Feb 18, 2025

  1. Configuration menu
    Copy the full SHA
    b82e5fa View commit details
    Browse the repository at this point in the history

Commits on Feb 20, 2025

  1. Drop support for Node versions less than 16.20.2 (#650)

    * Configure development node version to use v22.x
    
    * Configure node version in package.json to require latest node 16.x LTS
    
    * Update lockfiles after npm install with node v22.x
    
    * Update babel and webpack packages, dropping support for Node.js < v16
    
    * Update CI to run with node LTS v16.x and higher
    
    Pin to older Ubuntu version in CI to avoid Puppeteer sandbox problem
    
    Always run tests to completion with all Node versions, even if one fails
    
    * Update tests and skip troublesome ones
    
    The expected report sizes match what Node.js v18.x and higher are
    returning. Node.js v16.x and lower have different gzip calculations.
    
    Update expected report size to match reality
    
    The troublesome skipped tests are likely those which have regressed in
    the past but the regression wasn't caused by Node.js support change.
    
    Testing Node.js v18.x on CI is skipped for now as tests hang there.
    
    * Mention Node.js support drop as a breaking change
    
    * Update test badges in README.md
    
    * Try running Node.js v18.x in CI
    
    * Revert "Try running Node.js v18.x in CI"
    
    This reverts commit 377aa2b.
    
    The test failure we are seeing in CI with Node.js v18.x is this:
    
    FAIL test/viewer.js (5.081 s)
      ● WebSocket server › should not crash when an error is emitted on the websocket
    
        connect ECONNREFUSED ::1:41847
    
      ● WebSocket server › should not crash when an error is emitted on the websocket
    
        thrown: "Exceeded timeout of 5000 ms for a test while waiting for `done()` to be called.
        Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout."
    
           9 |
          10 | describe('WebSocket server', function () {
        > 11 |   it('should not crash when an error is emitted on the websocket', function (done) {
             |   ^
          12 |     const bundleStats = {
          13 |       assets: [{name: 'bundle.js', chunks: [0]}]
          14 |     };
    
          at it (test/viewer.js:11:3)
          at Object.describe (test/viewer.js:10:1)
    
    PASS test/Logger.js
    PASS test/statsUtils.js
    PASS test/utils.js
    PASS test/parseUtils.js
    PASS test/dev-server.js
    
    Test Suites: 1 failed, 7 passed, 8 total
    Tests:       1 failed, 4 skipped, 115 passed, 120 total
    Snapshots:   0 total
    Time:        18.536 s
    Ran all test suites.
    Jest did not exit one second after the test run has completed.
    
    'This usually means that there are asynchronous operations that weren't stopped in your tests. Consider running Jest with `--detectOpenHandles` to troubleshoot this issue.
    valscion authored Feb 20, 2025
    Configuration menu
    Copy the full SHA
    3a75999 View commit details
    Browse the repository at this point in the history

Commits on Apr 2, 2025

  1. Configuration menu
    Copy the full SHA
    6a8879f View commit details
    Browse the repository at this point in the history

Commits on May 21, 2025

  1. feat: Brotli compression support (#663)

    * Add Brotli support to README
    
    documentation-driven development
    
    For now, we accept potential inconsistencies between `compressionAlgorithm` and `defaultSizes`.
    
    Consolidating the compression API is left for a later major release. See discussions:
    * https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/432/files#r613949751
    * https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/432/files#r614300494
    
    * Add compressionAlgorithm option
    
    * Introduce sizeUtils helper
    
    * Implement Brotli compression
    
    * Add Brotli size support in viewer
    
    * Add changelog entry for Brotli support
    dcsaszar authored May 21, 2025
    Configuration menu
    Copy the full SHA
    783ee10 View commit details
    Browse the repository at this point in the history

Commits on May 25, 2025

  1. chore: remove gzip-size dependency (#664)

    Cleanup after #663
    dcsaszar authored May 25, 2025
    Configuration menu
    Copy the full SHA
    544a669 View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2025

  1. fix: allow react native bundle files (#666)

    * fix: allow react native bundle files
    
    * Update CHANGELOG.md
    ilteoood authored Jul 10, 2025
    Configuration menu
    Copy the full SHA
    5d37dc3 View commit details
    Browse the repository at this point in the history

Commits on Aug 1, 2025

  1. allow to catch parsing errors (#667)

    * allow to catch parsing errors
    
    Now you can see:
    ```
    Error parsing bundle asset "/home/alexander-akait/IdeaProjects/webpack-bundle-analyzer-reproducer-409/dist/public/index.mjs": Cannot read properties of undefined (reading 'arguments') {
      cause: TypeError: Cannot read properties of undefined (reading 'arguments')
          at getModulesLocations (/home/alexander-akait/IdeaProjects/webpack-bundle-analyzer-reproducer-409/node_modules/webpack-bundle-analyzer/lib/parseUtils.js:254:24)
          at Object.ExpressionStatement (/home/alexander-akait/IdeaProjects/webpack-bundle-analyzer-reproducer-409/node_modules/webpack-bundle-analyzer/lib/parseUtils.js:44:35)
          at c (/home/alexander-akait/IdeaProjects/webpack-bundle-analyzer-reproducer-409/node_modules/acorn-walk/dist/walk.js:58:37)
          at Object.skipThrough (/home/alexander-akait/IdeaProjects/webpack-bundle-analyzer-reproducer-409/node_modules/acorn-walk/dist/walk.js:186:39)
          at c (/home/alexander-akait/IdeaProjects/webpack-bundle-analyzer-reproducer-409/node_modules/acorn-walk/dist/walk.js:58:37)
          at base.Program.base.BlockStatement.base.StaticBlock (/home/alexander-akait/IdeaProjects/webpack-bundle-analyzer-reproducer-409/node_modules/acorn-walk/dist/walk.js:198:7)
          at c (/home/alexander-akait/IdeaProjects/webpack-bundle-analyzer-reproducer-409/node_modules/acorn-walk/dist/walk.js:58:37)
          at Object.recursive (/home/alexander-akait/IdeaProjects/webpack-bundle-analyzer-reproducer-409/node_modules/acorn-walk/dist/walk.js:59:7)
          at parseBundle (/home/alexander-akait/IdeaProjects/webpack-bundle-analyzer-reproducer-409/node_modules/webpack-bundle-analyzer/lib/parseUtils.js:26:8)
          at Object.getViewerData (/home/alexander-akait/IdeaProjects/webpack-bundle-analyzer-reproducer-409/node_modules/webpack-bundle-analyzer/lib/analyzer.js:87:22)
    }
    ```
    
    Useful for #409 (comment)
    
    * Fix lint
    
    ---------
    
    Co-authored-by: Vesa Laakso <[email protected]>
    alexander-akait and valscion authored Aug 1, 2025
    Configuration menu
    Copy the full SHA
    f5af532 View commit details
    Browse the repository at this point in the history

Commits on Oct 24, 2025

  1. Configuration menu
    Copy the full SHA
    8e9d5a0 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #674 from webpack/migrate

    chore: migrate from contrib
    evenstensberg authored Oct 24, 2025
    Configuration menu
    Copy the full SHA
    8755634 View commit details
    Browse the repository at this point in the history

Commits on Nov 7, 2025

  1. Drop support for Node less than 20.9.0 (#676)

    * Drop support for Node less than 20.9.0
    
    * Update breaking change node.js release version
    valscion committed Nov 7, 2025
    Configuration menu
    Copy the full SHA
    18843c1 View commit details
    Browse the repository at this point in the history

Commits on Nov 18, 2025

  1. Update test infra (#680)

    * Update jest to latest version: v29.8.0 -> v30.2.0
    
    * Update puppeteer to latest version: v24.2.1 -> v24.30.0
    
    * Add --openssl-legacy-provider also for local testing
    valscion authored Nov 18, 2025
    Configuration menu
    Copy the full SHA
    aca6866 View commit details
    Browse the repository at this point in the history
  2. v5.0.0

    valscion committed Nov 18, 2025
    Configuration menu
    Copy the full SHA
    42d71d8 View commit details
    Browse the repository at this point in the history

Commits on Nov 19, 2025

  1. Restore @babel/plugin-transform-class-properties to fix HTML report (#…

    …682)
    
    * Restore @babel/plugin-transform-class-properties to fix HTML report
    
    * Add changelog entry
    valscion authored Nov 19, 2025
    Configuration menu
    Copy the full SHA
    5fd88a6 View commit details
    Browse the repository at this point in the history
  2. v5.0.1

    valscion committed Nov 19, 2025
    Configuration menu
    Copy the full SHA
    21caf9c View commit details
    Browse the repository at this point in the history

Commits on Nov 20, 2025

  1. Fix: prevent TypeError when assets or modules are undefined in analyz…

    …er (#679)
    
    * Fix: prevent TypeError when assets or modules are undefined in analyzer
    
    * Changelog: add entry for TypeError fix in analyzer.js (#679)
    
    * git commit --amend --author="Srushti <[email protected]>"Add real-world test scenarios for incomplete stats
    
    * Address review feedback: remove standalone test and add to existing analyzer.js
    
    * Add minimal stats generated with webpack-cli --stats=minimal
    
    * Fix: use minimal-stats/stats.json in test
    
    * fix: handle undefined chunks and modules in getBundleModules
    
    * chore: remove unintended files
    
    * fix: handle minimal stats and undefined chunks/modules
    
    * feat: handle undefined assets/modules in analyzer with minimal stats support
    
    * Restore back to original, minimal code change
    
    This is the same code as the first commit in this PR
    
    * Simplify test case to expect empty chart data
    
    ---------
    
    Co-authored-by: Vesa Laakso <[email protected]>
    Srushti-33 and valscion authored Nov 20, 2025
    Configuration menu
    Copy the full SHA
    8c14975 View commit details
    Browse the repository at this point in the history

Commits on Dec 9, 2025

  1. Dark mode toggle implementation (#683)

    * svg for theme toggle
    
    * feat: add dark mode state management and CSS variables
    
    * feat: add ThemeToggle component with moon/sun icons
    
    * feat: integrate ThemeToggle into sidebar with proper positioning
    
    * style: update component styles for dark mode compatibility
    
    * docs: update changelog with correct repository link
    
    - Fix PR link to point to webpack/webpack-bundle-analyzer
    - Add proper GitHub profile attribution @theEquinoxDev
    - Follow established changelog format consistency
    
    * Fix lint
    
    ---------
    
    Co-authored-by: Vesa Laakso <[email protected]>
    theEquinoxDev and valscion authored Dec 9, 2025
    Configuration menu
    Copy the full SHA
    492929c View commit details
    Browse the repository at this point in the history
  2. v5.1.0

    valscion committed Dec 9, 2025
    Configuration menu
    Copy the full SHA
    fc2ddb1 View commit details
    Browse the repository at this point in the history
Loading