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

⬆️ Update dependency replace-in-file to v8 #714

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jun 24, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
replace-in-file ^7.2.0 -> ^8.3.0 age adoption passing confidence

Release Notes

adamreisnz/replace-in-file (replace-in-file)

v8.3.0

Compare Source

v8.2.0

Compare Source

v8.1.0

Compare Source

v8.0.3

Compare Source

v8.0.2

Compare Source

v8.0.1

Compare Source

v8.0.0

Compare Source

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',
}

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the dependencies Pull requests that update a dependency file label Jun 24, 2024
@renovate renovate bot force-pushed the renovate/replace-in-file-8.x branch 4 times, most recently from b44f1a3 to 3edfb73 Compare July 2, 2024 04:51
@renovate renovate bot force-pushed the renovate/replace-in-file-8.x branch from 3edfb73 to 93f4b91 Compare July 2, 2024 21:35
@renovate renovate bot force-pushed the renovate/replace-in-file-8.x branch 2 times, most recently from 5d1e3c0 to dc39862 Compare July 22, 2024 09:59
@renovate renovate bot force-pushed the renovate/replace-in-file-8.x branch from dc39862 to d565101 Compare September 22, 2024 09:06
@renovate renovate bot force-pushed the renovate/replace-in-file-8.x branch from d565101 to 8eda88e Compare November 28, 2024 23:18
@renovate renovate bot changed the title ⬆️ Update dependency replace-in-file to v8 ⬆️ Update dependency replace-in-file to v8 - autoclosed Dec 8, 2024
@renovate renovate bot closed this Dec 8, 2024
@renovate renovate bot deleted the renovate/replace-in-file-8.x branch December 8, 2024 18:38
@renovate renovate bot changed the title ⬆️ Update dependency replace-in-file to v8 - autoclosed ⬆️ Update dependency replace-in-file to v8 Dec 9, 2024
@renovate renovate bot reopened this Dec 9, 2024
@renovate renovate bot force-pushed the renovate/replace-in-file-8.x branch from 0e9d0d1 to 8eda88e Compare December 9, 2024 01:49
@renovate renovate bot force-pushed the renovate/replace-in-file-8.x branch from 8eda88e to 780af6a Compare December 17, 2024 13:40
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants