wasm-vips 0.0.3 → 0.0.4

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 CHANGED
@@ -10,17 +10,27 @@ pipeline executes at once, streaming the image in parallel from source to
10
10
  destination a section at a time. Because wasm-vips is parallel, it's quick,
11
11
  and because it doesn't need to keep entire images in memory, it's light.
12
12
 
13
- > **Note**: This library is still under early development. See: [#1](https://github.com/kleisauke/wasm-vips/issues/1).
13
+ > **Note**: This library is still under early development. See: [#1](
14
+ https://github.com/kleisauke/wasm-vips/issues/1).
14
15
 
15
16
  ## Engine support
16
17
 
17
18
  An engine that [supports WebAssembly SIMD](https://webassembly.org/roadmap/).
18
- This is present on most major browser engines. Node.js >= 16.4.0 is required
19
- to match the final SIMD opcodes.
19
+ This is present on most major browser engines.
20
20
 
21
- | ![Chrome](https://raw.githubusercontent.com/alrra/browser-logos/main/src/chrome/chrome_32x32.png)<br>Chrome | ![Firefox](https://raw.githubusercontent.com/alrra/browser-logos/main/src/firefox/firefox_32x32.png)<br>Firefox | ![Edge](https://raw.githubusercontent.com/alrra/browser-logos/main/src/edge/edge_32x32.png)<br>Edge | ![Node.js](https://raw.githubusercontent.com/nodejs/nodejs.org/master/static/images/favicons/favicon-32x32.png)<br>Node.js |
22
- |:---:|:---:|:---:|:---:|
23
- | :heavy_check_mark:<br>[version 91+](https://www.chromestatus.com/feature/6533147810332672) | :heavy_check_mark:<br>[version 89+](https://bugzilla.mozilla.org/show_bug.cgi?id=1695585) | :heavy_check_mark:<br>[version 91+](https://www.chromestatus.com/feature/6533147810332672) | :heavy_check_mark:<br>[version 16.4+](https://github.com/nodejs/node/pull/38273) |
21
+ For V8-based engines, at least version 9.1.54 is required to match the final
22
+ SIMD opcodes, this corresponds to Chrome 91, Node.js 16.4.0 and Deno 1.9.0.
23
+
24
+ For Spidermonkey-based engines, the JavaScript engine used in Mozilla Firefox
25
+ and whose version numbers are aligned, at least version 89 is required.
26
+
27
+ JavaScriptCore-based (e.g. Safari, Bun) engines are currently not supported,
28
+ you can follow the status in [this tracking bug](
29
+ https://bugs.webkit.org/show_bug.cgi?id=222382).
30
+
31
+ | ![Chrome](https://github.com/alrra/browser-logos/raw/main/src/chrome/chrome_32x32.png)<br>Chrome | ![Firefox](https://github.com/alrra/browser-logos/raw/main/src/firefox/firefox_32x32.png)<br>Firefox | ![Safari](https://github.com/alrra/browser-logos/raw/main/src/safari/safari_32x32.png)<br>Safari | ![Edge](https://github.com/alrra/browser-logos/raw/main/src/edge/edge_32x32.png)<br>Edge | ![Node.js](https://github.com/alrra/browser-logos/raw/main/src/node.js/node.js_32x32.png)<br>Node.js | ![Deno](https://github.com/alrra/browser-logos/raw/main/src/deno/deno_32x32.png)<br>Deno |
32
+ |:---:|:---:|:---:|:---:|:---:|:---:|
33
+ | :heavy_check_mark:<br>[version 91+](https://www.chromestatus.com/feature/6533147810332672) | :heavy_check_mark:<br>[version 89+](https://bugzilla.mozilla.org/show_bug.cgi?id=1695585) | :x:<br>[Tracking bug](https://bugs.webkit.org/show_bug.cgi?id=222382) | :heavy_check_mark:<br>[version 91+](https://www.chromestatus.com/feature/6533147810332672) | :heavy_check_mark:<br>[version 16.4+](https://github.com/nodejs/node/pull/38273) | :heavy_check_mark:<br>[version 1.9+](https://github.com/denoland/deno/pull/10152) |
24
34
 
25
35
  ## Installation
26
36
 
@@ -97,6 +107,17 @@ Vips().then(vips => {
97
107
  });
98
108
  ```
99
109
 
110
+ ### Deno
111
+
112
+ On Deno, the web ES6 module can be reused and imported from a CDN such as
113
+ [jsDelivr](https://www.jsdelivr.com/):
114
+
115
+ ```js
116
+ import Vips from 'https://cdn.jsdelivr.net/npm/wasm-vips/lib/vips-es6.js';
117
+
118
+ const vips = await Vips();
119
+ ```
120
+
100
121
  ## Example
101
122
 
102
123
  ```js