Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 13, 2026

Bumps react-string-replace from 1.1.1 to 2.0.1.

Release notes

Sourced from react-string-replace's releases.

v2.0.1

Tooling Modernization

Switched from npm/yarn to Bun for package management and testing.

Before → After

Metric Before After
Dev dependencies 529 packages 4 packages
Test execution ~2s 11ms
Lockfile size 410KB 1KB

Changes

  • Replace npm/yarn with Bun for package management
  • Replace AVA with bun test for testing (14 tests, same coverage)
  • Replace CircleCI with GitHub Actions
  • Remove ESLint and babel-eslint (deprecated tooling)

No changes to the library code or public API.

Full Changelog: iansinnott/react-string-replace@v2.0.0...v2.0.1

v2.0.0

Breaking Changes

Index parameter now starts at 0

The index parameter passed to the replacement callback now returns the logical match index (0, 1, 2, 3...) instead of the internal array index (1, 3, 5, 7...).

Before (v1.x):

reactStringReplace('a b c', /(\w)/g, (match, index) => {
  console.log(index); // 1, 3, 5
});

After (v2.0):

reactStringReplace('a b c', /(\w)/g, (match, index) => {
  console.log(index); // 0, 1, 2
});

This makes the index more intuitive and useful for React key props.

Migration

If your code relies on the old index values, update your callback logic to expect 0-indexed sequential values.

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [react-string-replace](https://github.com/iansinnott/react-string-replace) from 1.1.1 to 2.0.1.
- [Release notes](https://github.com/iansinnott/react-string-replace/releases)
- [Commits](iansinnott/react-string-replace@v1.1.1...v2.0.1)

---
updated-dependencies:
- dependency-name: react-string-replace
  dependency-version: 2.0.1
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Jan 13, 2026
@dependabot dependabot bot requested a review from a team as a code owner January 13, 2026 03:16
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jan 13, 2026
@dependabot dependabot bot requested a review from PavelJankoski January 13, 2026 03:16
@dependabot dependabot bot added the javascript Pull requests that update Javascript code label Jan 13, 2026
@PavelJankoski PavelJankoski merged commit fc2c2bd into v3.35 Jan 13, 2026
12 of 13 checks passed
@PavelJankoski PavelJankoski deleted the dependabot/npm_and_yarn/react-string-replace-2.0.1 branch January 13, 2026 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants