rollup
4.68.5 · 17 Nov 2026MIT170.6M / weekRepositoryHomepagenpmAtom feed
Upgrading rollup From 4.41.1 to 4.59.0
44 releases in betweenevery note read
Before you upgrade
Tick each one off as you go- Deprecated4.57.0
Security
Fixes 1 advisory affecting 4.41.1
- Rollup 4 has Arbitrary File Write via Path Traversalhigh · GHSA-mw96-cpmx-2vgc
- 4.45.3
Update eslint-plugin-unicorn to resolve vulnerability
Release by release
- New
Throw when the generated bundle contains paths that would leave the output directory
- New
- New
Also support
__NO_SIDE_EFFECTS__annotation before variable declarations declaring function expressions - Fixed
Avoid unnecessary cloning of the code string
- New
- 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)
- Fixed
- Deprecated
Deprecate returning import attributes from
loadortransformhooks as that will no longer be supported with rollup 5 - New
Add import attributes to all plugin hooks that did not provide them yet
- Deprecated
- New
Track object property inclusions of dynamic namespace members
- Fixed
Handle methods that access dynamically imported namespace members via
this
- New
- Fixed
Fix JSX semicolon insert position in variable declarations
- Fixed
Fix JSX semicolon insertion
- Fixed
- Fixed
Sort manual chunks by execution order to reduce circular dependency issues
- Fixed
- Fixed
Fix artifact reference for OpenBSD
- Fixed
Fix OpenBSD artifacts and ensure OIDC is working
- Fixed
29 other lines we could not sort, mostly version bumps
- 4.59.0
Validate bundle stays within output dir
- 4.58.0
Forward NO_SIDE_EFFECTS annotations to function expressions in variable declarations
- 4.57.1
Fully include dynamic imports in a try-catch
- 4.57.0
Extend more hooks to include import attributes and add warnings (@TrickyPi, @lukastaegert)
- 4.57.0
Refactor to reduce Rollup 5 upgrade diff
- 4.56.0
Refine namespace handling
- 4.55.2
Sort manual chunks by module execution order
- 4.53.3
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
86 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.