Socket
Socket
Sign inDemoInstall

terser

Package Overview
Dependencies
Maintainers
1
Versions
178
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.17.3

Diff

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

Changelog

Source

v5.16.4

  • Keep (defaultArg = undefined) => ..., because default args don't count for function length
  • Prevent inlining variables into ?. optional chains
  • Avoid removing unused arguments while transforming
  • Optimize iterating AST node lists
  • Make sure catch and finally aren't children of try in the AST
  • Use modern unicode property escapes (\p{...}) to parse identifiers when available
fabiosantoscode
published 5.16.3 •

Changelog

Source

v5.16.3

  • Ensure function definitions, don't assume the values of variables defined after them.
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