You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: CHANGELOG.md
+52-1
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,56 @@ This changelog also contains important changes in dependencies.
9
9
10
10
## [Unreleased]
11
11
12
+
## [2.3.0] - 2023-02-02
13
+
14
+
- fix: update napi-rs(2.10.13) to resolve Electron 21+ create Buffer issues. [#195](https://github.com/yisibl/resvg-js/issues/195)
15
+
16
+
> Electron 21 and later will have the V8 Memory Cage enabled, with implications for some native modules.
17
+
> https://www.electronjs.org/blog/v8-memory-cage
18
+
19
+
This means that all napi-rs-based native modules will be affected. Usually there is an error like this:
20
+
21
+
```bash
22
+
UnhandledPromiseRejectionWarning: Error: Failed to create napi buffer
23
+
```
24
+
25
+
Good thing napi-rs has implemented a compatible approach in the new version, thanks to [@Brooooooklyn's work](https://github.com/napi-rs/napi-rs/pull/1445).
26
+
27
+
- feat: add wasm file to exports. Thanks to @hadeeb[#186](https://github.com/yisibl/resvg-js/issues/186)
28
+
29
+
This solves the problem that direct `require.resolve("@resvg/resvg-wasm/index_bg.wasm")` in tools like vite or webpack would report an error.
30
+
31
+
```bash
32
+
Module not found: Package path ./index_bg.wasm is not exported from package
33
+
/playground/node_modules/@resvg/resvg-wasm (see exports field in
See the [Node.js documentation](https://nodejs.org/api/packages.html#package-entry-points) for details about why:
38
+
> Existing packages introducing the "exports" field will prevent consumers of the package from using any entry points that are not defined,
39
+
40
+
- fix(ci): use zig to cross-compile armv7. [#176](https://github.com/yisibl/resvg-js/issues/176)
41
+
42
+
This solves the problem of CI errors:
43
+
44
+
```shell
45
+
Error: /lib/arm-linux-gnueabihf/libm.so.6: version `GLIBC_2.35' not found (required by /build/resvgjs.linux-arm-gnueabihf.node)
46
+
```
47
+
48
+
Due to the GitHub Actions Ubuntu [upgrade from 20.04 to 22.04](https://github.com/actions/runner-images/issues/5490), the glibc version became 2.35. To maintain our compatibility, zig cross-compilation is now enabled to support older versions of glibc systems.
49
+
50
+
| Distribution | Glibc | GCC |
51
+
| --- | --- | --- |
52
+
| CentOS 7 | 2.17 | 4.8.5 |
53
+
| Ubuntu 16.04 | 2.23 | 5.4.0 |
54
+
| Ubuntu 18.04 | 2.27 | 7.5.0 |
55
+
| Ubuntu 20.04 | 2.31 | 9.4.0 |
56
+
| **Ubuntu 22.04** | 2.35 | 11.2.0 |
57
+
| Debian 10.12 | 2.28 | 8.3.0 |
58
+
| Debian 11.4 | 2.31 | 10.2.1 |
59
+
60
+
- doc: add Node.js 18 to 'Support matrix'. [#155](https://github.com/yisibl/resvg-js/issues/155)
61
+
12
62
## [2.2.0] - 2022-11-18
13
63
14
64
Now resvg-js can be run natively (not Wasm) directly in Deno, this allows to get close to the performance of Node.js native addons in Deno.
@@ -424,7 +474,8 @@ The first official version, use [resvg 0.18.0](https://github.com/RazrFalcon/res
0 commit comments