Packages

terser

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

Your version

3.17.0

10 Mar 2019Where it was published

Summary· from the note as AI read it

To checkNothing breaks, but check what is deprecated or unsure.

Before you upgrade

  • Ensure your runtime supports ES6 Set and includesTo check

New

  • More DOM properties added to --mangle-properties's DOM property list
  • You can now list files to minify in a Terser config file
  • Started replacing new Array(<number>) with an array literal

In short

1 breaking2 new1 faster2 fixed

  • Breaking

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

    To check

Security

1 advisory affects 3.17.0; 4.8.1 fixes them

Release note

  • More DOM properties added to --mangle-properties's DOM property list

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

  • Fixed issue with hasOwnProperty.call

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

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

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

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.