Releases: Automattic/node-canvas
Releases · Automattic/node-canvas
v2.11.2
v2.11.1
v2.11.0
v2.10.2
Fixed
- Fix
Assertion failed: (object->InternalFieldCount() > 0), function Unwrap, file nan_object_wrap.h, line 32.
(#2025) textBaseline
andtextAlign
were not saved/restored bysave()
/restore()
. (#1936)- Update nan to v2.17.0 to ensure Node.js v18+ support.
Changed
- Improve performance and memory usage of
save()
/restore()
. save()
/restore()
no longer have a maximum depth (previously 64 states).
v2.10.1
v2.10.0
Added
- Export
pangoVersion
ctx.roundRect()
Fixed
rgba(r,g,b)
with no alpha should parse as opaque, not transparent. (#2029)- Typo in
PngConfig.filters
types. (#2072) createPattern()
always used "repeat" mode; now supports "repeat-x" and "repeat-y". (#2066)- Crashes and hangs when using non-finite values in
context.arc()
. (#2055) - Incorrect
context.arc()
geometry logic for full ellipses. (#1808, (#1736)) - Added missing
deregisterAllFonts
to the Typescript declaration file (#2096) - Add
User-Agent
header when requesting remote images (#2099)
v2.9.3
v2.9.2
v2.9.1
Fixed
- Stringify CanvasGradient, CanvasPattern and ImageData like browsers do. (#1639, #1646)
- Add missing include for
toupper
. - Throw an error instead of crashing the process if
getImageData
orputImageData
is called on a PDF or SVG canvas (#1853) - Compatibility with Typescript 4.6
- Near-perfect font matching on Linux (#1572)
- Fix multi-byte font path support on Windows.
v2.9.0
Changed
- Refactor functions to classes.
- Changed
DOMPoint()
constructor to check for parameter nullability. - Changed
DOMMatrix.js
to use string literals for non-special cases. - Remove semicolons from Dommatrix.js.
- Update nan to v2.15.0 to ensure Node.js v14+ support.
- Clean up inf/nan macros and slightly speed up argument checking.
Added
- Added
deregisterAllFonts
method to free up memory and reduce font conflicts.
Fixed
- Support Apple M1 Homebrew install that puts canvas install library files in
/opt/homebrew/lib