Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 89cf9b7

Browse files
committed
Make @types/jsdom a peer dependency of jest-environment-jsdom-abstract
Consumers of jest-environment-jsdom-abstract can now provide the type package version that matches their installed jsdom version. Just like the jsdom peer dependency, this uses a star to allow consumers to pick their precise version. As a use case, @types/jsdom recently released a new version and even though I updated this package within my project, jest-environment-jsdom-abstract continues to reference and older version.
1 parent c24dcd4 commit 89cf9b7

3 files changed

Lines changed: 322 additions & 22 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
### Fixes
44

55
- `[jest-runtime]` Fall back to native ESM when a `.js` file contains ESM syntax but has no `"type":"module"` marker ([#16152](https://github.com/jestjs/jest/pull/16152))
6+
- `[jest-environment-jsdom-abstract]` Make @types/jsdom a peer dependency with a lax version constraint.
67

78
### Chore & Maintenance
89

packages/jest-environment-jsdom-abstract/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@
2222
"@jest/environment": "workspace:*",
2323
"@jest/fake-timers": "workspace:*",
2424
"@jest/types": "workspace:*",
25-
"@types/jsdom": "^21.1.7",
2625
"@types/node": "*",
2726
"jest-mock": "workspace:*",
2827
"jest-util": "workspace:*"
2928
},
3029
"devDependencies": {
3130
"@jest/test-utils": "workspace:*",
32-
"jsdom": "^26.1.0"
31+
"jsdom": "^28.0.2"
3332
},
3433
"peerDependencies": {
34+
"@types/jsdom": "*",
3535
"canvas": "^3.0.0",
3636
"jsdom": "*"
3737
},

0 commit comments

Comments
 (0)