Packages

terser

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

Your version

5.51.3

20 Nov 2026Where it was published

5.51.4 is the newest release of 5.x.

Summary· from the note as AI read it

Security fixUpgrade: this release fixes a security issue.

Before you upgrade

  • Set includeSources explicitly when using an input sourcemap to keep sources.

Security

  • Original source code could leak via sourcemap content; upgrade and check published sourcemaps.

In short

1 breaking1 security2 fixed

  • Breaking

    This change changes sourcemap output if including the original source code is desired. includeSources is now required to be explicitly set when an input sourcemap is used.

  • Security

    Fix source code leak through sourceMap.content (input sourcemap)

Release note

  • Fix source code leak through sourceMap.content (input sourcemap)

    • This change changes sourcemap output if including the original source code is desired. includeSources is now required to be explicitly set when an input sourcemap is used.

  • Don't crash when evaluating BigInt modulo by zero

  • Keep parens around yield and await used as a template tag

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.