Packages

terser

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

Upgrading terser From 3.10.11 to 4.8.1

56 releases in betweennotes for 48

Other targets from 3.10.11Newest 3.x3.17.0Latest5.51.2
  1. 3.10.11yours
  2. 8 releases
  3. 3.16.0breaking
  4. 2 releases
  5. 4.0.0major
  6. 12 releases
  7. 4.3.3breaking
  8. 30 releases
  9. 4.8.1target
3+
changes to make
1
advisory fixed
7+
new
37+
fixes

Counted from 48 of 56 release notes. Advisories are counted from the advisory database, in full.

Before you upgrade

Tick each one off as you go
  • Breaking4.3.3
  • Breaking4.0.0
  • Breaking3.16.0

Security

Fixes 1 advisory affecting 3.10.11

  • Security fix for RegExps that should not be evaluated (regexp DDOS)

    4.8.1

Release by release

  1. 4.8.1

    Security fix13 Jul 2022
    • Security

      Security fix for RegExps that should not be evaluated (regexp DDOS)

  2. 4.8.0

    16 Jun 20201 new · 1 fix
    • New

      Support for numeric separators (million = 1_000_000) was added.

    • Fixed

      Fixed bug where yield wasn't considered a valid property key in generators.

  3. 4.7.0

    18 May 20201 fix
    • Fixed

      Fixed erroneous const declarations without value (which is invalid) in some corner cases when using collapse_vars.

  4. 4.6.13

    30 Apr 20202 fixes
    • Fixed

      Fixed issue where ES5 object properties were being turned into ES6 object properties due to more lax unicode rules.

    • Fixed

      Fixed parsing of BigInt with lowercase e in them.

  5. 4.6.12

    24 Apr 20201 fix
    • Fixed

      Fixed subtree comparison code, making it see that [1,[2, 3]] is different from [1, 2, [3]]

  6. 4.6.11

    8 Apr 20201 fix
    • Fixed

      Prevent inlining into block scopes when there are name collisions

  7. 4.6.10

    31 Mar 20201 fix
    • Fixed

      Do not use reduce_vars when classes are present

  8. 4.6.8 – 4.6.92 releases, nothing new or fixed in the notes

93 other lines we could not sort, mostly version bumps
  • Assigning properties to a class is now assumed to be pure.

    4.8.0
  • A bug was fixed where an arrow function would have the wrong size

    4.7.0
  • arguments object is now considered safe to retrieve properties from (useful for length, or 0) even when pure_getters is not set.

    4.7.0
  • Printing of unicode identifiers has been improved

    4.6.12
  • Read unused classes' properties and method keys, to figure out if they use other variables.

    4.6.11
  • Functions are no longer inlined into parameter defaults, because they live in their own special scope.

    4.6.11
  • When inlining identity functions, take into account the fact they may be used to drop this in function calls.

    4.6.11
  • Nullish coalescing operator (x ?? y), plus basic optimization for it.

    4.6.11
  • Template literals in binary expressions such as + have been further optimized

    4.6.11
  • Check if block scopes actually exist in blocks

    4.6.9

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.