wasm-vips 0.0.3 → 0.0.5

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,26 @@ 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
+ For JavaScriptCore-based engines, the built-in JavaScript engine for WebKit,
28
+ at least version 615.1.17 is required. This corresponds to Safari 16.4.
29
+
30
+ | ![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 |
31
+ |:---:|:---:|:---:|:---:|:---:|:---:|
32
+ | :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 16.4+](https://webkit.org/blog/13966/webkit-features-in-safari-16-4/#javascript-and-webassembly) | :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
33
 
25
34
  ## Installation
26
35
 
@@ -97,6 +106,17 @@ Vips().then(vips => {
97
106
  });
98
107
  ```
99
108
 
109
+ ### Deno
110
+
111
+ On Deno, the web ES6 module can be reused and imported from a CDN such as
112
+ [jsDelivr](https://www.jsdelivr.com/):
113
+
114
+ ```js
115
+ import Vips from 'https://cdn.jsdelivr.net/npm/wasm-vips/lib/vips-es6.js';
116
+
117
+ const vips = await Vips();
118
+ ```
119
+
100
120
  ## Example
101
121
 
102
122
  ```js