Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ 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/.browserslistrc
index d728f47e..1e0a0581 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 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@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 9a8b535f..4366a70c 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 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 Started
diff --git a/package.json b/package.json
index 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",