Skip to content

chore: update jsdom to v26.0.0 #15473

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

andreibereczki
Copy link

@andreibereczki andreibereczki commented Jan 21, 2025

Summary

Increased version of jsdom to ^26.0.0.
#15325
#15217
CVE-2024-37890

Test plan

yarn add [email protected]
yarn add @types/[email protected]
Not a big deal.

22 tests are failing > but they are failing for me on main as well. No additional tests failed after the change.

Copy link

linux-foundation-easycla bot commented Jan 21, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

Copy link

netlify bot commented Jan 21, 2025

Deploy Preview for jestjs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit ca7e4cf
🔍 Latest deploy log https://app.netlify.com/sites/jestjs/deploys/6821cdf2868e6200085211c2
😎 Deploy Preview https://deploy-preview-15473--jestjs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@Smrtnyk
Copy link

Smrtnyk commented Jan 21, 2025

#15417
weren't there already multiple PRs to update jsdom?

@andreibereczki
Copy link
Author

#15417 weren't there already multiple PRs to update jsdom?

There were. And now there's this as well: #15461

@andreibereczki
Copy link
Author

Can anyone help with the e2e snapshot tests? <3

I've never done snapshot testing before and don't know how to fix the issues.

@jeremy-daley-kr
Copy link

Can anyone help with the e2e snapshot tests? <3

I've never done snapshot testing before and don't know how to fix the issues.

@andreibereczki Are you currently blocked on this? I can't see the failure locally.

@GavinMeierSonos
Copy link

Just pointing out Node 16 support was dropped in jsdom and the minium is now 18. Which could be the reason why the e2e tests for Node 16 are not passing.

@andreibereczki
Copy link
Author

@jeremy-daley-kr : well the e2e tests running on ci will prevent this pr from being merged, so i would consider that blocking.

Just pointing out Node 16 support was dropped in jsdom and the minium is now 18. Which could be the reason why the e2e tests for Node 16 are not passing.
yes, maybe. taking this into consideration: #15461 do you think it would be considered to drop the node 16 e2e tests anytime soon?

Copy link

This PR is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 30 days.

@github-actions github-actions bot added the Stale label Apr 30, 2025
@imnasnainaec
Copy link

@andreibereczki All the tests are passing on main again (since an April 18 commit), so you may want to update this branch.

@Julien-Marcou
Copy link

Julien-Marcou commented May 12, 2025

Also, I think you should update the canvas peer dependency to v3.0.0, as jsdom v26 is using canvas v3 now

  "peerDependencies": {
    "canvas": "^3.0.0",

This would get rid of the deprecation warnings regarding rimraf, npmlog, are-we-there-yet & gauge 😅

(While, upgrading to jsdom v26 allows to get rid of the deprecation warnings regarding abab & domexception)

@andreibereczki
Copy link
Author

@andreibereczki All the tests are passing on main again (since an April 18 commit), so you may want to update this branch.

after sync with main i get different build errors. Are these on main as well? They don't seem related to my changes.

@Julien-Marcou
Copy link

It looks like the yarn install updated the parse5 package from v7.2.1 to v7.3.0, which in turn updated the entities package from v4 to v6, which has the same issue as you have: inikulin/parse5#1481

So it's probably an issue within the entities package itself

@andreibereczki
Copy link
Author

do we wait for a fix or should we temporarily override the package version for parse5 for all dependants?

@Julien-Marcou
Copy link

I asked the maintainer of parse5 if they could fix the version of entities on their side, and they are looking into it, so we should be fine waiting for a fix

@jsangmeister
Copy link

also resolves #15507 :)

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.

7 participants