Packages

terser

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

Upgrading terser From 4.6.8 to 4.8.2

9 releases in betweennotes for 8

Other targets from 4.6.8Clears its advisory4.8.1Latest5.51.2
  1. 4.6.8yours
  2. 7 releases
  3. 4.8.1security
  4. 4.8.2target
?
changes to make
1
advisory fixed
1+
new
7+
fixes

Counted from 8 of 9 release notes. Advisories are counted from the advisory database, in full.

Security

Fixes 1 advisory affecting 4.6.8

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

    4.8.1

Release by release

  1. 4.8.2no release note

  2. 4.8.1

    Security fix13 Jul 2022
    • Security

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

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

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

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

  6. 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]]

  7. 4.6.11

    8 Apr 20201 fix
    • Fixed

      Prevent inlining into block scopes when there are name collisions

  8. 4.6.10

    31 Mar 20201 fix
    • Fixed

      Do not use reduce_vars when classes are present

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