You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^7.1.0→^8.0.0Release Notes
adamreisnz/replace-in-file (replace-in-file)
v8.4.0Compare Source
v8.3.1Compare Source
v8.3.0Compare Source
v8.2.0Compare Source
v8.1.0Compare Source
v8.0.3Compare Source
v8.0.2Compare Source
v8.0.1Compare Source
v8.0.0Compare 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
replaceInFileorreplaceInFileSyncinstead.replace.syncsyntax is no longer available. Use the named exportreplaceInFileSyncinstead.async/awaitinstead.--configFileflag can now only be JSON.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.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
isRegexflag is no longer required.getTargetFileconfig param to modify the target file for saving the new file contents to. For example:Configuration
📅 Schedule: (UTC)
🚦 Automerge: Enabled.
♻ 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.
This PR was generated by Mend Renovate. View the repository job log.