Skip to content

Commit 15e7ced

Browse files
committed
feat: drop Node 12, 14 & 16 support (#898)
BREAKING CHANGE: Requires Node@^18.18.0 || ^20.9.0 || >=21.1.0
1 parent 1f15674 commit 15e7ced

File tree

5 files changed

+22
-24
lines changed

5 files changed

+22
-24
lines changed

.github/workflows/verifications.yml

+1-15
Original file line numberDiff line numberDiff line change
@@ -35,22 +35,8 @@ jobs:
3535
strategy:
3636
fail-fast: false
3737
matrix:
38-
node: [12.22.0, 12, 14.17.0, 14, 16, 17, 18, 19, 20, 22]
38+
node: [18.18.0, 18, 20.9.0, 20, 21.1.0, 21, 22]
3939
eslint: [7.5, 7, 8, 9]
40-
exclude:
41-
# eslint@9 doesn't support < Node v18
42-
- node: 17
43-
eslint: 9
44-
- node: 16
45-
eslint: 9
46-
- node: 14
47-
eslint: 9
48-
- node: 14.17.0
49-
eslint: 9
50-
- node: 12
51-
eslint: 9
52-
- node: 12.22.0
53-
eslint: 9
5440
steps:
5541
- name: Checkout
5642
uses: actions/checkout@v4

README.md

+8-7
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,19 @@
2222
[![PRs Welcome][pr-badge]][pr-url]
2323
[![All Contributors][all-contributors-badge]](#contributors-)
2424

25-
## Installation
25+
## Prerequisites
2626

27-
You'll first need to install [ESLint](https://eslint.org):
27+
To use this plugin, you must have [Node.js](https://nodejs.org/en/) (`^18.18.0`, `^20.9.0`, or `>=21.1.0`) installed.
2828

29-
```shell
30-
$ npm install --save-dev eslint
31-
# or
32-
$ yarn add --dev eslint
33-
```
29+
## Installation
30+
31+
You'll first need to [install ESLint](https://eslint.org/docs/latest/use/getting-started).
3432

3533
Next, install `eslint-plugin-testing-library`:
3634

3735
```shell
36+
$ pnpm add --save-dev eslint-plugin-testing-library
37+
# or
3838
$ npm install --save-dev eslint-plugin-testing-library
3939
# or
4040
$ yarn add --dev eslint-plugin-testing-library
@@ -49,6 +49,7 @@ You can find detailed guides for migrating `eslint-plugin-testing-library` in th
4949
- [Migration guide for v4](docs/migration-guides/v4.md)
5050
- [Migration guide for v5](docs/migration-guides/v5.md)
5151
- [Migration guide for v6](docs/migration-guides/v6.md)
52+
- [Migration guide for v7](docs/migration-guides/v7.md)
5253

5354
## Usage
5455

docs/migration-guides/v7.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Guide: migrating to v7
2+
3+
If you are not on v6 yet, we recommend first following the [v6 migration guide](docs/migration-guides/v6.md).
4+
5+
## Overview
6+
7+
- _(Breaking)_ Supported versions of Node.js have been updated to `^18.18.0`, `^20.9.0`, or `>=21.1.0`, matching ESLint.
8+
9+
## Steps to upgrade
10+
11+
- Make sure you are using a supported version of Node.js

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
"eslint": "^7.5.0 || ^8.0.0 || ^9.0.0"
9595
},
9696
"engines": {
97-
"node": "^12.22.0 || ^14.17.0 || >=16.0.0",
97+
"node": "^18.18.0 || ^20.9.0 || >=21.1.0",
9898
"npm": ">=6"
9999
}
100100
}

0 commit comments

Comments
 (0)