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.6.11; 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
Read unused classes' properties and method keys, to figure out if they use other variables.
Prevent inlining into block scopes when there are name collisions
Functions are no longer inlined into parameter defaults, because they live in their own special scope.
When inlining identity functions, take into account the fact they may be used to drop
thisin function calls.Nullish coalescing operator (
x ?? y), plus basic optimization for it.Template literals in binary expressions such as
+have been further optimized
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.