From 47b4cf28afef86da25625480b567d61ba7815b83 Mon Sep 17 00:00:00 2001 From: 343dev <343dev@users.noreply.github.com> Date: Tue, 22 Oct 2024 17:43:39 +0700 Subject: [PATCH 1/3] Replace guetzli with @343dev/guetzli --- optimize.js | 2 +- package-lock.json | 32 ++++++++++++++------------------ package.json | 2 +- 3 files changed, 16 insertions(+), 20 deletions(-) diff --git a/optimize.js b/optimize.js index a5d48f9..dc201d4 100644 --- a/optimize.js +++ b/optimize.js @@ -2,9 +2,9 @@ import fs from 'node:fs'; import os from 'node:os'; import path from 'node:path'; +import guetzli from '@343dev/guetzli'; import execBuffer from 'exec-buffer'; import gifsicle from 'gifsicle'; -import guetzli from 'guetzli'; import pLimit from 'p-limit'; import sharp from 'sharp'; import { optimize as svgoOptimize } from 'svgo'; diff --git a/package-lock.json b/package-lock.json index 66f8490..33fb46d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,13 +9,13 @@ "version": "9.1.0", "license": "MIT", "dependencies": { + "@343dev/guetzli": "^1.0.1", "cli-progress": "^3.11.0", "commander": "^12.1.0", "exec-buffer": "^3.2.0", "fdir": "^6.4.0", "gif2webp-bin": "^5.0.0", "gifsicle": "^7.0.0", - "guetzli": "https://github.com/343dev/guetzli-bin/tarball/main", "p-limit": "^6.1.0", "sharp": "^0.33.4", "svgo": "^3.3.2" @@ -52,6 +52,19 @@ "eslint": "^8.56.0" } }, + "node_modules/@343dev/guetzli": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@343dev/guetzli/-/guetzli-1.0.1.tgz", + "integrity": "sha512-M+hjr0IIuXrmAlUO/Qz92jE9ZkPUSMg28J8hu2JscCEH7SUDUL4G1uiWlNVGZwh7K3G+9Ln0nLctF9WGWy/D8Q==", + "hasInstallScript": true, + "license": "Apache-2.0", + "bin": { + "guetzli": "cli.js" + }, + "engines": { + "node": ">=18.17" + } + }, "node_modules/@ampproject/remapping": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz", @@ -5272,23 +5285,6 @@ "dev": true, "license": "MIT" }, - "node_modules/guetzli": { - "version": "5.0.0", - "resolved": "https://github.com/343dev/guetzli-bin/tarball/main", - "integrity": "sha512-qOiBQvf0K8Yjinp7+AXul5LrAn55uTUVNopaqBVTlfY5tgzluhrufOqdNjT5KmgEErt4i5PlGfmOKxnztzFk8g==", - "hasInstallScript": true, - "license": "MIT", - "dependencies": { - "bin-build": "^3.0.0", - "bin-wrapper": "^4.0.0" - }, - "bin": { - "guetzli": "cli.js" - }, - "engines": { - "node": "^14.13.1 || >=16.0.0" - } - }, "node_modules/has-bigints": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", diff --git a/package.json b/package.json index 0c7ca6d..c2e39cb 100644 --- a/package.json +++ b/package.json @@ -46,13 +46,13 @@ "node": ">=18.17" }, "dependencies": { + "@343dev/guetzli": "^1.0.1", "cli-progress": "^3.11.0", "commander": "^12.1.0", "exec-buffer": "^3.2.0", "fdir": "^6.4.0", "gif2webp-bin": "^5.0.0", "gifsicle": "^7.0.0", - "guetzli": "https://github.com/343dev/guetzli-bin/tarball/main", "p-limit": "^6.1.0", "sharp": "^0.33.4", "svgo": "^3.3.2" From 6f3094847766b71bd88549a4d6b7ad7c53525138 Mon Sep 17 00:00:00 2001 From: 343dev <343dev@users.noreply.github.com> Date: Tue, 22 Oct 2024 18:33:27 +0700 Subject: [PATCH 2/3] Update CHANGELOG --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a67835c..f6008fb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 9.1.1 (2024-10-22) + +- Replaced [imagemin/guetzli-bin](https://github.com/imagemin/guetzli-bin) with [343dev/guetzli](https://github.com/343dev/guetzli). + + ## 9.1.0 (2024-10-16) - Disabled parallel optimization of JPEG files in Lossless mode. From 53c95a1473d41e40579b2ca61b33e4886b2e392d Mon Sep 17 00:00:00 2001 From: 343dev <343dev@users.noreply.github.com> Date: Tue, 22 Oct 2024 18:33:38 +0700 Subject: [PATCH 3/3] 9.1.1 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 33fb46d..1badb19 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@343dev/optimizt", - "version": "9.1.0", + "version": "9.1.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@343dev/optimizt", - "version": "9.1.0", + "version": "9.1.1", "license": "MIT", "dependencies": { "@343dev/guetzli": "^1.0.1", diff --git a/package.json b/package.json index c2e39cb..f6966ad 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@343dev/optimizt", - "version": "9.1.0", + "version": "9.1.1", "description": "CLI image optimization tool", "keywords": [ "svg",