terser
5.51.2 · 27 Aug 2026BSD-2-Clause118.8M / weekRepositoryHomepagenpmAtom feed
Upgrading terser From 5.43.1 to 5.51.2
16 releases in betweenevery note read
- 1
- change to make
- 0
- advisories fixed
- 6
- new
- 9
- fixes
Before you upgrade
Tick each one off as you go- Breaking5.46.1
Release by release
5.51.2nothing new or fixed in the note
- Fixed
Fix transforming code in dynamic import argument.
- Fixed
- Fixed
Fix nullish coalescing
??operator being considered a "boolean operator" sometimes causing booleans to be generated in its left side.
- Fixed
- Fixed
Fixed a crash in mozilla AST conversion of imports
- Fixed
- Fixed
Fixed a crash related to dynamic
importexpressions
- Fixed
5.49.1nothing new or fixed in the note
- New
Add ResizeObserver
boxoption to domprops - Fixed
Do not evaluate exponentiation of BigInt
- New
- New
Support
import source ...andimport defer ...
- New
12 other lines we could not sort, mostly version bumps
- 5.51.2
Roll back fix for ambiguously scoped default args, due to issues that came up without clear reproduction
- 5.51.0
Pin (deoptimize) functions that use argnames scope in ambiguous way. IE when default args access other args, or variables outside the function.
- 5.50.0
Experimental TypeScript type stripping
- 5.49.1
Correctly parenthesize tagged template strings where the tag is
new something(), which also has parentheses - 5.49.1
Internally changed how
import()expression is parsed, it is no longer treated as a function call. - 5.49.0
Parse identifiers from newer unicode versions, and escape them for older runtimes
- 5.46.2
unusedoption: delete computed keys of concise methods and getters/setters. - 5.46.2
Error.causeadded to DOM properties list - 5.46.1
Parse extremely large floating-point number literals as
Infinity - 5.46.0
More domprops (mostly
Temporalrelated) suggested
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.