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.18.0

Diff

Changelog

Source

v5.18.0

  • Add new /*@__MANGLE_PROP__*/ annotation, to mark properties that should be mangled.
fabiosantoscode
published 5.17.7 •

Changelog

Source

v5.17.7

  • Update some dependencies
  • Add consistent sorting for v RegExp flag
  • Add inert DOM attribute to domprops
fabiosantoscode
published 5.17.6 •

Changelog

Source

v5.17.6

  • Fixes to mozilla AST input and output, for class properties, private properties and static blocks
  • Fix outputting a shorthand property in quotes when safari10 and ecma=2015 options are enabled
  • configurable and enumerable, used in Object.defineProperty, added to domprops (#1393)
fabiosantoscode
published 5.17.5 •

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)
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