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.
- package/README.md +7 -4
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
# global-jsdom
|
|
2
2
|
[](https://www.npmjs.com/package/global-jsdom)
|
|
3
|
-

|
|
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
|
-
|
|
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/
|
|
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": "
|
|
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.
|
|
38
|
-
"eslint": "^8.
|
|
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.
|
|
40
|
+
"eslint-plugin-import": "^2.29.1",
|
|
41
41
|
"eslint-plugin-mocha": "^10.2.0",
|
|
42
|
-
"jsdom": "^
|
|
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": ">=
|
|
53
|
+
"jsdom": ">=24 <25"
|
|
54
54
|
},
|
|
55
55
|
"engines": {
|
|
56
|
-
"node": ">=
|
|
56
|
+
"node": ">=18"
|
|
57
57
|
},
|
|
58
58
|
"repository": {
|
|
59
59
|
"type": "git",
|