Packages

terser

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

Your version

4.6.4

24 Feb 2020Where it was published

4.8.2 is the newest release of 4.x.

In short

1 fixed6 changed

Security

1 advisory affects 4.6.4; 4.8.1 fixes them

Release note

  • The "some" value in the comments output option now preserves @lic and other important comments when using //

  • </script> is now better escaped in regex, and in comments, when using the inline_script output option

  • Fixed an issue when transforming new RegExp into /.../ when slashes are included in the source

  • AST_Node.prototype.constructor now exists, allowing for easier debugging of crashes

  • Multiple if statements with the same consequents are now collapsed

  • Typescript typings improvements

  • Optimizations while looking for surrogate pairs in strings

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.