[Snyk] Upgrade canvas from 3.1.0 to 3.1.2 #27
+1
−1
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.
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
- Fix crash when setting width/height on PDF, SVG canvas (#2520)
-
3.1.1 - 2025-06-19
- 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
- Replaced
- 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
- Support for accessibility and links in PDFs
- Fix a crash in
- Fix
from canvas GitHub release notes3.1.2
Fixed
3.1.1
This release also introduces arm64 prebuilds for Linux!
Fixed
3.1.0
simple-getwithNode.js builtinfetch(#2309)ctx.fonthas a new C++ parser and is 2x-400x faster. Please file an issue if you experience different results, as caching has been removed.fillTextcall (#1921)Added
ctx.directionis implemented:'rtl'or'ltr'set the base direction of textctx.textAlign'start'and'end'are now'right'and'left'whenctx.direction === 'rtl'Fixed
getImageDatawhen the rectangle is entirely outside the canvas. (#2024)getImageDatacropping the resultingImageDatawhen the given rectangle is partly outside the canvas. (#1849)Important
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: