terser
5.51.2 · 27 Aug 2026BSD-2-Clause118.8M / weekRepositoryHomepagenpmAtom feed
Upgrading terser From 4.0.0 to 4.0.1
1 release in betweenevery note read
Security
1 advisory still affects 4.0.1
- Terser insecure use of regular expressions leads to ReDoShigh · GHSA-4wf5-vphf-c2xc
Upgrading to 4.8.1 clears it.
Release by release
- New
Added
MutationObserverInit(Object with options for initialising a mutation observer) properties to the DOM property list - Fixed
Fixed issue with
collapse_varswhen functions are created with the same name as a variable which already exists
- New
8 other lines we could not sort, mostly version bumps
- 4.0.1
Collisions between the arguments of inlined functions and names in the outer scope are now being avoided while inlining
- 4.0.1
Unmapped segments are now preserved when compressing a file which has source maps
- 4.0.1
Default values of functions are now correctly converted from Mozilla AST to Terser AST
- 4.0.1
JSON ⊂ ECMAScript spec (if you don't know what this is you don't need to)
- 4.0.1
Export AST_* classes to library users
- 4.0.1
Custom
Errorsubclasses are now internally used instead of old-school Error inheritance hacks. - 4.0.1
Documentation fixes
- 4.0.1
Performance optimizations
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.