Skip to content

📦 Package: Bump chokidar from 4 to 5 #5586

Description

@JoshuaKGoldberg

Feature Request Checklist

Overview

Mocha currently relies on an old major version of chokidar:

"chokidar": "^4.0.1",

Suggested Solution

chokidar@5.0.0 is the latest. It'd be nice to bump to that, so users aren't stuck on a dep that's >=1 major version behind.

Looking at package sizes:

https://github.com/paulmillr/chokidar/releases/tag/5.0.0

I set up a quick node_modules/ size comparison on https://github.com/JoshuaKGoldberg/repros/tree/mocha-chokidar-5. Without any other devDependencies, the node_modules size drops from 8.1M to 8.0M. See: #5587

Alternatives

This isn't critical and I don't think we need to do it. But it's nice ecosystem cleanup in general.

I don't know of popular alternatives to chokidar and haven't looked for them. That can be a separate issue if there's notable improvement to be had IMO.

Additional Info

chokidar@5 raised the minimum supported Node.js version from 14.16.0 to 20.19.0. That's the require(esm) minimum that Mocha 12 targets. Since that we're merging Mocha 12 commits in, this issue isn't blocked.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

  • Status
    Done

Relationships

None yet

Development

No branches or pull requests

Issue actions