-
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
Upgrade canvas
to version 3.0.0
#18049
Comments
Given that Node.js 21 is no longer maintained, according to https://github.com/nodejs/Release/blob/6209d04302e62156b964a605f619283582334c95/schedule.json#L117-L121, should we stop testing in that environment? |
On the one hand I think we should, but on the other hand it's the highest version we have at the moment because switching back to What do you think about this? |
I actually tried updating that earlier today, but unfortunately it didn't seem to work on GitHub actions; here's the patch: master...Snuffleupagus:pdf.js:node-canvas-3 |
canvas
to version 3.0.0
Testing with Node 21 has been removed in #18505, so we can only more forward with testing with Node 22 or newer once there is a resolution for the |
@timvandermeij would you mind briefly explaining what the implications are here short term? Should we be using node-canvas@next? Is there anything special we should be doing / configuring or keeping an eye out for? Thanks! |
For now we keep using |
This comment was marked as outdated.
This comment was marked as outdated.
There's not been any recent releases, so nothing has changed since #18049 (comment) was made. (And please refrain from needlessly tagging users, since that creates notification spam.) |
This has been fixed, and installing However, running
|
In PR #18009 the GitHub Actions CI workflow has temporary been updated to not use the latest Node.js version (22 as of writing) but Node.js 21 instead because the
canvas
dependency doesn't provide pre-built binaries for Node 22.js yet. We don't want to build it ourselves because that'd require additional complexity for local and workflow installations, and sadly it looks like this may take some time to resolve upstream given that Automattic/node-canvas#2377 and the corresponding release tracking issue Automattic/node-canvas#2232 didn't have recent updates. To avoid having failing builds in the meantime, we chose to pin Node.js to version 21 for the time being.If Automattic/node-canvas#2377 is resolved upstream and a new release is published with pre-built binaries, we should update to that new version and revert e561a4a so we test against the latest version again.
The text was updated successfully, but these errors were encountered: