Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps-dev): bump replace-in-file from 7.2.0 to 8.1.0 #2629

Closed

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jul 3, 2024

Bumps replace-in-file from 7.2.0 to 8.1.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

Dependabot compatibility score

You can trigger a rebase of this PR 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)

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 major labels Jul 3, 2024
@github-actions github-actions bot added the repo label Jul 3, 2024
Copy link
Contributor

github-actions bot commented Jul 3, 2024

@dependabot dependabot bot force-pushed the dependabot-npm_and_yarn-replace-in-file-8.1.0 branch from 5cf2e37 to dc123ce Compare July 3, 2024 02:51
@dependabot dependabot bot force-pushed the dependabot-npm_and_yarn-replace-in-file-8.1.0 branch from dc123ce to 1a6fe46 Compare July 4, 2024 03:11
@dependabot dependabot bot force-pushed the dependabot-npm_and_yarn-replace-in-file-8.1.0 branch from 1a6fe46 to 7fcc61c Compare July 5, 2024 02:41
@dependabot dependabot bot force-pushed the dependabot-npm_and_yarn-replace-in-file-8.1.0 branch from 7fcc61c to 9b82d1f Compare July 5, 2024 02:53
github-actions[bot]
github-actions bot previously approved these changes Jul 5, 2024
@dependabot dependabot bot force-pushed the dependabot-npm_and_yarn-replace-in-file-8.1.0 branch from 9b82d1f to f1ef17d Compare July 8, 2024 02:57
@dependabot dependabot bot force-pushed the dependabot-npm_and_yarn-replace-in-file-8.1.0 branch from f1ef17d to b783d59 Compare July 8, 2024 03:24
@dependabot dependabot bot force-pushed the dependabot-npm_and_yarn-replace-in-file-8.1.0 branch from b783d59 to 927ea2b Compare July 8, 2024 08:09
github-actions[bot]
github-actions bot previously approved these changes Jul 8, 2024
@dependabot dependabot bot force-pushed the dependabot-npm_and_yarn-replace-in-file-8.1.0 branch from 927ea2b to f38a07b Compare July 9, 2024 03:04
github-actions[bot]
github-actions bot previously approved these changes Jul 9, 2024
@dependabot dependabot bot force-pushed the dependabot-npm_and_yarn-replace-in-file-8.1.0 branch from 27158fe to dd6abe5 Compare July 17, 2024 04:37
@dependabot dependabot bot force-pushed the dependabot-npm_and_yarn-replace-in-file-8.1.0 branch from dd6abe5 to cedcaa0 Compare July 19, 2024 03:13
github-actions[bot]
github-actions bot previously approved these changes Jul 19, 2024
@dependabot dependabot bot force-pushed the dependabot-npm_and_yarn-replace-in-file-8.1.0 branch from cedcaa0 to f88a79f Compare July 23, 2024 03:23
github-actions[bot]
github-actions bot previously approved these changes Jul 23, 2024
@dependabot dependabot bot force-pushed the dependabot-npm_and_yarn-replace-in-file-8.1.0 branch from f88a79f to 32d65de Compare July 23, 2024 04:02
github-actions[bot]
github-actions bot previously approved these changes Jul 23, 2024
@dependabot dependabot bot force-pushed the dependabot-npm_and_yarn-replace-in-file-8.1.0 branch from 32d65de to eea563d Compare July 24, 2024 09:28
@dependabot dependabot bot force-pushed the dependabot-npm_and_yarn-replace-in-file-8.1.0 branch from eea563d to 5c56e39 Compare July 25, 2024 02:20
@dependabot dependabot bot force-pushed the dependabot-npm_and_yarn-replace-in-file-8.1.0 branch from 5c56e39 to ef13aff Compare July 26, 2024 11:32
github-actions[bot]
github-actions bot previously approved these changes Jul 26, 2024
@dependabot dependabot bot force-pushed the dependabot-npm_and_yarn-replace-in-file-8.1.0 branch from ef13aff to 4e6127d Compare July 26, 2024 12:39
github-actions[bot]
github-actions bot previously approved these changes Jul 26, 2024
github-actions[bot]
github-actions bot previously approved these changes Aug 1, 2024
Bumps [replace-in-file](https://github.com/adamreisnz/replace-in-file) from 7.2.0 to 8.1.0.
- [Release notes](https://github.com/adamreisnz/replace-in-file/releases)
- [Changelog](https://github.com/adamreisnz/replace-in-file/blob/main/CHANGELOG.md)
- [Commits](https://github.com/adamreisnz/replace-in-file/commits)

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

Signed-off-by: dependabot[bot] <[email protected]>
Copy link
Contributor Author

dependabot bot commented on behalf of github Sep 23, 2024

Superseded by #2775.

@dependabot dependabot bot closed this Sep 23, 2024
@dependabot dependabot bot deleted the dependabot-npm_and_yarn-replace-in-file-8.1.0 branch September 23, 2024 02:46
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 major repo
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants