global-jsdom 8.5.0 → 8.7.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 CHANGED
@@ -1,3 +1,14 @@
1
+ ## [v8.7.0]
2
+ - Relax jsdom peer dependency for jsdom 21
3
+ - update deps
4
+
5
+ ## [v8.6.0]
6
+ - (really) fix jsdom peerDep
7
+ - fix(perf): consolidate window key filtering https://github.com/modosc/global-jsdom/pull/256
8
+ - update semver for jsdom in peerDeps (fixes #245) https://github.com/modosc/global-jsdom/pull/259
9
+ - update actions/checkout@v3, actions/setup-node@v3, node-version: 16 https://github.com/modosc/global-jsdom/pull/258
10
+ - remove babel deps
11
+
1
12
  ## [v8.5.0]
2
13
  - Relax jsdom peer dependency for jsdom 20
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('_')).filter((k) => !(k in global)))
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('_')).filter((k) => !(k in global)))
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.5.0",
4
+ "version": "8.7.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": "^7.4.0",
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": "^9.0.0",
42
- "jsdom": "^20.0.0",
43
- "mocha": "^9.0.0"
38
+ "eslint-plugin-mocha": "^10.1.0",
39
+ "jsdom": "^21.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 || <20"
50
+ "jsdom": ">=10.0.0 <22"
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": "npm run test:jsdom && npm run test:examples",
64
- "test:jsdom": "npm run test:jsdom:esm && npm run test:jsdom:commonjs",
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
  }