Socket
Socket
Sign inDemoInstall

terser

Package Overview
Dependencies
Maintainers
1
Versions
180
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

terser - npm Package Versions

1
18

4.3.8

Diff

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

Changelog

Source

v4.3.0

  • Do not drop computed object keys with side effects
  • Functions passed to other functions in calls are now wrapped in parentheses by default, which speeds up loading most modules
  • Objects with computed properties are now less likely to be hoisted
  • Speed and memory efficiency optimizations
  • Fixed scoping issues with try and switch
fabiosantoscode
published 4.2.1 •

Changelog

Source

v4.2.1

  • Minor refactors
  • Fixed a bug similar to #369 in collapse_vars
  • Functions can no longer be inlined into a place where they're going to be compared with themselves.
  • reduce_funcs option is now legacy, as using reduce_vars without reduce_funcs caused some weird corner cases. As a result, it is now implied in reduce_vars and can't be turned off without turning off reduce_vars.
  • Bug which would cause a random stack overflow has now been fixed.
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