@squoosh-kit/core 0.2.6 → 0.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/package.json +15 -15
package/README.md
CHANGED
|
@@ -59,6 +59,10 @@ const pngBuffer = await png.encode(imageData);
|
|
|
59
59
|
const rotated = await rotate.rotate(imageData, { rotate: 90 });
|
|
60
60
|
```
|
|
61
61
|
|
|
62
|
+
## Browser (Vite)
|
|
63
|
+
|
|
64
|
+
Add [`@squoosh-kit/vite-plugin`](https://www.npmjs.com/package/@squoosh-kit/vite-plugin) so worker and WASM files are copied to `public/squoosh-kit/`. In the browser, worker mode loads from `/squoosh-kit` by default — `encode()`, `createWebpEncoder('worker')`, and the other factories do not need `assetPath` unless you serve those files from a different URL.
|
|
65
|
+
|
|
62
66
|
## What's Included
|
|
63
67
|
|
|
64
68
|
This package bundles all Squoosh-Kit codecs under a single import:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@squoosh-kit/core",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Per-feature adapters around Squoosh codecs, worker/client runtimes.",
|
|
6
6
|
"author": "Bartosz Nowak <bnowak008@gmail.com>",
|
|
@@ -62,19 +62,19 @@
|
|
|
62
62
|
"typecheck": "tsc --noEmit"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@squoosh-kit/webp": "0.2.
|
|
66
|
-
"@squoosh-kit/resize": "0.2.
|
|
67
|
-
"@squoosh-kit/runtime": "0.2.
|
|
68
|
-
"@squoosh-kit/avif": "0.2.
|
|
69
|
-
"@squoosh-kit/mozjpeg": "0.2.
|
|
70
|
-
"@squoosh-kit/jxl": "0.2.
|
|
71
|
-
"@squoosh-kit/oxipng": "0.2.
|
|
72
|
-
"@squoosh-kit/imagequant": "0.2.
|
|
73
|
-
"@squoosh-kit/png": "0.2.
|
|
74
|
-
"@squoosh-kit/qoi": "0.2.
|
|
75
|
-
"@squoosh-kit/wp2": "0.2.
|
|
76
|
-
"@squoosh-kit/hqx": "0.2.
|
|
77
|
-
"@squoosh-kit/rotate": "0.2.
|
|
78
|
-
"@squoosh-kit/visdif": "0.2.
|
|
65
|
+
"@squoosh-kit/webp": "0.2.8",
|
|
66
|
+
"@squoosh-kit/resize": "0.2.8",
|
|
67
|
+
"@squoosh-kit/runtime": "0.2.8",
|
|
68
|
+
"@squoosh-kit/avif": "0.2.8",
|
|
69
|
+
"@squoosh-kit/mozjpeg": "0.2.8",
|
|
70
|
+
"@squoosh-kit/jxl": "0.2.8",
|
|
71
|
+
"@squoosh-kit/oxipng": "0.2.8",
|
|
72
|
+
"@squoosh-kit/imagequant": "0.2.8",
|
|
73
|
+
"@squoosh-kit/png": "0.2.8",
|
|
74
|
+
"@squoosh-kit/qoi": "0.2.8",
|
|
75
|
+
"@squoosh-kit/wp2": "0.2.8",
|
|
76
|
+
"@squoosh-kit/hqx": "0.2.8",
|
|
77
|
+
"@squoosh-kit/rotate": "0.2.8",
|
|
78
|
+
"@squoosh-kit/visdif": "0.2.8"
|
|
79
79
|
}
|
|
80
80
|
}
|