[Snyk] Upgrade @resvg/resvg-js from 2.2.0 to 2.4.1#245
Merged
NiallJoeMaher merged 1 commit intoApr 13, 2023
Conversation
Snyk has created this PR to upgrade @resvg/resvg-js from 2.2.0 to 2.4.1. See this package in npm: https://www.npmjs.com/package/@resvg/resvg-js See this project in Snyk: https://app.snyk.io/org/nialljoemaher/project/8ac19f6c-c7f2-4720-acd1-09701979877c?utm_source=github&utm_medium=referral&page=upgrade-pr
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
NiallJoeMaher
added a commit
that referenced
this pull request
Oct 6, 2023
Snyk has created this PR to upgrade @resvg/resvg-js from 2.2.0 to 2.4.1. See this package in npm: https://www.npmjs.com/package/@resvg/resvg-js See this project in Snyk: https://app.snyk.io/org/nialljoemaher/project/8ac19f6c-c7f2-4720-acd1-09701979877c?utm_source=github&utm_medium=referral&page=upgrade-pr Co-authored-by: snyk-bot <[email protected]>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was automatically created by Snyk using the credentials of a real user.
Snyk has created this PR to upgrade @resvg/resvg-js from 2.2.0 to 2.4.1.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
Release notes
Package name: @resvg/resvg-js
-
2.4.1 - 2023-02-15
- fix: the
- Update README.md by @ Nkay in #206
- @ Nkay made their first contribution in #206
-
2.4.0 - 2023-02-09
| fastest
- feat: upgrade resvg/usvg to 0.28.0. #194 Thanks to @ zimond
- feat: upgrade resvg/usvg to 0.29.0. #199 Thanks to @ zimond
- chore: upgrade rust-toolchain to nightly-2023-02-01. #199 Thanks to @ yisibl
- chore: remove bench-related dependencies. #200 Thanks to @ yisibl
-
'<unnamed>' panicked at 'the previous segment must be M/L/C'
-
2.3.1 - 2023-02-02
- feat: upgrade wasm-bindgen to 0.2.84 by @ yisibl in #196
-
2.3.0 - 2023-02-02
-
-
-
Distribution
Glibc
GCC
CentOS 7
2.17
4.8.5
Ubuntu 16.04
2.23
5.4.0
Ubuntu 18.04
2.27
7.5.0
Ubuntu 20.04
2.31
9.4.0
Ubuntu 22.04
2.35
11.2.0
Debian 10.12
2.28
8.3.0
Debian 11.4
2.31
10.2.1
-
- @ hadeeb made their first contribution in #186
-
2.2.0 - 2022-11-17
import * as path from 'https://deno.land/[email protected]/path/mod.ts'
- feat: add
- chore: upgrade to resvg v0.25.0 (by @ zimond in #156).
- Partial
- CSS3
- (tiny-skia) AArch64 Neon SIMD support. Up to 3x faster on Apple M1.
- Path bbox calculation scales stroke width too. Thanks to @ growler.
- (tiny-skia) Round caps roundness. Fixes #155.
- build: x86_64-linux-gnu and aarch64-linux-gnu are no longer compiled using Zig. (#125)
- doc: the
- chore: add deno example and docs. (#154)
- feat: upgrade napi-rs to 2.10.0 and Node.js v18. (#157)
- test: add image resolver API test case. (#164)
- feat: remove the
- feat: remove the infer crate, this reduced the size of the Wasm file by about 4.3%. (#165)
- Before: 1360609 bytes
- After: 1302173 bytes
- feat: error code UnrecognizedBuffer changed to UnsupportedImage. (#165)
- fix: ignore
- @ CGQAQ made their first contribution in #161
from @resvg/resvg-js GitHub release notesWhat's Changed
defaultFontFamilynot working by @ yisibl in #208New Contributors
Full Changelog: v2.4.0...v2.4.1
What's Changed
This is a brand new version with 2-3x faster performance. It also resolves an issue with a specific SVG causing an error, and all users are advised to upgrade to this version.
sharp:
10.9 ops/s, ±31.43% | 72.47% slower
svg2img(canvg + node-canvas):
10.8 ops/s, ±28.52% | slowest, 72.73% slower
The upgrade will be hard due to the big changes made to upstream resvg. resvg 0.28.0 started with the removal of the ability to output SVG string, and we had to backport that functionality to a new crate:
usvg-writer.Eventually, we upgraded resvg for 2 successive versions, and are now at the latest 0.29.0.
Changed
Fixed
fix: 'the previous segment must be M/L/C' error. #204 Thanks to @ yisibl
This is a normal error thrown by resvg when parsing Path Command, and has been confirmed as fixed in resvg 0.29.0.
Add a test to ensure it is now fixed.
note: run with
</span>RUST_BACKTRACE=1<span class="pl-pds">environment variable to display a backtracefatal runtime error: failed to initiate panic, error 5
Full Changelog: v2.3.1...v2.4.0
What's Changed
Full Changelog: v2.3.0...v2.3.1
What's Changed
fix: update napi-rs(2.10.13) to resolve Electron 21+ create Buffer issues. #195
This means that all napi-rs-based native modules will be affected. Usually there is an error like this:
Good thing napi-rs has implemented a compatible approach in the new version, thanks to @ Brooooooklyn's work.
feat: add wasm file to exports. Thanks to @ hadeeb #186
This solves the problem that direct
require.resolve("@ resvg/resvg-wasm/index_bg.wasm")in tools like vite or webpack would report an error.Module not found: Package path ./index_bg.wasm is not exported from package /playground/node_modules/@ resvg/resvg-wasm (see exports field in /playground/node_modules/@ resvg/resvg-wasm/package.json)See the Node.js documentation for details about why:
fix(ci): use zig to cross-compile armv7. #176
This solves the problem of CI errors:
Error: /lib/arm-linux-gnueabihf/libm.so.6: version `GLIBC_2.35' not found (required by /build/resvgjs.linux-arm-gnueabihf.node)Due to the GitHub Actions Ubuntu upgrade from 20.04 to 22.04, the glibc version became 2.35. To maintain our compatibility, zig cross-compilation is now enabled to support older versions of glibc systems.
doc: add Node.js 18 to 'Support matrix'. #155
New Contributors
Full Changelog: v2.2.0...v2.3.0
What's Changed
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.
See Deno Example
import { Resvg } from 'npm:@ resvg/resvg-js'
const __dirname = path.dirname(path.fromFileUrl(import.meta.url))
const svg = await Deno.readFile(path.join(__dirname, './text.svg'))
const resvg = new Resvg(svg, opts)
const pngData = resvg.render()
const pngBuffer = pngData.asPng()
await Deno.writeFile(path.join(__dirname, './text-out-deno.png'), pngBuffer)
In addition, resvg-js can return the raw pixels data of the PNG, which can be very convenient for scenes where only pixels need to be processed.
Added
.pixels()API for returning PNG pixels data (#123).paint-orderattribute support. Markers can only be under or above the shape.writing-modevariantsvertical-rlandvertical-lr. Thanks to @ yisibl.Changed
dpioption is not the DPI in the PNG file. (#146)infercrate, this can reduce the size of Wasm files.Fixed
pngcrate inrenovate.json. (by @ CGQAQ in #161)New Contributors
Full Changelog: v2.1.0...v2.2.0
Commit messages
Package name: @resvg/resvg-js
Compare
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs