Packages

terser

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

Your version

5.7.2

24 Aug 2021Where it was published

5.51.4 is the newest release of 5.x.

In short

1 new2 fixed5 changed

Security

1 advisory affects 5.7.2; 5.14.2 fixes them

Release note

  • Fixed issues with compressing functions defined in global_defs option

  • New recipe for using Terser in gulp was added to RECIPES.md

  • Fixed issues with ?? and ?.

  • Future reserved words such as package no longer require you to disable strict mode to be used as names.

  • Refactored huge compressor file into multiple more focused files.

  • Avoided unparenthesized in operator in some for loops (it breaks parsing because of for..in loops)

  • Improved documentation (#1021, #1025)

  • More type definitions

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.