terser
5.51.2 · 27 Aug 2026BSD-2-Clause118.8M / weekRepositoryHomepagenpmAtom feed
Upgrading terser From 5.3.5 to 5.14.2
22 releases in betweenevery note read
Before you upgrade
Tick each one off as you go- Breaking5.4.0
Security
Fixes 1 advisory affecting 5.3.5
- Terser insecure use of regular expressions leads to ReDoShigh · GHSA-4wf5-vphf-c2xc
- 5.14.2
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
- Fixed
Fixed parsing of nested template strings
- Fixed
- Fixed
Fixed source maps with non-terminated segments
- Fixed
- New
Allow multiple identifiers with the same name in
vardestructuring (egvar { a, a } = x)
- New
5.13.0nothing new or fixed in the note
- Fixed
Fixed an issue with function definitions inside blocks
- Fixed
Fixed parens of
newin some situations (closes #1159)
- Fixed
5.11.0 – 5.12.02 releases, nothing new or fixed in the notes
- New
New CI/CD pipeline with github actions
- Fixed
Fix
delete optional?.property - Fixed
Fix reordering of switch branches (#1092),
- Fixed
Fix error when creating a class property called
get - Fixed
Fix mangling collision with exported variables
- Fixed
Fix an issue with
return someVariable = (async () => { ... })()
- New
48 other lines we could not sort, mostly version bumps
- 5.14.2
Source maps improvements
- 5.14.2
Performance improvements in long property access evaluation
- 5.14.1
keep_numbers option added to TypeScript defs
- 5.14.0
Switched to @jridgewell/source-map for sourcemap generation (#1190, #1181)
- 5.14.0
Enabled typescript types to be imported from the package
- 5.14.0
Extra DOM props have been added
- 5.14.0
Delete the AST while generating code, as a means to save RAM
- 5.13.1
Removed self-assignments (
varname=varname) (closes #1081) - 5.13.1
Separated inlining code (for inlining things into references, or removing IIFEs)
- 5.13.0
All calls to eval() were removed (#1171, #1184)
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.