global-jsdom 8.4.0 → 8.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/HISTORY.md +11 -0
- package/commonjs/index.js +1 -1
- package/esm/index.mjs +1 -1
- package/package.json +13 -16
package/HISTORY.md
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
## [v8.6.0]
|
|
2
|
+
- (really) fix jsdom peerDep
|
|
3
|
+
- fix(perf): consolidate window key filtering https://github.com/modosc/global-jsdom/pull/256
|
|
4
|
+
- update semver for jsdom in peerDeps (fixes #245) https://github.com/modosc/global-jsdom/pull/259
|
|
5
|
+
- update actions/checkout@v3, actions/setup-node@v3, node-version: 16 https://github.com/modosc/global-jsdom/pull/258
|
|
6
|
+
- remove babel deps
|
|
7
|
+
|
|
8
|
+
## [v8.5.0]
|
|
9
|
+
- Relax jsdom peer dependency for jsdom 20
|
|
10
|
+
- Update deps
|
|
11
|
+
|
|
1
12
|
## [v8.4.0]
|
|
2
13
|
- Relax jsdom peer dependency for jsdom 19
|
|
3
14
|
- Update deps
|
package/commonjs/index.js
CHANGED
|
@@ -35,7 +35,7 @@ module.exports = function globalJsdom(html = defaultHtml, options = {}) {
|
|
|
35
35
|
// that node already defines
|
|
36
36
|
|
|
37
37
|
if (KEYS.length === 0) {
|
|
38
|
-
KEYS.push(...Object.getOwnPropertyNames(window).filter((k) => !k.startsWith('_')
|
|
38
|
+
KEYS.push(...Object.getOwnPropertyNames(window).filter((k) => !k.startsWith('_') && !(k in global)))
|
|
39
39
|
// going to add our jsdom instance, see below
|
|
40
40
|
KEYS.push('$jsdom')
|
|
41
41
|
}
|
package/esm/index.mjs
CHANGED
|
@@ -35,7 +35,7 @@ export default function globalJsdom(html = defaultHtml, options = {}) {
|
|
|
35
35
|
// that node already defines
|
|
36
36
|
|
|
37
37
|
if (KEYS.length === 0) {
|
|
38
|
-
KEYS.push(...Object.getOwnPropertyNames(window).filter((k) => !k.startsWith('_')
|
|
38
|
+
KEYS.push(...Object.getOwnPropertyNames(window).filter((k) => !k.startsWith('_') && !(k in global)))
|
|
39
39
|
// going to add our jsdom instance, see below
|
|
40
40
|
KEYS.push('$jsdom')
|
|
41
41
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "global-jsdom",
|
|
3
3
|
"description": "Enable DOM in Node.js",
|
|
4
|
-
"version": "8.
|
|
4
|
+
"version": "8.6.0",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "jonathan schatz",
|
|
7
7
|
"email": "jon@divisionbyzero.com",
|
|
@@ -31,16 +31,13 @@
|
|
|
31
31
|
"Rico Sta. Cruz <rico@ricostacruz.com>"
|
|
32
32
|
],
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@babel/core": "^7.10.5",
|
|
35
|
-
"@babel/eslint-parser": "^7.4.14",
|
|
36
34
|
"chai": "^4.1.2",
|
|
37
|
-
"eslint": "^
|
|
35
|
+
"eslint": "^8.2.2",
|
|
38
36
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
39
|
-
"eslint-plugin-babel": "^5.3.0",
|
|
40
37
|
"eslint-plugin-import": "^2.7.0",
|
|
41
|
-
"eslint-plugin-mocha": "^
|
|
42
|
-
"jsdom": "^
|
|
43
|
-
"mocha": "^
|
|
38
|
+
"eslint-plugin-mocha": "^10.1.0",
|
|
39
|
+
"jsdom": "^20.0.0",
|
|
40
|
+
"mocha": "^10.0.0"
|
|
44
41
|
},
|
|
45
42
|
"homepage": "https://github.com/modosc/global-jsdom#readme",
|
|
46
43
|
"keywords": [
|
|
@@ -50,7 +47,7 @@
|
|
|
50
47
|
],
|
|
51
48
|
"license": "MIT",
|
|
52
49
|
"peerDependencies": {
|
|
53
|
-
"jsdom": ">=10.0.0
|
|
50
|
+
"jsdom": ">=10.0.0 <21"
|
|
54
51
|
},
|
|
55
52
|
"engines": {
|
|
56
53
|
"node": ">=12"
|
|
@@ -60,12 +57,12 @@
|
|
|
60
57
|
"url": "git+https://github.com/modosc/global-jsdom.git"
|
|
61
58
|
},
|
|
62
59
|
"scripts": {
|
|
63
|
-
"test": "
|
|
64
|
-
"test:jsdom": "
|
|
65
|
-
"test:jsdom:esm": "mocha --require test/setup.mjs test/*.test.mjs",
|
|
66
|
-
"test:jsdom:commonjs": "mocha --require test/setup.js test/*.test.js",
|
|
60
|
+
"test": "yarn test:jsdom && yarn test:examples",
|
|
61
|
+
"test:jsdom": "yarn test:jsdom:esm && yarn test:jsdom:commonjs",
|
|
62
|
+
"test:jsdom:esm": "yarn mocha --require test/setup.mjs test/*.test.mjs",
|
|
63
|
+
"test:jsdom:commonjs": "yarn mocha --require test/setup.js test/*.test.js",
|
|
67
64
|
"test:examples": "cd examples && yarn install && yarn upgrade global-jsdom && yarn test; cd ..",
|
|
68
|
-
"lint": "eslint --ext=js,mjs commonjs/ esm/ test/",
|
|
69
|
-
"lint:fix": "eslint --ext=js,mjs --fix commonjs/ esm/ test/"
|
|
65
|
+
"lint": "yarn eslint --ext=js,mjs --cache .eslintrc.js examples/ commonjs/ esm/ test/ ",
|
|
66
|
+
"lint:fix": "yarn eslint --ext=js,mjs --cache --fix .eslintrc.js examples/ commonjs/ esm/ test/"
|
|
70
67
|
}
|
|
71
|
-
}
|
|
68
|
+
}
|