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
On this page
Latest version 9.0.0, released November 11, 2026. Source repository
Its 9.0.0 release requires Node.js 22 or later. Node.js end of life dates.
- From 8.0.0 to 9.0.0: 2 breaking changes in 1 version.
- From 5.0.0 to 9.0.0: 10 breaking changes in 6 versions.
string-width 9.0.0 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 - 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
string-width 8.0.0 breaking changes
- 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
string-width 7.0.0 breaking changes
- 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
string-width 6.0.0 breaking changes
- Configuration changed
This release is not compatible with Firefox. Users who need Firefox support must stay on v5. github.com - 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 - Signature changed
Options
Was interface Options; now type Options = {readonly ambiguousIsNarrow?: boolean; readonly countAnsiEscapeCodes?: boolean;}. npmjs.com - Signature changed
Options.ambiguousIsNarrow
Was readonly ambiguousIsNarrow: boolean; now readonly ambiguousIsNarrow?: boolean. npmjs.com
string-width 5.1.1 breaking changes
- 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
string-width 5.1.0 breaking changes
- Signature changed
default
Was function stringWidth(string: string): number; now function stringWidth(string: string, options?: Options): number. npmjs.com
Older versions
1 older version, each with its first changes. Sign up to see every change
Show 1 older version
string-width 5.0.0 breaking changes
- Removed
The package now requires Node.js 12 or later, so older Node.js versions can no longer use it. github.com - Behavior changed
The package is now ES modules only, so code that loads it with require() must switch to import. github.com
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, 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.