Skip to content

🚀 Feature: Remove the long-deprecated --compilers option #5242

Open
@JoshuaKGoldberg

Description

Feature Request Checklist

Overview

As of #3038, --compilers is deprecated and non-functional. I've yet to see anybody use it in any real projects. But the code still exists:

mocha/lib/cli/run.js

Lines 334 to 339 in e3da641

if (argv.compilers) {
throw createUnsupportedError(
`--compilers is DEPRECATED and no longer supported.
See https://github.com/mochajs/mocha/wiki/compilers-deprecation for migration information.`
);
}

This is dead weight on the project. IMO there's no real need to keep it around given how it's been deprecated with a loud warning & migration docs (https://github.com/mochajs/mocha/wiki/compilers-deprecation) for 7 years.

Suggested Solution

I propose we remove it in a future major version, such as Mocha 12.

Alternatives

We could leave it in, but all it does now is throw createUnsupportedError.

Additional Info

Similar sibling issue: #5243

Activity

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

Metadata

Assignees

No one assigned

    Labels

    status: in triagea maintainer should (re-)triage (review) this issuetype: featureenhancement proposal

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions