Packages

terser

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

Upgrading terser From 4.1.4 to 4.2.0

1 release in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 4.1.4Newest 4.x4.8.2Clears its advisory4.8.1Latest5.51.2
  1. 4.1.4yours
  2. 4.2.0target
0
changes to make
0
advisories fixed
0
new
1
fix

Security

1 advisory still affects 4.2.0

Upgrading to 4.8.1 clears it.

Release by release

  1. 4.2.0

    19 Aug 20191 fix
    • Fixed

      Fixed output parens when a lambda literal is the tag on a tagged template string.

5 other lines we could not sort, mostly version bumps
  • When the source map URL is inline, don't write it to a file.

    4.2.0
  • The mangle.properties.undeclared option was added. This enables the property mangler to mangle properties of variables which can be found in the name cache, but whose properties are not known to this Terser run.

    4.2.0
  • The v8 bug where the toString and source representations of regexes like RegExp("\\\n") includes an actual newline is now fixed.

    4.2.0
  • Now we're guaranteed to not have duplicate comments in the output

    4.2.0
  • Domprops updates

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