Open
Conversation
Snyk has created this PR to upgrade canvas from 2.11.2 to 3.2.0. See this package in npm: canvas See this project in Snyk: https://app.snyk.io/org/dustin4444/project/35fbc727-b7bf-4ca2-87a4-c1bcb92fdf05?utm_source=github&utm_medium=referral&page=upgrade-pr
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Important Review skippedIgnore keyword(s) in the title. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Snyk has created this PR to upgrade canvas from 2.11.2 to 3.2.0.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
The recommended version is 12 versions ahead of your current version.
The recommended version was released 2 months ago.
Issues fixed by the recommended upgrade:
SNYK-JS-ANSIREGEX-1583908
SNYK-JS-JSONSCHEMA-1920922
SNYK-JS-LODASH-1040724
SNYK-JS-AXIOS-1579269
SNYK-JS-NORMALIZEURL-1296539
SNYK-JS-BRACES-6838727
SNYK-JS-QS-3153490
SNYK-JS-SEMVER-3247795
SNYK-JS-SEMVER-3247795
SNYK-JS-SEMVER-3247795
SNYK-JS-SIMPLEGET-2361683
SNYK-JS-ELLIPTIC-8172694
SNYK-JS-ETHERS-1586048
SNYK-JS-FOLLOWREDIRECTS-6141137
SNYK-JS-INI-1048974
SNYK-JS-LODASH-1018905
SNYK-JS-MICROMATCH-6838728
SNYK-JS-BABELRUNTIMECOREJS3-9397696
SNYK-JS-MINIMATCH-3050818
SNYK-JS-NWSAPI-2841516
SNYK-JS-PATHPARSE-1077067
SNYK-JS-PROMPTS-1729737
SNYK-JS-TRIMOFFNEWLINES-1296850
SNYK-JS-WS-1296835
SNYK-JS-FOLLOWREDIRECTS-2332181
SNYK-JS-FOLLOWREDIRECTS-6444610
SNYK-JS-GLOBPARENT-1016905
SNYK-JS-HOSTEDGITINFO-1088355
SNYK-JS-HTTPCACHESEMANTICS-3248783
SNYK-JS-BRACEEXPANSION-9789073
SNYK-JS-MINIMIST-2429795
SNYK-JS-ELLIPTIC-7577916
SNYK-JS-ELLIPTIC-7577917
SNYK-JS-ELLIPTIC-7577918
SNYK-JS-TAR-6476909
SNYK-JS-WORDWRAP-3149973
SNYK-JS-ELLIPTIC-8720086
SNYK-JS-FOLLOWREDIRECTS-2396346
Release notes
Package name: canvas
-
3.2.0 - 2025-08-19
- Added
-
3.1.2 - 2025-06-26
- Fix crash when setting width/height on PDF, SVG canvas (#2520)
-
3.1.1 - 2025-06-19
- 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)
-
3.1.0 - 2025-01-22
- Replaced
- 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
- Support for accessibility and links in PDFs
- Fix a crash in
- Fix
-
3.0.1 - 2024-12-31
- Fixed accidental depenency on ambient DOM types
-
3.0.0 - 2024-12-23
- Dropped support for Node.js 16.x and below.
- 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
- Use a
- Migrate from librsvg's deprecated
- Avoid calling virtual methods in constructors/destructors to avoid bypassing virtual dispatch. (#2229)
- Remove unused private field
- Add Node.js v20 to CI. (#2237)
- Replaced
- 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 string tags to support class detection
- Throw Cairo errors in canvas.toBuffer()
- 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
-
3.0.0-rc3 - 2024-12-07
- Dropped support for Node.js 16.x and below.
- 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
- Use a
- Migrate from librsvg's deprecated
- Avoid calling virtual methods in constructors/destructors to avoid bypassing virtual dispatch. (#2229)
- Remove unused private field
- Add Node.js v20 to CI. (#2237)
- Replaced
- Changed PNG consts to static properties of Canvas class
- Added string tags to support class detection
- Throw Cairo errors in canvas.toBuffer()
- 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)
-
3.0.0-rc2 - 2024-06-20
- Dropped support for Node.js 16.x and below.
- 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
- Use a
- Migrate from librsvg's deprecated
- Avoid calling virtual methods in constructors/destructors to avoid bypassing virtual dispatch. (#2229)
- Remove unused private field
- Add Node.js v20 to CI. (#2237)
- Replaced
- Added string tags to support class detection
- 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
-
3.0.0-rc1e - 2024-06-20
-
3.0.0-rc1d - 2024-06-19
-
3.0.0-rc1c - 2024-06-19
-
3.0.0-rc1b - 2024-06-19
-
2.11.2 - 2023-04-02
from canvas GitHub release notes3.2.0
Added
ctx.langto set the ISO language code for text3.1.2
Fixed
3.1.1
This release also introduces arm64 prebuilds for Linux!
Fixed
3.1.0
simple-getwithNode.js builtinfetch(#2309)ctx.fonthas a new C++ parser and is 2x-400x faster. Please file an issue if you experience different results, as caching has been removed.fillTextcall (#1921)Added
ctx.directionis implemented:'rtl'or'ltr'set the base direction of textctx.textAlign'start'and'end'are now'right'and'left'whenctx.direction === 'rtl'Fixed
getImageDatawhen the rectangle is entirely outside the canvas. (#2024)getImageDatacropping the resultingImageDatawhen the given rectangle is partly outside the canvas. (#1849)3.0.1
Fixed
3.0.0
This release notably changes to using N-API. 🎉
Breaking
Changed
opvariable to thedefaultswitch case to avoid a compiler warning. (#2229)defaultswitch 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)backendin theBackendclass. (#2229)dtslintwithtsd(#2313)Added
Fixed
This release notably changes to using N-API. 🎉
Breaking
Changed
opvariable to thedefaultswitch case to avoid a compiler warning. (#2229)defaultswitch 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)backendin theBackendclass. (#2229)dtslintwithtsd(#2313)Added
Fixed
Note
Prebuilds are currently only available for Linux (x64, glibc), macOS (x64) and Windows (x64). Please give this version a try and let us know if you run into issues!
This release notably changes to using N-API. 🎉
Breaking
Changed
opvariable to thedefaultswitch case to avoid a compiler warning. (#2229)defaultswitch 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)backendin theBackendclass. (#2229)dtslintwithtsd(#2313)Added
Fixed
Important
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information: