Skip to content

Commit

Permalink
refactor!: drop support of Node v12 (#4845)
Browse files Browse the repository at this point in the history
  • Loading branch information
juergba committed Mar 15, 2022
1 parent b46db73 commit d7f6ea5
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .browserslistrc
@@ -1,4 +1,4 @@
node >= 12
node >= 14
last 2 Chrome versions
last 2 Edge versions
last 2 Firefox versions
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/browser-test.yml
Expand Up @@ -14,17 +14,17 @@ 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 }}
- name: 'Cache node_modules'
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
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/mocha.yml
Expand Up @@ -29,7 +29,6 @@ jobs:
- ubuntu-latest
- windows-2019
node:
- 12
- 14
- 16
- 17
Expand Down Expand Up @@ -74,7 +73,6 @@ jobs:
- ubuntu-latest
- windows-2019
node:
- 12
- 14
- 16
- 17
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -44,7 +44,7 @@
"test": "./test"
},
"engines": {
"node": ">= 12.0.0"
"node": ">= 14.0.0"
},
"scripts": {
"prepublishOnly": "nps test clean build",
Expand Down

0 comments on commit d7f6ea5

Please sign in to comment.