Skip to content

[NEUTRAL] Update dependency canvas to v3#443

Open
mend-for-github-com[bot] wants to merge 1 commit intodevfrom
whitesource-remediate/canvas-3.x
Open

[NEUTRAL] Update dependency canvas to v3#443
mend-for-github-com[bot] wants to merge 1 commit intodevfrom
whitesource-remediate/canvas-3.x

Conversation

@mend-for-github-com
Copy link
Contributor

@mend-for-github-com mend-for-github-com bot commented Feb 22, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
canvas 2.11.23.2.1 age adoption passing confidence

Release Notes

Automattic/node-canvas (canvas)

v3.2.1

Compare Source

==================

  • Fix error message HTTP response status code in image src setter
  • roundRect() shape incorrect when radii were large relative to rectangle size (#​2400)
  • Reject loadImage when src is null or invalid (#​2304)
  • Fix compilation on GCC 15 by including (#​2545)

v3.2.0

Compare Source

==================

Added
  • Added ctx.lang to set the ISO language code for text

v3.1.2

Compare Source

==================

Fixed
  • Fix crash when setting width/height on PDF, SVG canvas (#​2520)

v3.1.1

Compare Source

==================

Fixed
  • Fix a crash when SVGs without width or height are loaded (#​2486)
  • Fix fetching prebuilds during installation on certain newer versions of Node (#​2497)
  • Fixed issue with fillText that was breaking subsequent fillText calls (#​2171)
  • Fix svg rendering when the image is resized (#​2498)
  • Fix measureText with direction rtl textAlign start/end
  • Fix a crash in Node 24, due to external memory API change (#​2514)

v3.1.0

Compare Source

==================

Changed
  • Replaced simple-get with Node.js builtin fetch (#​2309)
  • ctx.font has a new C++ parser and is 2x-400x faster. Please file an issue if you experience different results, as caching has been removed.
  • The restriction of registering fonts before a canvas is created has been removed. You can now register a font as late as right before the fillText call (#​1921)
Added
  • Support for accessibility and links in PDFs
  • ctx.direction is implemented: 'rtl' or 'ltr' set the base direction of text
  • ctx.textAlign 'start' and 'end' are now 'right' and 'left' when ctx.direction === 'rtl'
Fixed
  • Fix a crash in getImageData when the rectangle is entirely outside the canvas. (#​2024)
  • Fix getImageData cropping the resulting ImageData when the given rectangle is partly outside the canvas. (#​1849)

v3.0.1

Compare Source

==================

Fixed
  • Fixed accidental depenency on ambient DOM types

v3.0.0

Compare Source

==================

This release notably changes to using N-API. 🎉

Breaking
  • Dropped support for Node.js 16.x and below.
Changed
  • Migrated to N-API (by way of node-addon-api) and removed libuv and v8 dependencies
  • Change from node-pre-gyp to prebuild-install
  • Defer the initialization of the op variable to the default switch case to avoid a compiler warning. (#​2229)
  • Use a default switch case with a null statement if some enum values aren't suppsed to be handled, this avoids a compiler warning. (#​2229)
  • Migrate from librsvg's deprecated rsvg_handle_get_dimensions() and rsvg_handle_render_cairo() functions to the new rsvg_handle_get_intrinsic_size_in_pixels() and rsvg_handle_render_document() respectively. (#​2229)
  • Avoid calling virtual methods in constructors/destructors to avoid bypassing virtual dispatch. (#​2229)
  • Remove unused private field backend in the Backend class. (#​2229)
  • Add Node.js v20 to CI. (#​2237)
  • Replaced dtslint with tsd (#​2313)
  • Changed PNG consts to static properties of Canvas class
  • Reverted improved font matching on Linux (#​1572) because it doesn't work if fonts are installed. If you experience degraded font selection, please file an issue and use v3.0.0-rc3 in the meantime.
Added
  • Added string tags to support class detection
  • Throw Cairo errors in canvas.toBuffer()
Fixed
  • Fix a case of use-after-free. (#​2229)
  • Fix usage of garbage value by filling the allocated memory entirely with zeros if it's not modified. (#​2229)
  • Fix a potential memory leak. (#​2229)
  • Fix the wrong type of setTransform
  • Fix the improper parsing of rgb functions issue. (#​2300)
  • Fix issue related to improper parsing of leading and trailing whitespaces in CSS color. (#​2301)
  • RGB functions should support real numbers now instead of just integers. (#​2339)
  • Allow alternate or properly escaped quotes within font-family names
  • Fix TextMetrics type to include alphabeticBaseline, emHeightAscent, and emHeightDescent properties
  • Fix class properties should have defaults as standard js classes (#​2390)
  • Fixed Exif orientation in JPEG files being ignored (#​1670)
  • Align DOMMatrix/DOMPoint to spec by adding missing methods

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

@mend-for-github-com mend-for-github-com bot changed the title fix(deps): update dependency canvas to v3 [NEUTRAL] Update dependency canvas to v3 Feb 26, 2025
@mend-for-github-com mend-for-github-com bot changed the title [NEUTRAL] Update dependency canvas to v3 fix(deps): update dependency canvas to v3 Mar 1, 2025
@mend-for-github-com mend-for-github-com bot changed the title fix(deps): update dependency canvas to v3 [NEUTRAL] Update dependency canvas to v3 Mar 2, 2025
@mend-for-github-com mend-for-github-com bot changed the title [NEUTRAL] Update dependency canvas to v3 fix(deps): update dependency canvas to v3 Mar 6, 2025
@mend-for-github-com mend-for-github-com bot force-pushed the whitesource-remediate/canvas-3.x branch from e4a9f0d to 47e8fc2 Compare March 6, 2025 14:25
@mend-for-github-com mend-for-github-com bot changed the title fix(deps): update dependency canvas to v3 [NEUTRAL] Update dependency canvas to v3 Mar 8, 2025
@mend-for-github-com mend-for-github-com bot changed the title [NEUTRAL] Update dependency canvas to v3 fix(deps): update dependency canvas to v3 Mar 8, 2025
@mend-for-github-com mend-for-github-com bot changed the title fix(deps): update dependency canvas to v3 [NEUTRAL] Update dependency canvas to v3 Mar 9, 2025
@mend-for-github-com mend-for-github-com bot changed the title [NEUTRAL] Update dependency canvas to v3 fix(deps): update dependency canvas to v3 Mar 13, 2025
@mend-for-github-com mend-for-github-com bot changed the title fix(deps): update dependency canvas to v3 [NEUTRAL] Update dependency canvas to v3 Mar 14, 2025
@mend-for-github-com mend-for-github-com bot changed the title [NEUTRAL] Update dependency canvas to v3 fix(deps): update dependency canvas to v3 Mar 15, 2025
@mend-for-github-com mend-for-github-com bot changed the title fix(deps): update dependency canvas to v3 [NEUTRAL] Update dependency canvas to v3 Mar 17, 2025
@mend-for-github-com mend-for-github-com bot force-pushed the whitesource-remediate/canvas-3.x branch from 47e8fc2 to 1b4dc58 Compare March 19, 2025 08:35
@mend-for-github-com mend-for-github-com bot force-pushed the whitesource-remediate/canvas-3.x branch from 1b4dc58 to dd5f5b5 Compare March 26, 2025 11:09
@mend-for-github-com mend-for-github-com bot changed the title [NEUTRAL] Update dependency canvas to v3 fix(deps): update dependency canvas to v3 May 22, 2025
@mend-for-github-com mend-for-github-com bot changed the title fix(deps): update dependency canvas to v3 [NEUTRAL] Update dependency canvas to v3 May 23, 2025
@mend-for-github-com mend-for-github-com bot changed the title [NEUTRAL] Update dependency canvas to v3 fix(deps): update dependency canvas to v3 May 24, 2025
@mend-for-github-com mend-for-github-com bot changed the title fix(deps): update dependency canvas to v3 [NEUTRAL] Update dependency canvas to v3 May 26, 2025
@mend-for-github-com mend-for-github-com bot force-pushed the whitesource-remediate/canvas-3.x branch 2 times, most recently from 2ac5e35 to 10e0ddb Compare June 26, 2025 19:25
@mend-for-github-com mend-for-github-com bot force-pushed the whitesource-remediate/canvas-3.x branch from 10e0ddb to 480c5e1 Compare August 19, 2025 18:31
@mend-for-github-com mend-for-github-com bot changed the title [NEUTRAL] Update dependency canvas to v3 [LOW] Update dependency canvas to v3 Oct 1, 2025
@mend-for-github-com mend-for-github-com bot changed the title [LOW] Update dependency canvas to v3 [NEUTRAL] Update dependency canvas to v3 Oct 2, 2025
@mend-for-github-com mend-for-github-com bot changed the title [NEUTRAL] Update dependency canvas to v3 [LOW] Update dependency canvas to v3 Oct 23, 2025
@mend-for-github-com mend-for-github-com bot changed the title [LOW] Update dependency canvas to v3 [NEUTRAL] Update dependency canvas to v3 Oct 24, 2025
@mend-for-github-com mend-for-github-com bot force-pushed the whitesource-remediate/canvas-3.x branch from 480c5e1 to 34d1abf Compare January 12, 2026 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants