forked from forem/forem
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump jsdom from 16.7.0 to 18.0.0 (forem#15047)
* Bump jsdom from 16.7.0 to 18.0.0 Bumps [jsdom](https://github.com/jsdom/jsdom) from 16.7.0 to 18.0.0. - [Release notes](https://github.com/jsdom/jsdom/releases) - [Changelog](https://github.com/jsdom/jsdom/blob/master/Changelog.md) - [Commits](jsdom/jsdom@16.7.0...18.0.0) --- updated-dependencies: - dependency-name: jsdom dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * Added custom environment for JS DOM to support text encoding/decoding. * Fixed yarn.lock merge conflict. Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Nick Taylor <[email protected]> Co-authored-by: Ben Halpern <[email protected]>
- Loading branch information
1 parent
549336b
commit d394786
Showing
4 changed files
with
146 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* eslint-env node */ | ||
// See https://github.com/jsdom/jsdom/issues/2524#issuecomment-736672511 | ||
const Environment = require('jest-environment-jsdom'); | ||
|
||
module.exports = class CustomTestEnvironment extends Environment { | ||
async setup() { | ||
await super.setup(); | ||
if (typeof this.global.TextEncoder === 'undefined') { | ||
const { TextEncoder, TextDecoder } = require('util'); | ||
this.global.TextEncoder = TextEncoder; | ||
this.global.TextDecoder = TextDecoder; | ||
} | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3127,6 +3127,11 @@ | |
resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-1.1.2.tgz#ccb91445360179a04e7fe6aff78c00ffc1eeaf82" | ||
integrity sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw== | ||
|
||
"@tootallnate/once@2": | ||
version "2.0.0" | ||
resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-2.0.0.tgz#f544a148d3ab35801c1f633a7441fd87c2e484bf" | ||
integrity sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A== | ||
|
||
"@trysound/[email protected]": | ||
version "0.2.0" | ||
resolved "https://registry.yarnpkg.com/@trysound/sax/-/sax-0.2.0.tgz#cccaab758af56761eb7bf37af6f03f326dd798ad" | ||
|
@@ -3889,7 +3894,7 @@ acorn@^7.1.1, acorn@^7.4.0, acorn@^7.4.1: | |
resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.4.1.tgz#feaed255973d2e77555b83dbc08851a6c63520fa" | ||
integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A== | ||
|
||
acorn@^8.0.4, acorn@^8.2.4, acorn@^8.4.1: | ||
acorn@^8.0.4, acorn@^8.2.4, acorn@^8.4.1, acorn@^8.5.0: | ||
version "8.5.0" | ||
resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.5.0.tgz#4512ccb99b3698c752591e9bb4472e38ad43cee2" | ||
integrity sha512-yXbYeFy+jUuYd3/CDcg2NkIYE991XYX/bje7LmjJigUciaeO1JR4XxXgCIV1/Zc/dRuFEyw1L0pbA+qynJkW5Q== | ||
|
@@ -6167,6 +6172,15 @@ data-urls@^2.0.0: | |
whatwg-mimetype "^2.3.0" | ||
whatwg-url "^8.0.0" | ||
|
||
data-urls@^3.0.1: | ||
version "3.0.1" | ||
resolved "https://registry.yarnpkg.com/data-urls/-/data-urls-3.0.1.tgz#597fc2ae30f8bc4dbcf731fcd1b1954353afc6f8" | ||
integrity sha512-Ds554NeT5Gennfoo9KN50Vh6tpgtvYEwraYjejXnyTpu1C7oXKxdFk75REooENHE8ndTVOJuv+BEs4/J/xcozw== | ||
dependencies: | ||
abab "^2.0.3" | ||
whatwg-mimetype "^3.0.0" | ||
whatwg-url "^10.0.0" | ||
|
||
dayjs@^1.10.4: | ||
version "1.10.7" | ||
resolved "https://registry.yarnpkg.com/dayjs/-/dayjs-1.10.7.tgz#2cf5f91add28116748440866a0a1d26f3a6ce468" | ||
|
@@ -6198,7 +6212,7 @@ decamelize@^1.2.0: | |
resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" | ||
integrity sha1-9lNNFRSCabIDUue+4m9QH5oZEpA= | ||
|
||
decimal.js@^10.2.1: | ||
decimal.js@^10.2.1, decimal.js@^10.3.1: | ||
version "10.3.1" | ||
resolved "https://registry.yarnpkg.com/decimal.js/-/decimal.js-10.3.1.tgz#d8c3a444a9c6774ba60ca6ad7261c3a94fd5e783" | ||
integrity sha512-V0pfhfr8suzyPGOx3nmq4aHqabehUZn6Ch9kyFpV79TGDTWFmHqUqXdabR7QHqxzrYolF4+tVmJhUG4OURg5dQ== | ||
|
@@ -6514,6 +6528,13 @@ domexception@^2.0.1: | |
dependencies: | ||
webidl-conversions "^5.0.0" | ||
|
||
domexception@^4.0.0: | ||
version "4.0.0" | ||
resolved "https://registry.yarnpkg.com/domexception/-/domexception-4.0.0.tgz#4ad1be56ccadc86fc76d033353999a8037d03673" | ||
integrity sha512-A2is4PLG+eeSfoTMA95/s4pvAoSo2mKtiM5jlHkAVewmiO8ISFTFKZjH7UAM1Atli/OT/7JHOrJRJiMKUZKYBw== | ||
dependencies: | ||
webidl-conversions "^7.0.0" | ||
|
||
domhandler@^4.0.0, domhandler@^4.2.0: | ||
version "4.2.2" | ||
resolved "https://registry.yarnpkg.com/domhandler/-/domhandler-4.2.2.tgz#e825d721d19a86b8c201a35264e226c678ee755f" | ||
|
@@ -8447,6 +8468,13 @@ html-encoding-sniffer@^2.0.1: | |
dependencies: | ||
whatwg-encoding "^1.0.5" | ||
|
||
html-encoding-sniffer@^3.0.0: | ||
version "3.0.0" | ||
resolved "https://registry.yarnpkg.com/html-encoding-sniffer/-/html-encoding-sniffer-3.0.0.tgz#2cb1a8cf0db52414776e5b2a7a04d5dd98158de9" | ||
integrity sha512-oWv4T4yJ52iKrufjnyZPkrN0CH3QnrUqdB6In1g5Fe1mia8GmF36gnfNySxoZtxD5+NmYw1EElVXiBk93UeskA== | ||
dependencies: | ||
whatwg-encoding "^2.0.0" | ||
|
||
html-entities@^1.3.1: | ||
version "1.4.0" | ||
resolved "https://registry.yarnpkg.com/html-entities/-/html-entities-1.4.0.tgz#cfbd1b01d2afaf9adca1b10ae7dffab98c71d2dc" | ||
|
@@ -8572,6 +8600,15 @@ http-proxy-agent@^4.0.1: | |
agent-base "6" | ||
debug "4" | ||
|
||
http-proxy-agent@^5.0.0: | ||
version "5.0.0" | ||
resolved "https://registry.yarnpkg.com/http-proxy-agent/-/http-proxy-agent-5.0.0.tgz#5129800203520d434f142bc78ff3c170800f2b43" | ||
integrity sha512-n2hY8YdoRE1i7r6M0w9DIw5GgZN0G25P8zLCRQ8rjXtTU3vsNFBI/vWK/UIeE6g5MUUz6avwAPXmL6Fy9D/90w== | ||
dependencies: | ||
"@tootallnate/once" "2" | ||
agent-base "6" | ||
debug "4" | ||
|
||
[email protected]: | ||
version "0.19.1" | ||
resolved "https://registry.yarnpkg.com/http-proxy-middleware/-/http-proxy-middleware-0.19.1.tgz#183c7dc4aa1479150306498c210cdaf96080a43a" | ||
|
@@ -8640,6 +8677,13 @@ [email protected]: | |
dependencies: | ||
safer-buffer ">= 2.1.2 < 3" | ||
|
||
[email protected]: | ||
version "0.6.3" | ||
resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.6.3.tgz#a52f80bf38da1952eb5c681790719871a1a72501" | ||
integrity sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw== | ||
dependencies: | ||
safer-buffer ">= 2.1.2 < 3.0.0" | ||
|
||
icss-utils@^4.0.0, icss-utils@^4.1.1: | ||
version "4.1.1" | ||
resolved "https://registry.yarnpkg.com/icss-utils/-/icss-utils-4.1.1.tgz#21170b53789ee27447c2f47dd683081403f9a467" | ||
|
@@ -10028,7 +10072,7 @@ jsbn@~0.1.0: | |
resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" | ||
integrity sha1-peZUwuWi3rXyAdls77yoDA7y9RM= | ||
|
||
jsdom@^16.6.0, jsdom@^16.7.0: | ||
jsdom@^16.6.0: | ||
version "16.7.0" | ||
resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-16.7.0.tgz#918ae71965424b197c819f8183a754e18977b710" | ||
integrity sha512-u9Smc2G1USStM+s/x1ru5Sxrl6mPYCbByG1U/hUmqaVsm4tbNyS7CicOSRyuGQYZhTu0h84qkZZQ/I+dzizSVw== | ||
|
@@ -10061,6 +10105,39 @@ jsdom@^16.6.0, jsdom@^16.7.0: | |
ws "^7.4.6" | ||
xml-name-validator "^3.0.0" | ||
|
||
jsdom@^18.0.0: | ||
version "18.0.0" | ||
resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-18.0.0.tgz#0fa974638cd26dfc33f0d84c7526d0a3e5df5dc8" | ||
integrity sha512-HVLuBcFmwdWulStv5U+J59b1AyzXhM92KXlM8HQ3ecYtRM2OQEUCPMa4oNuDeCBmtRcC7tJvb0Xz5OeFXMOKTA== | ||
dependencies: | ||
abab "^2.0.5" | ||
acorn "^8.5.0" | ||
acorn-globals "^6.0.0" | ||
cssom "^0.5.0" | ||
cssstyle "^2.3.0" | ||
data-urls "^3.0.1" | ||
decimal.js "^10.3.1" | ||
domexception "^4.0.0" | ||
escodegen "^2.0.0" | ||
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" | ||
parse5 "6.0.1" | ||
saxes "^5.0.1" | ||
symbol-tree "^3.2.4" | ||
tough-cookie "^4.0.0" | ||
w3c-hr-time "^1.0.2" | ||
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" | ||
|
||
jsesc@^2.5.1: | ||
version "2.5.2" | ||
resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-2.5.2.tgz#80564d2e483dacf6e8ef209650a67df3f0c283a4" | ||
|
@@ -14181,7 +14258,7 @@ safe-regex@^1.1.0: | |
dependencies: | ||
ret "~0.1.10" | ||
|
||
"safer-buffer@>= 2.1.2 < 3", safer-buffer@^2.0.2, safer-buffer@^2.1.0, safer-buffer@~2.1.0: | ||
"safer-buffer@>= 2.1.2 < 3", "safer-buffer@>= 2.1.2 < 3.0.0", safer-buffer@^2.0.2, safer-buffer@^2.1.0, safer-buffer@~2.1.0: | ||
version "2.1.2" | ||
resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" | ||
integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== | ||
|
@@ -15524,6 +15601,13 @@ tr46@^2.1.0: | |
dependencies: | ||
punycode "^2.1.1" | ||
|
||
tr46@^3.0.0: | ||
version "3.0.0" | ||
resolved "https://registry.yarnpkg.com/tr46/-/tr46-3.0.0.tgz#555c4e297a950617e8eeddef633c87d4d9d6cbf9" | ||
integrity sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA== | ||
dependencies: | ||
punycode "^2.1.1" | ||
|
||
tr46@~0.0.3: | ||
version "0.0.3" | ||
resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a" | ||
|
@@ -16097,6 +16181,13 @@ w3c-xmlserializer@^2.0.0: | |
dependencies: | ||
xml-name-validator "^3.0.0" | ||
|
||
w3c-xmlserializer@^3.0.0: | ||
version "3.0.0" | ||
resolved "https://registry.yarnpkg.com/w3c-xmlserializer/-/w3c-xmlserializer-3.0.0.tgz#06cdc3eefb7e4d0b20a560a5a3aeb0d2d9a65923" | ||
integrity sha512-3WFqGEgSXIyGhOmAFtlicJNMjEps8b1MG31NCA0/vOF9+nKMUW1ckhi9cnNHmf88Rzw5V+dwIwsm2C7X8k9aQg== | ||
dependencies: | ||
xml-name-validator "^4.0.0" | ||
|
||
walker@^1.0.7, walker@~1.0.5: | ||
version "1.0.7" | ||
resolved "https://registry.yarnpkg.com/walker/-/walker-1.0.7.tgz#2f7f9b8fd10d677262b18a884e28d19618e028fb" | ||
|
@@ -16169,6 +16260,11 @@ webidl-conversions@^6.1.0: | |
resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-6.1.0.tgz#9111b4d7ea80acd40f5270d666621afa78b69514" | ||
integrity sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w== | ||
|
||
webidl-conversions@^7.0.0: | ||
version "7.0.0" | ||
resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-7.0.0.tgz#256b4e1882be7debbf01d05f0aa2039778ea080a" | ||
integrity sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g== | ||
|
||
webpack-assets-manifest@^3.1.1: | ||
version "3.1.1" | ||
resolved "https://registry.yarnpkg.com/webpack-assets-manifest/-/webpack-assets-manifest-3.1.1.tgz#39bbc3bf2ee57fcd8ba07cda51c9ba4a3c6ae1de" | ||
|
@@ -16404,11 +16500,31 @@ whatwg-encoding@^1.0.5: | |
dependencies: | ||
iconv-lite "0.4.24" | ||
|
||
whatwg-encoding@^2.0.0: | ||
version "2.0.0" | ||
resolved "https://registry.yarnpkg.com/whatwg-encoding/-/whatwg-encoding-2.0.0.tgz#e7635f597fd87020858626805a2729fa7698ac53" | ||
integrity sha512-p41ogyeMUrw3jWclHWTQg1k05DSVXPLcVxRTYsXUk+ZooOCZLcoYgPZ/HL/D/N+uQPOtcp1me1WhBEaX02mhWg== | ||
dependencies: | ||
iconv-lite "0.6.3" | ||
|
||
whatwg-mimetype@^2.3.0: | ||
version "2.3.0" | ||
resolved "https://registry.yarnpkg.com/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz#3d4b1e0312d2079879f826aff18dbeeca5960fbf" | ||
integrity sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g== | ||
|
||
whatwg-mimetype@^3.0.0: | ||
version "3.0.0" | ||
resolved "https://registry.yarnpkg.com/whatwg-mimetype/-/whatwg-mimetype-3.0.0.tgz#5fa1a7623867ff1af6ca3dc72ad6b8a4208beba7" | ||
integrity sha512-nt+N2dzIutVRxARx1nghPKGv1xHikU7HKdfafKkLNLindmPU/ch3U31NOCGGA/dmPcmb1VlofO0vnKAcsm0o/Q== | ||
|
||
whatwg-url@^10.0.0: | ||
version "10.0.0" | ||
resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-10.0.0.tgz#37264f720b575b4a311bd4094ed8c760caaa05da" | ||
integrity sha512-CLxxCmdUby142H5FZzn4D8ikO1cmypvXVQktsgosNy4a4BHrDHeciBBGZhb0bNoR5/MltoCatso+vFjjGx8t0w== | ||
dependencies: | ||
tr46 "^3.0.0" | ||
webidl-conversions "^7.0.0" | ||
|
||
whatwg-url@^5.0.0: | ||
version "5.0.0" | ||
resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-5.0.0.tgz#966454e8765462e37644d3626f6742ce8b70965d" | ||
|
@@ -16543,11 +16659,21 @@ ws@^7.3.1, ws@^7.4.6: | |
resolved "https://registry.yarnpkg.com/ws/-/ws-7.5.5.tgz#8b4bc4af518cfabd0473ae4f99144287b33eb881" | ||
integrity sha512-BAkMFcAzl8as1G/hArkxOxq3G7pjUqQ3gzYbLL0/5zNkph70e+lCoxBGnm6AW1+/aiNeV4fnKqZ8m4GZewmH2w== | ||
|
||
ws@^8.2.3: | ||
version "8.2.3" | ||
resolved "https://registry.yarnpkg.com/ws/-/ws-8.2.3.tgz#63a56456db1b04367d0b721a0b80cae6d8becbba" | ||
integrity sha512-wBuoj1BDpC6ZQ1B7DWQBYVLphPWkm8i9Y0/3YdHjHKHiohOJ1ws+3OccDWtH+PoC9DZD5WOTrJvNbWvjS6JWaA== | ||
|
||
xml-name-validator@^3.0.0: | ||
version "3.0.0" | ||
resolved "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-3.0.0.tgz#6ae73e06de4d8c6e47f9fb181f78d648ad457c6a" | ||
integrity sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw== | ||
|
||
xml-name-validator@^4.0.0: | ||
version "4.0.0" | ||
resolved "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-4.0.0.tgz#79a006e2e63149a8600f15430f0a4725d1524835" | ||
integrity sha512-ICP2e+jsHvAj2E2lIHxa5tjXRlKDJo4IdvPvCXbXQGdzSfmSpNVyIKMvoZHjDY9DP0zV17iI85o90vRFXNccRw== | ||
|
||
xmlchars@^2.2.0: | ||
version "2.2.0" | ||
resolved "https://registry.yarnpkg.com/xmlchars/-/xmlchars-2.2.0.tgz#060fe1bcb7f9c76fe2a17db86a9bc3ab894210cb" | ||
|