Skip to content

build(deps-dev): bump vite-plugin-static-copy from 3.3.0 to 4.0.0#978

Open
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/vite-plugin-static-copy-4.0.0
Open

build(deps-dev): bump vite-plugin-static-copy from 3.3.0 to 4.0.0#978
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/vite-plugin-static-copy-4.0.0

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot bot commented on behalf of github Apr 1, 2026

Bumps vite-plugin-static-copy from 3.3.0 to 4.0.0.

Release notes

Sourced from vite-plugin-static-copy's releases.

vite-plugin-static-copy@4.0.0

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.

vite-plugin-static-copy@3.4.0

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.

Changelog

Sourced from vite-plugin-static-copy's changelog.

4.0.0

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.

3.4.0

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.

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [vite-plugin-static-copy](https://github.com/sapphi-red/vite-plugin-static-copy) from 3.3.0 to 4.0.0.
- [Release notes](https://github.com/sapphi-red/vite-plugin-static-copy/releases)
- [Changelog](https://github.com/sapphi-red/vite-plugin-static-copy/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sapphi-red/vite-plugin-static-copy/compare/vite-plugin-static-copy@3.3.0...vite-plugin-static-copy@4.0.0)

---
updated-dependencies:
- dependency-name: vite-plugin-static-copy
  dependency-version: 4.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Apr 1, 2026
@dependabot dependabot bot requested a review from daveroverts as a code owner April 1, 2026 07:23
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Apr 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants