summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Erika <3019731+Princesseuh@users.noreply.github.com> 2023-05-01 17:32:50 +0200
committerGravatar GitHub <noreply@github.com> 2023-05-01 17:32:50 +0200
commite5bd084c01e4f60a157969b50c05ce002f7b63d2 (patch)
tree6a030db121637e07965f75de11e4de0b292e5f52
parentd0cf3a2c01be9b72989ab4a64db3977861a562ce (diff)
downloadastro-e5bd084c01e4f60a157969b50c05ce002f7b63d2.tar.gz
astro-e5bd084c01e4f60a157969b50c05ce002f7b63d2.tar.zst
astro-e5bd084c01e4f60a157969b50c05ce002f7b63d2.zip
fix: fix sharp semver range to allow for 0.32.0 (#6952)
* fix: fix sharp semver range to allow for 0.3é20 * fix: revert back to 0.31.0
-rw-r--r--.changeset/thick-frogs-call.md6
-rw-r--r--packages/astro/package.json5
-rw-r--r--packages/integrations/image/package.json3
-rw-r--r--packages/integrations/image/test/fixtures/background-color-image/package.json2
-rw-r--r--packages/integrations/image/test/fixtures/basic-image/package.json2
-rw-r--r--packages/integrations/image/test/fixtures/basic-picture/package.json2
-rw-r--r--packages/integrations/image/test/fixtures/get-image-remote/package.json2
-rw-r--r--packages/integrations/image/test/fixtures/no-alt-text-image/package.json2
-rw-r--r--packages/integrations/image/test/fixtures/no-alt-text-picture/package.json2
-rw-r--r--packages/integrations/image/test/fixtures/rotation/package.json2
-rw-r--r--packages/integrations/image/test/fixtures/with-mdx/package.json2
-rw-r--r--pnpm-lock.yaml98
12 files changed, 70 insertions, 58 deletions
diff --git a/.changeset/thick-frogs-call.md b/.changeset/thick-frogs-call.md
new file mode 100644
index 000000000..ce2cbcc70
--- /dev/null
+++ b/.changeset/thick-frogs-call.md
@@ -0,0 +1,6 @@
+---
+'@astrojs/image': patch
+'astro': patch
+---
+
+Update allowed Sharp versions to support 0.32.0
diff --git a/packages/astro/package.json b/packages/astro/package.json
index 569e3a59c..a2f0a6ed0 100644
--- a/packages/astro/package.json
+++ b/packages/astro/package.json
@@ -181,7 +181,6 @@
"@types/rimraf": "^3.0.2",
"@types/send": "^0.17.1",
"@types/server-destroy": "^1.0.1",
- "@types/sharp": "^0.31.1",
"@types/unist": "^2.0.6",
"astro-scripts": "workspace:*",
"chai": "^4.3.6",
@@ -196,13 +195,13 @@
"remark-code-titles": "^0.1.2",
"rollup": "^3.9.0",
"sass": "^1.52.2",
- "sharp": "^0.31.3",
+ "sharp": "^0.32.1",
"srcset-parse": "^1.1.0",
"undici": "^5.22.0",
"unified": "^10.1.2"
},
"peerDependencies": {
- "sharp": "^0.31.3"
+ "sharp": ">=0.31.0"
},
"peerDependenciesMeta": {
"sharp": {
diff --git a/packages/integrations/image/package.json b/packages/integrations/image/package.json
index 21532cad8..90e3ba5de 100644
--- a/packages/integrations/image/package.json
+++ b/packages/integrations/image/package.json
@@ -51,7 +51,6 @@
"devDependencies": {
"@types/http-cache-semantics": "^4.0.1",
"@types/mime": "^2.0.3",
- "@types/sharp": "^0.30.5",
"astro": "workspace:*",
"astro-scripts": "workspace:*",
"chai": "^4.3.6",
@@ -59,7 +58,7 @@
"fast-glob": "^3.2.11",
"mocha": "^9.2.2",
"rollup-plugin-copy": "^3.4.0",
- "sharp": "^0.31.0",
+ "sharp": "^0.32.1",
"vite": "^4.3.1"
},
"peerDependencies": {
diff --git a/packages/integrations/image/test/fixtures/background-color-image/package.json b/packages/integrations/image/test/fixtures/background-color-image/package.json
index c94822bfc..db45dae31 100644
--- a/packages/integrations/image/test/fixtures/background-color-image/package.json
+++ b/packages/integrations/image/test/fixtures/background-color-image/package.json
@@ -6,6 +6,6 @@
"@astrojs/image": "workspace:*",
"@astrojs/node": "workspace:*",
"astro": "workspace:*",
- "sharp": "^0.31.0"
+ "sharp": "^0.32.1"
}
}
diff --git a/packages/integrations/image/test/fixtures/basic-image/package.json b/packages/integrations/image/test/fixtures/basic-image/package.json
index 25ffbf831..4df1316ba 100644
--- a/packages/integrations/image/test/fixtures/basic-image/package.json
+++ b/packages/integrations/image/test/fixtures/basic-image/package.json
@@ -6,6 +6,6 @@
"@astrojs/image": "workspace:*",
"@astrojs/node": "workspace:*",
"astro": "workspace:*",
- "sharp": "^0.31.0"
+ "sharp": "^0.32.1"
}
}
diff --git a/packages/integrations/image/test/fixtures/basic-picture/package.json b/packages/integrations/image/test/fixtures/basic-picture/package.json
index 4c84e318f..1949eb5a9 100644
--- a/packages/integrations/image/test/fixtures/basic-picture/package.json
+++ b/packages/integrations/image/test/fixtures/basic-picture/package.json
@@ -6,6 +6,6 @@
"@astrojs/image": "workspace:*",
"@astrojs/node": "workspace:*",
"astro": "workspace:*",
- "sharp": "^0.31.0"
+ "sharp": "^0.32.1"
}
}
diff --git a/packages/integrations/image/test/fixtures/get-image-remote/package.json b/packages/integrations/image/test/fixtures/get-image-remote/package.json
index a5279e312..83f0e02de 100644
--- a/packages/integrations/image/test/fixtures/get-image-remote/package.json
+++ b/packages/integrations/image/test/fixtures/get-image-remote/package.json
@@ -5,6 +5,6 @@
"dependencies": {
"@astrojs/image": "workspace:*",
"astro": "workspace:*",
- "sharp": "^0.31.0"
+ "sharp": "^0.32.1"
}
}
diff --git a/packages/integrations/image/test/fixtures/no-alt-text-image/package.json b/packages/integrations/image/test/fixtures/no-alt-text-image/package.json
index 752fc155d..9347ad25d 100644
--- a/packages/integrations/image/test/fixtures/no-alt-text-image/package.json
+++ b/packages/integrations/image/test/fixtures/no-alt-text-image/package.json
@@ -6,6 +6,6 @@
"@astrojs/image": "workspace:*",
"@astrojs/node": "workspace:*",
"astro": "workspace:*",
- "sharp": "^0.31.0"
+ "sharp": "^0.32.1"
}
}
diff --git a/packages/integrations/image/test/fixtures/no-alt-text-picture/package.json b/packages/integrations/image/test/fixtures/no-alt-text-picture/package.json
index f5f86476e..f253b6709 100644
--- a/packages/integrations/image/test/fixtures/no-alt-text-picture/package.json
+++ b/packages/integrations/image/test/fixtures/no-alt-text-picture/package.json
@@ -6,6 +6,6 @@
"@astrojs/image": "workspace:*",
"@astrojs/node": "workspace:*",
"astro": "workspace:*",
- "sharp": "^0.31.0"
+ "sharp": "^0.32.1"
}
}
diff --git a/packages/integrations/image/test/fixtures/rotation/package.json b/packages/integrations/image/test/fixtures/rotation/package.json
index 396dd21c5..8605d684e 100644
--- a/packages/integrations/image/test/fixtures/rotation/package.json
+++ b/packages/integrations/image/test/fixtures/rotation/package.json
@@ -6,6 +6,6 @@
"@astrojs/image": "workspace:*",
"@astrojs/node": "workspace:*",
"astro": "workspace:*",
- "sharp": "^0.31.0"
+ "sharp": "^0.32.1"
}
}
diff --git a/packages/integrations/image/test/fixtures/with-mdx/package.json b/packages/integrations/image/test/fixtures/with-mdx/package.json
index 91de3430f..3d0e8329a 100644
--- a/packages/integrations/image/test/fixtures/with-mdx/package.json
+++ b/packages/integrations/image/test/fixtures/with-mdx/package.json
@@ -7,6 +7,6 @@
"@astrojs/mdx": "workspace:*",
"@astrojs/node": "workspace:*",
"astro": "workspace:*",
- "sharp": "^0.31.0"
+ "sharp": "^0.32.1"
}
}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 4631e4cf5..225ce6c09 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -748,9 +748,6 @@ importers:
'@types/server-destroy':
specifier: ^1.0.1
version: 1.0.1
- '@types/sharp':
- specifier: ^0.31.1
- version: 0.31.1
'@types/unist':
specifier: ^2.0.6
version: 2.0.6
@@ -794,8 +791,8 @@ importers:
specifier: ^1.52.2
version: 1.52.2
sharp:
- specifier: ^0.31.3
- version: 0.31.3
+ specifier: ^0.32.1
+ version: 0.32.1
srcset-parse:
specifier: ^1.1.0
version: 1.1.0
@@ -3612,9 +3609,6 @@ importers:
'@types/mime':
specifier: ^2.0.3
version: 2.0.3
- '@types/sharp':
- specifier: ^0.30.5
- version: 0.30.5
astro:
specifier: workspace:*
version: link:../../astro
@@ -3637,8 +3631,8 @@ importers:
specifier: ^3.4.0
version: 3.4.0
sharp:
- specifier: ^0.31.0
- version: 0.31.3
+ specifier: ^0.32.1
+ version: 0.32.1
vite:
specifier: ^4.3.1
version: 4.3.1(@types/node@18.7.21)(sass@1.52.2)
@@ -3664,8 +3658,8 @@ importers:
specifier: workspace:*
version: link:../../../../../astro
sharp:
- specifier: ^0.31.0
- version: 0.31.3
+ specifier: ^0.32.1
+ version: 0.32.1
packages/integrations/image/test/fixtures/basic-image:
dependencies:
@@ -3679,8 +3673,8 @@ importers:
specifier: workspace:*
version: link:../../../../../astro
sharp:
- specifier: ^0.31.0
- version: 0.31.3
+ specifier: ^0.32.1
+ version: 0.32.1
packages/integrations/image/test/fixtures/basic-picture:
dependencies:
@@ -3694,8 +3688,8 @@ importers:
specifier: workspace:*
version: link:../../../../../astro
sharp:
- specifier: ^0.31.0
- version: 0.31.3
+ specifier: ^0.32.1
+ version: 0.32.1
packages/integrations/image/test/fixtures/get-image-remote:
dependencies:
@@ -3706,8 +3700,8 @@ importers:
specifier: workspace:*
version: link:../../../../../astro
sharp:
- specifier: ^0.31.0
- version: 0.31.3
+ specifier: ^0.32.1
+ version: 0.32.1
packages/integrations/image/test/fixtures/no-alt-text-image:
dependencies:
@@ -3721,8 +3715,8 @@ importers:
specifier: workspace:*
version: link:../../../../../astro
sharp:
- specifier: ^0.31.0
- version: 0.31.3
+ specifier: ^0.32.1
+ version: 0.32.1
packages/integrations/image/test/fixtures/no-alt-text-picture:
dependencies:
@@ -3736,8 +3730,8 @@ importers:
specifier: workspace:*
version: link:../../../../../astro
sharp:
- specifier: ^0.31.0
- version: 0.31.3
+ specifier: ^0.32.1
+ version: 0.32.1
packages/integrations/image/test/fixtures/rotation:
dependencies:
@@ -3751,8 +3745,8 @@ importers:
specifier: workspace:*
version: link:../../../../../astro
sharp:
- specifier: ^0.31.0
- version: 0.31.3
+ specifier: ^0.32.1
+ version: 0.32.1
packages/integrations/image/test/fixtures/squoosh-service:
dependencies:
@@ -3781,8 +3775,8 @@ importers:
specifier: workspace:*
version: link:../../../../../astro
sharp:
- specifier: ^0.31.0
- version: 0.31.3
+ specifier: ^0.32.1
+ version: 0.32.1
packages/integrations/lit:
dependencies:
@@ -7704,7 +7698,7 @@ packages:
nopt: 5.0.0
npmlog: 5.0.1
rimraf: 3.0.2
- semver: 7.3.8
+ semver: 7.5.0
tar: 6.1.11
transitivePeerDependencies:
- encoding
@@ -8718,18 +8712,6 @@ packages:
'@types/node': 18.7.21
dev: true
- /@types/sharp@0.30.5:
- resolution: {integrity: sha512-EhO29617AIBqxoVtpd1qdBanWpspk/kD2B6qTFRJ31Q23Rdf+DNU1xlHSwtqvwq1vgOqBwq1i38SX+HGCymIQg==}
- dependencies:
- '@types/node': 18.7.21
- dev: true
-
- /@types/sharp@0.31.1:
- resolution: {integrity: sha512-5nWwamN9ZFHXaYEincMSuza8nNfOof8nmO+mcI+Agx1uMUk4/pQnNIcix+9rLPXzKrm1pS34+6WRDbDV0Jn7ag==}
- dependencies:
- '@types/node': 18.7.21
- dev: true
-
/@types/stack-trace@0.0.29:
resolution: {integrity: sha512-TgfOX+mGY/NyNxJLIbDWrO9DjGoVSW9+aB8H2yy1fy32jsvxijhmyJI9fDFgvz3YP4lvJaq9DzdR/M1bOgVc9g==}
dev: true
@@ -8858,7 +8840,7 @@ packages:
debug: 4.3.4
globby: 11.1.0
is-glob: 4.0.3
- semver: 7.3.8
+ semver: 7.5.0
tsutils: 3.21.0(typescript@5.0.2)
typescript: 5.0.2
transitivePeerDependencies:
@@ -8879,7 +8861,7 @@ packages:
'@typescript-eslint/typescript-estree': 5.58.0(typescript@5.0.2)
eslint: 8.38.0
eslint-scope: 5.1.1
- semver: 7.3.8
+ semver: 7.5.0
transitivePeerDependencies:
- supports-color
- typescript
@@ -9809,7 +9791,7 @@ packages:
/builtins@5.0.1:
resolution: {integrity: sha512-qwVpFEHNfhYJIzNRBvd2C1kyo6jz3ZSMPyyuR47OPdiKWlbYnZNyDWuyR175qDnAJLiCo5fBBqPb3RiXgWlkOQ==}
dependencies:
- semver: 7.3.8
+ semver: 7.5.0
dev: true
/busboy@1.6.0:
@@ -14124,10 +14106,14 @@ packages:
resolution: {integrity: sha512-jAlSOFR1Bls963NmFwxeQkNTzqjUF0NThm8Le7eRIRGzFUVJuMOFZDLv5Y30W/Oaw+KEebEJLAigwO9gQHoEmw==}
engines: {node: '>=10'}
dependencies:
- semver: 7.3.8
+ semver: 7.5.0
/node-addon-api@5.1.0:
resolution: {integrity: sha512-eh0GgfEkpnoWDq+VY8OyvYhFEzBk6jIYbRKdIlyTiAXIVJ8PyBaKb0rp7oDtoddbdoHWhq8wwr+XZ81F1rpNdA==}
+ dev: false
+
+ /node-addon-api@6.1.0:
+ resolution: {integrity: sha512-+eawOlIgy680F0kBzPUNFhMZGtJ1YmqM6l4+Crf4IkImjYrO/mqPwRMh352g23uIaQKFItcQ64I7KMaJxHgAVA==}
/node-domexception@1.0.0:
resolution: {integrity: sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==}
@@ -14259,7 +14245,7 @@ packages:
dependencies:
execa: 6.1.0
parse-package-name: 1.0.0
- semver: 7.3.8
+ semver: 7.5.0
validate-npm-package-name: 4.0.0
dev: true
@@ -15871,6 +15857,13 @@ packages:
dependencies:
lru-cache: 6.0.0
+ /semver@7.5.0:
+ resolution: {integrity: sha512-+XC0AD/R7Q2mPSRuy2Id0+CGTZ98+8f+KvwirxOKIEyid+XSx6HbC63p+O4IndTHuX5Z+JxQ0TghCkO5Cg/2HA==}
+ engines: {node: '>=10'}
+ hasBin: true
+ dependencies:
+ lru-cache: 6.0.0
+
/send@0.18.0:
resolution: {integrity: sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==}
engines: {node: '>= 0.8.0'}
@@ -15925,7 +15918,22 @@ packages:
detect-libc: 2.0.1
node-addon-api: 5.1.0
prebuild-install: 7.1.1
- semver: 7.3.8
+ semver: 7.5.0
+ simple-get: 4.0.1
+ tar-fs: 2.1.1
+ tunnel-agent: 0.6.0
+ dev: false
+
+ /sharp@0.32.1:
+ resolution: {integrity: sha512-kQTFtj7ldpUqSe8kDxoGLZc1rnMFU0AO2pqbX6pLy3b7Oj8ivJIdoKNwxHVQG2HN6XpHPJqCSM2nsma2gOXvOg==}
+ engines: {node: '>=14.15.0'}
+ requiresBuild: true
+ dependencies:
+ color: 4.2.3
+ detect-libc: 2.0.1
+ node-addon-api: 6.1.0
+ prebuild-install: 7.1.1
+ semver: 7.5.0
simple-get: 4.0.1
tar-fs: 2.1.1
tunnel-agent: 0.6.0