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 initreact-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.
react-string-replace 12 changes
New APIs and options 1
An optional count parameter limits the number of replacements.
Fixes and other changes 1
Using RegExp patterns with the count parameter no longer crashes.