terser
5.51.2 · 27 Aug 2026BSD-2-Clause118.8M / weekRepositoryHomepagenpmAtom feed
Upgrading terser From 3.14.1 to 3.16.0
1 release in betweenevery note read
- 1
- change to make
- 0
- advisories fixed
- 1
- new
- 0
- fixes
Before you upgrade
Tick each one off as you go- Breaking3.16.0
Security
1 advisory still affects 3.16.0
- Terser insecure use of regular expressions leads to ReDoShigh · GHSA-4wf5-vphf-c2xc
Upgrading to 4.8.1 clears it.
Release by release
- Breaking
Drops node.js v4 and starts using commonJS
- New
Add support for sections sourcemaps (IndexedSourceMapConsumer)
- Breaking
2 other lines we could not sort, mostly version bumps
- 3.16.0
No longer leaves names like Array or Object or window as a SimpleStatement (statement which is just a single expression).
- 3.16.0
Is now built with rollup
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.