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 fixed4 changed
Security
1 advisory affects 4.2.1; 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
Minor refactors
Fixed a bug similar to #369 in collapse_vars
Functions can no longer be inlined into a place where they're going to be compared with themselves.
reduce_funcs option is now legacy, as using reduce_vars without reduce_funcs caused some weird corner cases. As a result, it is now implied in reduce_vars and can't be turned off without turning off reduce_vars.
Bug which would cause a random stack overflow has now been fixed.
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.