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

4.0.0

Diff

Changelog

Source

v4.0.0

  • breaking change: The variables property of all scopes has become a standard JavaScript Map as opposed to the old bespoke Dictionary object.
  • Typescript definitions were fixed
  • terser --help was fixed
  • The public interface was cleaned up
  • Fixed optimisation of Array and new Array
  • Added the keep_quoted=strict mode to mangle_props, which behaves more like Google Closure Compiler by mangling all unquoted property names, instead of reserving quoted property names automatically.
  • Fixed parent functions' parameters being shadowed in some cases
  • Allowed Terser to run in a situation where there are custom functions attached to Object.prototype
  • And more bug fixes, optimisations and internal changes
fabiosantoscode
published 3.17.0 •

Changelog

Source

v3.17.0

  • More DOM properties added to --mangle-properties's DOM property list
  • Closed issue where if 2 functions had the same argument name, Terser would not inline them together properly
  • Fixed issue with hasOwnProperty.call
  • You can now list files to minify in a Terser config file
  • Started replacing new Array(<number>) with an array literal
  • Started using ES6 capabilities like Set and the includes method for strings and arrays
fabiosantoscode
published 3.16.1 •

Changelog

Source

v3.16.1

  • Fixed issue where Terser being imported with import would cause it not to work due to the __esModule property. (PR #254 was submitted, which was nice, but since it wasn't a pure commonJS approach I decided to go with my own solution)
fabiosantoscode
published 3.16.0 •

Changelog

Source

v3.16.0

  • No longer leaves names like Array or Object or window as a SimpleStatement (statement which is just a single expression).
  • Add support for sections sourcemaps (IndexedSourceMapConsumer)
  • Drops node.js v4 and starts using commonJS
  • Is now built with rollup
fabiosantoscode
published 3.14.1 •

fabiosantoscode
published 3.14.0 •

fabiosantoscode
published 3.14.0-beta •

fabiosantoscode
published 3.13.1 •

fabiosantoscode
published 3.13.0 •

fabiosantoscode
published 3.12.0 •

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