Skip to content

Update dependency vite-plugin-static-copy to v4#199

Merged
Kvarkas merged 1 commit intosvelteKitfrom
renovate/vite-plugin-static-copy-4.x
Mar 23, 2026
Merged

Update dependency vite-plugin-static-copy to v4#199
Kvarkas merged 1 commit intosvelteKitfrom
renovate/vite-plugin-static-copy-4.x

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Mar 22, 2026

This PR contains the following updates:

Package Change Age Confidence
vite-plugin-static-copy ^3.1.2^4.0.0 age confidence

Release Notes

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

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.

v3.4.0

Compare Source

Minor Changes
  • #​233 f665a15 Thanks @​sapphi-red! - Add { stripBase: number } object form to the rename option. This strips the given number of leading directory segments from the matched path, avoiding the need for manual ../ traversals in a rename function.

    This is useful when copying files from deep paths like node_modules/my-lib/dist/**/* with structured: true, where the full directory structure would otherwise be preserved in the output. Instead of writing a rename function that manually returns ../ traversals to flatten unwanted nesting, you can use rename: { stripBase: N } to declaratively strip the leading segments.


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.


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

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

@Kvarkas Kvarkas merged commit 69a54e3 into svelteKit Mar 23, 2026
3 checks passed
@Kvarkas Kvarkas deleted the renovate/vite-plugin-static-copy-4.x branch March 23, 2026 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant