wasm-vips 0.0.16 → 0.0.18
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 +10 -9
- package/THIRD-PARTY-NOTICES.md +25 -24
- package/lib/vips-es6.js +187 -203
- package/lib/vips-heif.wasm +0 -0
- package/lib/vips-jxl.wasm +0 -0
- package/lib/vips-node.js +199 -216
- package/lib/vips-node.mjs +200 -217
- package/lib/vips-resvg.wasm +0 -0
- package/lib/vips.d.ts +335 -28
- package/lib/vips.js +187 -203
- package/lib/vips.wasm +0 -0
- package/package.json +3 -3
- package/versions.json +16 -15
package/README.md
CHANGED
|
@@ -16,22 +16,24 @@ https://github.com/kleisauke/wasm-vips/issues/1).
|
|
|
16
16
|
|
|
17
17
|
## Engine support
|
|
18
18
|
|
|
19
|
-
An engine that supports [WebAssembly SIMD](https://
|
|
20
|
-
|
|
19
|
+
An engine that supports [WebAssembly SIMD](https://caniuse.com/wasm-simd)
|
|
20
|
+
and [WebAssembly Exception Handling](
|
|
21
|
+
https://caniuse.com/wf-wasm-exception-handling). This is present on most
|
|
22
|
+
major browser engines and is part of [Baseline 2023](
|
|
21
23
|
https://web.dev/baseline/2023).
|
|
22
24
|
|
|
23
|
-
For V8-based engines, at least version 9.
|
|
24
|
-
|
|
25
|
+
For V8-based engines, at least version 9.5 is required, this corresponds
|
|
26
|
+
to Chrome 95, Node.js 17.0.0 and Deno 1.16.0.
|
|
25
27
|
|
|
26
28
|
For Spidermonkey-based engines, the JavaScript engine used in Mozilla Firefox
|
|
27
|
-
and whose version numbers are aligned, at least version
|
|
29
|
+
and whose version numbers are aligned, at least version 100 is required.
|
|
28
30
|
|
|
29
31
|
For JavaScriptCore-based engines, the built-in JavaScript engine for WebKit,
|
|
30
32
|
at least version 615.1.17 is required. This corresponds to Safari 16.4.
|
|
31
33
|
|
|
32
34
|
| <br>Chrome | <br>Firefox | <br>Safari | <br>Edge | <br>Node.js | <br>Deno |
|
|
33
35
|
|:---:|:---:|:---:|:---:|:---:|:---:|
|
|
34
|
-
| :heavy_check_mark:<br>[version
|
|
36
|
+
| :heavy_check_mark:<br>[version 95+](https://chromestatus.com/feature/4756734233018368) | :heavy_check_mark:<br>[version 100+](https://bugzil.la/1335652) | :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 95+](https://chromestatus.com/feature/4756734233018368) | :heavy_check_mark:<br>[version 17.0+](https://github.com/nodejs/node/pull/40178) | :heavy_check_mark:<br>[version 1.16+](https://github.com/denoland/deno/pull/12564) |
|
|
35
37
|
|
|
36
38
|
## Installation
|
|
37
39
|
|
|
@@ -110,11 +112,10 @@ Vips().then(vips => {
|
|
|
110
112
|
|
|
111
113
|
### Deno
|
|
112
114
|
|
|
113
|
-
On Deno,
|
|
114
|
-
[jsDelivr](https://www.jsdelivr.com/):
|
|
115
|
+
On Deno, wasm-vips can be imported by using the `npm:` specifier:
|
|
115
116
|
|
|
116
117
|
```js
|
|
117
|
-
import Vips from '
|
|
118
|
+
import Vips from 'npm:wasm-vips';
|
|
118
119
|
|
|
119
120
|
const vips = await Vips();
|
|
120
121
|
```
|
package/THIRD-PARTY-NOTICES.md
CHANGED
|
@@ -1,31 +1,32 @@
|
|
|
1
1
|
# Third-party notices
|
|
2
2
|
|
|
3
3
|
This software contains third-party libraries
|
|
4
|
-
used under the terms of the following
|
|
4
|
+
used under the terms of the following licenses:
|
|
5
5
|
|
|
6
|
-
| Library | Used under the terms of
|
|
7
|
-
|
|
8
|
-
| aom | BSD 2-Clause + [Alliance for Open Media Patent License 1.0](https://aomedia.org/license/patent-license/)
|
|
9
|
-
| brotli | MIT
|
|
10
|
-
| cgif | MIT
|
|
11
|
-
| emscripten | [MIT
|
|
12
|
-
| expat | MIT
|
|
13
|
-
| glib | LGPLv3
|
|
14
|
-
| highway |
|
|
15
|
-
| lcms | MIT
|
|
16
|
-
| libexif | LGPLv3
|
|
17
|
-
| libffi | MIT
|
|
18
|
-
| libheif | LGPLv3
|
|
19
|
-
| libimagequant | [BSD 2-Clause](https://github.com/lovell/libimagequant/blob/main/COPYRIGHT)
|
|
20
|
-
| libjxl | BSD 3-Clause
|
|
21
|
-
| libnsgif | MIT
|
|
22
|
-
|
|
|
23
|
-
| libtiff | [libtiff License](https://gitlab.com/libtiff/libtiff/blob/master/LICENSE.md) (BSD-like)
|
|
24
|
-
|
|
|
25
|
-
|
|
|
26
|
-
|
|
|
27
|
-
|
|
|
28
|
-
|
|
|
6
|
+
| Library | Used under the terms of |
|
|
7
|
+
|---------------|----------------------------------------------------------------------------------------------------------|
|
|
8
|
+
| aom | BSD 2-Clause + [Alliance for Open Media Patent License 1.0](https://aomedia.org/license/patent-license/) |
|
|
9
|
+
| brotli | MIT License |
|
|
10
|
+
| cgif | MIT License |
|
|
11
|
+
| emscripten | [MIT License](https://github.com/emscripten-core/emscripten/blob/main/LICENSE) |
|
|
12
|
+
| expat | MIT License |
|
|
13
|
+
| glib | LGPLv3 |
|
|
14
|
+
| highway | BSD 3-Clause |
|
|
15
|
+
| lcms | MIT License |
|
|
16
|
+
| libexif | LGPLv3 |
|
|
17
|
+
| libffi | MIT License |
|
|
18
|
+
| libheif | LGPLv3 |
|
|
19
|
+
| libimagequant | [BSD 2-Clause](https://github.com/lovell/libimagequant/blob/main/COPYRIGHT) |
|
|
20
|
+
| libjxl | BSD 3-Clause |
|
|
21
|
+
| libnsgif | MIT License |
|
|
22
|
+
| libpng | [libpng License](https://github.com/pnggroup/libpng/blob/master/LICENSE) |
|
|
23
|
+
| libtiff | [libtiff License](https://gitlab.com/libtiff/libtiff/blob/master/LICENSE.md) (BSD-like) |
|
|
24
|
+
| libultrahdr | MIT License |
|
|
25
|
+
| libvips | LGPLv3 |
|
|
26
|
+
| libwebp | New BSD License |
|
|
27
|
+
| mozjpeg | [zlib License, IJG License, BSD 3-Clause](https://github.com/mozilla/mozjpeg/blob/master/LICENSE.md) |
|
|
28
|
+
| resvg | MIT License |
|
|
29
|
+
| zlib-ng | [zlib License](https://github.com/zlib-ng/zlib-ng/blob/develop/LICENSE.md) |
|
|
29
30
|
|
|
30
31
|
Use of libraries under the terms of the LGPLv3 is via the
|
|
31
32
|
"any later version" clause of the LGPLv2 or LGPLv2.1.
|