@squoosh-kit/core 0.2.5 → 0.2.7

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.
Files changed (2) hide show
  1. package/README.md +4 -0
  2. 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.5",
3
+ "version": "0.2.7",
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": "workspace:*",
66
- "@squoosh-kit/resize": "workspace:*",
67
- "@squoosh-kit/runtime": "workspace:*",
68
- "@squoosh-kit/avif": "workspace:*",
69
- "@squoosh-kit/mozjpeg": "workspace:*",
70
- "@squoosh-kit/jxl": "workspace:*",
71
- "@squoosh-kit/oxipng": "workspace:*",
72
- "@squoosh-kit/imagequant": "workspace:*",
73
- "@squoosh-kit/png": "workspace:*",
74
- "@squoosh-kit/qoi": "workspace:*",
75
- "@squoosh-kit/wp2": "workspace:*",
76
- "@squoosh-kit/hqx": "workspace:*",
77
- "@squoosh-kit/rotate": "workspace:*",
78
- "@squoosh-kit/visdif": "workspace:*"
65
+ "@squoosh-kit/webp": "0.2.7",
66
+ "@squoosh-kit/resize": "0.2.7",
67
+ "@squoosh-kit/runtime": "0.2.7",
68
+ "@squoosh-kit/avif": "0.2.7",
69
+ "@squoosh-kit/mozjpeg": "0.2.7",
70
+ "@squoosh-kit/jxl": "0.2.7",
71
+ "@squoosh-kit/oxipng": "0.2.7",
72
+ "@squoosh-kit/imagequant": "0.2.7",
73
+ "@squoosh-kit/png": "0.2.7",
74
+ "@squoosh-kit/qoi": "0.2.7",
75
+ "@squoosh-kit/wp2": "0.2.7",
76
+ "@squoosh-kit/hqx": "0.2.7",
77
+ "@squoosh-kit/rotate": "0.2.7",
78
+ "@squoosh-kit/visdif": "0.2.7"
79
79
  }
80
80
  }