---
title: "string-width 9.0.0 Breaking Changes on npm | Since.dev"
description: "What each string-width release removed, renamed or changed: 13 breaking changes in 7 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/string-width
last_updated: 2026-12-04
---

# string-width breaking changes

string-width 9.0.0 (November 11, 2026) is its newest release with breaking changes, 2 of them. The first: Changes measured widths for emoji, Hangul, Indic and other character clusters in string-width 9.0.0. Every breaking API change we have recorded in string-width on npm: 13 breaking changes in 7 versions. Below, its 7 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `9.0.0`, released November 11, 2026. [Source repository](https://github.com/sindresorhus/string-width)

Its 9.0.0 release requires [Node.js 22](https://since.dev/calendar/nodejs/22.md) or later. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [8.0.0](#v-8-0-0) to [9.0.0](#v-9-0-0): 2 breaking changes in 1 version.
- From [5.0.0](#v-5-0-0) to [9.0.0](#v-9-0-0): 10 breaking changes in 6 versions.

## string-width 9.0.0 breaking changes

string-width 9.0.0, released November 11, 2026: 2 breaking changes.

- **Behavior changed**  

Width results change for emoji presentation, keycap, flag and skin tone sequences, Indic conjuncts, Thai and Lao AM vowels, Hangul clusters, and related text. Code that depends on exact width values may need updating. [github.com](https://github.com/sindresorhus/string-width/releases/tag/v9.0.0)
- **Configuration changed**  

The package now requires Node.js 22. Users on older Node.js versions must upgrade their runtime before using this release. [github.com](https://github.com/sindresorhus/string-width/releases/tag/v9.0.0)

## string-width 8.0.0 breaking changes

string-width 8.0.0, released August 22, 2025: 1 breaking change.

- **Behavior changed**  

The package now requires Node.js 20. Users on older Node.js versions must upgrade Node.js before installing this release. [github.com](https://github.com/sindresorhus/string-width/releases/tag/v8.0.0)

## string-width 7.0.0 breaking changes

string-width 7.0.0, released October 28, 2023: 1 breaking change.

- **Behavior changed**  

The package now requires Node.js 18 or later. Width results may differ because it uses the most recent Unicode data, so check code that depends on exact widths. [github.com](https://github.com/sindresorhus/string-width/releases/tag/v7.0.0)

## string-width 6.0.0 breaking changes

string-width 6.0.0, released May 6, 2023: 4 breaking changes.

- **Configuration changed**  

This release is not compatible with Firefox. Users who need Firefox support must stay on v5. [github.com](https://github.com/sindresorhus/string-width/releases/tag/v6.0.0)
- **Configuration changed**  

The package now requires Node.js 16. It is no longer compatible with Firefox; users who need Firefox support must stay on v5. [github.com](https://github.com/sindresorhus/string-width/releases/tag/v6.0.0)
- **Signature changed** `Options`  

Was interface Options; now type Options = {readonly ambiguousIsNarrow?: boolean; readonly countAnsiEscapeCodes?: boolean;}. [npmjs.com](https://www.npmjs.com/package/string-width/v/6.0.0)
- **Signature changed** `Options.ambiguousIsNarrow`  

Was readonly ambiguousIsNarrow: boolean; now readonly ambiguousIsNarrow?: boolean. [npmjs.com](https://www.npmjs.com/package/string-width/v/6.0.0)

## string-width 5.1.1 breaking changes

string-width 5.1.1, released February 27, 2022: 1 breaking change.

- **Default changed** `ambiguousIsNarrow`  

The default for the ambiguousIsNarrow option was corrected, so code that relied on the previous default may now measure string widths differently. Pass the option explicitly if you need a specific behavior. [github.com](https://github.com/sindresorhus/string-width/releases/tag/v5.1.1)

## string-width 5.1.0 breaking changes

string-width 5.1.0, released January 9, 2022: 1 breaking change.

- **Signature changed** `default`  

Was function stringWidth(string: string): number; now function stringWidth(string: string, options?: Options): number. [npmjs.com](https://www.npmjs.com/package/string-width/v/5.1.0)

## Older versions

1 older version, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### string-width 5.0.0 breaking changes

string-width 5.0.0, released April 16, 2021: 3 breaking changes.

- **Removed**  

The package now requires Node.js 12 or later, so older Node.js versions can no longer use it. [github.com](https://github.com/sindresorhus/string-width/releases/tag/v5.0.0)
- **Behavior changed**  

The package is now ES modules only, so code that loads it with require() must switch to import. [github.com](https://github.com/sindresorhus/string-width/releases/tag/v5.0.0)

And 1 more in this version.

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