Skip to content

Commit 8b3f810

Browse files
chore: update versions (#236)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 9766e42 commit 8b3f810

File tree

5 files changed

+16
-22
lines changed

5 files changed

+16
-22
lines changed

.changeset/chatty-brooms-rhyme.md

Lines changed: 0 additions & 11 deletions
This file was deleted.

.changeset/deep-news-do.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/hungry-cobras-train.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# vite-plugin-static-copy
22

3+
## 4.0.0
4+
5+
### Major Changes
6+
7+
- [#235](https://github.com/sapphi-red/vite-plugin-static-copy/pull/235) [`b2edc86`](https://github.com/sapphi-red/vite-plugin-static-copy/commit/b2edc86ff157040de96de1f0ffe8b2e04b5f5f2c) Thanks [@sapphi-red](https://github.com/sapphi-red)! - Simplify glob behavior and always preserve directory structure.
8+
9+
**Breaking changes:**
10+
- **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.
11+
- **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.
12+
- **`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.
13+
14+
- [#237](https://github.com/sapphi-red/vite-plugin-static-copy/pull/237) [`6129008`](https://github.com/sapphi-red/vite-plugin-static-copy/commit/6129008c438c082210493082b9d547c1fd8d7626) Thanks [@sapphi-red](https://github.com/sapphi-red)! - Drop support for Vite 5
15+
16+
- [#238](https://github.com/sapphi-red/vite-plugin-static-copy/pull/238) [`9766e42`](https://github.com/sapphi-red/vite-plugin-static-copy/commit/9766e42cce4479eb170a9aa87c82932bdcdafaed) Thanks [@sapphi-red](https://github.com/sapphi-red)! - Drop support for Node 18, 20, 21, 23. The new support range is `^22.0.0 || >= 24.0.0`.
17+
318
## 3.4.0
419

520
### Minor Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vite-plugin-static-copy",
3-
"version": "3.4.0",
3+
"version": "4.0.0",
44
"description": "rollup-plugin-copy for vite with dev server support.",
55
"type": "module",
66
"main": "./dist/index.js",

0 commit comments

Comments
 (0)