Feature Request Checklist
Overview
Mocha currently relies on an old major version of chokidar:
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.
Feature Request Checklist
faqlabel, but none matched my issue.Overview
Mocha currently relies on an old major version of
chokidar:mocha/package.json
Line 100 in 7f9ed1f
Suggested Solution
chokidar@5.0.0is 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:
chokidar@4.0.3is 251kb publish / 303kb installchokidar@5.0.0is 80.1kb publish / 102kb installhttps://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, thenode_modulessize drops from8.1Mto8.0M. See: #5587Alternatives
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
chokidarand haven't looked for them. That can be a separate issue if there's notable improvement to be had IMO.Additional Info
chokidar@5raised the minimum supported Node.js version from 14.16.0 to 20.19.0. That's therequire(esm)minimum that Mocha 12 targets. Since that we're merging Mocha 12 commits in, this issue isn't blocked.