Skip to content

Commit

Permalink
feat: drop Node 12, 14 & 16 support (#898)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Requires Node@^18.18.0 || ^20.9.0 || >=21.1.0
  • Loading branch information
Belco90 authored and MichaelDeBoey committed Oct 19, 2024
1 parent 657ed01 commit 993cc79
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 24 deletions.
16 changes: 1 addition & 15 deletions .github/workflows/verifications.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,8 @@ jobs:
strategy:
fail-fast: false
matrix:
node: [12.22.0, 12, 14.17.0, 14, 16, 17, 18, 19, 20, 22]
node: [18.18.0, 18, 20.9.0, 20, 21.1.0, 21, 22]
eslint: [7.5, 7, 8, 9]
exclude:
# eslint@9 doesn't support < Node v18
- node: 17
eslint: 9
- node: 16
eslint: 9
- node: 14
eslint: 9
- node: 14.17.0
eslint: 9
- node: 12
eslint: 9
- node: 12.22.0
eslint: 9
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,19 @@
[![PRs Welcome][pr-badge]][pr-url]
[![All Contributors][all-contributors-badge]](#contributors-)

## Installation
## Prerequisites

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

```shell
$ npm install --save-dev eslint
# or
$ yarn add --dev eslint
```
## Installation

You'll first need to [install ESLint](https://eslint.org/docs/latest/use/getting-started).

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

```shell
$ pnpm add --save-dev eslint-plugin-testing-library
# or
$ npm install --save-dev eslint-plugin-testing-library
# or
$ yarn add --dev eslint-plugin-testing-library
Expand All @@ -49,6 +49,7 @@ You can find detailed guides for migrating `eslint-plugin-testing-library` in th
- [Migration guide for v4](docs/migration-guides/v4.md)
- [Migration guide for v5](docs/migration-guides/v5.md)
- [Migration guide for v6](docs/migration-guides/v6.md)
- [Migration guide for v7](docs/migration-guides/v7.md)

## Usage

Expand Down
11 changes: 11 additions & 0 deletions docs/migration-guides/v7.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Guide: migrating to v7

If you are not on v6 yet, we recommend first following the [v6 migration guide](docs/migration-guides/v6.md).

## Overview

- _(Breaking)_ Supported versions of Node.js have been updated to `^18.18.0`, `^20.9.0`, or `>=21.1.0`, matching ESLint.

## Steps to upgrade

- Make sure you are using a supported version of Node.js
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
"eslint": "^7.5.0 || ^8.0.0 || ^9.0.0"
},
"engines": {
"node": "^12.22.0 || ^14.17.0 || >=16.0.0",
"node": "^18.18.0 || ^20.9.0 || >=21.1.0",
"npm": ">=6"
}
}

0 comments on commit 993cc79

Please sign in to comment.