fix(deps): update dependency canvas to v3 #78
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 contains the following updates:
^1.4.0
->^3.0.0
Release Notes
Automattic/node-canvas (canvas)
v3.0.0
Compare Source
==================
This release notably changes to using N-API. 🎉
Breaking
Changed
op
variable to thedefault
switch case to avoid a compiler warning. (#2229)default
switch case with a null statement if some enum values aren't suppsed to be handled, this avoids a compiler warning. (#2229)rsvg_handle_get_dimensions()
andrsvg_handle_render_cairo()
functions to the newrsvg_handle_get_intrinsic_size_in_pixels()
andrsvg_handle_render_document()
respectively. (#2229)backend
in theBackend
class. (#2229)dtslint
withtsd
(#2313)Added
Fixed
v2.11.2
Compare Source
==================
Fixed
v2.11.1
Compare Source
==================
Fixed
canvas
to theCanvasRenderingContext2D
typeletter-spacing
effectctx.font
not being restored correctly afterctx.restore()
(#1946)v2.11.0
Compare Source
==================
Fixed
v2.10.2
Compare Source
==================
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).v2.10.1
Compare Source
==================
Fixed
actualBoundingBoxLeft
andactualBoundingBoxRight
whentextAlign='center'
or'right'
(#1909)rgba(r,g,b,0)
with alpha to 0 should parse as transparent, not opaque. (#2110)v2.10.0
Compare Source
==================
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)v2.9.3
Compare Source
==================
Fixed
registerFont
multiple times with the same family name (#2041)v2.9.2
Compare Source
==================
Fixed
npm rebuild
will now re-fetch prebuilt binaries to avoidNODE_MODULE_VERSION
mismatch errors. (#1982)v2.9.1
Compare Source
==================
Fixed
toupper
.getImageData
orputImageData
is called on a PDF or SVG canvas (#1853)v2.9.0
Compare Source
==================
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
v2.8.0
Compare Source
==================
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).v2.7.0
Compare Source
==================
Changed
Previously these were in the node-gfx/node-canvas-prebuilt
and triggered manually.
fillStyle=
andstrokeStyle=
Added
rsvgVersion
.setTransform
method is no longer missingFixed
fillStyle
orstrokeStyle
is set to an object, but that object is not a Gradient or Pattern. (This behavior was non-standard: invalid inputs are supposed to be ignored.)v2.6.1
Compare Source
==================
Fixed
maxWidth
infillText
andstrokeText
if it is undefinedunderlying arraybuffer was incorrectly sized.)
v2.6.0
Compare Source
==================
Changed
toBuffer('raw')
.Added
Fixed
fillStyle
orstrokeStyle
was set to a
CanvasPattern
orCanvasGradient
(#1357).toBuffer('raw')
with large canvases (#1158).toBuffer('raw')
in readme. (#1416)Set
andCall
. (#1415)Get
version fromNan
instead ofv8
. (#1415)v2.5.0
Compare Source
==================
Added
Fixed
v2.4.1
Compare Source
==================
Fixed
canvas.toDataURL()
v2.4.0
Compare Source
==================
Added
resolution
option forcanvas.toBuffer("image/png")
andcanvas.createPNGStream()
. This was documented since 2.0.0 but not working.Fixed
canvas.createPDFStream()
v2.3.1
Compare Source
==================
Fixed
canvas.toBuffer()
for JPEGs (#1350)v2.3.0
Compare Source
==================
Added
Fixed
canvas.toBuffer()
(#1202, #1296)ctx.font=
(#1202)v2.2.0
Compare Source
==================
Added
Fixed
v2.1.0
Compare Source
==================
Added
v2.0.1
Compare Source
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.