Skip to content

Commit e32b32e

Browse files
authored
feat(deps): upgrade upstream dependencies (#619)
Automated daily upgrade of upstream dependencies: - rolldown (latest tag) - rolldown-vite (latest tag) - vitest (latest npm version) - tsdown (latest npm version) Build status: success <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Medium Risk** > Mostly dependency and lockfile churn, but it upgrades core bundling/linting toolchains (`oxc`/`rolldown`) and introduces new workspace crates, which can subtly change build outputs and runtime behavior. > > **Overview** > Updates upstream dependencies across Rust and Node, including bumping `oxc` to `0.114.0`, `oxc_resolver` to `11.17.x`, and refreshing lockfiles (`Cargo.lock`, `pnpm-lock.yaml`) along with related tooling versions (e.g., `oxlint`, `oxfmt`, `esbuild`, `@vitejs/devtools`, `rolldown-plugin-dts`). > > Expands the Rust workspace to include additional rolldown crates (e.g., `rolldown_watcher`, `rolldown_plugin_bundle_analyzer`, and multiple new `rolldown_plugin_vite_*` crates) and updates `@voidzero-dev/vite-plus-core` exports to expose `./rolldown/utils`. > > Tweaks repo tooling/config to accommodate the upgrades: adds `cargo-shear` ignore metadata, updates CLI help snapshots, adjusts ecosystem CI patching to special-case `rollipop`’s `.oxfmtrc.json`, and relaxes lint rules/ignore patterns (`no-shadow` off; ignore `packages/*/binding/**`). > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit d020dac. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY -->
1 parent df694e9 commit e32b32e

10 files changed

Lines changed: 1236 additions & 759 deletions

File tree

Cargo.lock

Lines changed: 112 additions & 81 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 47 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,20 @@
22
resolver = "3"
33
members = ["bench", "crates/*", "packages/cli/binding"]
44

5+
[workspace.metadata.cargo-shear]
6+
ignored = [
7+
# These workspace dependencies are used by rolldown crates, not our local crates
8+
"html5gum",
9+
"rolldown_filter_analyzer",
10+
"rolldown_plugin_vite_asset",
11+
"rolldown_plugin_vite_asset_import_meta_url",
12+
"rolldown_plugin_vite_css",
13+
"rolldown_plugin_vite_css_post",
14+
"rolldown_plugin_vite_html",
15+
"rolldown_plugin_vite_html_inline_proxy",
16+
"string_cache",
17+
]
18+
519
[workspace.package]
620
authors = ["Vite+ Authors"]
721
edition = "2024"
@@ -74,6 +88,7 @@ futures-util = "0.3.31"
7488
glob = "0.3.2"
7589
heck = "0.5.0"
7690
hex = "0.4.3"
91+
html5gum = "0.8.1"
7792
httpmock = "0.7"
7893
ignore = "0.4"
7994
indicatif = "0.18"
@@ -90,9 +105,19 @@ junction = "1.4.1"
90105
memchr = "2.7.4"
91106
mimalloc-safe = "0.1.52"
92107
mime = "0.3.17"
93-
napi = { version = "3.0.0", default-features = false, features = ["async", "error_anyhow"] }
108+
napi = { version = "3.0.0", default-features = false, features = [
109+
"async",
110+
"error_anyhow",
111+
"anyhow",
112+
"tracing",
113+
"object_indexmap",
114+
] }
94115
napi-build = "2"
95-
napi-derive = { version = "3.0.0", default-features = false, features = ["type-def", "strict"] }
116+
napi-derive = { version = "3.0.0", default-features = false, features = [
117+
"type-def",
118+
"strict",
119+
"tracing",
120+
] }
96121
nix = { version = "0.30.1", features = ["dir"] }
97122
nodejs-built-in-modules = "1.0.0"
98123
nom = "8.0.0"
@@ -129,6 +154,7 @@ sha1 = "0.10.6"
129154
sha2 = "0.10.9"
130155
simdutf8 = "0.1.5"
131156
smallvec = "1.15.0"
157+
string_cache = "0.9.0"
132158
sugar_path = { version = "1.2.1", features = ["cached_current_dir"] }
133159
tar = "0.4.43"
134160
tempfile = "3.14.0"
@@ -170,7 +196,7 @@ xxhash-rust = "0.8.15"
170196
zip = "7.2"
171197

172198
# oxc crates with the same version
173-
oxc = { version = "0.111.0", features = [
199+
oxc = { version = "0.114.0", features = [
174200
"ast_visit",
175201
"transformer",
176202
"minifier",
@@ -182,17 +208,18 @@ oxc = { version = "0.111.0", features = [
182208
"regular_expression",
183209
"cfg",
184210
] }
185-
oxc_allocator = { version = "0.111.0", features = ["pool"] }
186-
oxc_ecmascript = "0.111.0"
187-
oxc_minify_napi = "0.111.0"
188-
oxc_parser_napi = "0.111.0"
189-
oxc_transform_napi = "0.111.0"
190-
oxc_traverse = "0.111.0"
211+
oxc_allocator = { version = "0.114.0", features = ["pool"] }
212+
oxc_ecmascript = "0.114.0"
213+
oxc_napi = "0.114.0"
214+
oxc_minify_napi = "0.114.0"
215+
oxc_parser_napi = "0.114.0"
216+
oxc_transform_napi = "0.114.0"
217+
oxc_traverse = "0.114.0"
191218

192219
# oxc crates in their own repos
193220
oxc_index = { version = "4", features = ["rayon", "serde"] }
194-
oxc_resolver = { version = "11.15.0", features = ["yarn_pnp"] }
195-
oxc_resolver_napi = { version = "11.15.0", default-features = false, features = ["yarn_pnp"] }
221+
oxc_resolver = { version = "11.17.1", features = ["yarn_pnp"] }
222+
oxc_resolver_napi = { version = "11.17.1", default-features = false, features = ["yarn_pnp"] }
196223
oxc_sourcemap = "6"
197224

198225
# rolldown crates
@@ -206,9 +233,11 @@ rolldown_devtools_action = { path = "./rolldown/crates/rolldown_devtools_action"
206233
rolldown_ecmascript = { path = "./rolldown/crates/rolldown_ecmascript" }
207234
rolldown_ecmascript_utils = { path = "./rolldown/crates/rolldown_ecmascript_utils" }
208235
rolldown_error = { path = "./rolldown/crates/rolldown_error" }
236+
rolldown_filter_analyzer = { path = "./rolldown/crates/rolldown_filter_analyzer" }
209237
rolldown_fs = { path = "./rolldown/crates/rolldown_fs" }
210238
rolldown_fs_watcher = { path = "./rolldown/crates/rolldown_fs_watcher" }
211239
rolldown_plugin = { path = "./rolldown/crates/rolldown_plugin" }
240+
rolldown_plugin_bundle_analyzer = { path = "./rolldown/crates/rolldown_plugin_bundle_analyzer" }
212241
rolldown_plugin_chunk_import_map = { path = "./rolldown/crates/rolldown_plugin_chunk_import_map" }
213242
rolldown_plugin_data_uri = { path = "./rolldown/crates/rolldown_plugin_data_uri" }
214243
rolldown_plugin_esm_external_require = { path = "./rolldown/crates/rolldown_plugin_esm_external_require" }
@@ -219,8 +248,14 @@ rolldown_plugin_oxc_runtime = { path = "./rolldown/crates/rolldown_plugin_oxc_ru
219248
rolldown_plugin_replace = { path = "./rolldown/crates/rolldown_plugin_replace" }
220249
rolldown_plugin_utils = { path = "./rolldown/crates/rolldown_plugin_utils" }
221250
rolldown_plugin_vite_alias = { path = "./rolldown/crates/rolldown_plugin_vite_alias" }
251+
rolldown_plugin_vite_asset = { path = "./rolldown/crates/rolldown_plugin_vite_asset" }
252+
rolldown_plugin_vite_asset_import_meta_url = { path = "./rolldown/crates/rolldown_plugin_vite_asset_import_meta_url" }
222253
rolldown_plugin_vite_build_import_analysis = { path = "./rolldown/crates/rolldown_plugin_vite_build_import_analysis" }
254+
rolldown_plugin_vite_css = { path = "./rolldown/crates/rolldown_plugin_vite_css" }
255+
rolldown_plugin_vite_css_post = { path = "./rolldown/crates/rolldown_plugin_vite_css_post" }
223256
rolldown_plugin_vite_dynamic_import_vars = { path = "./rolldown/crates/rolldown_plugin_vite_dynamic_import_vars" }
257+
rolldown_plugin_vite_html = { path = "./rolldown/crates/rolldown_plugin_vite_html" }
258+
rolldown_plugin_vite_html_inline_proxy = { path = "./rolldown/crates/rolldown_plugin_vite_html_inline_proxy" }
224259
rolldown_plugin_vite_import_glob = { path = "./rolldown/crates/rolldown_plugin_vite_import_glob" }
225260
rolldown_plugin_vite_json = { path = "./rolldown/crates/rolldown_plugin_vite_json" }
226261
rolldown_plugin_vite_load_fallback = { path = "./rolldown/crates/rolldown_plugin_vite_load_fallback" }
@@ -231,7 +266,6 @@ rolldown_plugin_vite_reporter = { path = "./rolldown/crates/rolldown_plugin_vite
231266
rolldown_plugin_vite_resolve = { path = "./rolldown/crates/rolldown_plugin_vite_resolve" }
232267
rolldown_plugin_vite_transform = { path = "./rolldown/crates/rolldown_plugin_vite_transform" }
233268
rolldown_plugin_vite_wasm_fallback = { path = "./rolldown/crates/rolldown_plugin_vite_wasm_fallback" }
234-
rolldown_plugin_vite_wasm_helper = { path = "./rolldown/crates/rolldown_plugin_vite_wasm_helper" }
235269
rolldown_plugin_vite_web_worker_post = { path = "./rolldown/crates/rolldown_plugin_vite_web_worker_post" }
236270
rolldown_resolver = { path = "./rolldown/crates/rolldown_resolver" }
237271
rolldown_sourcemap = { path = "./rolldown/crates/rolldown_sourcemap" }
@@ -240,6 +274,7 @@ rolldown_testing = { path = "./rolldown/crates/rolldown_testing" }
240274
rolldown_testing_config = { path = "./rolldown/crates/rolldown_testing_config" }
241275
rolldown_tracing = { path = "./rolldown/crates/rolldown_tracing" }
242276
rolldown_utils = { path = "./rolldown/crates/rolldown_utils" }
277+
rolldown_watcher = { path = "./rolldown/crates/rolldown_watcher" }
243278
rolldown_workspace = { path = "./rolldown/crates/rolldown_workspace" }
244279
string_wizard = { path = "./rolldown/crates/string_wizard", features = ["serde"] }
245280

ecosystem-ci/patch-project.ts

Lines changed: 29 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { execSync } from 'node:child_process';
2+
import { readFile, writeFile } from 'node:fs/promises';
23
import { join } from 'node:path';
34

45
import { ecosystemCiDir, tgzDir } from './paths.ts';
@@ -13,27 +14,33 @@ if (!projects.includes(project)) {
1314
process.exit(1);
1415
}
1516

16-
async function migrateProject(project: string) {
17-
const repoRoot = join(ecosystemCiDir, project);
18-
const repoConfig = repos[project as keyof typeof repos];
19-
const directory = 'directory' in repoConfig ? repoConfig.directory : undefined;
20-
const cwd = directory ? join(repoRoot, directory) : repoRoot;
21-
// run vp migrate
22-
const cli = process.env.VITE_PLUS_CLI_BIN ?? 'vp';
23-
execSync(`${cli} migrate --no-agent --no-interactive`, {
24-
cwd,
25-
stdio: 'inherit',
26-
env: {
27-
...process.env,
28-
VITE_PLUS_OVERRIDE_PACKAGES: JSON.stringify({
29-
vite: `file:${tgzDir}/voidzero-dev-vite-plus-core-0.0.0.tgz`,
30-
vitest: `file:${tgzDir}/voidzero-dev-vite-plus-test-0.0.0.tgz`,
31-
'@voidzero-dev/vite-plus-core': `file:${tgzDir}/voidzero-dev-vite-plus-core-0.0.0.tgz`,
32-
'@voidzero-dev/vite-plus-test': `file:${tgzDir}/voidzero-dev-vite-plus-test-0.0.0.tgz`,
33-
}),
34-
VITE_PLUS_VERSION: `file:${tgzDir}/vite-plus-0.0.0.tgz`,
35-
},
36-
});
17+
const repoRoot = join(ecosystemCiDir, project);
18+
const repoConfig = repos[project as keyof typeof repos];
19+
const directory = 'directory' in repoConfig ? repoConfig.directory : undefined;
20+
const cwd = directory ? join(repoRoot, directory) : repoRoot;
21+
// run vp migrate
22+
const cli = process.env.VITE_PLUS_CLI_BIN ?? 'vp';
23+
24+
if (project === 'rollipop') {
25+
const oxfmtrc = await readFile(join(repoRoot, '.oxfmtrc.json'), 'utf-8');
26+
await writeFile(
27+
join(repoRoot, '.oxfmtrc.json'),
28+
oxfmtrc.replace(' ["ts-equals-import"],\n', ''),
29+
'utf-8',
30+
);
3731
}
3832

39-
await migrateProject(project);
33+
execSync(`${cli} migrate --no-agent --no-interactive`, {
34+
cwd,
35+
stdio: 'inherit',
36+
env: {
37+
...process.env,
38+
VITE_PLUS_OVERRIDE_PACKAGES: JSON.stringify({
39+
vite: `file:${tgzDir}/voidzero-dev-vite-plus-core-0.0.0.tgz`,
40+
vitest: `file:${tgzDir}/voidzero-dev-vite-plus-test-0.0.0.tgz`,
41+
'@voidzero-dev/vite-plus-core': `file:${tgzDir}/voidzero-dev-vite-plus-core-0.0.0.tgz`,
42+
'@voidzero-dev/vite-plus-test': `file:${tgzDir}/voidzero-dev-vite-plus-test-0.0.0.tgz`,
43+
}),
44+
VITE_PLUS_VERSION: `file:${tgzDir}/vite-plus-0.0.0.tgz`,
45+
},
46+
});

packages/cli/snap-tests/command-helper/snap.txt

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,10 @@ Runtime Options
100100
--threads=INT Number of threads to use. Set to 1 for using only 1 CPU core.
101101

102102
Available positional items:
103-
PATH Single file, single path or list of paths. If not provided, current
104-
working directory is used. Glob is supported only for exclude patterns
105-
like `'!**/fixtures/*.js'`.
103+
PATH Single file, path or list of paths. Glob patterns are also supported.
104+
(Be sure to quote them, otherwise your shell may expand them before
105+
passing.) Exclude patterns with `!` prefix like `'!**/fixtures/*.js'`
106+
are also supported. If not provided, current working directory is used.
106107

107108
Available options:
108109
-h, --help Prints help information
@@ -114,7 +115,9 @@ Usage: [-c=<./.oxlintrc.json>] [PATH]...
114115

115116
Basic Configuration
116117
-c, --config=<./.oxlintrc.json> Oxlint configuration file
117-
* only `.json` extension is supported
118+
* `.json` config files are supported in all runtimes
119+
* JavaScript/TypeScript config files are experimental and require
120+
running via Node.js
118121
* you can use comments in configuration files.
119122
* tries to be compatible with ESLint v8's format
120123
--tsconfig=<./tsconfig.json> TypeScript `tsconfig.json` path for reading path alias and

packages/cli/src/resolve-vite-config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ export async function resolveUniversalViteConfig(err: null | Error, viteConfigCw
1414
run: config.run,
1515
}),
1616
);
17-
} catch (err) {
18-
console.error('[Vite+] resolve universal vite config error:', err);
19-
throw err;
17+
} catch (resolveErr) {
18+
console.error('[Vite+] resolve universal vite config error:', resolveErr);
19+
throw resolveErr;
2020
}
2121
}

packages/core/package.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@
7878
"types": "./dist/pluginutils/filter/index.d.ts",
7979
"default": "./dist/pluginutils/filter/index.js"
8080
},
81+
"./rolldown/utils": {
82+
"types": "./dist/rolldown/utils-index.d.mts",
83+
"default": "./dist/rolldown/utils-index.mjs"
84+
},
8185
"./types/*": {
8286
"types": "./dist/vite/types/*"
8387
},
@@ -99,7 +103,7 @@
99103
"@babel/types": "^7.28.5",
100104
"@oxc-node/cli": "catalog:",
101105
"@oxc-node/core": "catalog:",
102-
"@vitejs/devtools": "^0.0.0-alpha.31",
106+
"@vitejs/devtools": "^0.0.0-alpha.32",
103107
"es-module-lexer": "^1.7.0",
104108
"hookable": "^6.0.1",
105109
"magic-string": "^0.30.21",
@@ -121,7 +125,7 @@
121125
"peerDependencies": {
122126
"@arethetypeswrong/core": "^0.18.1",
123127
"@types/node": "^20.19.0 || >=22.12.0",
124-
"@vitejs/devtools": "^0.0.0-alpha.24",
128+
"@vitejs/devtools": "^0.0.0-alpha.31",
125129
"esbuild": "^0.27.0",
126130
"jiti": ">=1.21.0",
127131
"less": "^4.0.0",
@@ -197,8 +201,8 @@
197201
"node": "^20.19.0 || >=22.12.0"
198202
},
199203
"bundledVersions": {
200-
"vite": "8.0.0-beta.13",
201-
"rolldown": "1.0.0-rc.3",
204+
"vite": "8.0.0-beta.15",
205+
"rolldown": "1.0.0-rc.5",
202206
"tsdown": "0.20.3"
203207
}
204208
}

packages/tools/.upstream-versions.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
"rolldown": {
33
"repo": "https://github.com/rolldown/rolldown.git",
44
"branch": "main",
5-
"hash": "3035ec8774be955105decc387fd42c781793ccce"
5+
"hash": "c8198d163e1640fc789cdefb4bb5d53d945d00f8"
66
},
77
"rolldown-vite": {
88
"repo": "https://github.com/vitejs/vite.git",
99
"branch": "main",
10-
"hash": "59700ae401a038ad4d98d302a5ea97bd658b58e5"
10+
"hash": "6e88f40b7b093ed780f0f8da70b763baa2574894"
1111
}
1212
}

0 commit comments

Comments
 (0)