terser
5.51.2 · 27 Aug 2026BSD-2-Clause118.8M / weekRepositoryHomepagenpmAtom feed
Summary· from the note as AI read it
To checkNothing breaks, but check what is deprecated or unsure.
Before you upgrade
- Ensure your runtime supports ES6 Set and includesTo check
New
- More DOM properties added to --mangle-properties's DOM property list
- You can now list files to minify in a Terser config file
- Started replacing
new Array(<number>)with an array literal
In short
1 breaking2 new1 faster2 fixed
- BreakingTo check
Started using ES6 capabilities like
Setand theincludesmethod for strings and arrays
Security
1 advisory affects 3.17.0; 4.8.1 fixes them
- HighTerser insecure use of regular expressions leads to ReDoSGHSA-4wf5-vphf-c2xc · 16 Jul 2022Fixed in 4.8.1
Release note
More DOM properties added to --mangle-properties's DOM property list
Closed issue where if 2 functions had the same argument name, Terser would not inline them together properly
Fixed issue with
hasOwnProperty.callYou can now list files to minify in a Terser config file
Started replacing
new Array(<number>)with an array literalStarted using ES6 capabilities like
Setand theincludesmethod for strings and arrays
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.