Socket
Socket
Sign inDemoInstall

terser

Package Overview
Dependencies
3
Maintainers
1
Versions
171
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.2.1 to 4.3.0

bin/terser

10

CHANGELOG.md
# Changelog
## 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`
## v4.2.1

@@ -47,3 +55,3 @@

(Hotfix release. Reverts unmapped segments PR [#342](https://github.com/terser-js/terser/pull/342), which will be put back on Terser when the upstream issue is resolved)
(Hotfix release. Reverts unmapped segments PR [#342](https://github.com/terser/terser/pull/342), which will be put back on Terser when the upstream issue is resolved)

@@ -50,0 +58,0 @@ ## v4.0.1

20

package.json
{
"name": "terser",
"description": "JavaScript parser, mangler/compressor and beautifier toolkit for ES6+",
"homepage": "https://github.com/terser-js/terser",
"homepage": "https://github.com/terser/terser",
"author": "Mihai Bazon <mihai.bazon@gmail.com> (http://lisperator.net/)",
"license": "BSD-2-Clause",
"version": "4.2.1",
"version": "4.3.0",
"engines": {

@@ -18,3 +18,3 @@ "node": ">=6.0.0"

"bin": {
"terser": "bin/uglifyjs"
"terser": "bin/terser"
},

@@ -36,6 +36,6 @@ "files": [

"devDependencies": {
"acorn": "^6.1.1",
"csv": "^5.1.1",
"escodegen": "^1.11.1",
"eslint": "^4.19.1",
"acorn": "^7.0.0",
"astring": "^1.4.1",
"csv": "^5.1.2",
"eslint": "^6.3.0",
"eslump": "^2.0.0",

@@ -45,6 +45,6 @@ "mocha": "^5.2.0",

"pre-commit": "^1.2.2",
"rimraf": "^2.6.3",
"rollup": "^1.13.1",
"rimraf": "^3.0.0",
"rollup": "^1.20.3",
"rollup-plugin-terser": "^5.1.1",
"semver": "^5.7.0"
"semver": "^6.3.0"
},

@@ -51,0 +51,0 @@ "scripts": {

@@ -1,2 +0,2 @@

<h1><img src="https://raw.githubusercontent.com/terser-js/terser/master/logo.svg?sanitize=true" alt="Terser" width="450" height="190"></h1>
<h1><img src="https://terser.org/img/terser-banner-logo.png" alt="Terser" width="400"></h1>

@@ -9,3 +9,3 @@ [![NPM Version][npm-image]][npm-url]

*note*: You can support this project on patreon: <a target="_blank" rel="nofollow" href="https://www.patreon.com/fabiosantoscode"><img src="https://c5.patreon.com/external/logo/become_a_patron_button@2x.png" alt="patron" width="100px" height="auto"></a>. Check out [PATRONS.md](https://github.com/terser-js/terser/blob/master/PATRONS.md) for our first-tier patrons.
*note*: You can support this project on patreon: <a target="_blank" rel="nofollow" href="https://www.patreon.com/fabiosantoscode"><img src="https://c5.patreon.com/external/logo/become_a_patron_button@2x.png" alt="patron" width="100px" height="auto"></a>. Check out [PATRONS.md](https://github.com/terser/terser/blob/master/PATRONS.md) for our first-tier patrons.

@@ -16,6 +16,6 @@ Terser recommends you use RollupJS to bundle your modules, as that produces smaller code overall.

Find the changelog in [CHANGELOG.md](https://github.com/terser-js/terser/blob/master/CHANGELOG.md)
Find the changelog in [CHANGELOG.md](https://github.com/terser/terser/blob/master/CHANGELOG.md)
A JavaScript parser, mangler/compressor and beautifier toolkit for ES6+.
[npm-image]: https://img.shields.io/npm/v/terser.svg

@@ -25,4 +25,4 @@ [npm-url]: https://npmjs.org/package/terser

[downloads-url]: https://npmjs.org/package/terser
[travis-image]: https://img.shields.io/travis/terser-js/terser/master.svg
[travis-url]: https://travis-ci.org/terser-js/terser
[travis-image]: https://img.shields.io/travis/terser/terser/master.svg
[travis-url]: https://travis-ci.org/terser/terser

@@ -117,2 +117,3 @@ Why choose terser?

compressor options.
`wrap_func_args` Wrap function arguments in parenthesis.
-o, --output <file> Output file path (default STDOUT). Specify `ast` or

@@ -672,2 +673,4 @@ `spidermonkey` to write Terser or SpiderMonkey AST

If you happen to need the source map as a raw object, set `sourceMap.asObject` to `true`.
## Parse options

@@ -960,3 +963,3 @@

found in input code. May be useful when only minifying parts of a project.
See [#397](https://github.com/terser-js/terser/issues/397) for more details.
See [#397](https://github.com/terser/terser/issues/397) for more details.

@@ -1038,2 +1041,6 @@ ## Output options

- `wrap_func_args` (default `true`) -- pass `false` if you do not want to wrap
function expressions that are passed as arguments, in parenthesis. See
[OptimizeJS](https://github.com/nolanlawson/optimize-js) for more details.
# Miscellaneous

@@ -1320,3 +1327,3 @@

*note*: You can support this project on patreon: <a target="_blank" rel="nofollow" href="https://www.patreon.com/fabiosantoscode"><img src="https://c5.patreon.com/external/logo/become_a_patron_button@2x.png" alt="patron" width="100px" height="auto"></a>. Check out [PATRONS.md](https://github.com/terser-js/terser/blob/master/PATRONS.md) for our first-tier patrons.
*note*: You can support this project on patreon: <a target="_blank" rel="nofollow" href="https://www.patreon.com/fabiosantoscode"><img src="https://c5.patreon.com/external/logo/become_a_patron_button@2x.png" alt="patron" width="100px" height="auto"></a>. Check out [PATRONS.md](https://github.com/terser/terser/blob/master/PATRONS.md) for our first-tier patrons.

@@ -1323,0 +1330,0 @@ These are the second-tier patrons. Great thanks for your support!

@@ -148,3 +148,3 @@ /// <reference lib="es2015" />

error?: Error;
map?: string;
map?: RawSourceMap | string;
warnings?: string[];

@@ -151,0 +151,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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