☕️ Classic, reliable, trusted test framework for Node.js and the browser
refactor!: drop support of Node v12 (#4845)
Juerg Bd7f6ea5f5d84
diff --git a/.browserslistrc b/.browserslistrcindex d728f47e..1e0a0581 100644--- a/.browserslistrc+++ b/.browserslistrc@@ -1,4 +1,4 @@-node >= 12+node >= 14last 2 Chrome versionslast 2 Edge versionslast 2 Firefox versionsdiff --git a/.github/workflows/browser-test.yml b/.github/workflows/browser-test.ymlindex a06bdaf7..40d746e6 100644--- a/.github/workflows/browser-test.yml+++ b/.github/workflows/browser-test.yml@@ -14,7 +14,7 @@ jobs:steps:- uses: actions/setup-node@v2with:- node-version: 14+ node-version: 16- uses: actions/checkout@v2with:ref: ${{ github.event.pull_request.head.sha }}@@ -22,9 +22,9 @@ jobs:uses: actions/cache@v2with: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 Dependenciesrun: npm ci- name: Run Browser Testsdiff --git a/.github/workflows/mocha.yml b/.github/workflows/mocha.ymlindex 9a8b535f..4366a70c 100644--- a/.github/workflows/mocha.yml+++ b/.github/workflows/mocha.yml@@ -29,7 +29,6 @@ jobs:- ubuntu-latest- windows-2019node:- - 12- 14- 16- 17@@ -74,7 +73,6 @@ jobs:- ubuntu-latest- windows-2019node:- - 12- 14- 16- 17diff --git a/docs/index.md b/docs/index.mdindex 0c60020d..20fd04ff 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 Starteddiff --git a/package.json b/package.jsonindex 48a31263..2e053ed2 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",