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

Diff

Changelog

Source

v4.6.2

  • A bug where functions were inlined into other functions with scope conflicts has been fixed.
  • /*#__NOINLINE__*/ annotation fixed for more use cases where inlining happens.
fabiosantoscode
published 4.6.1 •

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