Skip to content

Commit b6073a7

Browse files
chore(deps): update dependency cpy to v12 (#5485)
This PR contains the following updates: | Package | Change | Age | Confidence | |---|---|---|---| | [cpy](https://redirect.github.com/sindresorhus/cpy) | [`^8.1.2` -> `^12.0.0`](https://renovatebot.com/diffs/npm/cpy/8.1.2/12.0.1) | [![age](https://developer.mend.io/api/mc/badges/age/npm/cpy/12.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/cpy/8.1.2/12.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>sindresorhus/cpy (cpy)</summary> ### [`v12.0.1`](https://redirect.github.com/sindresorhus/cpy/releases/tag/v12.0.1) [Compare Source](https://redirect.github.com/sindresorhus/cpy/compare/v12.0.0...v12.0.1) - Fix relative path handling and path normalization ([#&#8203;120](https://redirect.github.com/sindresorhus/cpy/issues/120)) [`c20ee96`](https://redirect.github.com/sindresorhus/cpy/commit/c20ee96) *** ### [`v12.0.0`](https://redirect.github.com/sindresorhus/cpy/releases/tag/v12.0.0) [Compare Source](https://redirect.github.com/sindresorhus/cpy/compare/v11.1.0...v12.0.0) ##### Breaking - Require Node.js 20 [`61b9de2`](https://redirect.github.com/sindresorhus/cpy/commit/61b9de2) ##### Improvements - Add [`onProgress`](https://redirect.github.com/sindresorhus/cpy?tab=readme-ov-file#onprogress) option [`79c6e3a`](https://redirect.github.com/sindresorhus/cpy/commit/79c6e3a) - The previous `cpy(…).on('progress', …)` handler is deprecated ##### Fixes - Fix: Avoid self-copy with absolute destination [`3cbdad1`](https://redirect.github.com/sindresorhus/cpy/commit/3cbdad1) - Fix `cwd` option ([#&#8203;119](https://redirect.github.com/sindresorhus/cpy/issues/119)) [`8ae6add`](https://redirect.github.com/sindresorhus/cpy/commit/8ae6add) *** ### [`v11.1.0`](https://redirect.github.com/sindresorhus/cpy/releases/tag/v11.1.0) [Compare Source](https://redirect.github.com/sindresorhus/cpy/compare/v11.0.1...v11.1.0) - Update dependencies [`7c96d93`](https://redirect.github.com/sindresorhus/cpy/commit/7c96d93) ### [`v11.0.1`](https://redirect.github.com/sindresorhus/cpy/releases/tag/v11.0.1) [Compare Source](https://redirect.github.com/sindresorhus/cpy/compare/v11.0.0...v11.0.1) - Remove unused type [`778e9e1`](https://redirect.github.com/sindresorhus/cpy/commit/778e9e1) ### [`v11.0.0`](https://redirect.github.com/sindresorhus/cpy/releases/tag/v11.0.0) [Compare Source](https://redirect.github.com/sindresorhus/cpy/compare/v10.1.0...v11.0.0) ##### Breaking - Require Node.js 18 [`f9d72e1`](https://redirect.github.com/sindresorhus/cpy/commit/f9d72e1) ##### Improvements - [Clone](https://stackoverflow.com/questions/71629903/node-js-why-we-should-use-copyfile-ficlone-and-copyfile-ficlone-force-what-is) files whenever possible [`f9d72e1`](https://redirect.github.com/sindresorhus/cpy/commit/f9d72e1) ##### Maintenance - This package has a lot of problems and I unfortunately don't have time to fix them. I would recommend against using this package until these problems are resolved. Help welcome (see the issue tracker). ### [`v10.1.0`](https://redirect.github.com/sindresorhus/cpy/releases/tag/v10.1.0) [Compare Source](https://redirect.github.com/sindresorhus/cpy/compare/v10.0.0...v10.1.0) - Add file `sourcePath` and `destinationPath` to the progress event ([#&#8203;112](https://redirect.github.com/sindresorhus/cpy/issues/112)) [`936710e`](https://redirect.github.com/sindresorhus/cpy/commit/936710e) ### [`v10.0.0`](https://redirect.github.com/sindresorhus/cpy/releases/tag/v10.0.0) [Compare Source](https://redirect.github.com/sindresorhus/cpy/compare/v9.0.1...v10.0.0) ##### Breaking - Require Node.js 16 [`f18399d`](https://redirect.github.com/sindresorhus/cpy/commit/f18399d) ##### Fixes - Fix: Make `rename` function receive filename with extension ([#&#8203;110](https://redirect.github.com/sindresorhus/cpy/issues/110)) [`cdb7ed4`](https://redirect.github.com/sindresorhus/cpy/commit/cdb7ed4) - In v9, it incorrectly received a filename without extension. ### [`v9.0.1`](https://redirect.github.com/sindresorhus/cpy/releases/tag/v9.0.1) [Compare Source](https://redirect.github.com/sindresorhus/cpy/compare/v9.0.0...v9.0.1) - Fix `flat` option when copying a single file ([#&#8203;101](https://redirect.github.com/sindresorhus/cpy/issues/101)) [`2014a4f`](https://redirect.github.com/sindresorhus/cpy/commit/2014a4f) ### [`v9.0.0`](https://redirect.github.com/sindresorhus/cpy/releases/tag/v9.0.0) [Compare Source](https://redirect.github.com/sindresorhus/cpy/compare/v8.1.2...v9.0.0) ##### Breaking - This package is now pure ESM. **Please [read this](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c).** - Require Node.js 12 ##### Recursive by default - `parents` option was removed - to get flat list of files use `flat: true` option Example directory structure: ``` - .github/workflows/main.yml - .github/funding.yml ``` Command: `cpy('.github/**', 'dest')` Old output: ``` - dest/funding.yml - dest/main.yml ``` New output: ``` - dest/workflows/main.yml - dest/main.yml ``` ##### Recreate old `parents: true` Example directory structure: ``` - .github/workflows/main.yml - .github/funding.yml ``` Old: `cpy('.github/**', 'dest', {parents: true})` New: `cpy('.github', 'dest')` Output: ``` - dest/.github/workglows/main.yml - dest/.github/funding.yml ``` ##### Recreate old `parents: false` Example directory structure: ``` - .github/workflows/main.yml - .github/funding.yml ``` Old: `cpy('.github/**', 'dest', {parents: false})` New: `cpy('.github', 'dest', {flat: true})` Output: ``` - dest/main.yml - dest/funding.yml ``` ##### Copy all package.json and preserve folder structure Old: `cpy('node_modules/**/package.json', 'dest', {parents: true})` Old output: ![](https://i.imgur.com/sHOe35T.png) New: `cpy('node_modules/**/package.json', 'dest')` New output: ![](https://i.imgur.com/pYJEK2T.png) </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 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 was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/eggjs/egg). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS45Ny4xMCIsInVwZGF0ZWRJblZlciI6IjQxLjk3LjEwIiwidGFyZ2V0QnJhbmNoIjoibmV4dCIsImxhYmVscyI6W119--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent 9865c70 commit b6073a7

File tree

2 files changed

+88
-775
lines changed

2 files changed

+88
-775
lines changed

0 commit comments

Comments
 (0)