global-jsdom 9.2.0 → 24.0.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.
Files changed (2) hide show
  1. package/README.md +7 -4
  2. package/package.json +7 -7
package/README.md CHANGED
@@ -1,18 +1,21 @@
1
1
  # global-jsdom
2
2
  [![npm version](http://img.shields.io/npm/v/global-jsdom.svg?style=flat-square)](https://www.npmjs.com/package/global-jsdom)
3
- ![Node.js CI](https://github.com/modosc/global-jsdom/workflows/Node.js%20CI/badge.svg?branch=master)
3
+ ![Node.js CI](https://github.com/modosc/global-jsdom/workflows/Node.js%20CI/badge.svg?branch=main)
4
4
 
5
5
  > Enables DOM in Node.js
6
6
  `global-jsdom` will inject `document`, `window` and other DOM API into your Node.js environment. This allows you to run browser tests in Node.js. The specific attributes set on `global` come directly from the `jsdom` version you have installed.
7
- ## Install
8
7
 
9
- Requires [node][] >= 16 and [jsdom][] >= 22 or above
8
+ ## Versioning
9
+ `global-jsdom` uses the same major version as the `jsdom` that it wraps.
10
+
11
+ ## Install
12
+ Requires [node][] >= 18.
10
13
 
11
14
  ```
12
15
  npm install --save-dev --save-exact jsdom global-jsdom
13
16
  ```
14
17
  [node]: https://github.com/nodejs/node
15
- [jsdom]: https://github.com/tmpvar/jsdom
18
+ [jsdom]: https://github.com/jsdom/jsdom
16
19
 
17
20
  ## Usage
18
21
 
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": "9.2.0",
4
+ "version": "24.0.0",
5
5
  "author": {
6
6
  "name": "jonathan schatz",
7
7
  "email": "jon@divisionbyzero.com",
@@ -34,12 +34,12 @@
34
34
  "Rico Sta. Cruz <rico@ricostacruz.com>"
35
35
  ],
36
36
  "devDependencies": {
37
- "chai": "^4.3.10",
38
- "eslint": "^8.55.0",
37
+ "chai": "^4.4.1",
38
+ "eslint": "^8.56.0",
39
39
  "eslint-config-airbnb-base": "^15.0.0",
40
- "eslint-plugin-import": "^2.29.0",
40
+ "eslint-plugin-import": "^2.29.1",
41
41
  "eslint-plugin-mocha": "^10.2.0",
42
- "jsdom": "^23.0.1",
42
+ "jsdom": "^24.0.0",
43
43
  "mocha": "^10.2.0"
44
44
  },
45
45
  "homepage": "https://github.com/modosc/global-jsdom#readme",
@@ -50,10 +50,10 @@
50
50
  ],
51
51
  "license": "MIT",
52
52
  "peerDependencies": {
53
- "jsdom": ">=23 <24"
53
+ "jsdom": ">=24 <25"
54
54
  },
55
55
  "engines": {
56
- "node": ">=16"
56
+ "node": ">=18"
57
57
  },
58
58
  "repository": {
59
59
  "type": "git",