Releases: Automattic/node-canvas
Releases · Automattic/node-canvas
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
v2.8.0
Changed
- Upgrade dtslint
- Upgrade node-pre-gyp to 1.0.0. Note that if you are using special node-pre-gyp
features likenode_pre_gyp_accessKeyId
, you may need to make changes to your
installation procedure. See https://github.com/mapbox/node-pre-gyp/blob/master/CHANGELOG.md#100. - Add Node.js v16 to CI.
- The C++ class method
nBytes()
now returns a size_t. (Because this is a C++
method only, this is not considered a breaking change.)
Added
- Add support for
inverse()
andinvertSelf()
toDOMMatrix
(#1648) - Add support for
context.getTransform()
(#1769) - Add support for
context.setTransform(dommatrix)
(#1769)
Fixed
- Fix
actualBoundingBoxLeft
andactualBoundingBoxRight
returned bymeasureText
to be the ink rect (#1776, fixes #1703). - Fix Pango logging "expect ugly output" on Windows (#1643)
- Fix benchmark for createPNGStream (#1672)
- Fix dangling reference in BackendOperationNotAvailable exception (#1740)
- Fix always-false comparison warning in Canvas.cc.
- Fix Node.js crash when throwing from an onload or onerror handler.
v2.7.0
Note: This is the first prebuild served from Automattic/node-canvas. Previous release prebuilds are served from https://github.com/node-gfx/node-canvas-prebuilt/releases.