diff --git a/CHANGELOG.md b/CHANGELOG.md index f0af1a2..79eb376 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org). +## 1.0.1 - 2018-09-19 + +- fix: add `-optimize` flag to jpegtran by default + ## 1.0.0 - 2018-09-18 - chore: initial public release. diff --git a/package-lock.json b/package-lock.json index 2270dae..50d70fe 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "imagemin-mozjpeg-full", - "version": "1.0.0", + "version": "1.0.1", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -6666,12 +6666,13 @@ } }, "mozjpeg-binaries": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/mozjpeg-binaries/-/mozjpeg-binaries-1.0.1.tgz", - "integrity": "sha512-a6RlKuDbACpFdBDpbIcmHU85nJFlHxtz2Kr6ylclB/2A98fZyjclNkzHeG6yBfVUWHn+4eywiOl7YBeavwxWSw==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/mozjpeg-binaries/-/mozjpeg-binaries-1.1.0.tgz", + "integrity": "sha512-3BDVJLEpGCO4ox6UIVR6Nnf7QEzaUuolrM8cyS+wwev7eY6PggZIvBx7tt+ex6iRNIknlzrr2BGIxJgs3VQEug==", "requires": { "bin-build": "^3.0.0", - "bin-wrapper": "^4.0.0" + "bin-wrapper": "^4.0.0", + "p-queue": "^3.0.0" } }, "ms": { @@ -7261,6 +7262,11 @@ "p-reduce": "^1.0.0" } }, + "p-queue": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/p-queue/-/p-queue-3.0.0.tgz", + "integrity": "sha512-2tv/MRmPXfmfnjLLJAHl+DdU8p2DhZafAnlpm/C/T5BpF5L9wKz5tMin4A4N2zVpJL2YMhPlRmtO7s5EtNrjfA==" + }, "p-reduce": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/p-reduce/-/p-reduce-1.0.0.tgz", @@ -7495,9 +7501,9 @@ "dev": true }, "prettier": { - "version": "1.14.2", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-1.14.2.tgz", - "integrity": "sha512-McHPg0n1pIke+A/4VcaS2en+pTNjy4xF+Uuq86u/5dyDO59/TtFZtQ708QIRkEZ3qwKz3GVkVa6mpxK/CpB8Rg==", + "version": "1.14.3", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-1.14.3.tgz", + "integrity": "sha512-qZDVnCrnpsRJJq5nSsiHCE3BYMED2OtsI+cmzIzF1QIfqm5ALf8tEJcO27zV1gKNKRPdhjO0dNWnrzssDQ1tFg==", "dev": true }, "pretty-format": { diff --git a/package.json b/package.json index 7c81bb9..503494d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "imagemin-mozjpeg-full", - "version": "1.0.0", + "version": "1.0.1", "description": "Imagemin plugin for all mozjpeg binaries (cjpeg and jpegtran).", "repository": { "type": "git", @@ -50,7 +50,6 @@ "eslint-plugin-promise": "^4.0.1", "eslint-plugin-react": "^7.1.0", "eslint-plugin-unicorn": "^6.0.0", - "execa": "^1.0.0", "husky": "^0.14.0", "jest": "23.6.0", "lint-staged": "^7.0.0", diff --git a/src/jpegtran.js b/src/jpegtran.js index e66055d..7a29182 100644 --- a/src/jpegtran.js +++ b/src/jpegtran.js @@ -27,6 +27,8 @@ module.exports = opts => buf => { if (options.arithmetic) { args.push("-arithmetic"); + } else { + args.push("-optimize"); } args.push("-outfile", execBuffer.output, execBuffer.input);