Skip to content

Commit

Permalink
2.0.0-alpha.1
Browse files Browse the repository at this point in the history
  • Loading branch information
yisibl committed Feb 17, 2022
1 parent 1dee871 commit 2e8c5bd
Show file tree
Hide file tree
Showing 15 changed files with 37 additions and 15 deletions.
24 changes: 23 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand All @@ -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)
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion npm/android-arm-eabi/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@resvg/resvg-js-android-arm-eabi",
"version": "2.0.0-alpha.0",
"version": "2.0.0-alpha.1",
"os": [
"android"
],
Expand Down
2 changes: 1 addition & 1 deletion npm/android-arm64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@resvg/resvg-js-android-arm64",
"version": "2.0.0-alpha.0",
"version": "2.0.0-alpha.1",
"os": [
"android"
],
Expand Down
2 changes: 1 addition & 1 deletion npm/darwin-arm64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@resvg/resvg-js-darwin-arm64",
"version": "2.0.0-alpha.0",
"version": "2.0.0-alpha.1",
"os": [
"darwin"
],
Expand Down
2 changes: 1 addition & 1 deletion npm/darwin-x64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@resvg/resvg-js-darwin-x64",
"version": "2.0.0-alpha.0",
"version": "2.0.0-alpha.1",
"os": [
"darwin"
],
Expand Down
2 changes: 1 addition & 1 deletion npm/linux-arm-gnueabihf/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@resvg/resvg-js-linux-arm-gnueabihf",
"version": "2.0.0-alpha.0",
"version": "2.0.0-alpha.1",
"os": [
"linux"
],
Expand Down
2 changes: 1 addition & 1 deletion npm/linux-arm64-gnu/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@resvg/resvg-js-linux-arm64-gnu",
"version": "2.0.0-alpha.0",
"version": "2.0.0-alpha.1",
"os": [
"linux"
],
Expand Down
2 changes: 1 addition & 1 deletion npm/linux-arm64-musl/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@resvg/resvg-js-linux-arm64-musl",
"version": "2.0.0-alpha.0",
"version": "2.0.0-alpha.1",
"os": [
"linux"
],
Expand Down
2 changes: 1 addition & 1 deletion npm/linux-x64-gnu/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@resvg/resvg-js-linux-x64-gnu",
"version": "2.0.0-alpha.0",
"version": "2.0.0-alpha.1",
"os": [
"linux"
],
Expand Down
2 changes: 1 addition & 1 deletion npm/linux-x64-musl/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@resvg/resvg-js-linux-x64-musl",
"version": "2.0.0-alpha.0",
"version": "2.0.0-alpha.1",
"os": [
"linux"
],
Expand Down
2 changes: 1 addition & 1 deletion npm/win32-arm64-msvc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@resvg/resvg-js-win32-arm64-msvc",
"version": "2.0.0-alpha.0",
"version": "2.0.0-alpha.1",
"os": [
"win32"
],
Expand Down
2 changes: 1 addition & 1 deletion npm/win32-ia32-msvc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@resvg/resvg-js-win32-ia32-msvc",
"version": "2.0.0-alpha.0",
"version": "2.0.0-alpha.1",
"os": [
"win32"
],
Expand Down
2 changes: 1 addition & 1 deletion npm/win32-x64-msvc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@resvg/resvg-js-win32-x64-msvc",
"version": "2.0.0-alpha.0",
"version": "2.0.0-alpha.1",
"os": [
"win32"
],
Expand Down
2 changes: 1 addition & 1 deletion package.json
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",
Expand Down
2 changes: 1 addition & 1 deletion wasm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@resvg/resvg-wasm",
"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",
"module": "index.mjs",
Expand Down

1 comment on commit 2e8c5bd

@vercel
Copy link

@vercel vercel bot commented on 2e8c5bd Feb 17, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.