Socket
Socket
Sign inDemoInstall

terser

Package Overview
Dependencies
Maintainers
1
Versions
176
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

terser - npm Package Versions

1
18

5.26.0

Diff

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)
fabiosantoscode
published 5.19.4 •

Changelog

Source

v5.19.4

  • Prevent creating very deeply nested ternaries from a long list of if..return
  • Prevent inlining classes into other functions, to avoid constructors being compared.
fabiosantoscode
published 5.19.3 •

Changelog

Source

v5.19.3

  • Fix side effect detection of optional?.chains.
  • Add roundRect to domprops.js (#1426)
fabiosantoscode
published 5.19.2 •

Changelog

Source

v5.19.2

  • fix performance hit from avoiding HTML comments in the output
SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc