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

Diff

Changelog

Source

v4.3.10

  • Fixed syntax error when repeated semicolons were encountered in classes
  • Fixed invalid output caused by the creation of empty sequences internally
  • Scopes are now updated when scopes are inlined into them
fabiosantoscode
published 4.3.9 •

Changelog

Source

v4.3.9

  • Fixed issue with mangle's keep_fnames option, introduced when adding code to keep variable names of anonymous functions
fabiosantoscode
published 4.3.8 •

Changelog

Source

v4.3.8

  • Typescript typings fix
fabiosantoscode
published 4.3.7 •

Changelog

Source

v4.3.7

  • Parsing of regex options in the CLI (which broke in v4.3.5) was fixed.
  • typescript definition updates
fabiosantoscode
published 4.3.6 •

Changelog

Source

v4.3.6

(crash hotfix)

fabiosantoscode
published 4.3.5 •

Changelog

Source

v4.3.5

  • Fixed an issue with DOS line endings strings separated by \ and a new line.
  • Improved fix for the output size regression related to unused references within the extends section of a class.
  • Variable names of anonymous functions (eg: const x = () => { ... } or var func = function () {...}) are now preserved when keep_fnames is true.
  • Fixed performance degradation introduced for large payloads in v4.2.0
fabiosantoscode
published 4.3.4 •

Changelog

Source

v4.3.4

  • Fixed a regression where the output size was increased when unused classes were referred to in the extends clause of a class.
  • Small typescript typings fixes.
  • Comments with @preserve, @license, @cc_on as well as comments starting with /*! and /**! are now preserved by default.
fabiosantoscode
published 4.3.3 •

Changelog

Source

v4.3.3

  • Fixed a problem where parsing template strings would mix up octal notation and a slash followed by a zero representing a null character.
  • Started accepting the name async in destructuring arguments with default value.
  • Now Terser takes into account side effects inside class extends clauses.
  • Added parens whenever there's a comment between a return statement and the returned value, to prevent issues with ASI.
  • Stopped using raw RegExp objects, since the spec is going to continue to evolve. This ensures Terser is able to process new, unknown RegExp flags and features. This is a breaking change in the AST node AST_RegExp.
fabiosantoscode
published 4.3.2 •

Changelog

Source

v4.3.2

  • Typescript typing fix
  • Ensure that functions can't be inlined, by reduce_vars, into places where they're accessing variables with the same name, but from somewhere else.
fabiosantoscode
published 4.3.1 •

Changelog

Source

v4.3.1

  • Fixed an issue from 4.3.0 where any block scope within a for loop erroneously had its parent set to the function scopee
  • Fixed an issue where compressing IIFEs with argument expansions would result in some parameters becoming undefined
  • addEventListener options argument's properties are now part of the DOM properties list.
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