terser
5.51.2 · 27 Aug 2026BSD-2-Clause118.8M / weekRepositoryHomepagenpmAtom feed
4.8.2 is the newest release of 4.x.
In short
1 fixed5 changed
Security
1 advisory affects 4.2.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
When the source map URL is
inline, don't write it to a file.Fixed output parens when a lambda literal is the tag on a tagged template string.
The
mangle.properties.undeclaredoption was added. This enables the property mangler to mangle properties of variables which can be found in the name cache, but whose properties are not known to this Terser run.The v8 bug where the toString and source representations of regexes like
RegExp("\\\n")includes an actual newline is now fixed.Now we're guaranteed to not have duplicate comments in the output
Domprops updates
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.