Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Snyk] Upgrade @resvg/resvg-js from 2.6.0 to 2.6.2 #30

Closed
wants to merge 1 commit into from

Conversation

baoduy
Copy link
Owner

@baoduy baoduy commented Jun 12, 2024

snyk-top-banner

Snyk has created this PR to upgrade @resvg/resvg-js from 2.6.0 to 2.6.2.

ℹ️ 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.


  • The recommended version is 3 versions ahead of your current version.

  • The recommended version was released on 3 months ago.

Release notes
Package name: @resvg/resvg-js
  • 2.6.2 - 2024-03-26
    No content.
  • 2.6.1 - 2024-03-25

    What's Changed

    This version solves the problem of missing DLLs caused by not installing Visual C++ Redistributable on Windows.

    Added

    • chore(deps): update yarn to v3.8.1
    • chore(deps): update actions/cache action to v4
    • chore(deps): upgrade dependencies such as napi-rs #311
    • chore(ci): adding Node.js v20 to the CI
    • chore(ci): use macOS M1 machines
    • doc: clarify that the default value of the defaultFontFamily is empty
    • doc: improved change log documentation for M/L/C error
    • test: add a bbox test with stroke
    • fix(deps): update rust crate svgtypes to 0.14.0

    Fixed

    New Contributors

    Full Changelog: v2.6.0...v2.6.1

  • 2.6.1-beta.0 - 2024-03-11

    What's Changed

    This version solves the problem of missing DLLs caused by not installing Visual C++ Redistributable on Windows.

    Added

    • chore(deps): upgrade dependencies such as napi-rs #311
    • chore(ci): adding Node.js v20 to the CI
    • chore(ci): use macOS M1 machines
    • doc: clarify that the default value of the defaultFontFamily is empty
    • doc: improved change log documentation for M/L/C error
    • test: add a bbox test with stroke
    • fix(deps): update rust crate svgtypes to 0.14.0

    Fixed

    New Contributors

    Full Changelog: v2.6.0...v2.6.1-beta.0

  • 2.6.0 - 2023-10-20

    What's Changed

    🚀 Up to 115x faster for very large SVG files

    Now resvg has been upgraded from v0.29.0 to v0.34.0, bringing with it a host of new SVG features and performance improvements.

    • Support SVG2 mask-type property.

    • Allows quadratic Bézier curves: text might render slightly differently (better?). This is because TrueType fonts contain only quadratic curves and we were converting them to cubic before.

    • Clipping and masking is up to 20% faster.

    • Reduces the peak memory usage for SVGs with large paths (in terms of the number of segments).

    • A new rendering algorithm.

      When rendering isolated groups,
      aka layers, we have to know the layer bounding box beforehand, which is ridiculously hard in SVG.

      Previously, resvg would simply use the canvas size for all the layers.
      This means that to render a 10x10px layer on a 1000x1000px canvas, we would have to allocate and then blend
      a 1000x1000px layer, which is just a waste of CPU cycles.

      The new rendering algorithm is able to calculate layer bounding boxes, which dramatically improves
      performance when rendering a lot of tiny layers on a large canvas.

      Moreover, it makes performance more linear with a canvas size increase.

      The paris-30k.svg
      sample from google/forma is rendered 115 times faster on M1 Pro now.
      From ~33760ms down to ~290ms. 5269x3593px canvas.

      If we restrict the canvas to 1000x1000px, which would contain only the actual paris-30k.svg content,
      then we're 13 times faster. From ~3252ms down to ~253ms.

    Added

    • feat: upgrade to usvg/resvg 0.34.0. #268 Thanks to @ zimond

    Full Changelog: v2.5.0...v2.6.0

from @resvg/resvg-js GitHub release notes

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.
  • Snyk has automatically assigned this pull request, set who gets assigned.

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:

Snyk has created this PR to upgrade @resvg/resvg-js from 2.6.0 to 2.6.2.

See this package in npm:
@resvg/resvg-js

See this project in Snyk:
https://app.snyk.io/org/baoduy/project/f874d182-21f8-428e-801d-bbe621859de5?utm_source=github&utm_medium=referral&page=upgrade-pr
@baoduy baoduy self-assigned this Jun 12, 2024
@baoduy baoduy closed this Jul 29, 2024
@baoduy baoduy deleted the snyk-upgrade-f3c7e3c574f173296b6cbff676a03b2c branch July 29, 2024 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants