Socket
Socket
Sign inDemoInstall

terser-webpack-plugin

Package Overview
Dependencies
304
Maintainers
1
Versions
77
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.1.2 to 2.1.3

7

CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

### [2.1.3](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v2.1.2...v2.1.3) (2019-10-10)
### Bug Fixes
* invalidate cache when a file name was changed ([#171](https://github.com/webpack-contrib/terser-webpack-plugin/issues/171)) ([7e1d370](https://github.com/webpack-contrib/terser-webpack-plugin/commit/7e1d370ce2520c7c23689c19b22cfbea0265957e))
### [2.1.2](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v2.1.1...v2.1.2) (2019-09-28)

@@ -7,0 +14,0 @@

22

dist/index.js

@@ -164,7 +164,16 @@ "use strict";

const processedAssets = new WeakSet();
const matchObject = _webpack.ModuleFilenameHelpers.matchObject.bind( // eslint-disable-next-line no-undefined
undefined, this.options);
const additionalChunkAssets = Array.from(compilation.additionalChunkAssets || []);
const filteredChunks = Array.from(chunks).filter(chunk => this.options.chunkFilter && this.options.chunkFilter(chunk));
const chunksFiles = filteredChunks.reduce((acc, chunk) => acc.concat(Array.from(chunk.files || [])), []);
const files = [].concat(additionalChunkAssets).concat(chunksFiles);
const tasks = [];
const {
chunkFilter
} = this.options;
Array.from(chunks).filter(chunk => chunkFilter && chunkFilter(chunk)).reduce((acc, chunk) => acc.concat(Array.from(chunk.files || [])), []).concat(Array.from(compilation.additionalChunkAssets || [])).filter(_webpack.ModuleFilenameHelpers.matchObject.bind(null, this.options)).forEach(file => {
files.forEach(file => {
if (!matchObject(file)) {
return;
}
let inputSourceMap;

@@ -245,7 +254,8 @@ const asset = compilation.assets[file];

terser: _package.default.version,
node_version: process.version,
// eslint-disable-next-line global-require
'terser-webpack-plugin': require('../package.json').version,
'terser-webpack-plugin-options': this.options,
hash: _crypto.default.createHash('md4').update(input).digest('hex')
nodeVersion: process.version,
filename: file,
contentHash: _crypto.default.createHash('md4').update(input).digest('hex')
};

@@ -252,0 +262,0 @@ task.cacheKeys = this.options.cacheKeys(defaultCacheKeys, file);

{
"name": "terser-webpack-plugin",
"version": "2.1.2",
"version": "2.1.3",
"description": "Terser plugin for webpack",

@@ -40,3 +40,3 @@ "license": "MIT",

"dependencies": {
"cacache": "^13.0.0",
"cacache": "^13.0.1",
"find-cache-dir": "^3.0.0",

@@ -47,9 +47,9 @@ "jest-worker": "^24.9.0",

"source-map": "^0.6.1",
"terser": "^4.3.4",
"terser": "^4.3.8",
"webpack-sources": "^1.4.3"
},
"devDependencies": {
"@babel/cli": "^7.6.0",
"@babel/core": "^7.6.0",
"@babel/preset-env": "^7.6.0",
"@babel/cli": "^7.6.3",
"@babel/core": "^7.6.3",
"@babel/preset-env": "^7.6.3",
"@commitlint/cli": "^8.1.0",

@@ -61,18 +61,18 @@ "@commitlint/config-conventional": "^8.1.0",

"commitlint-azure-pipelines-cli": "^1.0.2",
"cross-env": "^6.0.0",
"cross-env": "^6.0.3",
"del": "^5.1.0",
"del-cli": "^3.0.0",
"eslint": "^6.3.0",
"eslint-config-prettier": "^6.3.0",
"eslint": "^6.5.1",
"eslint-config-prettier": "^6.4.0",
"eslint-plugin-import": "^2.18.2",
"husky": "^3.0.7",
"husky": "^3.0.8",
"jest": "^24.9.0",
"jest-junit": "^8.0.0",
"lint-staged": "^9.4.0",
"memory-fs": "^0.4.1",
"lint-staged": "^9.4.2",
"memory-fs": "^0.5.0",
"npm-run-all": "^4.1.5",
"prettier": "^1.18.2",
"standard-version": "^7.0.0",
"uglify-js": "^3.6.0",
"webpack": "^4.40.1"
"uglify-js": "^3.6.1",
"webpack": "^4.41.0"
},

@@ -79,0 +79,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc