Update dependency replace-in-file to v9 #324
No reviewers
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
samuel-p/sp-codes.de!324
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "renovate/replace-in-file-9.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
^8.4.0→^9.0.0Release Notes
adamreisnz/replace-in-file (replace-in-file)
v9.0.0Compare Source
The package now requires Node 22.12.0 or higher, as Node 18 and Node 20 have reached end of life. If you need support for older versions of Node, please use version 8.x.x.
Breaking changes
yargs@18andchalk@6require it)fromare now only converted to a regular expression if they both start and end with a slash (e.g."/cat/g"), as documented. Previously, plain strings that merely ended in a slash and optional flag characters (e.g."assets/img"or"foo/") were silently converted to regular expressions as well.New features
streamingoption for processing large files with bounded memory usage. Files are streamed through Node streams instead of being read into memory in full, with matches found across chunk boundaries. This also enables processing of files larger than the maximum string size supported by Node.js (about 500MB), which previously failed outright. Regex matches are guaranteed up to a configurablemaxMatchLengthwindow (default1024characters); plain string values are always matched exactly. Streaming is available for asynchronous replacement via the API (streaming: true) and in the CLI via--streaming. See the README for details and constraints.Other changes
replaceInFile.replaceInFileSyncnamespace API, both of which were removed from the runtime in 8.0.0processFileandprocessFileSyncwere missing from the typescwd,verbose,quiet,fsandfsSyncoptions were missing from the config typedistfolder, and anexportsmap has been added. Deep imports into package internals (e.g.replace-in-file/src/...) are no longer possibleConfiguration
📅 Schedule: (UTC)
🚦 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.
This PR has been generated by Mend Renovate CLI.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.