api.capes.dev
api.capes.dev copied to clipboard
Update dependency canvas to v2.11.2
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| canvas | 2.6.1 -> 2.11.2 |
Release Notes
Automattic/node-canvas
v2.11.2
==================
Fixed
- Building on Windows in CI (and maybe other Windows configurations?) (#2216)
v2.11.1
==================
Fixed
- Add missing property
canvasto theCanvasRenderingContext2Dtype - Fixed glyph positions getting rounded, resulting text having a slight
letter-spacingeffect - Fixed
ctx.fontnot being restored correctly afterctx.restore()(#1946)
v2.11.0
==================
Fixed
- Replace triple-slash directive in types with own types to avoid polluting TS modules with globals (#1656)
v2.10.2
==================
Fixed
- Fix
Assertion failed: (object->InternalFieldCount() > 0), function Unwrap, file nan_object_wrap.h, line 32.(#2025) -
textBaselineandtextAlignwere 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
==================
Fixed
- Fix
actualBoundingBoxLeftandactualBoundingBoxRightwhentextAlign='center'or'right'(#1909) - Fix
rgba(r,g,b,0)with alpha to 0 should parse as transparent, not opaque. (#2110)
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.filterstypes. (#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
deregisterAllFontsto the Typescript declaration file (#2096) - Add
User-Agentheader when requesting remote images (#2099)
v2.9.3
==================
Fixed
- Wrong fonts used when calling
registerFontmultiple times with the same family name (#2041)
v2.9.2
==================
Fixed
- All exports now work when Canvas is used in ES Modules (ESM). (#2047)
-
npm rebuildwill now re-fetch prebuilt binaries to avoidNODE_MODULE_VERSIONmismatch errors. (#1982)
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
getImageDataorputImageDatais 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.
- Allow rebuild of this library
v2.9.0
==================
Changed
- Refactor functions to classes.
- Changed
DOMPoint()constructor to check for parameter nullability. - Changed
DOMMatrix.jsto 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
deregisterAllFontsmethod 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 like
node_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
actualBoundingBoxLeftandactualBoundingBoxRightreturned bymeasureTextto 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
==================
Changed
- Switch CI to Github Actions. (Adds Windows and macOS builds.)
- Switch prebuilds to GitHub actions in the Automattic/node-canvas repository. Previously these were in the node-gfx/node-canvas-prebuilt and triggered manually.
- Speed up
fillStyle=andstrokeStyle=
Added
- Export
rsvgVersion. - CanvasPattern’s
setTransformmethod is no longer missing
Fixed
- Fix BMP issues. (#1497)
- Update typings to support jpg and addPage on NodeCanvasRenderingContext2D (#1509)
- Fix assertion failure when using Visual Studio Code debugger to inspect Image prototype (#1534)
- Fix signed/unsigned comparison warning introduced in 2.6.0, and function cast warnings with GCC8+
- Fix to compile without JPEG support (#1593).
- Fix compile errors with cairo
- Fix Image#complete if the image failed to load.
- Upgrade node-pre-gyp to v0.15.0 to use latest version of needle to fix error when downloading prebuilds.
- Don't throw if
fillStyleorstrokeStyleis 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.)
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.
- [ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.