Skip to content

Commit 3457280

Browse files
chore(deps): bump imagemin-pngquant from 9.0.2 to 10.0.0 (#11094)
* chore(deps): bump imagemin-pngquant from 9.0.2 to 10.0.0 * chore(deps): migrate to imagemin-pngquant v10 --------- Co-authored-by: Claas Augner <[email protected]>
1 parent 8722a0e commit 3457280

File tree

4 files changed

+53
-65
lines changed

4 files changed

+53
-65
lines changed

Diff for: build/utils.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import * as cheerio from "cheerio";
88
import got from "got";
99
import { fileTypeFromBuffer } from "file-type";
1010
import imagemin from "imagemin";
11-
import imageminPngquantPkg from "imagemin-pngquant";
11+
import imageminPngquant from "imagemin-pngquant";
1212
import imageminMozjpeg from "imagemin-mozjpeg";
1313
import imageminGifsicle from "imagemin-gifsicle";
1414
import imageminSvgo from "imagemin-svgo";
@@ -22,8 +22,6 @@ import {
2222
import { FileAttachment } from "../content/index.js";
2323
import { BLOG_ROOT } from "../libs/env/index.js";
2424

25-
const { default: imageminPngquant } = imageminPngquantPkg;
26-
2725
export function escapeRegExp(str: string) {
2826
return str.replace(/[\\^$.*+?()[\]{}|]/g, "\\$&");
2927
}

Diff for: filecheck/checker.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { temporaryDirectory } from "tempy";
1010
import * as cheerio from "cheerio";
1111
import { fileTypeFromFile } from "file-type";
1212
import imagemin from "imagemin";
13-
import imageminPngquantPkg from "imagemin-pngquant";
13+
import imageminPngquant from "imagemin-pngquant";
1414
import imageminMozjpeg from "imagemin-mozjpeg";
1515
import imageminGifsicle from "imagemin-gifsicle";
1616
import imageminSvgo from "imagemin-svgo";
@@ -26,8 +26,6 @@ import {
2626
FONT_EXT,
2727
} from "../libs/constants/index.js";
2828

29-
const { default: imageminPngquant } = imageminPngquantPkg;
30-
3129
const BINARY_NON_IMAGE_FILE_REGEXP = createRegExpFromExtensions(
3230
...AUDIO_EXT,
3331
...VIDEO_EXT,

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
"imagemin": "^9.0.0",
106106
"imagemin-gifsicle": "^7.0.0",
107107
"imagemin-mozjpeg": "^10.0.0",
108-
"imagemin-pngquant": "^9.0.2",
108+
"imagemin-pngquant": "^10.0.0",
109109
"imagemin-svgo": "^11.0.0",
110110
"inquirer": "^9.2.20",
111111
"is-svg": "^5.0.0",

Diff for: yarn.lock

+50-58
Original file line numberDiff line numberDiff line change
@@ -6747,21 +6747,6 @@ execa@^1.0.0:
67476747
signal-exit "^3.0.0"
67486748
strip-eof "^1.0.0"
67496749

6750-
execa@^4.0.0:
6751-
version "4.1.0"
6752-
resolved "https://registry.yarnpkg.com/execa/-/execa-4.1.0.tgz#4e5491ad1572f2f17a77d388c6c857135b22847a"
6753-
integrity sha512-j5W0//W7f8UxAn8hXVnwG8tLwdiUy4FJLcSupCg6maBYZDpyBvTApK7KyuI4bKj8KOh1r2YH+6ucuYtJv1bTZA==
6754-
dependencies:
6755-
cross-spawn "^7.0.0"
6756-
get-stream "^5.0.0"
6757-
human-signals "^1.1.1"
6758-
is-stream "^2.0.0"
6759-
merge-stream "^2.0.0"
6760-
npm-run-path "^4.0.0"
6761-
onetime "^5.1.0"
6762-
signal-exit "^3.0.2"
6763-
strip-final-newline "^2.0.0"
6764-
67656750
execa@^5.0.0, execa@^5.1.1:
67666751
version "5.1.1"
67676752
resolved "https://registry.yarnpkg.com/execa/-/execa-5.1.1.tgz#f80ad9cbf4298f7bd1d4c9555c21e93741c411dd"
@@ -6807,6 +6792,21 @@ execa@^7.0.0:
68076792
signal-exit "^3.0.7"
68086793
strip-final-newline "^3.0.0"
68096794

6795+
execa@^8.0.1:
6796+
version "8.0.1"
6797+
resolved "https://registry.yarnpkg.com/execa/-/execa-8.0.1.tgz#51f6a5943b580f963c3ca9c6321796db8cc39b8c"
6798+
integrity sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==
6799+
dependencies:
6800+
cross-spawn "^7.0.3"
6801+
get-stream "^8.0.1"
6802+
human-signals "^5.0.0"
6803+
is-stream "^3.0.0"
6804+
merge-stream "^2.0.0"
6805+
npm-run-path "^5.1.0"
6806+
onetime "^6.0.0"
6807+
signal-exit "^4.1.0"
6808+
strip-final-newline "^3.0.0"
6809+
68106810
executable@^4.1.0:
68116811
version "4.1.1"
68126812
resolved "https://registry.yarnpkg.com/executable/-/executable-4.1.1.tgz#41532bff361d3e57af4d763b70582db18f5d133c"
@@ -7461,18 +7461,16 @@ get-stream@^4.0.0:
74617461
dependencies:
74627462
pump "^3.0.0"
74637463

7464-
get-stream@^5.0.0:
7465-
version "5.2.0"
7466-
resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-5.2.0.tgz#4966a1795ee5ace65e706c4b7beb71257d6e22d3"
7467-
integrity sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==
7468-
dependencies:
7469-
pump "^3.0.0"
7470-
74717464
get-stream@^6.0.0, get-stream@^6.0.1:
74727465
version "6.0.1"
74737466
resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-6.0.1.tgz#a262d8eef67aced57c2852ad6167526a43cbf7b7"
74747467
integrity sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==
74757468

7469+
get-stream@^8.0.1:
7470+
version "8.0.1"
7471+
resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-8.0.1.tgz#def9dfd71742cd7754a7761ed43749a27d02eca2"
7472+
integrity sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==
7473+
74767474
get-symbol-description@^1.0.0:
74777475
version "1.0.0"
74787476
resolved "https://registry.yarnpkg.com/get-symbol-description/-/get-symbol-description-1.0.0.tgz#7fdb81c900101fbd564dd5f1a30af5aadc1e58d6"
@@ -8260,11 +8258,6 @@ https-proxy-agent@^7.0.2:
82608258
agent-base "^7.0.2"
82618259
debug "4"
82628260

8263-
human-signals@^1.1.1:
8264-
version "1.1.1"
8265-
resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-1.1.1.tgz#c5b1cd14f50aeae09ab6c59fe63ba3395fe4dfa3"
8266-
integrity sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==
8267-
82688261
human-signals@^2.1.0:
82698262
version "2.1.0"
82708263
resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0"
@@ -8280,6 +8273,11 @@ human-signals@^4.3.0:
82808273
resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-4.3.0.tgz#2095c3cd5afae40049403d4b811235b03879db50"
82818274
integrity sha512-zyzVyMjpGBX2+6cDVZeFPCdtOtdsxOeseRhB9tkQ6xXmGUNrcnBzdEKPy3VPNYz+4gy1oukVOXcrJCunSyc6QQ==
82828275

8276+
human-signals@^5.0.0:
8277+
version "5.0.0"
8278+
resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-5.0.0.tgz#42665a284f9ae0dade3ba41ebc37eb4b852f3a28"
8279+
integrity sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==
8280+
82838281
humanize-ms@^1.2.1:
82848282
version "1.2.1"
82858283
resolved "https://registry.yarnpkg.com/humanize-ms/-/humanize-ms-1.2.1.tgz#c46e3159a293f6b896da29316d8b6fe8bb79bbed"
@@ -8372,16 +8370,17 @@ imagemin-mozjpeg@^10.0.0:
83728370
is-jpg "^3.0.0"
83738371
mozjpeg "^8.0.0"
83748372

8375-
imagemin-pngquant@^9.0.2:
8376-
version "9.0.2"
8377-
resolved "https://registry.yarnpkg.com/imagemin-pngquant/-/imagemin-pngquant-9.0.2.tgz#38155702b0cc4f60f671ba7c2b086ea3805d9567"
8378-
integrity sha512-cj//bKo8+Frd/DM8l6Pg9pws1pnDUjgb7ae++sUX1kUVdv2nrngPykhiUOgFeE0LGY/LmUbCf4egCHC4YUcZSg==
8373+
imagemin-pngquant@^10.0.0:
8374+
version "10.0.0"
8375+
resolved "https://registry.yarnpkg.com/imagemin-pngquant/-/imagemin-pngquant-10.0.0.tgz#f6b233077ea53127a1e2eff5f89691fdc8ef9c4e"
8376+
integrity sha512-kt0LFxyv7sBxUbZyvt+JXoU0HvSnmTJkEW32rZPQ9d7AQJPVh0vkz9mGkvbX0yntY2zW/3N20Yw69PBSt1UQzw==
83798377
dependencies:
8380-
execa "^4.0.0"
8381-
is-png "^2.0.0"
8382-
is-stream "^2.0.0"
8383-
ow "^0.17.0"
8384-
pngquant-bin "^6.0.0"
8378+
environment "^1.0.0"
8379+
execa "^8.0.1"
8380+
is-png "^3.0.1"
8381+
ow "^2.0.0"
8382+
pngquant-bin "^9.0.0"
8383+
uint8array-extras "^1.1.0"
83858384

83868385
imagemin-svgo@^11.0.0:
83878386
version "11.0.0"
@@ -8828,10 +8827,10 @@ is-plain-object@^5.0.0:
88288827
resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-5.0.0.tgz#4427f50ab3429e9025ea7d52e9043a9ef4159344"
88298828
integrity sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==
88308829

8831-
is-png@^2.0.0:
8832-
version "2.0.0"
8833-
resolved "https://registry.yarnpkg.com/is-png/-/is-png-2.0.0.tgz#ee8cbc9e9b050425cedeeb4a6fb74a649b0a4a8d"
8834-
integrity sha512-4KPGizaVGj2LK7xwJIz8o5B2ubu1D/vcQsgOGFEDlpcvgZHto4gBnyd0ig7Ws+67ixmwKoNmu0hYnpo6AaKb5g==
8830+
is-png@^3.0.1:
8831+
version "3.0.1"
8832+
resolved "https://registry.yarnpkg.com/is-png/-/is-png-3.0.1.tgz#423643ad42bf9420a8ccfb4c1dc6c15fac31710b"
8833+
integrity sha512-8TqC8+bdsm3YkpI2aECCDycFDl1hTB0HMVRnP3xRRa3Tqx2oVE7sBi1G6CuO9IqEyWSzbBZr1mGqdb3it9h/pg==
88358834

88368835
is-potential-custom-element-name@^1.0.1:
88378836
version "1.0.1"
@@ -10955,7 +10954,7 @@ npm-run-path@^2.0.0:
1095510954
dependencies:
1095610955
path-key "^2.0.0"
1095710956

10958-
npm-run-path@^4.0.0, npm-run-path@^4.0.1:
10957+
npm-run-path@^4.0.1:
1095910958
version "4.0.1"
1096010959
resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-4.0.1.tgz#b7ecd1e5ed53da8e37a55e1c2269e0b97ed748ea"
1096110960
integrity sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==
@@ -11220,13 +11219,6 @@ os-tmpdir@~1.0.2:
1122011219
resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274"
1122111220
integrity sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==
1122211221

11223-
ow@^0.17.0:
11224-
version "0.17.0"
11225-
resolved "https://registry.yarnpkg.com/ow/-/ow-0.17.0.tgz#4f938999fed6264c9048cd6254356e0f1e7f688c"
11226-
integrity sha512-i3keDzDQP5lWIe4oODyDFey1qVrq2hXKTuTH2VpqwpYtzPiKZt2ziRI4NBQmgW40AnV5Euz17OyWweCb+bNEQA==
11227-
dependencies:
11228-
type-fest "^0.11.0"
11229-
1123011222
ow@^2.0.0:
1123111223
version "2.0.0"
1123211224
resolved "https://registry.yarnpkg.com/ow/-/ow-2.0.0.tgz#07690490ac9783b37241c4ebee32dfcab1b20ee1"
@@ -11661,14 +11653,14 @@ pluralize@^8.0.0:
1166111653
resolved "https://registry.yarnpkg.com/pluralize/-/pluralize-8.0.0.tgz#1a6fa16a38d12a1901e0320fa017051c539ce3b1"
1166211654
integrity sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA==
1166311655

11664-
pngquant-bin@^6.0.0:
11665-
version "6.0.1"
11666-
resolved "https://registry.yarnpkg.com/pngquant-bin/-/pngquant-bin-6.0.1.tgz#2b5789ca219eeb4d8509ab1ae082092801b7f07e"
11667-
integrity sha512-Q3PUyolfktf+hYio6wsg3SanQzEU/v8aICg/WpzxXcuCMRb7H2Q81okfpcEztbMvw25ILjd3a87doj2N9kvbpQ==
11656+
pngquant-bin@^9.0.0:
11657+
version "9.0.0"
11658+
resolved "https://registry.yarnpkg.com/pngquant-bin/-/pngquant-bin-9.0.0.tgz#51f5840e254a53972f78dd80540f5f7ed4e5e559"
11659+
integrity sha512-jlOKfIQBTNJwQn2JKK5xLmwrsi/NwVTmHRvbrknCjdWxfX1/c/+yP4Jmp9jRZWedft/vnhh+rGbvl/kUmesurg==
1166811660
dependencies:
1166911661
bin-build "^3.0.0"
1167011662
bin-wrapper "^4.0.1"
11671-
execa "^4.0.0"
11663+
execa "^8.0.1"
1167211664

1167311665
possible-typed-array-names@^1.0.0:
1167411666
version "1.0.0"
@@ -13485,6 +13477,11 @@ signal-exit@^4.0.1:
1348513477
resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-4.0.1.tgz#96a61033896120ec9335d96851d902cc98f0ba2a"
1348613478
integrity sha512-uUWsN4aOxJAS8KOuf3QMyFtgm1pkb6I+KRZbRF/ghdf5T7sM+B1lLLzPDxswUjkmHyxQAVzEgG35E3NzDM9GVw==
1348713479

13480+
signal-exit@^4.1.0:
13481+
version "4.1.0"
13482+
resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-4.1.0.tgz#952188c1cbd546070e2dd20d0f41c0ae0530cb04"
13483+
integrity sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==
13484+
1348813485
simple-swizzle@^0.2.2:
1348913486
version "0.2.2"
1349013487
resolved "https://registry.yarnpkg.com/simple-swizzle/-/simple-swizzle-0.2.2.tgz#a4da6b635ffcccca33f70d17cb92592de95e557a"
@@ -14658,11 +14655,6 @@ [email protected]:
1465814655
resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-4.0.8.tgz#7646fb5f18871cfbb7749e69bd39a6388eb7450c"
1465914656
integrity sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==
1466014657

14661-
type-fest@^0.11.0:
14662-
version "0.11.0"
14663-
resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.11.0.tgz#97abf0872310fed88a5c466b25681576145e33f1"
14664-
integrity sha512-OdjXJxnCN1AvyLSzeKIgXTXxV+99ZuXl3Hpo9XpJAv9MBcHrrJOQ5kV7ypXOuQie+AmWG25hLbiKdwYTifzcfQ==
14665-
1466614658
type-fest@^0.20.2:
1466714659
version "0.20.2"
1466814660
resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.20.2.tgz#1bf207f4b28f91583666cb5fbd327887301cd5f4"

0 commit comments

Comments
 (0)