Skip to content

Commit 1c34eef

Browse files
feat!: bump minimum Node.js version from 18.18.0 to 20.19.0 (#5477)
1 parent 8649f39 commit 1c34eef

File tree

6 files changed

+16
-16
lines changed

6 files changed

+16
-16
lines changed

.github/workflows/mocha.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
os: 'ubuntu-latest,windows-latest'
6868
# We pin exact versions here per https://github.com/mochajs/mocha/issues/5052
6969
# Ref https://nodejs.org/en/about/previous-releases
70-
node-versions: '18.20.8,20.19.4,22.18.0,24.6.0'
70+
node-versions: '20.19.4,22.18.0,24.6.0'
7171
npm-script: test-node:${{ matrix.test-part }}
7272
coverage: ${{ matrix.coverage }}
7373

docs-next/src/content/docs/getting-started.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ First, install the [`mocha` package](https://www.npmjs.com/package/mocha) as a d
1212
<PackageManagers dev type="add" pkg="mocha" />
1313

1414
:::note
15-
As of v11.0.0, Mocha requires [Node.js](https://nodejs.org) `^18.18.0 || ^20.9.0 || >=21.1.0`.
15+
As of v12.0.0, Mocha requires [Node.js](https://nodejs.org) `^20.19.0 || >=22.12.0`.
1616
:::
1717

1818
## 2. Test File

docs-next/src/content/docs/running/browsers.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Every release of Mocha will have new builds of `./mocha.js` and `./mocha.css` fo
99
A typical setup might look something like the following, where we call `mocha.setup('bdd')` to use the **BDD** interface before loading the test scripts, running them `onload` with `mocha.run()`.
1010

1111
```html
12-
<!doctype html>
12+
<!DOCTYPE html>
1313
<html lang="en">
1414
<head>
1515
<meta charset="utf-8" />
@@ -38,12 +38,12 @@ A typical setup might look something like the following, where we call `mocha.se
3838
```
3939

4040
Mocha supports the latest major versions of evergreen browsers available when Mocha's oldest supported Node.js major version was released.
41-
As of Mocha v11.0.0, that includes the following browser versions that were stable as of [Node.js 18.10.0](https://nodejs.org/en/blog/release/v18.0.0)'s release on April 19, 2022:
41+
As of Mocha v12.0.0, that includes the following browser versions that were stable as of [Node.js 20.0.0](https://nodejs.org/en/blog/release/v20.0.0)'s release on April 18, 2023:
4242

43-
- [Chrome 100](https://developer.chrome.com/blog/new-in-chrome-100)
44-
- [Edge 100](https://learn.microsoft.com/en-us/deployedge/microsoft-edge-relnote-archive-stable-channel#version-1000118544-april-15)
45-
- [Firefox 99](https://www.mozilla.org/en-US/firefox/99.0/releasenotes)
46-
- [Safari 15.4](https://developer.apple.com/documentation/safari-release-notes/safari-15_4-release-notes)
43+
- [Chrome 112](https://developer.chrome.com/blog/new-in-chrome-112)
44+
- [Edge 112](https://learn.microsoft.com/en-us/deployedge/microsoft-edge-relnote-archive-stable-channel#version-1120172248-april-14-2023)
45+
- [Firefox 112](https://www.mozilla.org/en-US/firefox/112.0/releasenotes)
46+
- [Safari 16.4](https://developer.apple.com/documentation/safari-release-notes/safari-16_4-release-notes)
4747

4848
## Grep
4949

docs/index.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ or as a development dependency for your project:
6767
$ npm install --save-dev mocha
6868
```
6969

70-
> As of v11.0.0, Mocha requires [Node.js](https://nodejs.org) `^18.18.0 || ^20.9.0 || >=21.1.0`.
70+
> As of v12.0.0, Mocha requires [Node.js](https://nodejs.org) `^20.19.0 || >=22.12.0`.
7171
7272
## Getting Started
7373

@@ -2175,12 +2175,12 @@ A typical setup might look something like the following, where we call `mocha.se
21752175
```
21762176

21772177
Mocha supports the latest major versions of evergreen browsers available when Mocha's oldest supported Node.js major version was released.
2178-
As of Mocha v11.0.0, that includes the following browser versions that were stable as of [Node.js 18.10.0](https://nodejs.org/en/blog/release/v18.0.0)'s release on April 19, 2022:
2178+
As of Mocha v12.0.0, that includes the following browser versions that were stable as of [Node.js 20.0.0](https://nodejs.org/en/blog/release/v20.0.0)'s release on April 18, 2023:
21792179

2180-
- [Chrome 100](https://developer.chrome.com/blog/new-in-chrome-100)
2181-
- [Edge 100](https://learn.microsoft.com/en-us/deployedge/microsoft-edge-relnote-archive-stable-channel#version-1000118544-april-15)
2182-
- [Firefox 99](https://www.mozilla.org/en-US/firefox/99.0/releasenotes)
2183-
- [Safari 15.4](https://developer.apple.com/documentation/safari-release-notes/safari-15_4-release-notes)
2180+
- [Chrome 112](https://developer.chrome.com/blog/new-in-chrome-112)
2181+
- [Edge 112](https://learn.microsoft.com/en-us/deployedge/microsoft-edge-relnote-archive-stable-channel#version-1120172248-april-14-2023)
2182+
- [Firefox 112](https://www.mozilla.org/en-US/firefox/112.0/releasenotes)
2183+
- [Safari 16.4](https://developer.apple.com/documentation/safari-release-notes/safari-16_4-release-notes)
21842184

21852185
### Grep
21862186

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"test": "./test"
4141
},
4242
"engines": {
43-
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
43+
"node": "^20.19.0 || >=22.12.0"
4444
},
4545
"scripts": {
4646
"build": "rollup -c ./rollup.config.js",

0 commit comments

Comments
 (0)