terser breaking changes
Updated December 4, 2026
On this page
Latest version 5.51.4, released November 20, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
- From 4.8.2 to 5.51.3: 168 breaking changes in 28 versions.
- From 4.0.0 to 5.51.3: 169 breaking changes in 29 versions.
terser 5.51.3 breaking changes
- Configuration changed
includeSources
Fixes a leak of original source code through sourceMap.content when an input sourcemap is used. Code that relies on the previous sourcemap output must now set includeSources explicitly if it wants the original source included. github.com
terser 5.51.2 breaking changes
- Behavior changed
The earlier fix for ambiguously scoped default arguments is reverted, so minified output for such code can differ from 5.51.1. Check minified output for functions with default arguments. github.com
terser 5.49.1 breaking changes
- Behavior changed
import
import() expressions are no longer parsed as function calls internally. Review code that depends on how Terser treats import() during minification. github.com
terser 5.47.0 breaking changes
- Signature changed
ECMA
Was type ECMA = 5 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020; now type ECMA = 5 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 2023 | 2024 | 2025. npmjs.com
terser 5.46.2 breaking changes
- Behavior changed
With keep_quoted=strict, foo.bar and foo["bar"] are no longer considered equivalent by the property mangler. Code relying on the old mangling of these forms may need updating. github.com - Behavior changed
The unused compress option can now remove computed keys of concise methods and getters/setters. Code whose computed keys have side effects may behave differently. github.com
terser 5.45.0 breaking changes
- Behavior changed
Terser now produces the expression void 0 in place of the identifier undefined in its minified output. Code that relies on the exact minified text may need to be checked. github.com
Older versions
24 older versions, each with its first changes. Sign up to see every change
Show 24 older versions
terser 5.43.1 breaking changes
- Behavior changed
Some niche compression optimizations that moved block-level declarations are now prevented, which can change minified output. github.com
terser 5.43.0 breaking changes
- Behavior changed
Terser no longer inlines functions into for loop bodies, so minified output for such code may differ. github.com - Default changed
wrap_func_args
The wrap_func_args format option now defaults to false, so callbacks are not wrapped in parentheses unless you set it to true. github.com
terser 5.38.0 breaking changes
- Behavior changed
drop_console
With the drop_console option, calls like console.log.apply() are now removed too. Code relying on those calls being kept must change its configuration. github.com
terser 5.31.4 breaking changes
- Behavior changed
With drop_unused enabled, classes that only have side effects in their extends clause may now be dropped. Code relying on that side effect being kept must be checked. github.com
terser 5.31.0 breaking changes
- Behavior changed
The property mangler's reserved property list now matches current Firefox and Chrome contents, so some property names may be mangled differently than before. github.com
terser 5.30.2 breaking changes
- Behavior changed
Terser no longer applies optimizations inside computed keys because they could trigger engine-specific bugs. Minified output for such code may differ from before. github.com
terser 5.26.0 breaking changes
- Behavior changed
Code containing empty parentheses as an expression is no longer parsed. Users with such input must fix their source code. github.com - Behavior changed
preserve_annotations
The preserve_annotations option now keeps annotation comments without needing the comments option configured. Output that previously dropped annotations may now include them. github.com
And 1 more in this version.
terser 5.23.0 breaking changes
- Behavior changed
Terser now removes empty class `static {}` blocks from minified output. Code relying on those blocks remaining in output may see a difference. github.com
terser 5.22.0 breaking changes
- Behavior changed
module
When the module option is enabled, Terser assumes strict mode when working out scopes, which can change minified output. Check minified output if you rely on the module option. github.com
terser 5.20.0 breaking changes
- Signature changed
CompressOptions.drop_console
Was drop_console?: boolean; now drop_console?: DropConsoleOption. npmjs.com
terser 5.16.8 breaking changes
- Behavior changed
The reduce_vars compression now optimizes more aggressively around function definitions, so minified output may differ from earlier versions. github.com
terser 5.15.0 breaking changes
- Behavior changed
The minifier's identity function inliner now skips calls like id(...expandedArgs), so such calls stay as calls in minified output. github.com
terser 5.14.0 breaking changes
- Signature changed
MinifyOutput.map
Was map?: RawSourceMap | string; now map?: EncodedSourceMap | string. npmjs.com - Signature changed
SourceMapOptions.content
Was content?: RawSourceMap | string; now content?: SectionedSourceMapInput | string. npmjs.com
terser 5.12.0 breaking changes
- Behavior changed
comments
With comments set to "some", comments containing @copyright are now preserved in the output. Code that relied on them being stripped may now see them in the minified output. github.com
terser 5.10.0 breaking changes
- Configuration changed
Acorn is no longer installed automatically with terser. Projects that rely on terser's parser must install acorn themselves. github.com
terser 5.8.0 breaking changes
- Behavior changed
keep_quoted
With keep_quoted enabled, terser now leaves computed and quoted property names unmangled. Code that relied on those names being renamed in the minified output may behave differently. github.com
terser 5.4.0 breaking changes
- Behavior changed
Certain template string optimizations are no longer applied by default and now sit behind unsafe options. Enable those options if you want the previous output. github.com
terser 5.3.3 breaking changes
- Behavior changed
wrap_func_args
The wrap_func_args option now also wraps arrow functions, not only function expressions. Check output if your code relies on the previous wrapping behavior. github.com
terser 5.2.1 breaking changes
- Removed
ecma
The parse step no longer accepts an ecma option, so all ES code is accepted. Remove ecma from parse options that pass it. github.com
terser 5.1.0 breaking changes
- Removed
MinifyOutput.ast
MinifyOutput.ast was removed in terser 5.1.0 npmjs.com - Signature changed
FormatOptions.comments
Was comments?: boolean | 'all' | 'some' | RegExp | ((node: AST_Node, comment: {value: string, type: 'comment1' | 'comment2' | 'comment3' | 'comment4', pos: number, line: number, col: number}) => boolean); now comments?: boolean | 'all' |... npmjs.com
And 1 more in this version.
terser 5.0.0 breaking changes
- Removed
ArgType
ArgType was removed in terser 5.0.0 npmjs.com - Removed
AST_Accessor
AST_Accessor was removed in terser 5.0.0 npmjs.com
And 130 more in this version.
terser 5.0.0-beta.0 breaking changes
- Removed
The internal AST is no longer part of the public interface, so code that relied on it will break. github.com - Removed
The lowest supported Node.js version is now 10. Older Node.js versions are no longer supported. github.com
And 1 more in this version.
terser 4.8.2 breaking changes
- Configuration changed
includeSources
The release fixes a source code leak in sourceMap.content when an input sourcemap is used. Code that relied on the old output must now set includeSources explicitly if it still wants the original source included. github.com
terser 4.0.0 breaking changes
- Removed
DictEachCallback
DictEachCallback was removed in terser 4.0.0 npmjs.com - Removed
Dictionary
Dictionary was removed in terser 4.0.0 npmjs.com
And 2 more in this version.
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.