wasm-vips 0.0.8 → 0.0.9
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 +3 -4
- package/lib/vips-es6.js +238 -236
- package/lib/vips-heif.wasm +0 -0
- package/lib/vips-jxl.wasm +0 -0
- package/lib/vips-node.js +241 -236
- package/lib/vips-node.mjs +242 -237
- package/lib/vips-resvg.wasm +0 -0
- package/lib/vips.d.ts +247 -242
- package/lib/vips.js +238 -236
- package/lib/vips.wasm +0 -0
- package/package.json +4 -4
- package/versions.json +7 -7
- package/lib/vips-es6.worker.mjs +0 -1
- package/lib/vips-node.worker.js +0 -1
- package/lib/vips-node.worker.mjs +0 -1
- package/lib/vips.worker.js +0 -1
package/README.md
CHANGED
|
@@ -48,14 +48,13 @@ yarn add wasm-vips
|
|
|
48
48
|
|
|
49
49
|
### Browser
|
|
50
50
|
|
|
51
|
-
Requires `vips.js
|
|
52
|
-
the same directory.
|
|
53
|
-
to also serve the `vips-es6.js` and `vips-es6.worker.js` files.
|
|
51
|
+
Requires `vips.js` (or `vips-es6.js`) and `vips.wasm` to be served from
|
|
52
|
+
the same directory.
|
|
54
53
|
|
|
55
54
|
Since wasm-vips requires [the `SharedArrayBuffer` API](
|
|
56
55
|
https://caniuse.com/sharedarraybuffer), the website needs to opt-in to
|
|
57
56
|
a cross-origin isolated state, by serving the following HTTP headers on
|
|
58
|
-
both the main document and
|
|
57
|
+
both the main document and `vips*.js` script:
|
|
59
58
|
|
|
60
59
|
```http
|
|
61
60
|
Cross-Origin-Embedder-Policy: require-corp
|