Skip to content

Commit 8fcb5a5

Browse files
committed
doc: 2.3.0
1 parent 55a9170 commit 8fcb5a5

File tree

1 file changed

+52
-1
lines changed

1 file changed

+52
-1
lines changed

CHANGELOG.md

+52-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,56 @@ This changelog also contains important changes in dependencies.
99

1010
## [Unreleased]
1111

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
34+
/playground/node_modules/@resvg/resvg-wasm/package.json)
35+
```
36+
37+
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+
1262
## [2.2.0] - 2022-11-18
1363
1464
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
424474
- Support custom fonts and system fonts.
425475
- Supports setting the background color of PNG.
426476

427-
[unreleased]: https://github.com/yisibl/resvg-js/compare/v2.2.0...HEAD
477+
[unreleased]: https://github.com/yisibl/resvg-js/compare/v2.3.0...HEAD
478+
[2.3.0]: https://github.com/yisibl/resvg-js/compare/v2.2.0...v2.3.0
428479
[2.2.0]: https://github.com/yisibl/resvg-js/compare/v2.1.0...v2.2.0
429480
[2.1.0]: https://github.com/yisibl/resvg-js/compare/v2.0.1...v2.1.0
430481
[2.0.1]: https://github.com/yisibl/resvg-js/compare/v2.0.0...v2.0.1

0 commit comments

Comments
 (0)