Skip to content

Commit 6e7ecdc

Browse files
authored
chore: drop support for old Node.js versions (#898)
BREAKING CHANGE: drop support for old Node.js versions Closes #616
1 parent c975ced commit 6e7ecdc

File tree

6 files changed

+23
-12
lines changed

6 files changed

+23
-12
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
merge_group:
66

77
concurrency:
8-
group: ${{ github.workflow }}-${{ github.ref }}
8+
group: '${{ github.workflow }}-${{ github.ref }}'
99
cancel-in-progress: true
1010

1111
jobs:

.github/workflows/verifications.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ jobs:
3333
strategy:
3434
fail-fast: false
3535
matrix:
36-
# The .x indicates "the most recent one"
37-
node: [19.x, 18.x, 17.x, 16.x, 14.x, 14.17.0, 12.x, 12.22.0]
36+
node: [18.18, 20.9, 21.1]
3837
eslint: [7.5, 7, 8]
3938
steps:
4039
- name: Checkout

.nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16
1+
20.12

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.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
"eslint": "^7.5.0 || ^8.0.0"
9393
},
9494
"engines": {
95-
"node": "^12.22.0 || ^14.17.0 || >=16.0.0",
95+
"node": "^18.18.0 || ^20.9.0 || >=21.1.0",
9696
"npm": ">=6"
9797
}
9898
}

0 commit comments

Comments
 (0)