---
title: "terser 5.51.3 Breaking Changes on npm | Since.dev"
description: "What each terser release removed, renamed or changed: 173 breaking changes in 30 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/terser
last_updated: 2026-12-04
---

# terser breaking changes

terser 5.51.3 (November 20, 2026) is its newest release with breaking changes. The first: Configuration changed includeSources. Every breaking API change we have recorded in terser on npm: 173 breaking changes in 30 versions. Below, its 30 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `5.51.4`, released November 20, 2026. [Source repository](https://github.com/terser/terser)

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [4.8.2](#v-4-8-2) to [5.51.3](#v-5-51-3): 168 breaking changes in 28 versions.
- From [4.0.0](#v-4-0-0) to [5.51.3](#v-5-51-3): 169 breaking changes in 29 versions.

## terser 5.51.3 breaking changes

terser 5.51.3, released November 20, 2026: 1 breaking change.

- **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](https://github.com/terser/terser/blob/v5.51.3/CHANGELOG.md)

## terser 5.51.2 breaking changes

terser 5.51.2, released August 27, 2026: 1 breaking change.

- **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](https://github.com/terser/terser/blob/v5.51.2/CHANGELOG.md)

## terser 5.49.1 breaking changes

terser 5.49.1, released August 4, 2026: 1 breaking change.

- **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](https://github.com/terser/terser/blob/v5.49.1/CHANGELOG.md)

## terser 5.47.0 breaking changes

terser 5.47.0, released May 7, 2026: 1 breaking change.

- **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](https://www.npmjs.com/package/terser/v/5.47.0)

## terser 5.46.2 breaking changes

terser 5.46.2, released April 23, 2026: 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](https://github.com/terser/terser/blob/v5.46.2/CHANGELOG.md)
- **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](https://github.com/terser/terser/blob/v5.46.2/CHANGELOG.md)

## terser 5.45.0 breaking changes

terser 5.45.0, released January 15, 2026: 1 breaking change.

- **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](https://github.com/terser/terser/blob/v5.45.0/CHANGELOG.md)

## Older versions

24 older versions, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### terser 5.43.1 breaking changes

terser 5.43.1, released June 19, 2025: 1 breaking change.

- **Behavior changed**  

Some niche compression optimizations that moved block-level declarations are now prevented, which can change minified output. [github.com](https://github.com/terser/terser/blob/v5.43.1/CHANGELOG.md)

### terser 5.43.0 breaking changes

terser 5.43.0, released June 17, 2025: 2 breaking changes.

- **Behavior changed**  

Terser no longer inlines functions into for loop bodies, so minified output for such code may differ. [github.com](https://github.com/terser/terser/blob/v5.43.0/CHANGELOG.md)
- **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](https://github.com/terser/terser/blob/v5.43.0/CHANGELOG.md)

### terser 5.38.0 breaking changes

terser 5.38.0, released February 5, 2025: 1 breaking change.

- **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](https://github.com/terser/terser/blob/v5.38.0/CHANGELOG.md)

### terser 5.31.4 breaking changes

terser 5.31.4, released August 7, 2024: 1 breaking change.

- **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](https://github.com/terser/terser/blob/v5.31.4/CHANGELOG.md)

### terser 5.31.0 breaking changes

terser 5.31.0, released April 29, 2024: 1 breaking change.

- **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](https://github.com/terser/terser/blob/v5.31.0/CHANGELOG.md)

### terser 5.30.2 breaking changes

terser 5.30.2, released April 2, 2024: 1 breaking change.

- **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](https://github.com/terser/terser/blob/v5.30.2/CHANGELOG.md)

### terser 5.26.0 breaking changes

terser 5.26.0, released December 7, 2023: 3 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](https://github.com/terser/terser/blob/v5.26.0/CHANGELOG.md)
- **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](https://github.com/terser/terser/blob/v5.26.0/CHANGELOG.md)

And 1 more in this version.

### terser 5.23.0 breaking changes

terser 5.23.0, released October 30, 2023: 1 breaking change.

- **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](https://github.com/terser/terser/blob/v5.23.0/CHANGELOG.md)

### terser 5.22.0 breaking changes

terser 5.22.0, released October 16, 2023: 1 breaking change.

- **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](https://github.com/terser/terser/blob/v5.22.0/CHANGELOG.md)

### terser 5.20.0 breaking changes

terser 5.20.0, released September 20, 2023: 1 breaking change.

- **Signature changed** `CompressOptions.drop_console`  

Was drop_console?: boolean; now drop_console?: DropConsoleOption. [npmjs.com](https://www.npmjs.com/package/terser/v/5.20.0)

### terser 5.16.8 breaking changes

terser 5.16.8, released March 24, 2023: 1 breaking change.

- **Behavior changed**  

The reduce_vars compression now optimizes more aggressively around function definitions, so minified output may differ from earlier versions. [github.com](https://github.com/terser/terser/blob/v5.16.8/CHANGELOG.md)

### terser 5.15.0 breaking changes

terser 5.15.0, released August 23, 2022: 1 breaking change.

- **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](https://github.com/terser/terser/blob/v5.15.0/CHANGELOG.md)

### terser 5.14.0 breaking changes

terser 5.14.0, released May 30, 2022: 2 breaking changes.

- **Signature changed** `MinifyOutput.map`  

Was map?: RawSourceMap | string; now map?: EncodedSourceMap | string. [npmjs.com](https://www.npmjs.com/package/terser/v/5.14.0)
- **Signature changed** `SourceMapOptions.content`  

Was content?: RawSourceMap | string; now content?: SectionedSourceMapInput | string. [npmjs.com](https://www.npmjs.com/package/terser/v/5.14.0)

### terser 5.12.0 breaking changes

terser 5.12.0, released March 1, 2022: 1 breaking change.

- **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](https://github.com/terser/terser/blob/v5.12.0/CHANGELOG.md)

### terser 5.10.0 breaking changes

terser 5.10.0, released November 15, 2021: 1 breaking change.

- **Configuration changed**  

Acorn is no longer installed automatically with terser. Projects that rely on terser's parser must install acorn themselves. [github.com](https://github.com/terser/terser/blob/v5.10.0/CHANGELOG.md)

### terser 5.8.0 breaking changes

terser 5.8.0, released September 13, 2021: 1 breaking change.

- **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](https://github.com/terser/terser/blob/v5.8.0/CHANGELOG.md)

### terser 5.4.0 breaking changes

terser 5.4.0, released November 16, 2020: 1 breaking change.

- **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](https://github.com/terser/terser/blob/v5.4.0/CHANGELOG.md)

### terser 5.3.3 breaking changes

terser 5.3.3, released September 28, 2020: 1 breaking change.

- **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](https://github.com/terser/terser/blob/v5.3.3/CHANGELOG.md)

### terser 5.2.1 breaking changes

terser 5.2.1, released August 20, 2020: 1 breaking change.

- **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](https://github.com/terser/terser/blob/v5.2.1/CHANGELOG.md)

### terser 5.1.0 breaking changes

terser 5.1.0, released August 14, 2020: 3 breaking changes.

- **Removed** `MinifyOutput.ast`  

MinifyOutput.ast was removed in terser 5.1.0 [npmjs.com](https://www.npmjs.com/package/terser/v/5.1.0)
- **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](https://www.npmjs.com/package/terser/v/5.1.0)

And 1 more in this version.

### terser 5.0.0 breaking changes

terser 5.0.0, released August 1, 2020: 132 breaking changes.

- **Removed** `ArgType`  

ArgType was removed in terser 5.0.0 [npmjs.com](https://www.npmjs.com/package/terser/v/5.0.0)
- **Removed** `AST_Accessor`  

AST_Accessor was removed in terser 5.0.0 [npmjs.com](https://www.npmjs.com/package/terser/v/5.0.0)

And 130 more in this version.

### terser 5.0.0-beta.0 breaking changes

terser 5.0.0-beta.0, released August 1, 2020: 3 breaking changes.

- **Removed**  

The internal AST is no longer part of the public interface, so code that relied on it will break. [github.com](https://github.com/terser/terser/blob/v5.0.0/CHANGELOG.md)
- **Removed**  

The lowest supported Node.js version is now 10. Older Node.js versions are no longer supported. [github.com](https://github.com/terser/terser/blob/v5.0.0/CHANGELOG.md)

And 1 more in this version.

### terser 4.8.2 breaking changes

terser 4.8.2, released November 20, 2026: 1 breaking change.

- **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](https://github.com/terser/terser/blob/v4.8.2/CHANGELOG.md)

### terser 4.0.0 breaking changes

terser 4.0.0, released May 19, 2019: 4 breaking changes.

- **Removed** `DictEachCallback`  

DictEachCallback was removed in terser 4.0.0 [npmjs.com](https://www.npmjs.com/package/terser/v/4.0.0)
- **Removed** `Dictionary`  

Dictionary was removed in terser 4.0.0 [npmjs.com](https://www.npmjs.com/package/terser/v/4.0.0)

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](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
