From da042621eb1e460f960e62eef75e9fb05aa26ecc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20Beltr=C3=A1n?= Date: Tue, 16 Apr 2024 11:27:29 +0200 Subject: [PATCH 1/6] docs: add migration guide --- docs/migration-guides/v7.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 docs/migration-guides/v7.md diff --git a/docs/migration-guides/v7.md b/docs/migration-guides/v7.md new file mode 100644 index 00000000..6ca41bcb --- /dev/null +++ b/docs/migration-guides/v7.md @@ -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 From d3b0333ee136ea42a9ce581e491ab6f69b82ac72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20Beltr=C3=A1n?= Date: Tue, 16 Apr 2024 11:41:56 +0200 Subject: [PATCH 2/6] chore: update Node.js version in .nvmrc --- .nvmrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.nvmrc b/.nvmrc index b6a7d89c..7795cadb 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -16 +20.12 From 3bb929a147b3d0597dc1912ca5e75a5a7371d710 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20Beltr=C3=A1n?= Date: Tue, 16 Apr 2024 11:42:14 +0200 Subject: [PATCH 3/6] docs: update README.md --- README.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 2199abdd..f40c652a 100644 --- a/README.md +++ b/README.md @@ -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 and built with SSL support. (If you are using an official Node.js distribution, SSL is always built in.) -```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 @@ -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 From 09bf6a79dc11a50baf6015fbc5ca72e0bf61c513 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20Beltr=C3=A1n?= Date: Tue, 16 Apr 2024 11:42:39 +0200 Subject: [PATCH 4/6] chore: update supported engines node versions --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1197df8b..9b0abbc9 100644 --- a/package.json +++ b/package.json @@ -92,7 +92,7 @@ "eslint": "^7.5.0 || ^8.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" } } From 13613010fb5667943eaf3006e9b7ec22f644d8f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20Beltr=C3=A1n?= Date: Tue, 16 Apr 2024 11:50:43 +0200 Subject: [PATCH 5/6] chore: update Node.js in CI --- .github/workflows/ci.yml | 2 +- .github/workflows/verifications.yml | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 970bb07c..42ba1df8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,7 +5,7 @@ on: merge_group: concurrency: - group: ${{ github.workflow }}-${{ github.ref }} + group: '${{ github.workflow }}-${{ github.ref }}' cancel-in-progress: true jobs: diff --git a/.github/workflows/verifications.yml b/.github/workflows/verifications.yml index 0f49ec5a..3afc8537 100644 --- a/.github/workflows/verifications.yml +++ b/.github/workflows/verifications.yml @@ -33,8 +33,7 @@ jobs: strategy: fail-fast: false matrix: - # The .x indicates "the most recent one" - node: [19.x, 18.x, 17.x, 16.x, 14.x, 14.17.0, 12.x, 12.22.0] + node: [18.18, 20.9, 21.1] eslint: [7.5, 7, 8] steps: - name: Checkout From 9e06981598d27d201458b498a029bd230dd20111 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20Beltr=C3=A1n?= Date: Tue, 16 Apr 2024 13:20:52 +0200 Subject: [PATCH 6/6] docs: simplify prerequisites --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f40c652a..ba5b4757 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ ## Prerequisites -To use this plugin, you must have [Node.js](https://nodejs.org/en/) (`^18.18.0`, `^20.9.0`, or `>=21.1.0`) installed and built with SSL support. (If you are using an official Node.js distribution, SSL is always built in.) +To use this plugin, you must have [Node.js](https://nodejs.org/en/) (`^18.18.0`, `^20.9.0`, or `>=21.1.0`) installed. ## Installation