Files

Return to Package Diff Home.
Brought to you by Intrinsic.

Package Diff: uglifyjs-webpack-plugin @ 2.1.2 .. 2.1.3

CHANGELOG.md

@@ -1,7 +1,17 @@
-# Change Log
+# Changelog
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
+### [2.1.3](https://github.com/webpack-contrib/uglifyjs-webpack-plugin/compare/v2.1.2...v2.1.3) (2019-05-15)
+
+
+### Bug Fixes
+
+* disable parallel on WSL ([#403](https://github.com/webpack-contrib/uglifyjs-webpack-plugin/issues/403)) ([7619736](https://github.com/webpack-contrib/uglifyjs-webpack-plugin/commit/7619736))
+* fallback for cache directory ([#401](https://github.com/webpack-contrib/uglifyjs-webpack-plugin/issues/401)) ([d117827](https://github.com/webpack-contrib/uglifyjs-webpack-plugin/commit/d117827))
+
+
+
<a name="2.1.2"></a>
## [2.1.2](https://github.com/webpack-contrib/uglifyjs-webpack-plugin/compare/v2.1.1...v2.1.2) (2019-02-25)

dist/TaskRunner.js

@@ -15,6 +15,8 @@
var _serializeJavascript = _interopRequireDefault(require("serialize-javascript"));
+var _isWsl = _interopRequireDefault(require("is-wsl"));
+
var _minify = _interopRequireDefault(require("./minify"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -29,13 +31,13 @@
} = options;
this.cacheDir = cache === true ? (0, _findCacheDir.default)({
name: 'uglifyjs-webpack-plugin'
- }) : cache; // In some cases cpus() returns undefined
+ }) || _os.default.tmpdir() : cache; // In some cases cpus() returns undefined
// https://github.com/nodejs/node/issues/19022
const cpus = _os.default.cpus() || {
length: 1
};
- this.maxConcurrentWorkers = parallel === true ? cpus.length - 1 : Math.min(Number(parallel) || 0, cpus.length - 1);
+ this.maxConcurrentWorkers = _isWsl.default ? 1 : parallel === true ? cpus.length - 1 : Math.min(Number(parallel) || 0, cpus.length - 1);
}
run(tasks, callback) {

package.json

@@ -1,6 +1,6 @@
{
"name": "uglifyjs-webpack-plugin",
- "version": "2.1.2",
+ "version": "2.1.3",
"description": "UglifyJS plugin for webpack",
"license": "MIT",
"repository": "webpack-contrib/uglifyjs-webpack-plugin",
@@ -16,21 +16,16 @@
"prebuild": "npm run clean",
"build": "cross-env NODE_ENV=production babel src -d dist --ignore 'src/**/*.test.js' --copy-files",
"clean": "del-cli dist",
- "commitlint": "commitlint",
- "commitmsg": "commitlint -e $GIT_PARAMS",
+ "commitlint": "commitlint --from=master",
"lint": "eslint --cache src test",
- "prepublish": "npm run build",
+ "prepare": "npm run build",
"release": "standard-version",
"security": "npm audit",
"test:only": "jest",
"test:watch": "jest --watch",
"test:coverage": "jest --collectCoverageFrom='src/**/*.js' --coverage",
"pretest": "npm run lint",
- "test": "npm run test:only",
- "ci:lint": "npm run lint && npm run security",
- "ci:test": "npm run test:only -- --runInBand",
- "ci:coverage": "npm run test:coverage -- --runInBand",
- "ci:lint:commits": "commitlint --from=origin/master --to=${CIRCLE_SHA1}",
+ "test": "npm run test:coverage",
"defaults": "webpack-defaults"
},
"files": [
@@ -40,40 +35,41 @@
"webpack": "^4.0.0"
},
"dependencies": {
- "cacache": "^11.2.0",
- "find-cache-dir": "^2.0.0",
+ "cacache": "^11.3.2",
+ "find-cache-dir": "^2.1.0",
+ "is-wsl": "^1.1.0",
"schema-utils": "^1.0.0",
- "serialize-javascript": "^1.4.0",
+ "serialize-javascript": "^1.7.0",
"source-map": "^0.6.1",
- "uglify-js": "^3.0.0",
- "webpack-sources": "^1.1.0",
- "worker-farm": "^1.5.2"
+ "uglify-js": "^3.5.12",
+ "webpack-sources": "^1.3.0",
+ "worker-farm": "^1.7.0"
},
"devDependencies": {
- "@babel/cli": "^7.2.0",
- "@babel/core": "^7.2.2",
- "@babel/polyfill": "^7.0.0",
- "@babel/preset-env": "^7.2.0",
- "@commitlint/cli": "^7.1.2",
- "@commitlint/config-conventional": "^7.1.2",
- "@webpack-contrib/defaults": "^3.0.0",
+ "@babel/cli": "^7.4.4",
+ "@babel/core": "^7.4.4",
+ "@babel/preset-env": "^7.4.4",
+ "@commitlint/cli": "^7.6.1",
+ "@commitlint/config-conventional": "^7.6.0",
+ "@webpack-contrib/defaults": "^4.0.1",
"@webpack-contrib/eslint-config-webpack": "^3.0.0",
- "babel-jest": "^24.1.0",
- "cross-env": "^5.1.3",
- "del": "^3.0.0",
+ "babel-jest": "^24.8.0",
+ "commitlint-azure-pipelines-cli": "^1.0.1",
+ "cross-env": "^5.2.0",
+ "del": "^4.1.1",
"del-cli": "^1.1.0",
- "eslint": "^5.5.0",
- "eslint-config-webpack": "^1.2.5",
- "eslint-plugin-import": "^2.8.0",
- "eslint-plugin-prettier": "^3.0.0",
- "husky": "^1.2.1",
- "jest": "^24.1.0",
- "lint-staged": "^8.1.0",
+ "eslint": "^5.16.0",
+ "eslint-plugin-import": "^2.17.2",
+ "eslint-plugin-prettier": "^3.1.0",
+ "husky": "^2.3.0",
+ "jest": "^24.8.0",
+ "jest-junit": "^6.4.0",
+ "lint-staged": "^8.1.6",
"memory-fs": "^0.4.1",
- "prettier": "^1.14.2",
- "standard-version": "^5.0.0",
- "terser": "^3.7.6",
- "webpack": "^4.17.2"
+ "prettier": "^1.17.1",
+ "standard-version": "^6.0.1",
+ "terser": "^3.17.0",
+ "webpack": "^4.31.0"
},
"keywords": [
"uglify",
@@ -81,39 +77,5 @@
"uglify-es",
"webpack",
"webpack-plugin"
- ],
- "babel": {
- "presets": [
- [
- "@babel/preset-env",
- {
- "targets": {
- "node": "6.9.0"
- },
- "useBuiltIns": "usage"
- }
- ]
]
- },
- "husky": {
- "hooks": {
- "pre-commit": "lint-staged"
- }
- },
- "lint-staged": {
- "*.js": [
- "eslint --fix",
- "git add"
- ]
- },
- "commitlint": {
- "extends": [
- "@commitlint/config-conventional"
- ]
- },
- "prettier": {
- "singleQuote": true,
- "trailingComma": "es5",
- "arrowParens": "always"
- }
}

README.md

@@ -721,8 +721,8 @@
[node-url]: https://nodejs.org
[deps]: https://david-dm.org/webpack-contrib/uglifyjs-webpack-plugin.svg
[deps-url]: https://david-dm.org/webpack-contrib/uglifyjs-webpack-plugin
-[tests]: https://img.shields.io/circleci/project/github/webpack-contrib/uglifyjs-webpack-plugin.svg
-[tests-url]: https://circleci.com/gh/webpack-contrib/uglifyjs-webpack-plugin
+[tests]: https://dev.azure.com/webpack-contrib/uglifyjs-webpack-plugin/_apis/build/status/webpack-contrib.uglifyjs-webpack-plugin?branchName=master
+[tests-url]: https://dev.azure.com/webpack-contrib/uglifyjs-webpack-plugin/_build/latest?definitionId=8&branchName=master
[cover]: https://codecov.io/gh/webpack-contrib/uglifyjs-webpack-plugin/branch/master/graph/badge.svg
[cover-url]: https://codecov.io/gh/webpack-contrib/uglifyjs-webpack-plugin
[chat]: https://img.shields.io/badge/gitter-webpack%2Fwebpack-brightgreen.svg