terser
5.51.2 · 27 Aug 2026BSD-2-Clause118.8M / weekRepositoryHomepagenpmAtom feed
Upgrading terser From 4.6.12 to 4.8.1
4 releases in betweenevery note read
- 0
- changes to make
- 1
- advisory fixed
- 1
- new
- 4
- fixes
Security
Fixes 1 advisory affecting 4.6.12
- Terser insecure use of regular expressions leads to ReDoShigh · GHSA-4wf5-vphf-c2xc
- 4.8.1
Security fix for RegExps that should not be evaluated (regexp DDOS)
Release by release
- Security
Security fix for RegExps that should not be evaluated (regexp DDOS)
- Security
- New
Support for numeric separators (
million = 1_000_000) was added. - Fixed
Fixed bug where
yieldwasn't considered a valid property key in generators.
- New
- Fixed
Fixed erroneous
constdeclarations without value (which is invalid) in some corner cases when usingcollapse_vars.
- Fixed
- Fixed
Fixed issue where ES5 object properties were being turned into ES6 object properties due to more lax unicode rules.
- Fixed
Fixed parsing of BigInt with lowercase
ein them.
- Fixed
3 other lines we could not sort, mostly version bumps
- 4.8.0
Assigning properties to a class is now assumed to be pure.
- 4.7.0
A bug was fixed where an arrow function would have the wrong size
- 4.7.0
argumentsobject is now considered safe to retrieve properties from (useful forlength, or0) even whenpure_gettersis not set.
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.