From c6f441f9ea3c652ae0e80f56ed6b09d57e182db1 Mon Sep 17 00:00:00 2001 From: Juerg B <44573692+juergba@users.noreply.github.com> Date: Sat, 12 Mar 2022 06:36:25 +0100 Subject: [PATCH] refactor!: drop support of Node v12 --- .browserslistrc | 2 +- .github/workflows/browser-test.yml | 6 +++--- .github/workflows/mocha.yml | 2 -- docs/index.md | 2 +- package.json | 2 +- 5 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.browserslistrc b/.browserslistrc index d728f47ec6..1e0a058107 100644 --- a/.browserslistrc +++ b/.browserslistrc @@ -1,4 +1,4 @@ -node >= 12 +node >= 14 last 2 Chrome versions last 2 Edge versions last 2 Firefox versions diff --git a/.github/workflows/browser-test.yml b/.github/workflows/browser-test.yml index a06bdaf70d..40d746e64a 100644 --- a/.github/workflows/browser-test.yml +++ b/.github/workflows/browser-test.yml @@ -14,7 +14,7 @@ jobs: steps: - uses: actions/setup-node@v2 with: - node-version: 14 + node-version: 16 - uses: actions/checkout@v2 with: ref: ${{ github.event.pull_request.head.sha }} @@ -22,9 +22,9 @@ jobs: uses: actions/cache@v2 with: path: '~/.npm' - key: "ubuntu-latest-node-full-v14-${{ hashFiles('**/package-lock.json') }}" + key: "ubuntu-latest-node-full-v16-${{ hashFiles('**/package-lock.json') }}" restore-keys: | - ubuntu-latest-node-full-v14- + ubuntu-latest-node-full-v16- - name: Install Dependencies run: npm ci - name: Run Browser Tests diff --git a/.github/workflows/mocha.yml b/.github/workflows/mocha.yml index 9a8b535fe5..4366a70c07 100644 --- a/.github/workflows/mocha.yml +++ b/.github/workflows/mocha.yml @@ -29,7 +29,6 @@ jobs: - ubuntu-latest - windows-2019 node: - - 12 - 14 - 16 - 17 @@ -74,7 +73,6 @@ jobs: - ubuntu-latest - windows-2019 node: - - 12 - 14 - 16 - 17 diff --git a/docs/index.md b/docs/index.md index 28ce96ffde..3fb3c1368f 100644 --- a/docs/index.md +++ b/docs/index.md @@ -64,7 +64,7 @@ or as a development dependency for your project: $ npm install --save-dev mocha ``` -> As of v9.0.0, Mocha requires Node.js v12.0.0 or newer. +> As of v10.0.0, Mocha requires Node.js v14.0.0 or newer. ## Getting Started diff --git a/package.json b/package.json index 327233ef28..34af28bda3 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "test": "./test" }, "engines": { - "node": ">= 12.0.0" + "node": ">= 14.0.0" }, "scripts": { "prepublishOnly": "nps test clean build",