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 fixed6 changed
Security
1 advisory affects 4.6.4; 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
The
"some"value in thecommentsoutput option now preserves@licand other important comments when using//</script>is now better escaped in regex, and in comments, when using theinline_scriptoutput optionFixed an issue when transforming
new RegExpinto/.../when slashes are included in the sourceAST_Node.prototype.constructornow exists, allowing for easier debugging of crashesMultiple if statements with the same consequents are now collapsed
Typescript typings improvements
Optimizations while looking for surrogate pairs in strings
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.