Skip to content

Commit

Permalink
chore: bump sharp to 0.33 (#664)
Browse files Browse the repository at this point in the history
  • Loading branch information
birkskyum authored Dec 4, 2023
1 parent b832857 commit 5d7a77d
Show file tree
Hide file tree
Showing 8 changed files with 222 additions and 223 deletions.
6 changes: 6 additions & 0 deletions .changeset/khaki-mangos-shout.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'imagetools-core': patch
'vite-imagetools': patch
---

chore: update sharp to 0.33
3 changes: 1 addition & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
"devDependencies": {
"@rollup/plugin-typescript": "^11.1.5",
"@types/jest-image-snapshot": "^6.1.0",
"@types/sharp": "^0.32.0",
"@vitest/coverage-v8": "^0.34.0",
"jest-file-snapshot": "^0.5.0",
"jest-image-snapshot": "^6.2.0",
Expand All @@ -47,6 +46,6 @@
"vitest": "^0.34.0"
},
"dependencies": {
"sharp": "^0.32.6"
"sharp": "^0.33.0"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions packages/core/src/transforms/format.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export const format: TransformFactory<FormatOptions> = (config) => {
image[METADATA].format = format

return image.toFormat(format, {
compression: format == 'heif' ? 'av1' : undefined,
quality: getQuality(config, image),
lossless: getLossless(config, image) as boolean,
progressive: getProgressive(config, image) as boolean
Expand Down
3 changes: 1 addition & 2 deletions packages/vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,13 @@
"@types/jest-image-snapshot": "^6.1.0",
"@types/jsdom": "^21.1.1",
"@types/picomatch": "^2.3.0",
"@types/sharp": "^0.32.0",
"@vitest/coverage-v8": "^0.34.0",
"imagetools-core": "workspace:^",
"jest-image-snapshot": "^6.2.0",
"jsdom": "^23.0.0",
"picomatch": "^3.0.0",
"rollup": "^4.5.0",
"sharp": "^0.32.6",
"sharp": "^0.33.0",
"tslib": "^2.6.1",
"typescript": "^5.1.6",
"vite": "^5.0.0",
Expand Down
Loading

0 comments on commit 5d7a77d

Please sign in to comment.