Skip to content

🧹 Versioning: Bump minimum Node.js version from 18.18.0 to 20.19.0 #5358

@JoshuaKGoldberg

Description

@JoshuaKGoldberg

Overview

We're gearing up for a new major version of Mocha, Mocha 12 (#5357). That means we can bump the minimum Node engine version! Hooray! This is great for a couple of reasons:

Node.js 18 went EOL April 30 2025. Node.js 20 is still LTS for another year, through April 30 2026. Node.js ^20.19.0 || >=22.12.0 is the minimum version that supports unflagged require(ESM).

So, our current thought for Mocha 12 is to raise the minimum Node.js version to ^20.19.0 || >=22.12.0.

Note: see #5226 -> #5354 for our policy on supported browser versions (still in review at time of posting). Node.js 20.0.0 was released on April 18, 2023, so the equivalent browser versions would be:

Metadata

Metadata

Labels

core-teamissues which must be handled by Mocha's core teamsemver-majorimplementation requires increase of "major" version number; "breaking changes"

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions