Packages

rollup

4.68.5 · 17 Nov 2026MIT170.6M / weekRepositoryHomepagenpmAtom feed

Upgrading rollup From 4.22.3 to 4.59.0

90 releases in betweenevery note read

Other targets from 4.22.3Newest 4.x4.68.8Latest4.68.5
  1. 4.22.3yours
  2. 4.22.4security
  3. 53 releases
  4. 4.45.3security
  5. 34 releases
  6. 4.59.0target

Before you upgrade

Tick each one off as you go
  • Deprecated4.57.0

Security

Fixes 2 advisories affecting 4.22.3

  • Update eslint-plugin-unicorn to resolve vulnerability

    4.45.3
  • Fix a vulnerability in generated code that affects IIFE, UMD and CJS bundles when run in a browser context

    4.22.4

Release by release

  1. 4.59.0

    22 Feb 20261 new
    • New

      Throw when the generated bundle contains paths that would leave the output directory

  2. 4.58.0

    20 Feb 20261 new · 1 fix
    • New

      Also support __NO_SIDE_EFFECTS__ annotation before variable declarations declaring function expressions

    • Fixed

      Avoid unnecessary cloning of the code string

  3. 4.57.1

    30 Jan 20263 fixes
    • Fixed

      Fix heap corruption issue in Windows

    • Fixed

      Ensure exports of a dynamic import are fully included when called from a try...catch

    • Fixed

      Isolate and cache process.report.getReport() calls in a child process for robust environment detection (@alan-agius4, @lukastaegert)

  4. 4.57.0

    Deprecation27 Jan 20261 new
    • Deprecated

      Deprecate returning import attributes from load or transform hooks as that will no longer be supported with rollup 5

    • New

      Add import attributes to all plugin hooks that did not provide them yet

  5. 4.56.0

    22 Jan 20261 new · 1 fix
    • New

      Track object property inclusions of dynamic namespace members

    • Fixed

      Handle methods that access dynamically imported namespace members via this

  6. 4.55.3

    21 Jan 20262 fixes
    • Fixed

      Fix JSX semicolon insert position in variable declarations

    • Fixed

      Fix JSX semicolon insertion

  7. 4.55.2

    19 Jan 20261 fix
    • Fixed

      Sort manual chunks by execution order to reduce circular dependency issues

  8. 4.55.1

    5 Jan 20262 fixes
    • Fixed

      Fix artifact reference for OpenBSD

    • Fixed

      Fix OpenBSD artifacts and ensure OIDC is working

60 other lines we could not sort, mostly version bumps
  • Validate bundle stays within output dir

    4.59.0
  • Forward NO_SIDE_EFFECTS annotations to function expressions in variable declarations

    4.58.0
  • Fully include dynamic imports in a try-catch

    4.57.1
  • Extend more hooks to include import attributes and add warnings (@TrickyPi, @lukastaegert)

    4.57.0
  • Refactor to reduce Rollup 5 upgrade diff

    4.57.0
  • Refine namespace handling

    4.56.0
  • Sort manual chunks by module execution order

    4.55.2
  • Re-enable TypeScript test

    4.53.3
  • Tracing the importers chain for exported variables in external module (@TrickyPi, @lukastaegert)

    4.53.3
  • Check if left side is included when checking if assigning to an assignment has side effects

    4.53.3

164 internal lines (docs, tests, tooling) left out.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.