Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Snyk] Upgrade canvas from 2.6.1 to 2.11.0 #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

snyk-bot
Copy link

Snyk has created this PR to upgrade canvas from 2.6.1 to 2.11.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 10 versions ahead of your current version.
  • The recommended version was released 3 months ago, on 2022-12-22.

The recommended version fixes:

Severity Issue PriorityScore (*) Exploit Maturity
Arbitrary File Write
SNYK-JS-TAR-1579155
425/1000
Why? CVSS 8.5
No Known Exploit
Arbitrary File Write
SNYK-JS-TAR-1579152
425/1000
Why? CVSS 8.5
No Known Exploit
Arbitrary File Write
SNYK-JS-TAR-1579147
425/1000
Why? CVSS 8.5
No Known Exploit
Arbitrary File Overwrite
SNYK-JS-TAR-1536531
425/1000
Why? CVSS 8.5
No Known Exploit
Prototype Pollution
SNYK-JS-INI-1048974
425/1000
Why? CVSS 8.5
Proof of Concept
Arbitrary File Overwrite
SNYK-JS-TAR-1536528
425/1000
Why? CVSS 8.5
No Known Exploit
Information Exposure
SNYK-JS-SIMPLEGET-2361683
425/1000
Why? CVSS 8.5
Proof of Concept
Regular Expression Denial of Service (ReDoS)
SNYK-JS-ANSIREGEX-1583908
425/1000
Why? CVSS 8.5
Proof of Concept
Regular Expression Denial of Service (ReDoS)
SNYK-JS-TAR-1536758
425/1000
Why? CVSS 8.5
No Known Exploit

(*) Note that the real score may have changed since the PR was raised.

Release notes
Package name: canvas
  • 2.11.0 - 2022-12-22

    Fixed

    • Replace triple-slash directive in types with own types to avoid polluting TS modules with globals (#1656)
  • 2.10.2 - 2022-10-30

    Fixed

    • Fix Assertion failed: (object->InternalFieldCount() > 0), function Unwrap, file nan_object_wrap.h, line 32. (#2025)
    • textBaseline and textAlign were not saved/restored by save()/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).
  • 2.10.1 - 2022-09-07

    Fixed

    • Fix actualBoundingBoxLeft and actualBoundingBoxRight when textAlign='center' or 'right' (#1909)
    • Fix rgba(r,g,b,0) with alpha to 0 should parse as transparent, not opaque. (#2110)
  • 2.10.0 - 2022-09-04

    Added

    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)
  • 2.9.3 - 2022-06-24

    Fixed

    • Wrong fonts used when calling registerFont multiple times with the same family name (#2041)
  • 2.9.2 - 2022-06-23

    Fixed

    • All exports now work when Canvas is used in ES Modules (ESM). (#2047)
    • npm rebuild will now re-fetch prebuilt binaries to avoid NODE_MODULE_VERSION mismatch errors. (#1982)
  • 2.9.1 - 2022-03-19

    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 or putImageData 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.
  • 2.9.0 - 2022-01-17

    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
  • 2.8.0 - 2021-05-17

    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() and invertSelf() to DOMMatrix (#1648)
    • Add support for context.getTransform() (#1769)
    • Add support for context.setTransform(dommatrix) (#1769)

    Fixed

    • Fix actualBoundingBoxLeft and actualBoundingBoxRight returned by measureText 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.
  • 2.7.0 - 2021-03-01

    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.

  • 2.6.1 - 2019-10-06
from canvas GitHub release notes
Commit messages
Package name: canvas
  • fc160f5 v2.11.0
  • 40b4382 use tailored types instead of extending DOM
  • 672104c v2.10.2
  • cc32159 src: shorten receiver checks
  • ad18c6c src: shorten copy assignment operator decl for Point
  • 2876b6e Bugfix/Node.js 18 -> Assertion failed: (object->InternalFieldCount() > 0) (#2133)
  • 0e6504a remove save() limit, improve save/restore perf, fix some props
  • b3e7df3 v2.10.1
  • bc75c6a add line in CHANGELOG
  • 9374943 Parse rgba(r,g,b,0) correctly
  • 6862532 Fix actualBoundingBoxLeft/Right with center/right alignment (#2109)
  • 561d933 v2.10.0
  • 3fb4ed9 fix: add user agent to remote images request
  • dce0fd1 Add roundRect() support
  • eba1e4a Adds deregisterAllFonts to the typescript declaration file (#2096)
  • 10b208e un-skip 2d.path.arc.nonfinite; now fixed
  • 73d7893 fix arc geometry calculations
  • a484cf2 fix crashes and hangs in arc()
  • 288f4bf add WPT tests
  • bdc497a Use node-gyp 8.x for Win CI
  • c6a1546 fix repeat-x/y support in createPattern()
  • f8d4949 Fix FITLER/FILTER typo in index.d.ts
  • 5255195 Parse rgba(r,g,b) correctly
  • b0d4f44 Update instructions for OSX local build

Compare


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:

🧐 View latest project report

🛠 Adjust upgrade PR settings

🔕 Ignore this dependency or unsubscribe from future upgrade PRs

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.

1 participant