unstale

npm / react-string-replace

react-string-replace

What changed in react-string-replace 1 to 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-24.

1 breaking1 new APIs and options1 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.2.8 on npm

react-string-replace 21 changes

Breaking changes 1

  • The replacement callback’s index parameter now returns 0-indexed sequential match values instead of internal array indices.

    2.0.0release notes

react-string-replace 12 changes

New APIs and options 1

  • An optional count parameter limits the number of replacements.

    1.2.0release notes

Fixes and other changes 1

  • Using RegExp patterns with the count parameter no longer crashes.

    1.2.0release notes