-
-
Notifications
You must be signed in to change notification settings - Fork 723
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
base: main
Are you sure you want to change the base?
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.81% 91.33% -0.48%
==========================================
Files 279 279
Lines 38340 38340
Branches 6698 6663 -35
==========================================
- Hits 35200 35017 -183
- Misses 3007 3178 +171
- Partials 133 145 +12 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
@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? |
22 has been the lts for 7 months now, so i think we're plenty safe to use it.
https://endoflife.date/nodejs
CI breaks because of cache of
canvas
in node_modulesLaunch Checklist
CHANGELOG.md
under the## main
section.