---
title: "escape-string-regexp 5.0.0 Breaking Changes on npm"
description: "What each escape-string-regexp release removed, renamed or changed: 5 breaking changes in 3 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/escape-string-regexp
last_updated: 2026-12-04
---

# 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

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](https://since.dev/calendar/nodejs.md).

- From [4.0.0](#v-4-0-0) to [5.0.0](#v-5-0-0): 3 breaking changes in 1 version.
- From [3.0.0](#v-3-0-0) to [5.0.0](#v-5-0-0): 4 breaking changes in 2 versions.

## escape-string-regexp 5.0.0 breaking changes

escape-string-regexp 5.0.0, released April 17, 2021: 3 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](https://github.com/sindresorhus/escape-string-regexp/releases/tag/v5.0.0)
- **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](https://github.com/sindresorhus/escape-string-regexp/releases/tag/v5.0.0)
- **Signature changed** `default`  

Was const escapeStringRegexp: (string: string) => string; now function escapeStringRegexp(string: string): string. [npmjs.com](https://www.npmjs.com/package/escape-string-regexp/v/5.0.0)

## escape-string-regexp 4.0.0 breaking changes

escape-string-regexp 4.0.0, released April 23, 2020: 1 breaking change.

- **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](https://github.com/sindresorhus/escape-string-regexp/releases/tag/v4.0.0)

## escape-string-regexp 3.0.0 breaking changes

escape-string-regexp 3.0.0, released April 7, 2020: 1 breaking change.

- **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](https://github.com/sindresorhus/escape-string-regexp/releases/tag/v3.0.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
