Skip to content

Conversation

@axlecoffee
Copy link
Member

snyk-top-banner

Snyk has created this PR to upgrade canvas from 3.1.0 to 3.1.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 2 versions ahead of your current version.

  • The recommended version was released 21 days ago.

Release notes
Package name: canvas
  • 3.1.2 - 2025-06-26

    3.1.2

    Fixed

    • Fix crash when setting width/height on PDF, SVG canvas (#2520)
  • 3.1.1 - 2025-06-19

    3.1.1

    This release also introduces arm64 prebuilds for Linux!

    Fixed

    • Fix a crash when SVGs without width or height are loaded (#2486)
    • Fix fetching prebuilds during installation on certain newer versions of Node (#2497)
    • Fixed issue with fillText that was breaking subsequent fillText calls (#2171)
    • Fix svg rendering when the image is resized (#2498)
    • Fix measureText with direction rtl textAlign start/end
    • Fix a crash in Node 24, due to external memory API change (#2514)
  • 3.1.0 - 2025-01-22

    3.1.0

    • Replaced simple-get with Node.js builtin fetch (#2309)
    • ctx.font has a new C++ parser and is 2x-400x faster. Please file an issue if you experience different results, as caching has been removed.
    • The restriction of registering fonts before a canvas is created has been removed. You can now register a font as late as right before the fillText call (#1921)

    Added

    • Support for accessibility and links in PDFs
    • ctx.direction is implemented: 'rtl' or 'ltr' set the base direction of text
    • ctx.textAlign 'start' and 'end' are now 'right' and 'left' when ctx.direction === 'rtl'

    Fixed

    • Fix a crash in getImageData when the rectangle is entirely outside the canvas. (#2024)
    • Fix getImageData cropping the resulting ImageData when the given rectangle is partly outside the canvas. (#1849)
from canvas 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.

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 canvas from 3.1.0 to 3.1.2.

See this package in npm:
canvas

See this project in Snyk:
https://app.snyk.io/org/axlecat284/project/469fb8d2-5612-454d-bdf4-ed4c2b67e214?utm_source=github&utm_medium=referral&page=upgrade-pr
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.

3 participants