Comparing version 4.1.4 to 4.2.0
# Changelog | ||
## v4.2.0 | ||
- When the source map URL is `inline`, don't write it to a file. | ||
- Fixed output parens when a lambda literal is the tag on a tagged template string. | ||
- The `mangle.properties.undeclared` option was added. This enables the property mangler to mangle properties of variables which can be found in the name cache, but whose properties are not known to this Terser run. | ||
- The v8 bug where the toString and source representations of regexes like `RegExp("\\\n")` includes an actual newline is now fixed. | ||
- Now we're guaranteed to not have duplicate comments in the output | ||
- Domprops updates | ||
## v4.1.4 | ||
@@ -4,0 +13,0 @@ |
{ | ||
"name": "terser", | ||
"description": "JavaScript parser, mangler/compressor and beautifier toolkit for ES6+", | ||
"homepage": "https://github.com/fabiosantoscode/terser", | ||
"homepage": "https://github.com/terser-js/terser", | ||
"author": "Mihai Bazon <mihai.bazon@gmail.com> (http://lisperator.net/)", | ||
"license": "BSD-2-Clause", | ||
"version": "4.1.4", | ||
"version": "4.2.0", | ||
"engines": { | ||
@@ -56,3 +56,2 @@ "node": ">=6.0.0" | ||
"build": "rimraf dist/* && rollup --config --silent", | ||
"minify": "cd dist && node ../bin/uglifyjsnobundle bundle.js -mc --source-map content=bundle.js.map,includeSources=true -o bundle.min.js", | ||
"prepare": "npm run build", | ||
@@ -59,0 +58,0 @@ "postversion": "echo 'Remember to update the changelog!'" |
terser | ||
====== | ||
![Terser](https://raw.githubusercontent.com/terser-js/terser/master/logo.png) | ||
![Terser](https://raw.githubusercontent.com/terser-js/terser/master/logo.svg) | ||
[![NPM Version][npm-image]][npm-url] | ||
[![NPM Downloads][downloads-image]][downloads-url] | ||
[![Linux Build][travis-image]][travis-url] | ||
A JavaScript parser and mangler/compressor toolkit for ES6+. | ||
@@ -14,4 +18,2 @@ | ||
[![Build Status](https://travis-ci.org/terser-js/terser.svg?branch=master)](https://travis-ci.org/terser-js/terser) | ||
Find the changelog in [CHANGELOG.md](https://github.com/terser-js/terser/blob/master/CHANGELOG.md) | ||
@@ -21,2 +23,8 @@ | ||
[npm-image]: https://img.shields.io/npm/v/terser.svg | ||
[npm-url]: https://npmjs.org/package/terser | ||
[downloads-image]: https://img.shields.io/npm/dm/terser.svg | ||
[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 | ||
@@ -953,2 +961,7 @@ Why choose terser? | ||
- `undeclared` (default: `false`) - Mangle those names when they are accessed | ||
as properties of known top level variables but their declarations are never | ||
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. | ||
## Output options | ||
@@ -955,0 +968,0 @@ |
@@ -99,3 +99,3 @@ /// <reference lib="es2015" /> | ||
braces?: boolean; | ||
comments?: boolean | 'all' | 'some' | RegExp; | ||
comments?: boolean | 'all' | 'some' | RegExp | Function; | ||
ecma?: ECMA; | ||
@@ -102,0 +102,0 @@ indent_level?: number; |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1704732
7593
1326