From 39dd2280bf79259e1e271c226465e2af20999fa5 Mon Sep 17 00:00:00 2001 From: Michael Peyper Date: Tue, 18 May 2021 23:08:44 +1000 Subject: [PATCH] chore: Drop Node 10 support (#623) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit BREAKING CHANGE: Node 10 is no longer supported Fixes #621 Co-authored-by: Michaël De Boey --- .github/workflows/validate.yml | 6 +++--- package.json | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 21868c18..0144c34c 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -16,7 +16,7 @@ jobs: if: ${{ !contains(github.head_ref, 'all-contributors') }} strategy: matrix: - node: [10.13, 10, 12, 14, 16] + node: [12.13, 12, 14, 16] runs-on: ubuntu-latest steps: - name: 🛑 Cancel Previous Runs @@ -48,8 +48,8 @@ jobs: runs-on: ubuntu-latest if: ${{ github.repository == 'testing-library/react-hooks-testing-library' && - contains('refs/heads/main,refs/heads/beta,refs/heads/next,refs/heads/alpha', - github.ref) && github.event_name == 'push' }} + contains('refs/heads/main,refs/heads/beta,refs/heads/next,refs/heads/alpha', github.ref) && + github.event_name == 'push' }} steps: - name: 🛑 Cancel Previous Runs uses: styfle/cancel-workflow-action@0.9.0 diff --git a/package.json b/package.json index ac24e3dc..a5c59b79 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,9 @@ "description": "Simple and complete React hooks testing utilities that encourage good testing practices.", "main": "lib/index.js", "types": "lib/index.d.ts", + "engines": { + "node": ">=12" + }, "keywords": [ "testing", "react",