terser
5.51.2 · 27 Aug 2026BSD-2-Clause118.8M / weekRepositoryHomepagenpmAtom feed
Upgrading terser From 3.10.0 to 3.17.0
22 releases in betweennotes for 3
- 1+
- change to make
- 0
- advisories fixed
- 1+
- new
- 2+
- fixes
Counted from 3 of 22 release notes. Advisories are counted from the advisory database, in full.
Before you upgrade
Tick each one off as you go- Breaking3.16.0
Security
1 advisory still affects 3.17.0
- Terser insecure use of regular expressions leads to ReDoShigh · GHSA-4wf5-vphf-c2xc
Upgrading to 4.8.1 clears it.
Release by release
- Fixed
Fixed issue with
hasOwnProperty.call
- Fixed
- Fixed
Fixed issue where Terser being imported with
importwould cause it not to work due to the__esModuleproperty. (PR #254 was submitted, which was nice, but since it wasn't a pure commonJS approach I decided to go with my own solution)
- Fixed
- Breaking
Drops node.js v4 and starts using commonJS
- New
Add support for sections sourcemaps (IndexedSourceMapConsumer)
- Breaking
3.10.1 – 3.14.119 releases, no release note
7 other lines we could not sort, mostly version bumps
- 3.17.0
More DOM properties added to --mangle-properties's DOM property list
- 3.17.0
Closed issue where if 2 functions had the same argument name, Terser would not inline them together properly
- 3.17.0
You can now list files to minify in a Terser config file
- 3.17.0
Started replacing
new Array(<number>)with an array literal - 3.17.0
Started using ES6 capabilities like
Setand theincludesmethod for strings and arrays - 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.