Skip to content

📦 Package: Bump strip-json-comments from 3 to 5 #5334

Open
@JoshuaKGoldberg

Description

@JoshuaKGoldberg

Feature Request Checklist

Overview

Mocha currently depends an older major version of strip-json-comments:

"strip-json-comments": "^3.1.1",

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 many 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.

I don't know of popular alternatives to strip-json-comments and haven't looked for them.

Additional Info

strip-json-comments@5 still supports older Node.js than Mocha, 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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: blockedWaiting for something else to be resolvedtype: featureenhancement proposal

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions