-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
37 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,26 @@ This changelog also contains important changes in dependencies. | |
|
||
## [Unreleased] | ||
|
||
## [2.0.0-alpha.1] - 2022-02-17 | ||
|
||
### Added | ||
|
||
- feat: playground uses [unpkg.com's](https://unpkg.com/@resvg/resvg-wasm) online resources | ||
```html | ||
<script src="https://unpkg.com/@resvg/[email protected]/index.min.js"></script> | ||
``` | ||
- feat: preload wasm in the playground | ||
```html | ||
<link rel="preload" as="fetch" type="application/wasm" href="https://unpkg.com/@resvg/resvg-wasm/index_bg.wasm" /> | ||
``` | ||
- chore: upload wasm file to artifacts | ||
Switching from local to building in CI (Linux-x64-gnu) for `.wasm` files can reduce the file size a bit. | ||
|
||
- Local, Mac-x64-darwin: 1969225 bytes | ||
- CI, Linux-x64-gnu: 1949570 bytes | ||
|
||
After gzip compression, the `.wasm` file is only about 700kB. | ||
|
||
## [2.0.0-alpha.0] - 2022-02-15 | ||
|
||
resvg-js now supports WebAssembly 🎉 What can I do now? | ||
|
@@ -19,6 +39,7 @@ resvg-js now supports WebAssembly 🎉 What can I do now? | |
With WebAssembly, resvg-js gains broader cross-platform compatibility, all by loading only about 2MB of WASM files. And, the API is consistent with the Node.js side. | ||
|
||
The current version of WASM does not support loading fonts, so please submit an issue if you have a request. | ||
|
||
### Added | ||
|
||
- feat: support WebAssembly(wasm32 target) via wasm-bindgen (#51) | ||
|
@@ -164,7 +185,8 @@ The first official version, use [resvg 0.18.0](https://github.com/RazrFalcon/res | |
- Support custom fonts and system fonts. | ||
- Supports setting the background color of PNG. | ||
|
||
[unreleased]: https://github.com/yisibl/resvg-js/compare/v2.0.0-alpha.0...HEAD | ||
[unreleased]: https://github.com/yisibl/resvg-js/compare/v2.0.0-alpha.1...HEAD | ||
[2.0.0-alpha.1]: https://github.com/yisibl/resvg-js/compare/v2.0.0-alpha.0...v2.0.0-alpha.1 | ||
[2.0.0-alpha.0]: https://github.com/yisibl/resvg-js/compare/v1.4.0...v2.0.0-alpha.0 | ||
[1.4.0]: https://github.com/yisibl/resvg-js/compare/v1.3.0...v1.4.0 | ||
[1.3.0]: https://github.com/yisibl/resvg-js/compare/v1.2.0...v1.3.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@resvg/resvg-js", | ||
"version": "2.0.0-alpha.0", | ||
"version": "2.0.0-alpha.1", | ||
"description": "A high-performance SVG renderer, powered by Rust based resvg and napi-rs", | ||
"main": "index.js", | ||
"repository": "[email protected]:yisibl/resvg-js.git", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2e8c5bd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: