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
Previous1
35
17Next

5.17.5

Diff

Changelog

Source

v5.17.5

  • Take into account the non-deferred bits of a class, such as static properties, while dropping unused code.
fabiosantoscode
published 5.17.4 •

Changelog

Source

v5.17.4

  • Fix crash when trying to negate a class (!class{})
  • Avoid outputting comments between yield/await and its argument
  • Fix detection of left-hand-side of assignment, to avoid optimizing it like any other expression in some edge cases
fabiosantoscode
published 5.17.3 •

Changelog

Source

v5.17.3

  • Fix issue with trimming a static class property's contents accessing the class as this.
fabiosantoscode
published 5.17.2 •

Changelog

Source

v5.17.2

  • Be less conservative when detecting use-before-definition of var in hoisted functions.
  • Support unusual (but perfectly valid) initializers of for-in and for-of loops.
  • Fix issue where hoisted function would be dropped if it was after a continue statement
fabiosantoscode
published 5.17.1 •

Changelog

Source

v5.17.1

  • Fix evaluating .length when the source array might've been mutated
fabiosantoscode
published 5.17.0 •

Changelog

Source

v5.17.0

  • Drop vestigial = undefined default argument in IIFE calls (#1366)
  • Evaluate known arrays' .length property when statically determinable
  • Add @__KEY__ annotation to mangle string literals (#1365)
fabiosantoscode
published 5.16.9 •

Changelog

Source

v5.16.9

  • Fix parentheses in output of optional chains (a?.b) (#1374)
  • More documentation on source maps (#1368)
  • New lhs_constants option, allowing to stop Terser from swapping comparison operands (#1361)
fabiosantoscode
published 5.16.8 •

Changelog

Source

v5.16.8

  • Become even less conservative around function definitions for reduce_vars
  • Fix parsing context of import.meta expressions such that method calls are allowed
fabiosantoscode
published 5.16.6 •

Changelog

Source

v5.16.6

  • Become less conservative with analyzing function definitions for reduce_vars
  • Parse import.meta as a real AST node and not an object.property
fabiosantoscode
published 5.16.5 •

Changelog

Source

v5.16.5

  • Correctly handle AST transform functions that mutate children arrays
  • Don't mutate the options object passed to Terser (#1342)
  • Do not treat BigInt like a number
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