# What changed in react-string-replace

> 3 changes in react-string-replace 1 to 2 from its official release notes, upgrade guides and advisories: 1 breaking, 1 new APIs and options. Each one cited. Sources checked 2026-10-24. HTML: https://unstale.sh/npm/react-string-replace/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## react-string-replace 2

### Breaking changes

- The replacement callback’s index parameter now returns 0-indexed sequential match values instead of internal array indices. (2.0.0) — [release notes](https://github.com/iansinnott/react-string-replace/releases/tag/v2.0.0)

## react-string-replace 1

### New APIs and options

- An optional count parameter limits the number of replacements. (1.2.0) — [release notes](https://github.com/iansinnott/react-string-replace/releases/tag/v1.2.0)

### Fixes and other changes

- Using RegExp patterns with the count parameter no longer crashes. (1.2.0) — [release notes](https://github.com/iansinnott/react-string-replace/releases/tag/v1.2.0)
