escape-string-regexp breaking changes
escape-string-regexp 5.0.0 (April 17, 2021) is its newest release with breaking changes, 3 of them. The first: escape-string-regexp 5.0.0 requires Node.js 12 or later. Every breaking API change we have recorded in escape-string-regexp on npm: 5 breaking changes in 3 versions. Below, its 3 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 5.0.0, released April 17, 2021.
Its 5.0.0 release requires Node.js 12 or later. Node.js end of life dates.
- From 4.0.0 to 5.0.0: 3 breaking changes in 1 version.
- From 3.0.0 to 5.0.0: 4 breaking changes in 2 versions.
escape-string-regexp 5.0.0 breaking changes
- Removed
Node.js versions older than 12 are no longer supported. Upgrade Node.js to 12 or later before using this release. github.com - Behavior changed
The package ships only as ES modules, so code that loads it with require() must switch to import. Read the linked migration guide. github.com - Signature changed
default
Was const escapeStringRegexp: (string: string) => string; now function escapeStringRegexp(string: string): string. npmjs.com
escape-string-regexp 4.0.0 breaking changes
- Behavior changed
The escaped output for the hyphen character changed to be PCRE-compatible. Code that depends on the exact escaped output may need to be updated. github.com
escape-string-regexp 3.0.0 breaking changes
- Configuration changed
The package now requires Node.js 10 or later. Users on older Node.js versions must upgrade before installing this release. github.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.