terser
5.51.2 · 27 Aug 2026BSD-2-Clause118.8M / weekRepositoryHomepagenpmAtom feed
5.51.4 is the newest release of 5.x.
In short
3 fixed3 changed
Security
1 advisory affects 5.7.1; 5.14.2 fixes them
- HighTerser insecure use of regular expressions leads to ReDoSGHSA-4wf5-vphf-c2xc · 16 Jul 2022Fixed in 5.14.2
Release note
Avoided collapsing assignments together if it would place a chain assignment on the left hand side, which is invalid syntax (
a?.b = c)Removed undefined from object expansions (
{ ...void 0 }->{})Fix crash when checking if something is nullish or undefined
Fixed comparison of private class properties
Minor performance improvements
Fixed scope of function defs in strict mode (they are block scoped)
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.