-
Notifications
You must be signed in to change notification settings - Fork 10k
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
[api-minor] Update the canvas
package to version 3
#18922
Conversation
c51239c
to
78243c8
Compare
/botio unittest |
From: Bot.io (Linux m4)ReceivedCommand cmd_unittest from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.241.84.105:8877/7bae5fcd7fd1584/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_unittest from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.193.163.58:8877/c39df4e22c15f45/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/7bae5fcd7fd1584/output.txt Total script time: 2.63 mins
|
canvas
package to version 3
From: Bot.io (Windows)SuccessFull output at http://54.193.163.58:8877/c39df4e22c15f45/output.txt Total script time: 8.17 mins
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, with the comment below addressed. Thank you for doing this so that further canvas
updates are unblocked and we can finally work with Node 22!
This allows us to run the Node.js unit-tests in version 22, which is good since it'll very soon become the active LTS release; see https://github.com/nodejs/release#release-schedule.
This way we allow the rest of the packages to be loaded successfully, such that e.g. the Node.js unit-tests work correctly. Note that this occurred after updating the `node-canvas` package to version `3.0.0-rc2`, however it's not immediately clear to me if it's a problem there or in the `path2d` package; see also nilzona/path2d-polyfill/issues/84.
78243c8
to
54e00b0
Compare
[api-minor] Update the
canvas
package to version 3This allows us to run the Node.js unit-tests in version 22, which is good since it'll very soon become the active LTS release; see https://github.com/nodejs/release#release-schedule.
Catch errors when invoking
applyPath2DToCanvasRenderingContext
This way we allow the rest of the packages to be loaded successfully, such that e.g. the Node.js unit-tests work correctly.
Note that this occurred after updating the
node-canvas
package to version3.0.0-rc2
, however it's not immediately clear to me if it's a problem there or in thepath2d
package; see also Cannot assign to readonly property 'clip' of object '#<CanvasRenderingContext2D' nilzona/path2d-polyfill#84.