feat(deps): upgrade upstream dependencies - #2610
Closed
voidzero-guard[bot] wants to merge 1 commit into
Closed
voidzero-guard[bot] wants to merge 1 commit into
voidzero-guard[bot] wants to merge 1 commit into
Conversation
- rolldown: v1.2.6 (5375362) -> v1.2.7 (26b4c6e) - vitest: 4.1.11 -> 5.0.0 - @vitest/browser: 4.1.11 -> 5.0.0 - @vitest/browser-playwright: 4.1.11 -> 5.0.0 - @vitest/browser-preview: 4.1.11 -> 5.0.0 - @vitest/browser-webdriverio: 4.1.11 -> 5.0.0-rc.1 - @vitest/expect: 4.1.11 -> 5.0.0 - @vitest/mocker: 4.1.11 -> 5.0.0 - @vitest/pretty-format: 4.1.11 -> 5.0.0 - @vitest/runner: 4.1.11 -> removed (folded into vitest core in v5) - @vitest/snapshot: 4.1.11 -> 5.0.0 - @vitest/spy: 4.1.11 -> 5.0.0 - @vitest/utils: 4.1.11 -> 5.0.0 - tsdown: 0.22.14 -> 0.23.0 - @tsdown/css: 0.22.14 -> 0.23.0 - @tsdown/exe: 0.22.14 -> 0.23.0 - oxfmt: 0.65.0 -> 0.66.0 - oxlint: 1.80.0 -> 1.81.0 - @oxc-project/runtime: 0.147.0 -> 0.148.0 - @oxc-project/types: 0.147.0 -> 0.148.0 - oxc-minify: 0.147.0 -> 0.148.0 - oxc-parser: 0.147.0 -> 0.148.0 - oxc-transform: 0.147.0 -> 0.148.0 - oxc Rust crates: 0.147.0 -> 0.148.0 - tsdown-migrate: 0.23.0-rc.0 -> 0.23.0 - VITEST_VERSION constant: 4.1.11 -> 5.0.0 - README vitest pins: 4.1.11 -> 5.0.0 Code changes: - Drop `@vitest/runner` (unpublished after 5.0.0-beta.4, folded into vitest core): removed from the catalog, from the shim entry list, and from the generated exports map, plus a note in the upgrade script's exact-pin list. - pnpm-workspace.yaml - packages/cli/package.json - packages/cli/build.ts - .github/scripts/upgrade-deps.ts - Alias every runtime `vitest` subpath to the bundled copy via `resolve.alias`, read from the bundled package's own `exports` map, so Vitest 5 browser mode pre-bundles `vitest` and `vitest/internal/browser` in one optimizer pass and keeps the collector a single instance. - packages/cli/src/define-config.ts - Regenerate the test exports map for Vitest 5: drop `./test/runners`, `./test/suite`, `./test/environments`, `./test/coverage`, `./test/reporters`, `./test/snapshot`, and `./test/plugins/runner*`; add `./test/internal/traces`. - packages/cli/package.json - Sync the static tsdown CLI help and `vp pack` options with tsdown 0.23.0: drop the removed `--public-dir` alias and type `runBuild` as `Promise<TsdownHandle>` for the new `rebuild` callback contract. - packages/cli/src/pack-bin.ts - packages/cli/src/help.ts - Match tsdown 0.23's `styleText` logger in the branding patcher alongside the existing `ansis` shapes, applying the `bold`/`red` import fixup only to the ansis-era replacements. - packages/core/build.ts - Sync the static Vitest CLI help with 5.0.0: add the `doctor` command, `--injectCjsGlobals`, `--repeats`, `--fsModuleCache`, `--fsModuleCachePath`, and `--sharedViteServer`; update `--api`, `--mode`, `--project` (now `-p, --project`), `--attachmentsDir`, and `--clearCache` wording. - packages/cli/src/help.ts - Treat `vitest` as a vp-owned catalog entry during the rolldown workspace merge so vp's exact pin wins over rolldown's trailing `^4.1.6` instead of aborting as a cross-major conflict. - packages/tools/src/sync-remote-deps.ts - Redact Vitest 5's percentage-based Duration breakdown and the browser mode API server port in PTY snapshots. - crates/vp_cli_snapshots/tests/cli_snapshots/redact.rs - Switch the browser-mode fixture to Vite+'s `defineConfig` so the bundled-Vitest alias applies. - crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/vitest_browser_mode/vitest.config.ts - Re-record affected PTY snapshots (help output, Duration lines, browser mode API line). - crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/**/snapshots/*.md - Extend the README pin rewriter to cover the migration guide, which repeats the same three pins. - .github/scripts/upgrade-deps.ts - docs/guide/migrate.md - Regenerate the NAPI binding: `PreRenderedChunk.facadeModuleId` is now `string | null`. - packages/cli/binding/index.d.cts - packages/cli/binding/index.cjs - Additional catalog/manifest bumps pulled in by the upgrade: yuku-codegen and yuku-parser `^0.5.44` -> `^0.9.3`, unplugin-unused `^0.5.0` -> `>=0.5.0`, remeda `^2.42.0` -> `^2.45.0`, rollup `^4.60.4` -> `^4.63.0`. - packages/core/package.json - pnpm-workspace.yaml
Contributor
Author
|
✅ Deploy Preview for viteplus-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
🚀 Deploying Preview to Cloudflare 🚀Preview Deployments by commit
|
Contributor
|
✅ Staging deployment successful! Preview: https://viteplus-staging.void.app/ |
Contributor
CLI artifact sizes (
|
| Artifact | Format | Base | PR | Change |
|---|---|---|---|---|
packages/cli/dist |
Directory total | 2.13 MiB | 2.14 MiB | +10.31 KiB (+0.47%) |
packages/core/dist |
Directory total | 3.92 MiB | 3.92 MiB | +6.75 KiB (+0.17%) |
| Combined package dist | Directory total | 6.05 MiB | 6.06 MiB | +17.06 KiB (+0.28%) |
vp (Linux x64) |
Binary | 10.99 MiB | 11.01 MiB | +16.02 KiB (+0.14%) |
vp (Linux x64) |
gzip -9 | 4.76 MiB | 4.77 MiB | +7.89 KiB (+0.16%) |
| NAPI (Linux x64) | Binary | 31.85 MiB | 31.99 MiB | +144.13 KiB (+0.44%) |
| NAPI (Linux x64) | gzip -9 | 12.58 MiB | 12.65 MiB | +70.52 KiB (+0.55%) |
vp (macOS ARM64) |
Binary | 8.19 MiB | 8.20 MiB | +16.13 KiB (+0.19%) |
vp (macOS ARM64) |
gzip -9 | 4.15 MiB | 4.15 MiB | +4.29 KiB (+0.10%) |
| NAPI (macOS ARM64) | Binary | 39.49 MiB | 39.60 MiB | +113.16 KiB (+0.28%) |
| NAPI (macOS ARM64) | gzip -9 | 16.90 MiB | 16.96 MiB | +58.32 KiB (+0.34%) |
vp (Windows x64) |
Binary | 8.86 MiB | 8.87 MiB | +12.00 KiB (+0.13%) |
vp (Windows x64) |
gzip -9 | 3.88 MiB | 3.88 MiB | +3.91 KiB (+0.10%) |
| NAPI (Windows x64) | Binary | 26.74 MiB | 26.87 MiB | +132.00 KiB (+0.48%) |
| NAPI (Windows x64) | gzip -9 | 10.67 MiB | 10.73 MiB | +61.32 KiB (+0.56%) |
| Trampoline (Windows x64) | Binary | 14.00 KiB | 14.00 KiB | 0 B (0.00%) |
| Trampoline (Windows x64) | gzip -9 | 7.09 KiB | 7.09 KiB | 0 B (0.00%) |
| Installer (Windows x64) | Binary | 4.50 MiB | 4.51 MiB | +5.00 KiB (+0.11%) |
| Installer (Windows x64) | gzip -9 | 2.11 MiB | 2.11 MiB | +1.39 KiB (+0.06%) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@vitest/runnerwas folded into vitest core and stopped publishing after5.0.0-beta.4, so it is dropped from the catalog, the shim entry list, and the generated./test/plugins/runner*exports.@vitest/browser-webdriveriohas only reached5.0.0-rc.1on npm and is pinned there (vitest@5.0.0accepts it via^5.0.0-beta.5 || >=5.0.0).vitestandvitest/internal/browserin a single optimizer pass;optimizeDeps.includeis resolved by a standalone resolver that consults onlyresolve.alias, sodefineConfignow emits exact-match aliases for every runtimevitestsubpath, read from the bundled package's ownexportsmap.--public-diralias, changed therebuildcallback to return aTsdownHandle, and switched its logger fromansisto astyleTextproxy —vp pack, the static help, and the core branding patcher are updated to match.Durationbreakdown, and the browser-mode API server line.Dependency updates
rolldown5375362)v1.2.7(26b4c6e)vitest4.1.115.0.0@vitest/browser4.1.115.0.0@vitest/browser-playwright4.1.115.0.0@vitest/browser-preview4.1.115.0.0@vitest/browser-webdriverio4.1.115.0.0-rc.1@vitest/expect4.1.115.0.0@vitest/mocker4.1.115.0.0@vitest/pretty-format4.1.115.0.0@vitest/runner4.1.11vitestcore in v5)@vitest/snapshot4.1.115.0.0@vitest/spy4.1.115.0.0@vitest/utils4.1.115.0.0tsdown0.22.140.23.0@tsdown/css0.22.140.23.0@tsdown/exe0.22.140.23.0oxfmt0.65.00.66.0oxlint1.80.01.81.0@oxc-project/runtime0.147.00.148.0@oxc-project/types0.147.00.148.0oxc-minify0.147.00.148.0oxc-parser0.147.00.148.0oxc-transform0.147.00.148.0oxc,oxc_allocator,oxc_ast, …)0.147.00.148.0tsdown-migrate0.23.0-rc.00.23.0VITEST_VERSIONconstant4.1.115.0.04.1.115.0.0Unchanged dependencies
vite:v8.2.2(de1111a)lightningcss:^1.33.0@oxc-node/cli:0.1.0@oxc-node/core:0.1.0oxlint-tsgolint:7.0.2001Code changes
@vitest/runnereverywhere it was referenced — catalog entry andpackages/clidependency (pnpm-workspace.yaml,packages/cli/package.json), thePLUGIN_SHIM_ENTRIESshims (packages/cli/build.ts), and the exact-pin list in.github/scripts/upgrade-deps.ts.resolve.aliasgeneration topackages/cli/src/define-config.ts:pickEsmExportTargetwalks the bundledvitestpackage'sexportsmap andgetBundledVitestAliasesemits anchored exact-match aliases, merged ininjectPluginIntoInlineConfig(appended, so a project's own alias still wins). Without it, browser mode dropsvitest/internal/browserfrom the optimizer pass and the firstdescribe()fails withCannot read properties of undefined (reading 'config').packages/cli/package.json: removed./test/runners,./test/suite,./test/environments,./test/coverage,./test/reporters,./test/snapshot, and the three./test/plugins/runner*entries; added./test/internal/traces.vp packwith tsdown 0.23.0 inpackages/cli/src/pack-bin.ts: removed the--public-diroption and annotatedrunBuildasPromise<TsdownHandle>(it is passed as the newrebuildcallback), returning thebuildWithConfigshandle.packages/core/build.tswith the 0.23styleText$1patterns next to the existingansisones, and gated thebold/redimport fixup behind a per-patchneedsAnsisImportsflag.packages/cli/src/help.ts: added thedoctorsubcommand,--injectCjsGlobals,--repeats,--fsModuleCache,--fsModuleCachePath, and--sharedViteServer; reworded--api,--mode,--project(now-p, --project),--attachmentsDir, and--clearCache; removed tsdown's--public-dir.vitesttoVITEST_DEPSinpackages/tools/src/sync-remote-deps.tsso vp's exact pin is the source of truth during the rolldown workspace merge instead of aborting on rolldown's trailing^4.1.6.crates/vp_cli_snapshots/tests/cli_snapshots/redact.rsfor Vitest 5's percentage-basedDurationbreakdown and the browser-modeAPI started at http://localhost:<port>line.crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/vitest_browser_mode/vitest.config.tsto Vite+'sdefineConfigso the bundled-Vitest aliases apply to the fixture.command_helper.md,command_pack.md,command_tool_help.md,command_tool_deep_help_delegation.md,global_cli_fallback.md,test_inline_snapshot_indent.md,test_managed_package_manager_path.md,test_vi_mock_hoist.md,vite_plugins_async_test.md,vitest_browser_mode.md.updateReadmeVitestPinsin.github/scripts/upgrade-deps.tsto also rewritedocs/guide/migrate.md, which repeats the same three pin blocks as the READMEs.PreRenderedChunk.facadeModuleIdis nowstring | null(packages/cli/binding/index.d.cts), plus formatter output inpackages/cli/binding/index.cjs.yuku-codegen/yuku-parser^0.5.44→^0.9.3andunplugin-unused^0.5.0→>=0.5.0(packages/core/package.json);remeda^2.42.0→^2.45.0androllup^4.60.4→^4.63.0(pnpm-workspace.yaml).bundledVersionsinpackages/core/package.jsonnow reads rolldown1.2.7/ tsdown0.23.0.Build status
sync-remote-and-build: failurebuild-upstream: failure