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

Diff

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.
fabiosantoscode
published 5.16.2 •

Changelog

Source

v5.16.2

  • Fix sourcemaps with non-ascii characters (#1318)
  • Support string module name and export * as (#1336)
  • Do not move let out of for initializers, as it can change scoping
  • Fix a corner case that would generate the invalid syntax if (something) let x ("let" in braceless if body)
  • Knowledge of more native object properties (#1330)
  • Got rid of Travis (#1323)
  • Added semi-secret asObject sourcemap option to typescript defs (#1321)
fabiosantoscode
published 5.16.1 •

Changelog

Source

v5.16.1

  • Properly handle references in destructurings (const { [reference]: val } = ...)
  • Allow parsing of .#privatefield in nested classes
  • Do not evaluate operations that return large strings if that would make the output code larger
  • Make collapse_vars handle block scope correctly
  • Internal improvements: Typos (#1311), more tests, small-scale refactoring
fabiosantoscode
published 5.16.0 •

Changelog

Source

v5.16.0

  • Disallow private fields in object bodies (#1011)
  • Parse #privatefield in object (#1279)
  • Compress #privatefield in object
fabiosantoscode
published 5.15.1 •

Changelog

Source

v5.15.1

  • Fixed missing parentheses around optional chains
  • Avoid bare let or const as the bodies of if statements (#1253)
  • Small internal fixes (#1271)
  • Avoid inlining a class twice and creating two equivalent but !== classes.
fabiosantoscode
published 5.15.0 •

Changelog

Source

v5.15.0

  • Basic support for ES2022 class static initializer blocks.
  • Add AudioWorkletNode constructor options to domprops list (#1230)
  • Make identity function inliner not inline id(...expandedArgs)
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