Socket
Socket
Sign inDemoInstall

terser

Package Overview
Dependencies
11
Maintainers
1
Versions
169
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous1345
17Next

5.27.2

Diff

Changelog

Source

v5.27.2

  • Recognise this as a reference to the surrounding class in drop_unused. Closes #1472
fabiosantoscode
published 5.27.1 •

Changelog

Source

v5.27.1

  • Fixed case where collapse_vars inlines await expressions into non-async functions.
fabiosantoscode
published 5.27.0 •

Changelog

Source

v5.27.0

  • Created minify_sync() alternative to minify() since there's no async code left.
fabiosantoscode
published 5.26.0 •

Changelog

Source

v5.26.0

  • Do not take the /*#__PURE__*/ annotation into account when the side_effects compress option is off.
  • The preserve_annotations option now automatically opts annotation comments in, instead of requiring the comments option to be configured for this.
  • Refuse to parse empty parenthesized expressions (())
fabiosantoscode
published 5.25.0 •

Changelog

Source

v5.25.0

  • Regex properties added to reserved property mangler (#1471)
  • pure_new option added to drop unused new expressions.
fabiosantoscode
published 5.24.0 •

Changelog

Source

v5.24.0

  • Improve formatting performance in V8 by keeping a small work string and a large output string
fabiosantoscode
published 5.23.0 •

Changelog

Source

v5.23.0

  • When top_retain will keep a variable assignment around, inline the assignee when it's shorter than the name (#1434)
  • Remove empty class static {} blocks.
fabiosantoscode
published 5.22.0 •

Changelog

Source

v5.22.0

  • 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.
fabiosantoscode
published 5.21.0 •

Changelog

Source

v5.21.0

  • Do not inline functions that would be retained in the toplevel (as this would cause code duplication).
  • Fix precedence of arrow function and ternary operator when formatting output.
fabiosantoscode
published 5.20.0 •

Changelog

Source

v5.20.0

  • Passing minify() zero files will now throw a clean exception (#1450)
  • drop_console supports passing in an array of console.* method names (#1445)
  • New DOM properties from the WebGPU API have been added for use in the property mangler (#1436)
  • Internal code simplification (#1437)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc