-
-
Notifications
You must be signed in to change notification settings - Fork 777
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
Node 20 -> 22 #5097
Node 20 -> 22 #5097
Conversation
I like it that there's a need to change only in one place! Having said that, CI need more tender love and care... |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5097 +/- ##
=======================================
Coverage 91.83% 91.84%
=======================================
Files 282 282
Lines 38908 38908
Branches 6820 6829 +9
=======================================
+ Hits 35733 35735 +2
+ Misses 3047 3046 -1
+ Partials 128 127 -1 ☔ View full report in Codecov by Sentry. |
@HarelM , CI is a lot better now. Basically, 2 things.
maplibre-gl-js/src/util/util.test.ts Lines 458 to 462 in 30ab703
maplibre-gl-js/src/util/offscreen_canvas_distorted.test.ts Lines 6 to 14 in 30ab703
|
Can we replace the canvas package with a vitest package somehow? I don't like using non-official packages... Also, what's the error you get that needs legacy peer deps flag? |
The error is that JSDOM has a peer dependency on "canvas": 2.x, and this upgrades to canvas 3.x. Canvas 3.x is breaking in the sense that it dropped support for Node 16, but JSDOM will still work perfectly fine with it. |
Is there a JSDom version that "is compatible" with canvas 3? Maybe a pre-release of JSDom? |
@birkskyum what's the status for this PR? Can we push it to finalization? |
Status is that the JSDOM team prefer to move forward only when a stable v3 of node-canvas is out. The 3.0.0-rc2 came out in june, so it appeared to progress quite slowly, but interestingly the rc3 came out only 5 days ago. And there are indications it could move forward any day now.
|
Looks like canvas 3.0 was released. |
The Peer deps are being updated in Jsdom |
Jsdom 26 is out now. It should unblock this |
Ahh, great! I was waiting for that. |
I've updated jsdom and canvas, let's see if this passes now. |
22 has been the lts for 7 months now, so i think we're plenty safe to use it.
https://endoflife.date/nodejs
Requires canvas v3 and jsdom v26
Launch Checklist
CHANGELOG.md
under the## main
section.