---
title: "balanced-match 5.0.0 Breaking Changes on npm | Since.dev"
description: "What each balanced-match release removed, renamed or changed: 6 breaking changes in 4 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/balanced-match
last_updated: 2026-12-04
---

# balanced-match breaking changes

balanced-match 5.0.0 (October 16, 2026) is its newest release with breaking changes. The first: Signature changed balanced. Every breaking API change we have recorded in balanced-match on npm: 6 breaking changes in 4 versions. Below, its 4 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `5.0.0`, released October 16, 2026. [Source repository](https://github.com/juliangruber/balanced-match)

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

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

## balanced-match 5.0.0 breaking changes

balanced-match 5.0.0, released October 16, 2026: 1 breaking change.

- **Signature changed** `balanced`  

Was const balanced: (a: string | RegExp, b: string | RegExp, str: string) => false | {start: number; end: number; pre: string; body: string; post: string;} | undefined; now const balanced: (a: string | RegExp, b: string | RegExp, str... [npmjs.com](https://www.npmjs.com/package/balanced-match/v/5.0.0)

## balanced-match 4.0.2 breaking changes

balanced-match 4.0.2, released February 9, 2026: 3 breaking changes.

- **Removed** `default`  

default was removed in balanced-match 4.0.2 [npmjs.com](https://www.npmjs.com/package/balanced-match/v/4.0.2)
- **Removed** `Output`  

Output was removed in balanced-match 4.0.2 [npmjs.com](https://www.npmjs.com/package/balanced-match/v/4.0.2)
- **Signature changed** `range`  

Was function range(a: string | RegExp, b: string | RegExp, str: string): \[number, number\] | undefined; now const range: (a: string, b: string, str: string) => undefined | \[number, number\]. [npmjs.com](https://www.npmjs.com/package/balanced-match/v/4.0.2)

## balanced-match 3.0.1 breaking changes

balanced-match 3.0.1, released October 7, 2023: 1 breaking change.

- **Configuration changed**  

The package now defines its entry points with the exports field instead of main, so deep imports of files not listed in exports may stop resolving. Import the package by its public entry name. [github.com](https://github.com/juliangruber/balanced-match/releases/tag/v3.0.1)

## balanced-match 3.0.0 breaking changes

balanced-match 3.0.0, released October 5, 2023: 1 breaking change.

- **Behavior changed**  

The package is now ESM, so code that loads it with CommonJS require must switch to import. [github.com](https://github.com/juliangruber/balanced-match/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.
