Skip to content

chore(deps): update dependency vite-plugin-static-copy to v4#3679

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/vite-plugin-static-copy-4.x
Open

chore(deps): update dependency vite-plugin-static-copy to v4#3679
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/vite-plugin-static-copy-4.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented Mar 25, 2026

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
vite-plugin-static-copy 3.4.04.1.0 age adoption passing confidence

Release Notes

sapphi-red/vite-plugin-static-copy (vite-plugin-static-copy)

v4.1.0

Compare Source

Minor Changes
  • #​251 7672842 Thanks @​sapphi-red! - Add name property to the rename object form and allow rename functions to return a RenameObject. The name property replaces the file's basename (filename + extension), and can be combined with stripBase to both flatten directory structure and rename the file in one step. Rename functions can now return { name, stripBase } objects instead of only strings, making it easier to declaratively control output paths from dynamic rename logic.

    // node_modules/lib/dist/index.js → vendor/lib.js
    { src: 'node_modules/lib/dist/index.js', dest: 'vendor', rename: { name: 'lib.js', stripBase: true } }
    
    // src/pages/events/test.html → dist/events/index.html
    { src: 'src/pages/**/*.html', dest: 'dist/', rename: { stripBase: 2, name: 'index.html' } }

v4.0.1

Compare Source

Patch Changes
  • #​249 c6bf44c Thanks @​sapphi-red! - Fix absolute dest paths being nested under the output directory

    When dest was an absolute path and the source file had a directory component (structured output), the path was incorrectly converted to a relative path, causing files to be nested under the build output directory instead of being copied to the specified absolute path.

    { src: 'foo/foo.txt', dest: '/home/user/my-repo/bar' }

    Before: /home/user/my-repo/dist/home/user/my-repo/bar/foo/foo.txt
    After: /home/user/my-repo/bar/foo/foo.txt

  • #​247 d3af79e Thanks @​sapphi-red! - Fix rename.stripBase to work correctly with ../ paths

    Previously, stripBase counted .. as directory segments, causing incorrect output paths when copying from parent directories.

    { src: '../../src/pages/**/*.html', dest: 'dist/', rename: { stripBase: 2 } }

    Before: dist/src/pages/events/test.html
    After: dist/events/test.html

    { src: '../../src/pages/**/*.html', dest: 'dist/', rename: { stripBase: true } }

    Before: dist/src/pages/events/test.html
    After: dist/test.html

v4.0.0

Compare Source

Major Changes
  • #​235 b2edc86 Thanks @​sapphi-red! - Simplify glob behavior and always preserve directory structure.

    Breaking changes:

    • Only files are matched. Glob patterns no longer match directory entries. Previously, matching a directory would recursively copy it via fs.cp, which caused files to be copied twice when using ** patterns.
    • Directory patterns are auto-expanded. src: 'assets' now automatically expands to match all files inside the directory, using tinyglobby's built-in expandDirectories option. No migration needed for this pattern alone.
    • structured option removed. Directory structure is now always preserved in the output. The structured option has been removed entirely. Use rename: { stripBase: true } to flatten output paths when needed.
  • #​237 6129008 Thanks @​sapphi-red! - Drop support for Vite 5

  • #​238 9766e42 Thanks @​sapphi-red! - Drop support for Node 18, 20, 21, 23. The new support range is ^22.0.0 || >= 24.0.0.


Configuration

📅 Schedule: (in timezone Asia/Tokyo)

  • Branch creation
    • "after 9pm,before 9am"
  • 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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot requested a review from a team as a code owner March 25, 2026 16:36
@renovate renovate Bot added the renovate label Mar 25, 2026
@renovate renovate Bot requested review from chihiro-adachi and shabaraba and removed request for a team March 25, 2026 16:36
@renovate renovate Bot added the renovate label Mar 25, 2026
@renovate renovate Bot force-pushed the renovate/vite-plugin-static-copy-4.x branch 2 times, most recently from 7f40a9e to 6b8c844 Compare April 1, 2026 21:10
@renovate renovate Bot force-pushed the renovate/vite-plugin-static-copy-4.x branch 4 times, most recently from 780b638 to d3a22ed Compare April 12, 2026 13:19
@renovate renovate Bot force-pushed the renovate/vite-plugin-static-copy-4.x branch from d3a22ed to aa0940b Compare April 22, 2026 14:48
@renovate renovate Bot force-pushed the renovate/vite-plugin-static-copy-4.x branch 2 times, most recently from 626d6bd to 0c96100 Compare May 1, 2026 22:43
@renovate renovate Bot force-pushed the renovate/vite-plugin-static-copy-4.x branch 2 times, most recently from 538fb9e to 29f6bbf Compare May 18, 2026 18:25
@renovate renovate Bot force-pushed the renovate/vite-plugin-static-copy-4.x branch from 29f6bbf to 0ffa151 Compare May 28, 2026 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants