Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

terser

Package Overview
Dependencies
Maintainers
1
Versions
182
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

terser - npm Package Versions

1
19

5.22.0

Diff

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
fabiosantoscode
published 5.19.1 •

Changelog

Source

v5.19.1

  • Better avoid outputting </script> and HTML comments.
  • Fix unused variables in class static blocks not being dropped correctly.
  • Fix sourcemap names of methods that are async or static
fabiosantoscode
published 5.19.0 •

Changelog

Source

v5.19.0

  • Allow /*@__MANGLE_PROP__*/ annotation in object.property, in addition to property declarations.
fabiosantoscode
published 5.18.2 •

Changelog

Source

v5.18.2

  • Stop using recursion in hoisted defuns fix.
fabiosantoscode
published 5.18.1 •

Changelog

Source

v5.18.1

  • Fix major performance issue caused by hoisted defuns' scopes bugfix.
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc