Skip to content

chore(deps-dev): bump replace-in-file from 7.2.0 to 8.4.0 - #150

Merged
HardeepAsrani merged 1 commit into
developmentfrom
dependabot/npm_and_yarn/development/replace-in-file-8.4.0
Jun 24, 2026
Merged

HardeepAsrani merged 1 commit into
developmentfrom
dependabot/npm_and_yarn/development/replace-in-file-8.4.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jan 1, 2026 •

Copy link
Copy Markdown
Contributor

Bumps replace-in-file from 7.2.0 to 8.4.0.

Changelog

Sourced from replace-in-file's changelog.

8.0.0

The package has been converted to an ES module and now requires Node 18 or higher. If you need support for Node 16 or below, please use version 7.x.x.

Breaking changes

  • Package has been converted to an ES module
  • No longer providing a default export. Use the named exports replaceInFile or replaceInFileSync instead.
  • The replace.sync syntax is no longer available. Use the named export replaceInFileSync instead.
  • The callback API has been removed for asynchronous replacements. Please use promises or async/await instead.
  • Configuration files provided to the CLI using the --configFile flag can now only be JSON.
  • To use a custom fs implementation, you must now specify fs config parameter for the async API, and fsSync for the sync API. For the asynchronous APIs, the provided fs must provide the readFile and writeFile methods. For the synchronous APIs, the provided fsSync must provide the readFileSync and writeFileSync methods.
  • If a cwd parameter is provided, it will no longer be prefixed to each path using basic string concatenation, but rather uses path.join() to ensure correct path concatenation.

New features

  • The isRegex flag is no longer required.
  • You can now specify a getTargetFile config param to modify the target file for saving the new file contents to. For example:
const options = {
  files: 'path/to/files/*.html',
  getTargetFile: source => `new/path/${source}`,
  from: 'foo',
  to: 'bar',
}

7.0.0

Strings provided to the from value are now escaped for regex matching when counting of matches is enabled. This is unlikely to result in any breaking changes, but as a precaution the major version has been bumped.

6.0.0

From version 6.0.0 onwards, replace in file requires Node 10 or higher. If you need support for Node 8, please use version 5.x.x.

5.0.0

From version 5.0.0 onwards, replace in file requires Node 8 or higher. If you need support for Node 6, please use version 4.x.x.

4.0.0

Breaking changes

The return value is now a results array instead of an array with changed files. The new results array includes each file that was processed, with a flag to indicate whether or not the file was changed, and optionally information about the number of matches and replacements that were made. See the readme for more details.

To update existing code and obtain an array of changed files again, simply convert the results array as follows:

const results = await replace(options);
const changedFiles = results
  .filter(result => result.hasChanged)
  .map(result => result.file);

... (truncated)

Commits

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Jan 1, 2026
@HardeepAsrani

Copy link
Copy Markdown
Member

@dependabot rebase

Bumps [replace-in-file](https://github.com/adamreisnz/replace-in-file) from 7.2.0 to 8.4.0.
- [Release notes](https://github.com/adamreisnz/replace-in-file/releases)
- [Changelog](https://github.com/adamreisnz/replace-in-file/blob/main/CHANGELOG.md)
- [Commits](adamreisnz/replace-in-file@v7.2.0...v8.4.0)

---
updated-dependencies:
- dependency-name: replace-in-file
  dependency-version: 8.4.0
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/development/replace-in-file-8.4.0 branch from 3b11564 to 279ead7 Compare June 24, 2026 22:47
@HardeepAsrani
HardeepAsrani merged commit 598792e into development Jun 24, 2026
8 checks passed
@dependabot
dependabot Bot deleted the dependabot/npm_and_yarn/development/replace-in-file-8.4.0 branch June 24, 2026 22:48
@pirate-bot

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 2.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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 released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants