Packages

terser

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

Your version

5.22.0

16 Oct 2023Where it was published

5.51.4 is the newest release of 5.x.

In short

2 fixed1 changed

Release note

  • Do not unsafely shorten expressions like a?.toString() when they're conditional.

  • Avoid running drop_unused in nodes that aren't scopes. Fixes a rare crash.

  • When 'module' is enabled, assume strict mode when figuring out scopes.

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.