carbon
carbon copied to clipboard
chore(deps): update dependency replace-in-file to v8
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| replace-in-file | ^7.0.0 -> ^8.0.0 |
[!WARNING] Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
adamreisnz/replace-in-file (replace-in-file)
v8.1.0
v8.0.3
v8.0.2
v8.0.1
v8.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
replaceInFileorreplaceInFileSyncinstead. - The
replace.syncsyntax is no longer available. Use the named exportreplaceInFileSyncinstead. - The callback API has been removed for asynchronous replacements. Please use promises or
async/awaitinstead. - Configuration files provided to the CLI using the
--configFileflag can now only be JSON. - To use a custom
fsimplementation, you must now specifyfsconfig parameter for the async API, andfsSyncfor the sync API. For the asynchronous APIs, the providedfsmust provide thereadFileandwriteFilemethods. For the synchronous APIs, the providedfsSyncmust provide thereadFileSyncandwriteFileSyncmethods. - If a
cwdparameter is provided, it will no longer be prefixed to each path using basic string concatenation, but rather usespath.join()to ensure correct path concatenation.
New features
- The
isRegexflag is no longer required. - You can now specify a
getTargetFileconfig 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
v7.1.0
v7.0.2
Configuration
📅 Schedule: Branch creation - "after 10pm every weekday,before 5am every weekday,every weekend" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Never, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
- [ ] If you want to rebase/retry this PR, check this box
This PR was generated by Mend Renovate. View the repository job log.
Migration docs https://github.com/adamreisnz/replace-in-file/blob/main/CHANGELOG.md
Edited/Blocked Notification
Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.
You can manually request rebase by checking the rebase/retry box above.
⚠️ Warning: custom changes will be lost.
Blocked by https://github.com/carbon-design-system/carbon/issues/17194.
Closing in favor of https://github.com/carbon-design-system/carbon/pull/20078.