You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[email protected] is the latest. It'd be nice to bump to that, so users aren't stuck on a dep that's two major versions behind.
Alternatives
This isn't critical and I don't think we need to do it. But it's nice ecosystem cleanup in general.
Additional Info
log-symbols@7 still supports Node.js >=18, so I don't believe we're blocked on that. However, it is an ESM-only package, so this could only happen once Mocha requires Node.js versions that include require(ESM) (^20.19.0 || >=22.12.0).
The text was updated successfully, but these errors were encountered:
Yeah, prior to require(esm) in Node.js it's "viral" in the same way async/await is. In Node.js versions without require(esm) if something is ESM then it can only be imported by an import. That's either an ESM import ... from ... or a dynamic await import(...).
My personal hope is that for Mocha 12 we do roughly only "clean up old cruft" work, similar to & expanding on what we did for Mocha 11:
By increasing the minimum Node.js to ^20.19.0 || >=22.12.0 we can assume all consumers support require(esm), making this not an issue
Other cleanups, like removing long-deprecated options and switching manual .prototype shenanigans to actual classes
...so that most consumers who aren't on old Node.js versions can "just" update to Mocha 12. Then Mocha 13 would start landing behavioral changes.
I haven't talked about this with anybody recently, and was hoping to start a conversation soon. 😄
Uh oh!
There was an error while loading. Please reload this page.
Feature Request Checklist
faq
label, but none matched my issue.Overview
Mocha currently depends an older major version of
log-symbols
:mocha/package.json
Line 106 in 5cf2b09
Suggested Solution
[email protected]
is the latest. It'd be nice to bump to that, so users aren't stuck on a dep that's two major versions behind.Alternatives
This isn't critical and I don't think we need to do it. But it's nice ecosystem cleanup in general.
Additional Info
log-symbols@7
still supports Node.js >=18, so I don't believe we're blocked on that. However, it is an ESM-only package, so this could only happen once Mocha requires Node.js versions that includerequire(ESM)
(^20.19.0 || >=22.12.0
).The text was updated successfully, but these errors were encountered: