fix(deps): update dependency escape-string-regexp to v5#5746
Draft
renovate[bot] wants to merge 1 commit intomainfrom
Draft
fix(deps): update dependency escape-string-regexp to v5#5746renovate[bot] wants to merge 1 commit intomainfrom
renovate[bot] wants to merge 1 commit intomainfrom
Conversation
Member
|
@copilot fix issues with this PR. Use npm 10 to ensure package-lock compatibility. |
Contributor
|
@mark-wiemer I've opened a new pull request, #5755, to work on those changes. Once the pull request is ready, I'll request review from you. |
3 tasks
|
The v5 bump can't land because escape-string-regexp v5 is ESM-only, and mocha is still CJS (#5400). Projects requiring v5 get ERR_REQUIRE_ESM. An alternative: replace it with tiny-escape which has the same API but ships both ESM and CJS. 192 bytes gzipped, zero deps, TypeScript types included. That would unblock the upgrade without waiting for the CJS-to-ESM migration. |
ofershap
pushed a commit
to ofershap/mocha
that referenced
this pull request
Feb 26, 2026
escape-string-regexp v5 is ESM-only, which blocks upgrading from v4 (see mochajs#5746). tiny-escape has the same API and ships both ESM and CJS with TypeScript types. 192 bytes gzipped, zero deps. Made-with: Cursor
3 tasks
ofershap
added a commit
to ofershap/mocha
that referenced
this pull request
Feb 26, 2026
escape-string-regexp v5 is ESM-only, which blocks upgrading from v4 (see mochajs#5746). tiny-escape has the same API and ships both ESM and CJS with TypeScript types. 192 bytes gzipped, zero deps. Made-with: Cursor
Member
|
@ofershap Since Mocha 12 requires >=20.19.0 it is possible to import ESM in CJS: https://nodejs.org/api/modules.html#loading-ecmascript-modules-using-require |
07e8f34 to
0d447a4
Compare
0d447a4 to
29f94a9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^4.0.0→^5.0.0Release Notes
sindresorhus/escape-string-regexp (escape-string-regexp)
v5.0.0Compare Source
Breaking
aebb6e8Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.