terser
5.51.2 · 27 Aug 2026BSD-2-Clause118.8M / weekRepositoryHomepagenpmAtom feed
Upgrading terser From 4.1.4 to 4.2.0
1 release in betweenevery note read
Reading releases, release notes and advisories…
- 0
- changes to make
- 0
- advisories fixed
- 0
- new
- 1
- fix
Security
1 advisory still affects 4.2.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 output parens when a lambda literal is the tag on a tagged template string.
- Fixed
5 other lines we could not sort, mostly version bumps
- 4.2.0
When the source map URL is
inline, don't write it to a file. - 4.2.0
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. - 4.2.0
The v8 bug where the toString and source representations of regexes like
RegExp("\\\n")includes an actual newline is now fixed. - 4.2.0
Now we're guaranteed to not have duplicate comments in the output
- 4.2.0
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.