Skip to content

Commit 05474e3

Browse files
wardpeetgatsbybot
and
gatsbybot
authored
Revert "chore(gatsby-plugin-sharp, gatsby-transformer-sharp): update dependencies (#26259)" (#26826)
This reverts commit dedd37f. Co-authored-by: gatsbybot <[email protected]>
1 parent df0fe31 commit 05474e3

File tree

3 files changed

+71
-56
lines changed

3 files changed

+71
-56
lines changed

packages/gatsby-plugin-sharp/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
"gatsby-core-utils": "^1.3.19",
1515
"got": "^10.7.0",
1616
"imagemin": "^7.0.1",
17-
"imagemin-mozjpeg": "^9.0.0",
18-
"imagemin-pngquant": "^9.0.0",
17+
"imagemin-mozjpeg": "^8.0.0",
18+
"imagemin-pngquant": "^6.0.1",
1919
"lodash": "^4.17.19",
2020
"mini-svg-data-uri": "^1.2.3",
2121
"potrace": "^2.1.8",

packages/gatsby-plugin-sharp/src/process-file.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -194,10 +194,10 @@ const compressPng = (pipeline, outputPath, options) =>
194194
.buffer(sharpBuffer, {
195195
plugins: [
196196
imageminPngquant({
197-
quality: [
198-
(options.pngQuality || options.quality) / 100,
199-
Math.min(((options.pngQuality || options.quality) + 25) / 100, 1),
200-
], // e.g. [0.4, 0.65]
197+
quality: `${options.pngQuality || options.quality}-${Math.min(
198+
(options.pngQuality || options.quality) + 25,
199+
100
200+
)}`, // e.g. 40-65
201201
speed: options.pngCompressionSpeed
202202
? options.pngCompressionSpeed
203203
: undefined,

yarn.lock

+65-50
Original file line numberDiff line numberDiff line change
@@ -9751,6 +9751,18 @@ exec-sh@^0.3.2:
97519751
resolved "https://registry.yarnpkg.com/exec-sh/-/exec-sh-0.3.2.tgz#6738de2eb7c8e671d0366aea0b0db8c6f7d7391b"
97529752
integrity sha512-9sLAvzhI5nc8TpuQUh4ahMdCrWT00wPWz7j47/emR5+2qEfoZP5zzUXvx+vdx+H6ohhnsYC31iX04QLYJK8zTg==
97539753

9754+
execa@^0.10.0:
9755+
version "0.10.0"
9756+
resolved "https://registry.yarnpkg.com/execa/-/execa-0.10.0.tgz#ff456a8f53f90f8eccc71a96d11bdfc7f082cb50"
9757+
dependencies:
9758+
cross-spawn "^6.0.0"
9759+
get-stream "^3.0.0"
9760+
is-stream "^1.1.0"
9761+
npm-run-path "^2.0.0"
9762+
p-finally "^1.0.0"
9763+
signal-exit "^3.0.0"
9764+
strip-eof "^1.0.0"
9765+
97549766
execa@^0.7.0:
97559767
version "0.7.0"
97569768
resolved "https://registry.yarnpkg.com/execa/-/execa-0.7.0.tgz#944becd34cc41ee32a63a9faf27ad5a65fc59777"
@@ -9791,7 +9803,22 @@ execa@^3.4.0:
97919803
signal-exit "^3.0.2"
97929804
strip-final-newline "^2.0.0"
97939805

9794-
execa@^4.0.0, execa@^4.0.2, execa@^4.0.3:
9806+
execa@^4.0.2:
9807+
version "4.0.2"
9808+
resolved "https://registry.yarnpkg.com/execa/-/execa-4.0.2.tgz#ad87fb7b2d9d564f70d2b62d511bee41d5cbb240"
9809+
integrity sha512-QI2zLa6CjGWdiQsmSkZoGtDx2N+cQIGb3yNolGTdjSQzydzLgYYf8LRuagp7S7fPimjcrzUDSUFd/MgzELMi4Q==
9810+
dependencies:
9811+
cross-spawn "^7.0.0"
9812+
get-stream "^5.0.0"
9813+
human-signals "^1.1.1"
9814+
is-stream "^2.0.0"
9815+
merge-stream "^2.0.0"
9816+
npm-run-path "^4.0.0"
9817+
onetime "^5.1.0"
9818+
signal-exit "^3.0.2"
9819+
strip-final-newline "^2.0.0"
9820+
9821+
execa@^4.0.3:
97959822
version "4.0.3"
97969823
resolved "https://registry.yarnpkg.com/execa/-/execa-4.0.3.tgz#0a34dabbad6d66100bd6f2c576c8669403f317f2"
97979824
integrity sha512-WFDXGHckXPWZX19t1kCsXzOpqX9LWYNqn4C+HqZlk/V0imTkzJZqf87ZBhvpHaftERYknpk0fjSylnXVlVgI0A==
@@ -12549,25 +12576,23 @@ imageinfo@^1.0.4:
1254912576
version "1.0.4"
1255012577
resolved "https://registry.yarnpkg.com/imageinfo/-/imageinfo-1.0.4.tgz#1dd2456ecb96fc395f0aa1179c467dfb3d5d7a2a"
1255112578

12552-
imagemin-mozjpeg@^9.0.0:
12553-
version "9.0.0"
12554-
resolved "https://registry.yarnpkg.com/imagemin-mozjpeg/-/imagemin-mozjpeg-9.0.0.tgz#d1af26d0b43d75a41c211051c1910da59d9d2324"
12555-
integrity sha512-TwOjTzYqCFRgROTWpVSt5UTT0JeCuzF1jswPLKALDd89+PmrJ2PdMMYeDLYZ1fs9cTovI9GJd68mRSnuVt691w==
12579+
imagemin-mozjpeg@^8.0.0:
12580+
version "8.0.0"
12581+
resolved "https://registry.yarnpkg.com/imagemin-mozjpeg/-/imagemin-mozjpeg-8.0.0.tgz#d2ca4e8c982c7c6eda55069af89dee4c1cebcdfd"
1255612582
dependencies:
12557-
execa "^4.0.0"
12583+
execa "^1.0.0"
1255812584
is-jpg "^2.0.0"
12559-
mozjpeg "^7.0.0"
12585+
mozjpeg "^6.0.0"
1256012586

12561-
imagemin-pngquant@^9.0.0:
12562-
version "9.0.0"
12563-
resolved "https://registry.yarnpkg.com/imagemin-pngquant/-/imagemin-pngquant-9.0.0.tgz#f22ba4276cde1799fb15dd475e33984f8607e871"
12564-
integrity sha512-9cqnTEaJwAHWUi+8EMTB3NUouWToCWxtL+QnoYr8bfVwuKilHvRVWKsa9lt+0c3aWaGxCAkHs++j8qINvSqomA==
12587+
imagemin-pngquant@^6.0.1:
12588+
version "6.0.1"
12589+
resolved "https://registry.yarnpkg.com/imagemin-pngquant/-/imagemin-pngquant-6.0.1.tgz#07b4c80e327ac60ef5246758029b1e8aecd879b9"
12590+
integrity sha512-Stk+fZCLxZznV8MFNA/T3AY/VRKevsiP9uZOLV0RCXoi0vUUFriySYuz/83IGp9D254EW8miGyyQ69zKouFr7w==
1256512591
dependencies:
12566-
execa "^4.0.0"
12567-
is-png "^2.0.0"
12568-
is-stream "^2.0.0"
12569-
ow "^0.17.0"
12570-
pngquant-bin "^6.0.0"
12592+
execa "^0.10.0"
12593+
is-png "^1.0.0"
12594+
is-stream "^1.1.0"
12595+
pngquant-bin "^5.0.0"
1257112596

1257212597
imagemin@^7.0.1:
1257312598
version "7.0.1"
@@ -13357,10 +13382,9 @@ is-plain-object@^3.0.0:
1335713382
dependencies:
1335813383
isobject "^4.0.0"
1335913384

13360-
is-png@^2.0.0:
13361-
version "2.0.0"
13362-
resolved "https://registry.yarnpkg.com/is-png/-/is-png-2.0.0.tgz#ee8cbc9e9b050425cedeeb4a6fb74a649b0a4a8d"
13363-
integrity sha512-4KPGizaVGj2LK7xwJIz8o5B2ubu1D/vcQsgOGFEDlpcvgZHto4gBnyd0ig7Ws+67ixmwKoNmu0hYnpo6AaKb5g==
13385+
is-png@^1.0.0:
13386+
version "1.1.0"
13387+
resolved "https://registry.yarnpkg.com/is-png/-/is-png-1.1.0.tgz#d574b12bf275c0350455570b0e5b57ab062077ce"
1336413388

1336513389
is-posix-bracket@^0.1.0:
1336613390
version "0.1.1"
@@ -16332,7 +16356,12 @@ mimic-response@^1.0.0, mimic-response@^1.0.1:
1633216356
version "1.0.1"
1633316357
resolved "https://registry.yarnpkg.com/mimic-response/-/mimic-response-1.0.1.tgz#4923538878eef42063cb8a3e3b0798781487ab1b"
1633416358

16335-
mimic-response@^2.0.0, mimic-response@^2.1.0:
16359+
mimic-response@^2.0.0:
16360+
version "2.0.0"
16361+
resolved "https://registry.yarnpkg.com/mimic-response/-/mimic-response-2.0.0.tgz#996a51c60adf12cb8a87d7fb8ef24c2f3d5ebb46"
16362+
integrity sha512-8ilDoEapqA4uQ3TwS0jakGONKXVJqpy+RpM+3b7pLdOjghCrEiGp9SRkFbUHAmZW9vdnrENWHjaweIoTIJExSQ==
16363+
16364+
mimic-response@^2.1.0:
1633616365
version "2.1.0"
1633716366
resolved "https://registry.yarnpkg.com/mimic-response/-/mimic-response-2.1.0.tgz#d13763d35f613d09ec37ebb30bac0469c0ee8f43"
1633816367
integrity sha512-wXqjST+SLt7R009ySCglWBCFpjUygmCIfD790/kVbiGmUgfYGuB14PiTd5DwVxSV4NcYHjzMkoj5LjQZwTQLEA==
@@ -16439,10 +16468,10 @@ minizlib@^1.2.1:
1643916468
dependencies:
1644016469
minipass "^2.2.1"
1644116470

16442-
minizlib@^2.1.0:
16443-
version "2.1.0"
16444-
resolved "https://registry.yarnpkg.com/minizlib/-/minizlib-2.1.0.tgz#fd52c645301ef09a63a2c209697c294c6ce02cf3"
16445-
integrity sha512-EzTZN/fjSvifSX0SlqUERCN39o6T40AMarPbv0MrarSFtIITCBh7bi+dU8nxGFHuqs9jdIAeoYoKuQAAASsPPA==
16471+
minizlib@^2.1.1:
16472+
version "2.1.2"
16473+
resolved "https://registry.yarnpkg.com/minizlib/-/minizlib-2.1.2.tgz#e90d3466ba209b932451508a11ce3d3632145931"
16474+
integrity sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==
1644616475
dependencies:
1644716476
minipass "^3.0.0"
1644816477
yallist "^4.0.0"
@@ -16556,10 +16585,9 @@ move-concurrently@^1.0.1:
1655616585
rimraf "^2.5.4"
1655716586
run-queue "^1.0.3"
1655816587

16559-
mozjpeg@^7.0.0:
16560-
version "7.0.0"
16561-
resolved "https://registry.yarnpkg.com/mozjpeg/-/mozjpeg-7.0.0.tgz#c20f67a538fcaaa388d325875c53c0e7bc432f7d"
16562-
integrity sha512-mH7atSbIusVTO3A4H43sEdmveN3aWn54k6V0edefzCEvOsTrbjg5murY2TsNznaztWnIgaRbWxeLVp4IgKdedQ==
16588+
mozjpeg@^6.0.0:
16589+
version "6.0.1"
16590+
resolved "https://registry.yarnpkg.com/mozjpeg/-/mozjpeg-6.0.1.tgz#56969dddb5741ef2bcb1af066cae21e61a91a27b"
1656316591
dependencies:
1656416592
bin-build "^3.0.0"
1656516593
bin-wrapper "^4.0.0"
@@ -17573,13 +17601,6 @@ override-require@^1.1.1:
1757317601
resolved "https://registry.yarnpkg.com/override-require/-/override-require-1.1.1.tgz#6ae22fadeb1f850ffb0cf4c20ff7b87e5eb650df"
1757417602
integrity sha1-auIvresfhQ/7DPTCD/e4fl62UN8=
1757517603

17576-
ow@^0.17.0:
17577-
version "0.17.0"
17578-
resolved "https://registry.yarnpkg.com/ow/-/ow-0.17.0.tgz#4f938999fed6264c9048cd6254356e0f1e7f688c"
17579-
integrity sha512-i3keDzDQP5lWIe4oODyDFey1qVrq2hXKTuTH2VpqwpYtzPiKZt2ziRI4NBQmgW40AnV5Euz17OyWweCb+bNEQA==
17580-
dependencies:
17581-
type-fest "^0.11.0"
17582-
1758317604
p-all@^2.1.0:
1758417605
version "2.1.0"
1758517606
resolved "https://registry.yarnpkg.com/p-all/-/p-all-2.1.0.tgz#91419be56b7dee8fe4c5db875d55e0da084244a0"
@@ -18381,14 +18402,13 @@ pngjs@^3.0.0, pngjs@^3.3.3:
1838118402
resolved "https://registry.yarnpkg.com/pngjs/-/pngjs-3.4.0.tgz#99ca7d725965fb655814eaf65f38f12bbdbf555f"
1838218403
integrity sha512-NCrCHhWmnQklfH4MtJMRjZ2a8c80qXeMlQMv2uVp9ISJMTt562SbGd6n2oq0PaPgKm7Z6pL9E2UlLIhC+SHL3w==
1838318404

18384-
pngquant-bin@^6.0.0:
18385-
version "6.0.0"
18386-
resolved "https://registry.yarnpkg.com/pngquant-bin/-/pngquant-bin-6.0.0.tgz#aff0d7e61095feb96ced379ad8c7294ad3dd1712"
18387-
integrity sha512-oXWAS9MQ9iiDAJRdAZ9KO1mC5UwhzKkJsmetiu0iqIjJuW7JsuLhmc4JdRm7uJkIWRzIAou/Vq2VcjfJwz30Ow==
18405+
pngquant-bin@^5.0.0:
18406+
version "5.0.1"
18407+
resolved "https://registry.yarnpkg.com/pngquant-bin/-/pngquant-bin-5.0.1.tgz#8e03b7bfa298dc7e761feb25b4a9d6827882ea9c"
1838818408
dependencies:
1838918409
bin-build "^3.0.0"
1839018410
bin-wrapper "^4.0.1"
18391-
execa "^4.0.0"
18411+
execa "^0.10.0"
1839218412
logalot "^2.0.0"
1839318413

1839418414
pnp-webpack-plugin@^1.6.4:
@@ -23413,14 +23433,14 @@ tar@^4, tar@^4.4.10, tar@^4.4.8:
2341323433
yallist "^3.0.3"
2341423434

2341523435
tar@^6.0.2:
23416-
version "6.0.2"
23417-
resolved "https://registry.yarnpkg.com/tar/-/tar-6.0.2.tgz#5df17813468a6264ff14f766886c622b84ae2f39"
23418-
integrity sha512-Glo3jkRtPcvpDlAs/0+hozav78yoXKFr+c4wgw62NNMO3oo4AaJdCo21Uu7lcwr55h39W2XD1LMERc64wtbItg==
23436+
version "6.0.5"
23437+
resolved "https://registry.yarnpkg.com/tar/-/tar-6.0.5.tgz#bde815086e10b39f1dcd298e89d596e1535e200f"
23438+
integrity sha512-0b4HOimQHj9nXNEAA7zWwMM91Zhhba3pspja6sQbgTpynOJf+bkjBnfybNYzbpLbnwXnbyB4LOREvlyXLkCHSg==
2341923439
dependencies:
2342023440
chownr "^2.0.0"
2342123441
fs-minipass "^2.0.0"
2342223442
minipass "^3.0.0"
23423-
minizlib "^2.1.0"
23443+
minizlib "^2.1.1"
2342423444
mkdirp "^1.0.3"
2342523445
yallist "^4.0.0"
2342623446

@@ -24019,11 +24039,6 @@ type-fest@^0.10.0:
2401924039
resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.10.0.tgz#7f06b2b9fbfc581068d1341ffabd0349ceafc642"
2402024040
integrity sha512-EUV9jo4sffrwlg8s0zDhP0T2WD3pru5Xi0+HTE3zTUmBaZNhfkite9PdSJwdXLwPVW0jnAHT56pZHIOYckPEiw==
2402124041

24022-
type-fest@^0.11.0:
24023-
version "0.11.0"
24024-
resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.11.0.tgz#97abf0872310fed88a5c466b25681576145e33f1"
24025-
integrity sha512-OdjXJxnCN1AvyLSzeKIgXTXxV+99ZuXl3Hpo9XpJAv9MBcHrrJOQ5kV7ypXOuQie+AmWG25hLbiKdwYTifzcfQ==
24026-
2402724042
type-fest@^0.12.0:
2402824043
version "0.12.0"
2402924044
resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.12.0.tgz#f57a27ab81c68d136a51fd71467eff94157fa1ee"

0 commit comments

Comments
 (0)