Skip to content

Commit

Permalink
fix(deps): update dependency replace-in-file to v8 (#1332)
Browse files Browse the repository at this point in the history
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [replace-in-file](https://togithub.com/adamreisnz/replace-in-file) |
[`7.2.0` ->
`8.1.0`](https://renovatebot.com/diffs/npm/replace-in-file/7.2.0/8.1.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/replace-in-file/8.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/replace-in-file/8.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/replace-in-file/7.2.0/8.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/replace-in-file/7.2.0/8.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>adamreisnz/replace-in-file (replace-in-file)</summary>

###
[`v8.1.0`](https://togithub.com/adamreisnz/replace-in-file/compare/dc5e8cd2776d3cd9f855671c716e48b016bee0c3...d0b8c0d80eedfe5ef6f1ccf15ba91440d7902d98)

[Compare
Source](https://togithub.com/adamreisnz/replace-in-file/compare/dc5e8cd2776d3cd9f855671c716e48b016bee0c3...d0b8c0d80eedfe5ef6f1ccf15ba91440d7902d98)

###
[`v8.0.3`](https://togithub.com/adamreisnz/replace-in-file/compare/760102a1824b169fc4e2ba47e0b621c7d1de6e22...dc5e8cd2776d3cd9f855671c716e48b016bee0c3)

[Compare
Source](https://togithub.com/adamreisnz/replace-in-file/compare/760102a1824b169fc4e2ba47e0b621c7d1de6e22...dc5e8cd2776d3cd9f855671c716e48b016bee0c3)

###
[`v8.0.2`](https://togithub.com/adamreisnz/replace-in-file/compare/a5e19f544606487ba0fe7b26f27c160e4196f864...760102a1824b169fc4e2ba47e0b621c7d1de6e22)

[Compare
Source](https://togithub.com/adamreisnz/replace-in-file/compare/a5e19f544606487ba0fe7b26f27c160e4196f864...760102a1824b169fc4e2ba47e0b621c7d1de6e22)

###
[`v8.0.1`](https://togithub.com/adamreisnz/replace-in-file/compare/3ea83fd0feabc7f199bee9a8e90ffad79c07d28b...a5e19f544606487ba0fe7b26f27c160e4196f864)

[Compare
Source](https://togithub.com/adamreisnz/replace-in-file/compare/3ea83fd0feabc7f199bee9a8e90ffad79c07d28b...a5e19f544606487ba0fe7b26f27c160e4196f864)

###
[`v8.0.0`](https://togithub.com/adamreisnz/replace-in-file/blob/HEAD/CHANGELOG.md#800)

[Compare
Source](https://togithub.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',
}
```

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "on sunday" in timezone Asia/Shanghai,
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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log [here](https://developer.mend.io/github/PKUHPC/SCOW).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjAuMSIsInVwZGF0ZWRJblZlciI6IjM3LjQyMS45IiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbXX0=-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Chen Junda <[email protected]>
  • Loading branch information
renovate[bot] and ddadaal authored Jul 16, 2024
1 parent f94b912 commit 896c2d0
Show file tree
Hide file tree
Showing 3 changed files with 92 additions and 61 deletions.
2 changes: 1 addition & 1 deletion apps/ai/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
"@xterm/addon-fit": "0.10.0",
"zod": "3.23.8",
"shell-quote": "1.8.1",
"replace-in-file": "7.2.0"
"replace-in-file": "8.1.0"
},
"devDependencies": {
"@next/bundle-analyzer": "14.2.4",
Expand Down
4 changes: 2 additions & 2 deletions apps/ai/start.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

import { execSync } from "child_process";
import { cpSync, existsSync, rmdirSync } from "fs";
import replaceInFile from "replace-in-file";
import { replaceInFileSync } from "replace-in-file";

const BACKUP_DIR = ".next.backup";
const BASE_PATH = process.env.NEXT_PUBLIC_BASE_PATH || "";
Expand All @@ -37,7 +37,7 @@ const options = {
to: basePath,
};

replaceInFile.sync(options);
replaceInFileSync(options);

// Run serve:next
execSync("npm run serve:next", { stdio: "inherit", env: {
Expand Down
147 changes: 89 additions & 58 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 896c2d0

Please sign in to comment.