jestjs / jest

Delightful JavaScript Testing.
https://jestjs.io
MIT License
44.28k stars 6.47k forks source link

[Feature]: Bump `jsdom` versions from 22 to 24 #15217

Closed aaronzshey closed 3 months ago

aaronzshey commented 3 months ago

🚀 Feature Proposal

Jest packages jest-environment-jsdom-abstract and jest-environment-jsdom currently depend on jsdom version 22. This version of jsdom depends on abab and domexception, which have both been deprecated, and are not present in jsdom 24

Motivation

By eliminating deprecated packages, jest can avoid serving old packages to its 23 million weekly downloaders.

Example

//-- package.json

dependencies {
jsdom: 24
}

Pitch

Deprecated packages are an eyesore in npm install output and also risk containing unnoticed security vulnerabilities. Given that abab and domexception aren't being used in the latest version of jsdom, Jest should upgrade to jsdom 24 before jest 30 is released.

SimenB commented 3 months ago

https://github.com/jestjs/jest/issues/15148#issuecomment-2200112837

github-actions[bot] commented 2 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.