Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

peg major version to jsdom, drop node16 support #384

Merged
merged 2 commits into from
Jan 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [24.0.0] - {2024-01-27}
- Peg major version to `jsdom` major version
- Raise minimum required node version to v18

## [9.2.0] - {2023-12-10}
- task: upgrade to `yarn@4.0.2`
- fix: TS error 7016 (https://github.com/modosc/global-jsdom/pull/363)
Expand Down
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,18 @@

> Enables DOM in Node.js
`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.
## Install

Requires [node][] >= 16 and [jsdom][] >= 24 or above
## Versioning
`global-jsdom` uses the same major version as the `jsdom` that it wraps.

## Install
Requires [node][] >= 18.

```
npm install --save-dev --save-exact jsdom global-jsdom
```
[node]: https://github.com/nodejs/node
[jsdom]: https://github.com/tmpvar/jsdom
[jsdom]: https://github.com/jsdom/jsdom

## Usage

Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
],
"devDependencies": {
"chai": "^4.3.10",
"eslint": "^8.55.0",
"eslint": "^8.56.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-mocha": "^10.2.0",
"jsdom": "^24.0.0",
"mocha": "^10.2.0"
Expand All @@ -30,10 +30,10 @@
],
"license": "MIT",
"peerDependencies": {
"jsdom": ">=23 <25"
"jsdom": ">=24 <25"
},
"engines": {
"node": ">=16"
"node": ">=18"
},
"repository": {
"type": "git",
Expand Down
12 changes: 6 additions & 6 deletions packages/global-jsdom-examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@
"main": "index.js",
"license": "MIT",
"devDependencies": {
"@babel/core": "^7.23.5",
"@babel/preset-env": "^7.23.5",
"@babel/register": "^7.22.15",
"eslint": "^8.55.0",
"@babel/core": "^7.23.9",
"@babel/preset-env": "^7.23.9",
"@babel/register": "^7.23.7",
"eslint": "^8.56.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-mocha": "^10.2.0",
"global-jsdom": "*",
"mocha": "^10.2.0"
},
"dependencies": {
"jsdom": "^23.0.1"
"jsdom": "^24.0.0"
},
"scripts": {
"lint": "yarn eslint --ext=js,mjs --cache .eslintrc.js mocha module node",
Expand Down
11 changes: 7 additions & 4 deletions packages/global-jsdom/README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
# global-jsdom
[![npm version](http://img.shields.io/npm/v/global-jsdom.svg?style=flat-square)](https://www.npmjs.com/package/global-jsdom)
![Node.js CI](https://github.com/modosc/global-jsdom/workflows/Node.js%20CI/badge.svg?branch=master)
![Node.js CI](https://github.com/modosc/global-jsdom/workflows/Node.js%20CI/badge.svg?branch=main)

> Enables DOM in Node.js
`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.
## Install

Requires [node][] >= 16 and [jsdom][] >= 22 or above
## Versioning
`global-jsdom` uses the same major version as the `jsdom` that it wraps.

## Install
Requires [node][] >= 18.

```
npm install --save-dev --save-exact jsdom global-jsdom
```
[node]: https://github.com/nodejs/node
[jsdom]: https://github.com/tmpvar/jsdom
[jsdom]: https://github.com/jsdom/jsdom

## Usage

Expand Down
14 changes: 7 additions & 7 deletions packages/global-jsdom/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "global-jsdom",
"description": "Enable DOM in Node.js",
"version": "9.2.0",
"version": "24.0.0",
"author": {
"name": "jonathan schatz",
"email": "jon@divisionbyzero.com",
Expand Down Expand Up @@ -34,12 +34,12 @@
"Rico Sta. Cruz <rico@ricostacruz.com>"
],
"devDependencies": {
"chai": "^4.3.10",
"eslint": "^8.55.0",
"chai": "^4.4.1",
"eslint": "^8.56.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-mocha": "^10.2.0",
"jsdom": "^23.0.1",
"jsdom": "^24.0.0",
"mocha": "^10.2.0"
},
"homepage": "https://github.com/modosc/global-jsdom#readme",
Expand All @@ -50,10 +50,10 @@
],
"license": "MIT",
"peerDependencies": {
"jsdom": ">=23 <24"
"jsdom": ">=24 <25"
},
"engines": {
"node": ">=16"
"node": ">=18"
},
"repository": {
"type": "git",
Expand Down
Loading
Loading