Skip to content

Commit

Permalink
feat: upgrade to JSDOM 19 (#12290)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelltoth authored Feb 10, 2022
1 parent a651b65 commit 4255241
Show file tree
Hide file tree
Showing 3 changed files with 121 additions and 72 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

- `[expect]` [**BREAKING**] Migrate to ESM ([#12344](https://github.com/facebook/jest/pull/12344))
- `[jest-config]` [**BREAKING**] Stop shipping `jest-jasmine2` by default ([#12355](https://github.com/facebook/jest/pull/12355))
- `[jest-environment-jsdom]` [**BREAKING**] Upgrade jsdom to 19.0.0 ([#12290](https://github.com/facebook/jest/pull/12290))
- `[jest-environment-jsdom]` [**BREAKING**] Add default `browser` condition to `exportConditions` for `jsdom` environment ([#11924](https://github.com/facebook/jest/pull/11924))
- `[jest-environment-jsdom]` [**BREAKING**] Migrate to ESM ([#12340](https://github.com/facebook/jest/pull/12340))
- `[jest-environment-node]` [**BREAKING**] Add default `node` and `node-addon` conditions to `exportConditions` for `node` environment ([#11924](https://github.com/facebook/jest/pull/11924))
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-environment-jsdom/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@types/node": "*",
"jest-mock": "^27.5.1",
"jest-util": "^27.5.1",
"jsdom": "^16.6.0"
"jsdom": "^19.0.0"
},
"devDependencies": {
"@jest/test-utils": "^27.5.1",
Expand Down
190 changes: 119 additions & 71 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4565,6 +4565,13 @@ __metadata:
languageName: node
linkType: hard

"@tootallnate/once@npm:2":
version: 2.0.0
resolution: "@tootallnate/once@npm:2.0.0"
checksum: ad87447820dd3f24825d2d947ebc03072b20a42bfc96cbafec16bff8bbda6c1a81fcb0be56d5b21968560c5359a0af4038a68ba150c3e1694fe4c109a063bed8
languageName: node
linkType: hard

"@trysound/sax@npm:0.2.0":
version: 0.2.0
resolution: "@trysound/sax@npm:0.2.0"
Expand Down Expand Up @@ -5783,7 +5790,7 @@ __metadata:
languageName: node
linkType: hard

"acorn@npm:^8.0.4, acorn@npm:^8.2.4, acorn@npm:^8.4.1, acorn@npm:^8.7.0":
"acorn@npm:^8.0.4, acorn@npm:^8.4.1, acorn@npm:^8.5.0, acorn@npm:^8.7.0":
version: 8.7.0
resolution: "acorn@npm:8.7.0"
bin:
Expand Down Expand Up @@ -8417,10 +8424,10 @@ __metadata:
languageName: node
linkType: hard

"cssom@npm:^0.4.4":
version: 0.4.4
resolution: "cssom@npm:0.4.4"
checksum: e3bc1076e7ee4213d4fef05e7ae03bfa83dc05f32611d8edc341f4ecc3d9647b89c8245474c7dd2cdcdb797a27c462e99da7ad00a34399694559f763478ff53f
"cssom@npm:^0.5.0":
version: 0.5.0
resolution: "cssom@npm:0.5.0"
checksum: 823471aa30091c59e0a305927c30e7768939b6af70405808f8d2ce1ca778cddcb24722717392438329d1691f9a87cb0183b64b8d779b56a961546d54854fde01
languageName: node
linkType: hard

Expand Down Expand Up @@ -8463,14 +8470,14 @@ __metadata:
languageName: node
linkType: hard

"data-urls@npm:^2.0.0":
version: 2.0.0
resolution: "data-urls@npm:2.0.0"
"data-urls@npm:^3.0.1":
version: 3.0.1
resolution: "data-urls@npm:3.0.1"
dependencies:
abab: ^2.0.3
whatwg-mimetype: ^2.3.0
whatwg-url: ^8.0.0
checksum: 97caf828aac25e25e04ba6869db0f99c75e6859bb5b424ada28d3e7841941ebf08ddff3c1b1bb4585986bd507a5d54c2a716853ea6cb98af877400e637393e71
whatwg-mimetype: ^3.0.0
whatwg-url: ^10.0.0
checksum: 00c71280d5d8146a2f19f3fce3ce59c3b860c66cd584f4e7db8764477a9c97966fa06543c9d9d28b762784f50e21c2e2ccb2d0be24b392ec82eb21daf7804b3e
languageName: node
linkType: hard

Expand Down Expand Up @@ -8542,7 +8549,7 @@ __metadata:
languageName: node
linkType: hard

"decimal.js@npm:^10.2.1":
"decimal.js@npm:^10.3.1":
version: 10.3.1
resolution: "decimal.js@npm:10.3.1"
checksum: 0351ac9f05fe050f23227aa6a4573bee2d58fa7378fcf28d969a8c789525032effb488a90320fd3fe86a66e17b4bc507d811b15eada5b7f0e7ec5d2af4c24a59
Expand Down Expand Up @@ -8973,12 +8980,12 @@ __metadata:
languageName: node
linkType: hard

"domexception@npm:^2.0.1":
version: 2.0.1
resolution: "domexception@npm:2.0.1"
"domexception@npm:^4.0.0":
version: 4.0.0
resolution: "domexception@npm:4.0.0"
dependencies:
webidl-conversions: ^5.0.0
checksum: d638e9cb05c52999f1b2eb87c374b03311ea5b1d69c2f875bc92da73e17db60c12142b45c950228642ff7f845c536b65305483350d080df59003a653da80b691
webidl-conversions: ^7.0.0
checksum: ddbc1268edf33a8ba02ccc596735ede80375ee0cf124b30d2f05df5b464ba78ef4f49889b6391df4a04954e63d42d5631c7fcf8b1c4f12bc531252977a5f13d5
languageName: node
linkType: hard

Expand Down Expand Up @@ -10570,6 +10577,17 @@ __metadata:
languageName: node
linkType: hard

"form-data@npm:^4.0.0":
version: 4.0.0
resolution: "form-data@npm:4.0.0"
dependencies:
asynckit: ^0.4.0
combined-stream: ^1.0.8
mime-types: ^2.1.12
checksum: 01135bf8675f9d5c61ff18e2e2932f719ca4de964e3be90ef4c36aacfc7b9cb2fceb5eca0b7e0190e3383fe51c5b37f4cb80b62ca06a99aaabfcfd6ac7c9328c
languageName: node
linkType: hard

"form-data@npm:~2.3.2":
version: 2.3.3
resolution: "form-data@npm:2.3.3"
Expand Down Expand Up @@ -11508,12 +11526,12 @@ __metadata:
languageName: node
linkType: hard

"html-encoding-sniffer@npm:^2.0.1":
version: 2.0.1
resolution: "html-encoding-sniffer@npm:2.0.1"
"html-encoding-sniffer@npm:^3.0.0":
version: 3.0.0
resolution: "html-encoding-sniffer@npm:3.0.0"
dependencies:
whatwg-encoding: ^1.0.5
checksum: bf30cce461015ed7e365736fcd6a3063c7bc016a91f74398ef6158886970a96333938f7c02417ab3c12aa82e3e53b40822145facccb9ddfbcdc15a879ae4d7ba
whatwg-encoding: ^2.0.0
checksum: 8d806aa00487e279e5ccb573366a951a9f68f65c90298eac9c3a2b440a7ffe46615aff2995a2f61c6746c639234e6179a97e18ca5ccbbf93d3725ef2099a4502
languageName: node
linkType: hard

Expand Down Expand Up @@ -11686,6 +11704,17 @@ __metadata:
languageName: node
linkType: hard

"http-proxy-agent@npm:^5.0.0":
version: 5.0.0
resolution: "http-proxy-agent@npm:5.0.0"
dependencies:
"@tootallnate/once": 2
agent-base: 6
debug: 4
checksum: e2ee1ff1656a131953839b2a19cd1f3a52d97c25ba87bd2559af6ae87114abf60971e498021f9b73f9fd78aea8876d1fb0d4656aac8a03c6caa9fc175f22b786
languageName: node
linkType: hard

"http-proxy-middleware@npm:^2.0.0":
version: 2.0.1
resolution: "http-proxy-middleware@npm:2.0.1"
Expand Down Expand Up @@ -11756,7 +11785,7 @@ __metadata:
languageName: node
linkType: hard

"iconv-lite@npm:^0.6.2":
"iconv-lite@npm:0.6.3, iconv-lite@npm:^0.6.2":
version: 0.6.3
resolution: "iconv-lite@npm:0.6.3"
dependencies:
Expand Down Expand Up @@ -12872,7 +12901,7 @@ __metadata:
"@types/node": "*"
jest-mock: ^27.5.1
jest-util: ^27.5.1
jsdom: ^16.6.0
jsdom: ^19.0.0
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -13568,22 +13597,22 @@ __metadata:
languageName: node
linkType: hard

"jsdom@npm:^16.6.0":
version: 16.7.0
resolution: "jsdom@npm:16.7.0"
"jsdom@npm:^19.0.0":
version: 19.0.0
resolution: "jsdom@npm:19.0.0"
dependencies:
abab: ^2.0.5
acorn: ^8.2.4
acorn: ^8.5.0
acorn-globals: ^6.0.0
cssom: ^0.4.4
cssom: ^0.5.0
cssstyle: ^2.3.0
data-urls: ^2.0.0
decimal.js: ^10.2.1
domexception: ^2.0.1
data-urls: ^3.0.1
decimal.js: ^10.3.1
domexception: ^4.0.0
escodegen: ^2.0.0
form-data: ^3.0.0
html-encoding-sniffer: ^2.0.1
http-proxy-agent: ^4.0.1
form-data: ^4.0.0
html-encoding-sniffer: ^3.0.0
http-proxy-agent: ^5.0.0
https-proxy-agent: ^5.0.0
is-potential-custom-element-name: ^1.0.1
nwsapi: ^2.2.0
Expand All @@ -13592,19 +13621,19 @@ __metadata:
symbol-tree: ^3.2.4
tough-cookie: ^4.0.0
w3c-hr-time: ^1.0.2
w3c-xmlserializer: ^2.0.0
webidl-conversions: ^6.1.0
whatwg-encoding: ^1.0.5
whatwg-mimetype: ^2.3.0
whatwg-url: ^8.5.0
ws: ^7.4.6
xml-name-validator: ^3.0.0
w3c-xmlserializer: ^3.0.0
webidl-conversions: ^7.0.0
whatwg-encoding: ^2.0.0
whatwg-mimetype: ^3.0.0
whatwg-url: ^10.0.0
ws: ^8.2.3
xml-name-validator: ^4.0.0
peerDependencies:
canvas: ^2.5.0
peerDependenciesMeta:
canvas:
optional: true
checksum: 454b83371857000763ed31130a049acd1b113e3b927e6dcd75c67ddc30cdd242d7ebcac5c2294b7a1a6428155cb1398709c573b3c6d809218692ea68edd93370
checksum: 94b693bf4a394097dd96705550bb7b6cd3c8db3c5414e6e9c92a0995ed8b61067597da2f37fca6bed4b5a2f1ef33960ee759522156dccd0b306311988ea87cfb
languageName: node
linkType: hard

Expand Down Expand Up @@ -20803,6 +20832,15 @@ __metadata:
languageName: node
linkType: hard

"tr46@npm:^3.0.0":
version: 3.0.0
resolution: "tr46@npm:3.0.0"
dependencies:
punycode: ^2.1.1
checksum: 44c3cc6767fb800490e6e9fd64fd49041aa4e49e1f6a012b34a75de739cc9ed3a6405296072c1df8b6389ae139c5e7c6496f659cfe13a04a4bff3a1422981270
languageName: node
linkType: hard

"tr46@npm:~0.0.3":
version: 0.0.3
resolution: "tr46@npm:0.0.3"
Expand Down Expand Up @@ -21767,12 +21805,12 @@ __metadata:
languageName: node
linkType: hard

"w3c-xmlserializer@npm:^2.0.0":
version: 2.0.0
resolution: "w3c-xmlserializer@npm:2.0.0"
"w3c-xmlserializer@npm:^3.0.0":
version: 3.0.0
resolution: "w3c-xmlserializer@npm:3.0.0"
dependencies:
xml-name-validator: ^3.0.0
checksum: ae25c51cf71f1fb2516df1ab33a481f83461a117565b95e3d0927432522323f93b1b2846cbb60196d337970c421adb604fc2d0d180c6a47a839da01db5b9973b
xml-name-validator: ^4.0.0
checksum: 0af8589942eeb11c9fe29eb31a1a09f3d5dd136aea53a9848dfbabff79ac0dd26fe13eb54d330d5555fe27bb50b28dca0715e09f9cc2bfa7670ccc8b7f919ca2
languageName: node
linkType: hard

Expand Down Expand Up @@ -21861,20 +21899,20 @@ __metadata:
languageName: node
linkType: hard

"webidl-conversions@npm:^5.0.0":
version: 5.0.0
resolution: "webidl-conversions@npm:5.0.0"
checksum: ccf1ec2ca7c0b5671e5440ace4a66806ae09c49016ab821481bec0c05b1b82695082dc0a27d1fe9d804d475a408ba0c691e6803fd21be608e710955d4589cd69
languageName: node
linkType: hard

"webidl-conversions@npm:^6.1.0":
version: 6.1.0
resolution: "webidl-conversions@npm:6.1.0"
checksum: 1f526507aa491f972a0c1409d07f8444e1d28778dfa269a9971f2e157182f3d496dc33296e4ed45b157fdb3bf535bb90c90bf10c50dcf1dd6caacb2a34cc84fb
languageName: node
linkType: hard

"webidl-conversions@npm:^7.0.0":
version: 7.0.0
resolution: "webidl-conversions@npm:7.0.0"
checksum: f05588567a2a76428515333eff87200fae6c83c3948a7482ebb109562971e77ef6dc49749afa58abb993391227c5697b3ecca52018793e0cb4620a48f10bd21b
languageName: node
linkType: hard

"webpack-bundle-analyzer@npm:^4.4.2":
version: 4.5.0
resolution: "webpack-bundle-analyzer@npm:4.5.0"
Expand Down Expand Up @@ -22050,12 +22088,12 @@ __metadata:
languageName: node
linkType: hard

"whatwg-encoding@npm:^1.0.5":
version: 1.0.5
resolution: "whatwg-encoding@npm:1.0.5"
"whatwg-encoding@npm:^2.0.0":
version: 2.0.0
resolution: "whatwg-encoding@npm:2.0.0"
dependencies:
iconv-lite: 0.4.24
checksum: 5be4efe111dce29ddee3448d3915477fcc3b28f991d9cf1300b4e50d6d189010d47bca2f51140a844cf9b726e8f066f4aee72a04d687bfe4f2ee2767b2f5b1e6
iconv-lite: 0.6.3
checksum: 7087810c410aa9b689cbd6af8773341a53cdc1f3aae2a882c163bd5522ec8ca4cdfc269aef417a5792f411807d5d77d50df4c24e3abb00bb60192858a40cc675
languageName: node
linkType: hard

Expand All @@ -22066,10 +22104,20 @@ __metadata:
languageName: node
linkType: hard

"whatwg-mimetype@npm:^2.3.0":
version: 2.3.0
resolution: "whatwg-mimetype@npm:2.3.0"
checksum: 23eb885940bcbcca4ff841c40a78e9cbb893ec42743993a42bf7aed16085b048b44b06f3402018931687153550f9a32d259dfa524e4f03577ab898b6965e5383
"whatwg-mimetype@npm:^3.0.0":
version: 3.0.0
resolution: "whatwg-mimetype@npm:3.0.0"
checksum: ce08bbb36b6aaf64f3a84da89707e3e6a31e5ab1c1a2379fd68df79ba712a4ab090904f0b50e6693b0dafc8e6343a6157e40bf18fdffd26e513cf95ee2a59824
languageName: node
linkType: hard

"whatwg-url@npm:^10.0.0":
version: 10.0.0
resolution: "whatwg-url@npm:10.0.0"
dependencies:
tr46: ^3.0.0
webidl-conversions: ^7.0.0
checksum: a21ec309c5cc743fe9414509408bedf65eaf0fb5c17ac66baa08ef12fce16da4dd30ce90abefbd5a716408301c58a73666dabfd5042cf4242992eb98b954f861
languageName: node
linkType: hard

Expand All @@ -22094,7 +22142,7 @@ __metadata:
languageName: node
linkType: hard

"whatwg-url@npm:^8.0.0, whatwg-url@npm:^8.4.0, whatwg-url@npm:^8.5.0":
"whatwg-url@npm:^8.4.0":
version: 8.7.0
resolution: "whatwg-url@npm:8.7.0"
dependencies:
Expand Down Expand Up @@ -22496,7 +22544,7 @@ __metadata:
languageName: node
linkType: hard

"ws@npm:^7, ws@npm:^7.3.1, ws@npm:^7.4.6":
"ws@npm:^7, ws@npm:^7.3.1":
version: 7.5.6
resolution: "ws@npm:7.5.6"
peerDependencies:
Expand All @@ -22511,7 +22559,7 @@ __metadata:
languageName: node
linkType: hard

"ws@npm:^8.4.2":
"ws@npm:^8.2.3, ws@npm:^8.4.2":
version: 8.5.0
resolution: "ws@npm:8.5.0"
peerDependencies:
Expand Down Expand Up @@ -22561,10 +22609,10 @@ __metadata:
languageName: node
linkType: hard

"xml-name-validator@npm:^3.0.0":
version: 3.0.0
resolution: "xml-name-validator@npm:3.0.0"
checksum: b3ac459afed783c285bb98e4960bd1f3ba12754fd4f2320efa0f9181ca28928c53cc75ca660d15d205e81f92304419afe94c531c7cfb3e0649aa6d140d53ecb0
"xml-name-validator@npm:^4.0.0":
version: 4.0.0
resolution: "xml-name-validator@npm:4.0.0"
checksum: af100b79c29804f05fa35aa3683e29a321db9b9685d5e5febda3fa1e40f13f85abc40f45a6b2bf7bee33f68a1dc5e8eaef4cec100a304a9db565e6061d4cb5ad
languageName: node
linkType: hard

Expand Down

0 comments on commit 4255241

Please sign in to comment.