terser
5.51.2 · 27 Aug 2026BSD-2-Clause118.8M / weekRepositoryHomepagenpmAtom feed
Upgrading terser From 4.3.2 to 4.3.3
1 release in betweenevery note read
- 1
- change to make
- 0
- advisories fixed
- 1
- new
- 1
- fix
Before you upgrade
Tick each one off as you go- Breaking4.3.3
Security
1 advisory still affects 4.3.3
- Terser insecure use of regular expressions leads to ReDoShigh · GHSA-4wf5-vphf-c2xc
Upgrading to 4.8.1 clears it.
Release by release
- Breaking
Stopped using raw RegExp objects, since the spec is going to continue to evolve. This ensures Terser is able to process new, unknown RegExp flags and features. This is a breaking change in the AST node AST_RegExp.
- New
Added parens whenever there's a comment between a return statement and the returned value, to prevent issues with ASI.
- Fixed
Fixed a problem where parsing template strings would mix up octal notation and a slash followed by a zero representing a null character.
- Breaking
2 other lines we could not sort, mostly version bumps
- 4.3.3
Started accepting the name
asyncin destructuring arguments with default value. - 4.3.3
Now Terser takes into account side effects inside class
extendsclauses.
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.