Packages

terser

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

Your version

4.6.11

8 Apr 2020Where it was published

4.8.2 is the newest release of 4.x.

In short

1 fixed5 changed

Security

1 advisory affects 4.6.11; 4.8.1 fixes them

Release note

  • Read unused classes' properties and method keys, to figure out if they use other variables.

  • Prevent inlining into block scopes when there are name collisions

  • Functions are no longer inlined into parameter defaults, because they live in their own special scope.

  • When inlining identity functions, take into account the fact they may be used to drop this in function calls.

  • Nullish coalescing operator (x ?? y), plus basic optimization for it.

  • Template literals in binary expressions such as + have been further optimized

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.