terser 4.1.1 → 4.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of terser might be problematic. Click here for more details.

package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "terser",
3
3
  "description": "JavaScript parser, mangler/compressor and beautifier toolkit for ES6+",
4
- "homepage": "https://github.com/fabiosantoscode/terser",
4
+ "homepage": "https://github.com/terser-js/terser",
5
5
  "author": "Mihai Bazon <mihai.bazon@gmail.com> (http://lisperator.net/)",
6
6
  "license": "BSD-2-Clause",
7
- "version": "4.1.1",
7
+ "version": "4.2.0",
8
8
  "engines": {
9
9
  "node": ">=6.0.0"
10
10
  },
@@ -42,15 +42,18 @@
42
42
  "pre-commit": "^1.2.2",
43
43
  "rimraf": "^2.6.3",
44
44
  "rollup": "^1.13.1",
45
+ "rollup-plugin-terser": "^5.1.1",
45
46
  "semver": "^5.7.0"
46
47
  },
47
48
  "scripts": {
48
- "test": "npm run build -- --silent --input=main.tests.js && npm run minify && node test/run-tests.js",
49
+ "test": "npm run build -- --configTest && node test/run-tests.js",
50
+ "test:precommit": "npm run build && node test/run-tests.js",
51
+ "test:mocha": "npm run build -- --configTest && node test/mocha.js",
52
+ "test:compress": "npm run build -- --configTest && node test/compress.js",
49
53
  "lint": "eslint lib",
50
54
  "lint-fix": "eslint --fix lib",
51
- "build": "rimraf dist/* && rollup -c",
52
- "minify": "cd dist && node ../bin/uglifyjsnobundle bundle.js -mc --source-map content=bundle.js.map,includeSources=true -o bundle.min.js",
53
- "prepare": "npm run build && npm run minify",
55
+ "build": "rimraf dist/* && rollup --config --silent",
56
+ "prepare": "npm run build",
54
57
  "postversion": "echo 'Remember to update the changelog!'"
55
58
  },
56
59
  "keywords": [
@@ -83,7 +86,8 @@
83
86
  "describe": false,
84
87
  "it": false,
85
88
  "require": false,
86
- "global": false
89
+ "global": false,
90
+ "process": false
87
91
  },
88
92
  "rules": {
89
93
  "brace-style": [
@@ -115,6 +119,6 @@
115
119
  },
116
120
  "pre-commit": [
117
121
  "lint-fix",
118
- "test"
122
+ "test:precommit"
119
123
  ]
120
124
  }
package/tools/domprops.js CHANGED
@@ -2161,6 +2161,7 @@ export var domprops = [
2161
2161
  "atob",
2162
2162
  "attachEvent",
2163
2163
  "attachShader",
2164
+ "attachShadow",
2164
2165
  "attachments",
2165
2166
  "attack",
2166
2167
  "attrChange",
@@ -3065,6 +3066,7 @@ export var domprops = [
3065
3066
  "formNoValidate",
3066
3067
  "formTarget",
3067
3068
  "format",
3069
+ "formatToParts",
3068
3070
  "forms",
3069
3071
  "forward",
3070
3072
  "fr",
package/tools/terser.d.ts CHANGED
@@ -96,7 +96,7 @@ export interface OutputOptions {
96
96
  ascii_only?: boolean;
97
97
  beautify?: boolean;
98
98
  braces?: boolean;
99
- comments?: boolean | 'all' | 'some' | RegExp;
99
+ comments?: boolean | 'all' | 'some' | RegExp | Function;
100
100
  ecma?: ECMA;
101
101
  indent_level?: number;
102
102
  indent_start?: boolean;
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env node
2
- /* eslint-env node */
3
- process.env.TERSER_NO_BUNDLE = "1";
4
- require("./uglifyjs");