[Snyk] Upgrade canvas from 2.8.0 to 2.11.2 #13
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-top-banner](https://github.com/andygongea/OWASP-Benchmark/assets/818805/c518c423-16fe-447e-b67f-ad5a49b5d123)
Snyk has created this PR to upgrade canvas from 2.8.0 to 2.11.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 10 versions ahead of your current version.
The recommended version was released on a year ago.
Release notes
Package name: canvas
Fixed
Fixed
Assertion failed: (object->InternalFieldCount() > 0), function Unwrap, file nan_object_wrap.h, line 32.
(#2025)textBaseline
andtextAlign
were not saved/restored bysave()
/restore()
. (#1936)Changed
save()
/restore()
.save()
/restore()
no longer have a maximum depth (previously 64 states).Fixed
actualBoundingBoxLeft
andactualBoundingBoxRight
whentextAlign='center'
or'right'
(#1909)rgba(r,g,b,0)
with alpha to 0 should parse as transparent, not opaque. (#2110)Added
pangoVersion
ctx.roundRect()
Fixed
rgba(r,g,b)
with no alpha should parse as opaque, not transparent. (#2029)PngConfig.filters
types. (#2072)createPattern()
always used "repeat" mode; now supports "repeat-x" and "repeat-y". (#2066)context.arc()
. (#2055)context.arc()
geometry logic for full ellipses. (#1808, (#1736))deregisterAllFonts
to the Typescript declaration file (#2096)User-Agent
header when requesting remote images (#2099)Fixed
registerFont
multiple times with the same family name (#2041)Fixed
npm rebuild
will now re-fetch prebuilt binaries to avoidNODE_MODULE_VERSION
mismatch errors. (#1982)Fixed
toupper
.getImageData
orputImageData
is called on a PDF or SVG canvas (#1853)Changed
DOMPoint()
constructor to check for parameter nullability.DOMMatrix.js
to use string literals for non-special cases.Added
deregisterAllFonts
method to free up memory and reduce font conflicts.Fixed
/opt/homebrew/lib
Changed
features like
node_pre_gyp_accessKeyId
, you may need to make changes to yourinstallation procedure. See https://github.com/mapbox/node-pre-gyp/blob/master/CHANGELOG.md#100.
nBytes()
now returns a size_t. (Because this is a C++method only, this is not considered a breaking change.)
Added
inverse()
andinvertSelf()
toDOMMatrix
(#1648)context.getTransform()
(#1769)context.setTransform(dommatrix)
(#1769)Fixed
actualBoundingBoxLeft
andactualBoundingBoxRight
returned bymeasureText
to be the ink rect (#1776, fixes #1703).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:![](https://camo.githubusercontent.com/95e844fb4fdd87e8ca5719e3fa4fb6ac4490e892333005ed2cfc48c7799ee940/68747470733a2f2f6170692e7365676d656e742e696f2f76312f706978656c2f747261636b3f646174613d65794a33636d6c305a55746c65534936496e4a79576d785a634564485932527954485a7362306c596430645563566734576b4652546e4e434f5545774969776959573576626e6c746233567a535751694f694931595751774d7a466c5a5331695a444e6d4c5451774f575574595459774d6930794f4455355a5755314f4463344f474d694c434a6c646d567564434936496c425349485a705a58646c5a434973496e42796233426c636e52705a584d694f6e736963484a4a5a434936496a56685a44417a4d57566c4c574a6b4d3259744e4441355a5331684e6a41794c5449344e546c6c5a5455344e7a673459794a3966513d3d)