Skip to content

fix(deps): update dependency escape-string-regexp to v5#5746

Draft
renovate[bot] wants to merge 1 commit intomainfrom
renovate/escape-string-regexp-5.x
Draft

fix(deps): update dependency escape-string-regexp to v5#5746
renovate[bot] wants to merge 1 commit intomainfrom
renovate/escape-string-regexp-5.x

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Feb 21, 2026

This PR contains the following updates:

Package Change Age Confidence
escape-string-regexp ^4.0.0^5.0.0 age confidence

Release Notes

sindresorhus/escape-string-regexp (escape-string-regexp)

v5.0.0

Compare Source

Breaking

Configuration

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


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@mark-wiemer
Copy link
Member

@copilot fix issues with this PR. Use npm 10 to ensure package-lock compatibility.

Copy link
Contributor

Copilot AI commented Feb 21, 2026

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

@ofershap
Copy link

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
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
@voxpelli
Copy link
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

@renovate renovate bot force-pushed the renovate/escape-string-regexp-5.x branch from 07e8f34 to 0d447a4 Compare March 5, 2026 14:00
@renovate renovate bot force-pushed the renovate/escape-string-regexp-5.x branch from 0d447a4 to 29f94a9 Compare March 13, 2026 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants