Socket
Socket
Sign inDemoInstall

terser

Package Overview
Dependencies
Maintainers
1
Versions
178
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

terser - npm Package Versions

1
18

5.16.2

Diff

Changelog

Source

v5.16.2

  • Fix sourcemaps with non-ascii characters (#1318)
  • Support string module name and export * as (#1336)
  • Do not move let out of for initializers, as it can change scoping
  • Fix a corner case that would generate the invalid syntax if (something) let x ("let" in braceless if body)
  • Knowledge of more native object properties (#1330)
  • Got rid of Travis (#1323)
  • Added semi-secret asObject sourcemap option to typescript defs (#1321)
fabiosantoscode
published 5.16.1 •

Changelog

Source

v5.16.1

  • Properly handle references in destructurings (const { [reference]: val } = ...)
  • Allow parsing of .#privatefield in nested classes
  • Do not evaluate operations that return large strings if that would make the output code larger
  • Make collapse_vars handle block scope correctly
  • Internal improvements: Typos (#1311), more tests, small-scale refactoring
fabiosantoscode
published 5.16.0 •

Changelog

Source

v5.16.0

  • Disallow private fields in object bodies (#1011)
  • Parse #privatefield in object (#1279)
  • Compress #privatefield in object
fabiosantoscode
published 5.15.1 •

Changelog

Source

v5.15.1

  • Fixed missing parentheses around optional chains
  • Avoid bare let or const as the bodies of if statements (#1253)
  • Small internal fixes (#1271)
  • Avoid inlining a class twice and creating two equivalent but !== classes.
fabiosantoscode
published 5.15.0 •

Changelog

Source

v5.15.0

  • Basic support for ES2022 class static initializer blocks.
  • Add AudioWorkletNode constructor options to domprops list (#1230)
  • Make identity function inliner not inline id(...expandedArgs)
fabiosantoscode
published 5.14.2 •

Changelog

Source

v5.14.2

  • Security fix for RegExps that should not be evaluated (regexp DDOS)
  • Source maps improvements (#1211)
  • Performance improvements in long property access evaluation (#1213)
fabiosantoscode
published 4.8.1 •

Changelog

Source

v4.8.1 (backport)

  • Security fix for RegExps that should not be evaluated (regexp DDOS)
fabiosantoscode
published 5.14.1 •

Changelog

Source

v5.14.1

  • keep_numbers option added to TypeScript defs (#1208)
  • Fixed parsing of nested template strings (#1204)
fabiosantoscode
published 5.14.0 •

Changelog

Source

v5.14.0

  • Switched to @jridgewell/source-map for sourcemap generation (#1190, #1181)
  • Fixed source maps with non-terminated segments (#1106)
  • Enabled typescript types to be imported from the package (#1194)
  • Extra DOM props have been added (#1191)
  • Delete the AST while generating code, as a means to save RAM
fabiosantoscode
published 5.13.1 •

Changelog

Source

v5.13.1

  • Removed self-assignments (varname=varname) (closes #1081)
  • Separated inlining code (for inlining things into references, or removing IIFEs)
  • Allow multiple identifiers with the same name in var destructuring (eg var { a, a } = x) (#1176)
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