Update dependency replace-in-file to v8 #230

Open
renovate-bot wants to merge 1 commit from renovate/replace-in-file-8.x into develop
Collaborator

This PR contains the following updates:

Package Type Update Change
replace-in-file devDependencies major ^7.1.0 -> ^8.0.1

Release Notes

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

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

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

v7.2.0

Compare Source


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 is behind base branch, 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 has been generated by Renovate Bot.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [replace-in-file](https://github.com/adamreisnz/replace-in-file) | devDependencies | major | [`^7.1.0` -> `^8.0.1`](https://renovatebot.com/diffs/npm/replace-in-file/7.1.0/8.0.1) | --- ### Release Notes <details> <summary>adamreisnz/replace-in-file (replace-in-file)</summary> ### [`v8.0.1`](https://github.com/adamreisnz/replace-in-file/compare/3ea83fd0feabc7f199bee9a8e90ffad79c07d28b...a5e19f544606487ba0fe7b26f27c160e4196f864) [Compare Source](https://github.com/adamreisnz/replace-in-file/compare/3ea83fd0feabc7f199bee9a8e90ffad79c07d28b...a5e19f544606487ba0fe7b26f27c160e4196f864) ### [`v8.0.0`](https://github.com/adamreisnz/replace-in-file/blob/HEAD/CHANGELOG.md#800) [Compare Source](https://github.com/adamreisnz/replace-in-file/compare/aafb9b1d644bc0414d8402dab246510c89a9d183...3ea83fd0feabc7f199bee9a8e90ffad79c07d28b) 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 You can now specify a `getTargetFile` config param to modify the target file for saving the new file contents to. For example: ```js const options = { files: 'path/to/files/*.html', getTargetFile: source => `new/path/${source}`, from: 'foo', to: 'bar', } ``` ### [`v7.2.0`](https://github.com/adamreisnz/replace-in-file/compare/2bec5b78f83848c318741f2bae4bc8f22fe25ca5...aafb9b1d644bc0414d8402dab246510c89a9d183) [Compare Source](https://github.com/adamreisnz/replace-in-file/compare/2bec5b78f83848c318741f2bae4bc8f22fe25ca5...aafb9b1d644bc0414d8402dab246510c89a9d183) </details> --- ### 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 is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MTQuMSIsInVwZGF0ZWRJblZlciI6IjM3LjQxNC4xIiwidGFyZ2V0QnJhbmNoIjoiZGV2ZWxvcCIsImxhYmVscyI6W119-->
renovate-bot added 1 commit 2024-06-24 03:00:55 +00:00
Update dependency replace-in-file to v8
Some checks failed
Build and Deploy Website / Build Website (push) Has been skipped
Build and Deploy Website / Deploy Website (push) Has been skipped
Build and Deploy Website / Build Dev Website (push) Failing after 52s
Build and Deploy Website / Deploy Dev Website (push) Has been skipped
3005d59d49
samuel-p was assigned by renovate-bot 2024-06-24 03:00:55 +00:00
renovate-bot force-pushed renovate/replace-in-file-8.x from 3005d59d49 to d7ae51cdcf 2024-06-25 05:00:57 +00:00 Compare
All checks were successful
Build and Deploy Website / Build Website (push) Has been skipped
Build and Deploy Website / Deploy Website (push) Has been skipped
Build and Deploy Website / Build Dev Website (push) Successful in 35s
Build and Deploy Website / Deploy Dev Website (push) Has been skipped
This pull request can be merged automatically.
You are not authorized to merge this pull request.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin renovate/replace-in-file-8.x:renovate/replace-in-file-8.x
git checkout renovate/replace-in-file-8.x

Merge

Merge the changes and update on Forgejo.
git checkout develop
git merge --no-ff renovate/replace-in-file-8.x
git checkout develop
git merge --ff-only renovate/replace-in-file-8.x
git checkout renovate/replace-in-file-8.x
git rebase develop
git checkout develop
git merge --no-ff renovate/replace-in-file-8.x
git checkout develop
git merge --squash renovate/replace-in-file-8.x
git checkout develop
git merge --ff-only renovate/replace-in-file-8.x
git checkout develop
git merge renovate/replace-in-file-8.x
git push origin develop
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: samuel-p/sp-codes.de#230
No description provided.