Skip to content

Commit 0ab371f

Browse files
authored
fix(deps): update sharp to patched release
Update Sharp to the patched 0.35 line, regenerate bun.lock, and adopt the new exported Metadata type.
1 parent 1e86957 commit 0ab371f

3 files changed

Lines changed: 37 additions & 29 deletions

File tree

bun.lock

Lines changed: 34 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
"react": "^19.2.5",
9999
"react-dom": "^19.2.5",
100100
"semver": "^7.7.4",
101-
"sharp": "^0.34.5",
101+
"sharp": "^0.35.0",
102102
"uqr": "^0.1.3",
103103
"zustand": "^5.0.12",
104104
"zustand-mutative": "^1.3.1"

server/ai/inputImages.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import sharp from 'sharp'
1+
import sharp, { type Metadata } from 'sharp'
22
import {
33
AI_USER_IMAGE_MAX_BYTES,
44
AI_USER_IMAGE_MAX_EDGE,
@@ -114,7 +114,7 @@ async function canonicaliseAiUserImage(
114114
signal?: AbortSignal,
115115
): Promise<AiUserImageBlock> {
116116
signal?.throwIfAborted()
117-
let metadata: sharp.Metadata
117+
let metadata: Metadata
118118
try {
119119
metadata = await sharp(bytes).metadata()
120120
} catch (err) {

0 commit comments

Comments
 (0)