Packages

terser

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

Upgrading terser From 3.17.0 to 4.0.0

1 release in betweenevery note read

Other targets from 3.17.0Clears its advisory4.8.1Latest5.51.2
  1. 3.17.0yours
  2. 4.0.0target
1
change to make
0
advisories fixed
1
new
2
fixes

Before you upgrade

Tick each one off as you go
  • Breaking4.0.0

Security

1 advisory still affects 4.0.0

Upgrading to 4.8.1 clears it.

Release by release

  1. 4.0.0

    Migration needed19 May 20191 new · 2 fixes
    • Breaking

      The variables property of all scopes has become a standard JavaScript Map as opposed to the old bespoke Dictionary object.

    • New

      Added the keep_quoted=strict mode to mangle_props, which behaves more like Google Closure Compiler by mangling all unquoted property names, instead of reserving quoted property names automatically.

    • Fixed

      Fixed optimisation of Array and new Array

    • Fixed

      Fixed parent functions' parameters being shadowed in some cases

5 other lines we could not sort, mostly version bumps
  • Typescript definitions were fixed

    4.0.0
  • terser --help was fixed

    4.0.0
  • The public interface was cleaned up

    4.0.0
  • Allowed Terser to run in a situation where there are custom functions attached to Object.prototype

    4.0.0
  • And more bug fixes, optimisations and internal changes

    4.0.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.