Packages

terser

5.51.2 · 27 Aug 2026BSD-2-Clause118.8M / weekRepositoryHomepagenpmAtom feed

Upgrading terser From 3.10.4 to 3.17.0

18 releases in betweennotes for 3

Other targets from 3.10.4Clears its advisory4.8.1Latest5.51.2
  1. 3.10.4yours
  2. 15 releases
  3. 3.16.0breaking
  4. 1 release
  5. 3.17.0target
1+
change to make
0
advisories fixed
1+
new
2+
fixes

Counted from 3 of 18 release notes. Advisories are counted from the advisory database, in full.

Before you upgrade

Tick each one off as you go
  • Breaking3.16.0

Security

1 advisory still affects 3.17.0

Upgrading to 4.8.1 clears it.

Release by release

  1. 3.17.0

    10 Mar 20191 fix
    • Fixed

      Fixed issue with hasOwnProperty.call

  2. 3.16.1

    4 Feb 20191 fix
    • Fixed

      Fixed issue where Terser being imported with import would cause it not to work due to the __esModule property. (PR #254 was submitted, which was nice, but since it wasn't a pure commonJS approach I decided to go with my own solution)

  3. 3.16.0

    Migration needed2 Feb 20191 new
    • Breaking

      Drops node.js v4 and starts using commonJS

    • New

      Add support for sections sourcemaps (IndexedSourceMapConsumer)

  4. 3.10.5 – 3.14.115 releases, no release note

7 other lines we could not sort, mostly version bumps
  • More DOM properties added to --mangle-properties's DOM property list

    3.17.0
  • Closed issue where if 2 functions had the same argument name, Terser would not inline them together properly

    3.17.0
  • You can now list files to minify in a Terser config file

    3.17.0
  • Started replacing new Array(<number>) with an array literal

    3.17.0
  • Started using ES6 capabilities like Set and the includes method for strings and arrays

    3.17.0
  • No longer leaves names like Array or Object or window as a SimpleStatement (statement which is just a single expression).

    3.16.0
  • Is now built with rollup

    3.16.0

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.