Socket
Socket
Sign inDemoInstall

terser

Package Overview
Dependencies
4
Maintainers
1
Versions
171
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous1
1012
18Next

4.6.1

Diff

Changelog

Source

v4.6.1

  • Fixed an issue where a class is duplicated by reduce_vars when there's a recursive reference to the class.
fabiosantoscode
published 4.6.0 •

Changelog

Source

v4.6.0

  • Fixed issues with recursive class references.
  • BigInt evaluation has been prevented, stopping Terser from evaluating BigInts like it would do regular numbers.
  • Class property support has been added
fabiosantoscode
published 4.5.1 •

Changelog

Source

v4.5.1

(hotfix release)

  • Fixed issue where () => ({})[something] was not parenthesised correctly.
fabiosantoscode
published 4.5.0 •

Changelog

Source

v4.5.0

  • Inlining has been improved
  • An issue where keep_fnames combined with functions declared through variables was causing name shadowing has been fixed
  • You can now set the ES version through their year
  • The output option keep_numbers has been added, which prevents Terser from turning 1000 into 1e3 and such
  • Internal small optimisations and refactors
fabiosantoscode
published 4.4.3 •

Changelog

Source

v4.4.3

  • Number and BigInt parsing has been fixed
  • /*#__INLINE__*/ annotation fixed for arrow functions with non-block bodies.
  • Functional tests have been added, using this repository.
  • A memory leak, where the entire AST lives on after compression, has been plugged.
fabiosantoscode
published 4.4.2 •

Changelog

Source

v4.4.2

  • Fixed a problem with inlining identity functions
fabiosantoscode
published 4.4.1 •

Changelog

Source

v4.4.1

note: This introduced a feature, therefore it should have been a minor release.

  • Fixed a crash when unsafe was enabled.
  • An issue has been fixed where let statements might be collapsed out of their scope.
  • Some error messages have been improved by adding quotes around variable names.
fabiosantoscode
published 4.4.0 •

Changelog

Source

v4.4.0

  • Added /*#__INLINE__*/ and /*#__NOINLINE__*/ annotations for calls. If a call has one of these, it either forces or forbids inlining.
fabiosantoscode
published 4.3.11 •

Changelog

Source

v4.3.11

  • Fixed a problem where window was considered safe to access, even though there are situations where it isn't (Node.js, workers...)
  • Fixed an error where ++ and -- were considered side-effect free
  • Number(x) now needs both unsafe and and unsafe_math to be compressed into +x because x might be a BigInt
  • keep_fnames now correctly supports regexes when the function is in a variable declaration
fabiosantoscode
published 4.3.10 •

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
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc