Skip to content

fix(migrate): tolerate nested npm overrides during bootstrap detection - #2267

Merged
fengmk2 merged 5 commits into
voidzero-dev:mainfrom
charpeni:fix/migrate-nested-npm-overrides
Nov 22, 2026
Merged

fengmk2 merged 5 commits into
voidzero-dev:mainfrom
charpeni:fix/migrate-nested-npm-overrides

Conversation

@charpeni

@charpeni charpeni commented Jul 27, 2026 •

Copy link
Copy Markdown
Contributor

An npm project can use an object under overrides.vite or overrides.vitest to pin a child dependency. The bootstrap check in vp migrate could throw a TypeError when it treated this object as a version string.

Migration now reads the "." entry to check the version of the package itself. When the package needs a new version, migration updates that entry and preserves the user's child overrides.

Fixes #2002.

@netlify

netlify Bot commented Jul 27, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for viteplus-preview canceled.

Name Link
🔨 Latest commit a9f1575
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/6a701459cbe5ac000784fa8f

@fengmk2 fengmk2 self-assigned this Aug 3, 2026
@fengmk2

fengmk2 commented Aug 3, 2026

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a9f15758d9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

fengmk2 pushed a commit that referenced this pull request Oct 15, 2026
<!-- claude-projects-attribution: {"github_login":"Brooooooklyn"} -->
_Requested by **Brooklyn** · [project
thread](https://claude.ai/code/project/chan_018s9RxRdtH424j2EhXdzV3N?thread=cmsg_018s9RxRdtH424j2EhXdzV3NQxbeR8Pt7qaqSQwoq9rEFo)_

<!-- routine:prune-tests:duplicate-shell-and-helper-tests -->

Before: `vp_global_cli` and `vp_pm_cli` carried Rust unit tests that
could not fail when the product broke: an `assert!(true)` in
`create.rs`, four `env use` shell-detection tests that repeat
`commands::shell` tests for code `env use` only imports, and three tests
of test-only helpers. `upgrade_check.rs` had 20 hand-unrolled lookup
tests.

After: those 8 tests are gone and the 20 lookup tests are 2 table-driven
tests that keep every row and comment, with the failing row named in the
assertion message. Only test code changes: every hunk is inside a
`#[cfg(test)]` module or the `#[cfg(test)]`-only
`resolution::test_utils` module.

How: each candidate was defended by mutating product code with the most
realistic regression only it would catch, running the crate's tests, and
reverting. No deleted test failed alone on any mutation.

### Totals

| | Before (origin/main c04bcf6) | After |
|---|---|---|
| Files touched | – | 5 |
| `vp_global_cli` cases collected (Linux) | 502 (+2 ignored) | 479 (+2
ignored) |
| `vp_pm_cli` cases collected | 923 (+2 ignored) | 920 (+2 ignored) |

- Cases deleted: **8** of 1,425 collected in the two touched crates.
Repo-wide: about 2,432 `#[test]`/`#[tokio::test]` attributes in tracked
Rust (static count) and 1,492 static `it`/`test` calls in 101 JS spec
files (not collected; Vitest needs a full `packages/core` build).
- Cases folded: **20 into 2**, every row and comment kept.
Runner-collected total: −26.
- Net lines: **−159** (+42 / −201).
- Runtime saved: about 0.03 s (the 8 deleted cases each report 0.000 s;
the 20 folded cases summed 0.028 s against 0.011 s for the 2
replacements).
- Test-binary time on this shared machine: `vp_global_cli` 3.13 s → 3.32
s, `vp_pm_cli` 27.81 s → 29.06 s (noise).

### Per file

1. **`crates/vp_global_cli/src/commands/create.rs` ›
`test_create_command_module_exists`**
   - Class: tautology (`assert!(true)`).
- Best defense: M1 (delegate `"new"` instead of `"create"`) passes all
502 tests, so this test cannot fail. The whole `mod tests` goes.
- Coverage gap (pre-existing, unchanged by this PR): no unit test covers
`vp create` delegation. It may be covered by the PTY snapshot suite,
which was not run.
2. **`crates/vp_global_cli/src/commands/env/use.rs` ›
`test_detect_shell_vp_shell_{powershell,fish,nu}`,
`test_detect_shell_posix_default`**
- Class: duplicates of stronger tests. `detect_shell` /
`Shell::from_str` live in `commands/shell.rs`; `env use` only imports
them.
- Still covered: `fish` is byte-identical to
`commands::shell::tests::test_detect_shell_vp_shell_fish`; `nu` to
`test_detect_shell_vp_shell_explicit`; lowercase `powershell` by
`test_shell_from_str` and `test_detect_shell_vp_shell_case_insensitive`;
`posix_default` by `test_detect_shell_defaults_without_vp_shell`.
- Best defenses M2–M5: each failed the nominee together with at least
one `commands::shell` test.
- The `use vp_shared::env_vars;` import is now `#[cfg(windows)]`, since
only the three Windows-only tests in the module still use it.
3. **`crates/vp_pm_cli/src/resolution/test_utils.rs` ›
`parses_args_without_a_program_name`,
`parses_subcommands_without_a_program_name`**
   - Class: test tooling testing test tooling.
- Best defense: M7 fails 122 tests and M8 fails 17; every resolution
parser test exercises these helpers.
4. **`crates/vp_pm_cli/src/resolution/commands/list.rs` ›
`list_args_helper_keeps_pattern`** (and its test-only `list_args`
helper, which had no other caller)
- Class: test tooling testing test tooling; it only checked struct
construction.
- Best defenses: M9 fails only
`test_list_with_pattern_and_pass_through_args`; M10 fails
`test_parser_accepts_short_dev_and_global_flags` and
`cli::tests::projects_managed_global_commands`. The nominee passes both.

### Folds (`crates/vp_global_cli/src/upgrade_check.rs`)

- The 9 `is_newer_version_*` tests → `is_newer_version_compares_semver`
(12 rows, original comments kept, one comment added for the `0.0.0`
dev-build row).
- The 11 `should_run_for_*` / `should_not_run_for_*` tests →
`should_run_for_command_skips_excluded_and_machine_readable_commands`
(11 rows).
- M11, M12 and M13 still fail the folded tables.

### Kept after defense — do not re-nominate

None: no nominee survived its defense.

### Case counts

| file | before | after | delta | expected delta |
|---|---|---|---|---|
| vp_global_cli `commands/create.rs` | 1 | 0 | −1 | −1 |
| vp_global_cli `commands/env/use.rs` (Linux) | 16 | 12 | −4 | −4 |
| vp_global_cli `upgrade_check.rs` | 36 | 18 | −18 | −18 (20 folded into
2) |
| vp_pm_cli `resolution/commands/list.rs` | 45 | 44 | −1 | −1 |
| vp_pm_cli `resolution/test_utils.rs` | 2 | 0 | −2 | −2 |
| **Crates total** | 1,425 | 1,399 | −26 | −26 |

**0 new failures** (0 failed and 4 ignored, before and after).

### Mutations

Each was temporary and reverted (`git status` clean afterwards).

1. M1 `create.rs:15`: delegate `"new"` instead of `"create"`. Failed:
none.
2. M2 `shell.rs:30`: `"fish"` → `"fishshell"`. Failed: `use::…_fish`,
`shell::test_shell_from_str`, `shell::…_fish`.
3. M3 `shell.rs:31`: `"nu" | "nushell"` → `"nushell"`. Failed:
`use::…_nu`, `shell::…_explicit`, `shell::test_shell_from_str`.
4. M4 `shell.rs:32`: drop `"powershell"`. Failed: `use::…_powershell`,
`shell::…_case_insensitive`, `shell::test_shell_from_str`.
5. M5 `shell.rs:54`: default always `Cmd`. Failed:
`use::…_posix_default`, `shell::…_defaults_without_vp_shell`,
`shell::…_invalid_vp_shell_falls_back_to_default`.
6. M6 `shell.rs:49`: upper-case the value. Failed: none (equivalent
mutation; `from_str` lowercases).
7. M7 `test_utils.rs:70`: `test_argv` no longer prepends a program name.
Failed: 122 tests, including both nominees.
8. M8 `test_utils.rs:57`: `parse_subcommand` gets raw args. Failed: 17
tests (`config`, `dist_tag`, `owner`, `stage`, `token`, plus the
nominee).
9. M9 `list.rs:78-80`: pnpm drops the pattern. Failed:
`test_list_with_pattern_and_pass_through_args` only.
10. M10 `list.rs:11`: `pattern` becomes `#[arg(long)]`. Failed:
`test_parser_accepts_short_dev_and_global_flags`,
`cli::tests::projects_managed_global_commands`.
11. M11 `upgrade_check.rs:170` (after the fold): `>` → `>=`. Failed:
`is_newer_version_compares_semver`.
12. M12 `upgrade_check.rs:338` (after the fold): `Upgrade` removed from
the excluded commands. Failed:
`should_run_for_command_skips_excluded_and_machine_readable_commands`.
13. M13 `upgrade_check.rs:165` (after the fold): the `0.0.0` early
return removed. Failed: `is_newer_version_compares_semver`.

### What ran and what did not

- Ran, at origin/main and on this branch: `cargo test -p vp_global_cli`
and `cargo test -p vp_pm_cli` with `--report-time`; `cargo clippy -p
vp_global_cli -p vp_pm_cli --all-targets --all-features -- --deny
warnings` with the `just lint` allow-list; `cargo fmt --all -- --check`;
`git diff --check`. All pass.
- Not run: the full workspace `just test` / `just lint` / `just check`;
Windows targets (none installed here, so the `#[cfg(windows)]` import
gate was reviewed but not compiled; Windows CI will compile it); the
JS/Vitest suite; the PTY snapshot suite.

### Excluded pull requests

55 open PRs touch 737 files between them; none of the 5 files here is
among them. #3055 #3052 #3051 #3049 #3047 #3046 #3044 #3040 #3038 #3037
#3020 #3018 #3014 #3012 #3009 #3008 #3000 #2986 #2981 #2966 #2936 #2922
#2900 #2863 #2862 #2810 #2792 #2740 #2721 #2699 #2695 #2574 #2557 #2552
#2549 #2543 #2542 #2541 #2483 #2475 #2463 #2462 #2461 #2456 #2428 #2418
#2357 #2267 #2125 #1958 #1783 #1782 #1614 #1517 #1180.

### Age check (cutoff: 30 days, 2026-09-14)

First-added dates from `git log -S`, followed across the `vite_*` →
`vp_*` crate rename.

| Test | First added |
|---|---|
| `test_create_command_module_exists` | 2026-02-10 (a29ac83, #570) |
| `test_detect_shell_posix_default` | 2026-02-07 (194c0dc, #524) |
| `test_detect_shell_vp_shell_{powershell,fish,nu}` | 2026-05-24
(53ae721, #1658) |
| `test_utils` tests and `list_args_helper_keeps_pattern` | 2026-08-03
(c1574dd, #2140) |
| The 20 folded `upgrade_check` tests | 2026-03-30 (db75675) |

None was added for a bug or incident, and none is in a permission,
security or entitlement suite.

### Checks

| Check | Before | After |
|---|---|---|
| Tests `vp_global_cli` | 502 pass | 479 pass |
| Tests `vp_pm_cli` | 923 pass | 920 pass |
| Clippy (deny warnings) | pass | pass |
| rustfmt | – | pass |
| `git diff --check` | – | clean |

To revert: `git revert 687935d`.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01PxVsmvB9xfZKfVnUonY8kf

---
_Generated by [Claude
Code](https://claude.ai/code/session_01PxVsmvB9xfZKfVnUonY8kf)_

Co-authored-by: Claude <[email protected]>
@fengmk2

fengmk2 commented Nov 22, 2026

Copy link
Copy Markdown
Member

I will take over this PR and continue to finish the remaining work.

@fengmk2
fengmk2 force-pushed the fix/migrate-nested-npm-overrides branch from a9f1575 to 32849d3 Compare November 22, 2026 05:33
@fengmk2
fengmk2 force-pushed the fix/migrate-nested-npm-overrides branch from a860cb0 to ff28257 Compare November 22, 2026 09:26
@fengmk2 fengmk2 added test: e2e Auto run e2e tests test: install-e2e run vite install e2e test test: create-e2e Run `vp create` e2e tests labels Nov 22, 2026
@fengmk2
fengmk2 merged commit 149bdcd into voidzero-dev:main Nov 22, 2026
124 checks passed
@fengmk2 fengmk2 mentioned this pull request Nov 23, 2026
fengmk2 added a commit that referenced this pull request Nov 24, 2026
Vite+ 1.8.0 runs project package managers from `PATH` when no global
`vp` is installed, instead of downloading them, and runs project-local
`vp dev` in one process, so a `SIGTERM` to it stops the dev server. `vp
migrate` also offers to group Vite+ updates in Renovate.

### Features

- Without a global `vp`, the `vite-plus` package uses the package
managers on `PATH` and no longer downloads them into Vite+ directories.
With a global `vp`, it follows that installation's mode: managed mode
downloads as before, and system-first mode (`vp env off`) prefers the
system package manager and falls back to a download. Without a global
`vp`, `vp create` and `vp migrate` default to the first installed of
pnpm, npm, Yarn, and Bun, and the package-manager selector marks the
others `not installed`
([#3386](#3386),
[#3389](#3389)), by
@liangmiQwQ and @SaKaNa-Y:
- If no global `vp` is installed and the project's package manager is
not on `PATH`, package-manager commands, `vp run`, and `vp exec` fail
with a message instead of downloading it. Install that package manager
or the global `vp`. Without a global `vp`, a project that selects no
package manager uses npm.
- A system package manager runs as it is, even when its version differs
from the project's pin, and the package manager applies its own pin
check. `vp create` pins the version of the system package manager that
installs the new project.
- `vp migrate` offers to add Renovate's `group:vitePlus` preset to an
existing Renovate config, so Renovate groups eligible Vite+ and Vitest
updates. An interactive run asks first (default Yes), and a
non-interactive run adds it. Projects that already use Vite+ can run `vp
migrate --full` to add it
([docs](https://viteplus.dev/guide/upgrade-project#dependency-bots))
([#3485](#3485)), by
@fengmk2.
- A command that puts `--filter`, `-r`, `-t`, `-w`, or
`--fail-if-no-match` before `run`, such as `vp --filter backend run
dev`, suggests `vp run --filter backend dev`. In an interactive
terminal, the global `vp` asks whether to run it. In other cases, and in
the project-local CLI, the command prints the suggestion and exits with
code 2 ([#3500](#3500)),
by @naokihaba.
- Upgrade the bundled tools
([#3472](#3472),
[#3490](#3490),
[#3502](#3502),
[#3513](#3513),
[#3546](#3546)), by
@voidzero-guard[bot] and @fengmk2:
  | Tool | Version | What changes for you |
  | --- | --- | --- |
| Vitest | `5.1.0` →
[`5.1.1`](https://github.com/vitest-dev/vitest/releases/tag/v5.1.1) |
Parses `--bail` correctly, applies `--shard` before the run starts, and
gives each test attempt a new `signal` |
| tsrs | `7.1.0-beta.tsrs2` →
[`7.1.0-beta.tsrs4`](https://github.com/oxc-project/tsrs/releases/tag/v7.1.0-beta.tsrs4)
| Type checks report global and declaration diagnostics, type errors
show the message chain as `tsc` prints it, and suggestion diagnostics no
longer fail type checks |
| lint-staged | `17.6.1` →
[`17.6.2`](https://github.com/lint-staged/lint-staged/releases/tag/v17.6.2)
| With `git commit <file>`, `vp staged` stages task edits only for those
files |
- If your CI runs `vp check`, run it after you upgrade: tsrs now reports
global and declaration diagnostics, so the type check can report errors
in code that passed before.

### Fixes & Enhancements

- Security: with `VP_LOG=debug`, `vp create` no longer prints the
environment variables that it passes to the template command, which
could include secrets such as `NPM_TOKEN`
([#3552](#3552)), by
@jong-kyung.
- Unpinned npm, pnpm 11 and earlier, and Yarn downloads are verified
against the registry `dist.integrity` before extraction, as the Bun and
pnpm 12+ platform packages already were. When the version document omits
the integrity or returns 404, Vite+ reads the package document instead.
When neither gives it, the install fails with
`PackageManagerIntegrityUnavailable` before anything downloads. Pinned
npm, pnpm 11 and earlier, and Yarn downloads do not change
([#3547](#3547),
[#3553](#3553)), by
@jong-kyung and @fengmk2.
- `devEngines.runtime.version` accepts only semver versions and ranges,
as in npm and pnpm. Aliases such as `lts/*` and `latest` no longer
resolve in this field, and an invalid value follows the entry's
`onFail`: with the default `error`, the command fails with a message
that suggests `vp env pin lts`. `.node-version`, `.nvmrc`, `vp env pin
lts`, and `vp env use lts` keep alias support
([#3489](#3489)), by
@voidzero-bot[bot] and @fengmk2.
- Project-local `vp dev` runs Vite in the launcher process, so a
`SIGTERM` to that process stops the dev server and frees the port
instead of leaving Vite running. `--inspect-brk` and `--cpu-prof` now
cover Vite. The server listened after 109 ms instead of 137 ms with an
empty compile cache, and used 120 MB instead of 168 MB after startup.
With the global `vp`, a `SIGTERM` to the global `vp` process still stops
only `vp`
([#3512](#3512)), by
@fengmk2.
- `vp dev` and `vp build` keep the `--` separator when they pass custom
arguments to Vite, so Vite no longer takes an argument after `--` as the
project path, and the Vite config can read the arguments from
`process.argv`
([#3497](#3497)), by
@fengmk2.
- After a Node.js version change, `npm install -g <pkg>` moves the
package's link in the Vite+ `bin` directory to the new copy and prints a
note. Before, the command kept running the copy installed under the
previous Node.js version. A dry run leaves the links unchanged
([#3283](#3283)), by
@mondaychen.
- Global packages installed through an npm alias, such as `vp install -g
typescript@npm:cowsay`, keep the alias in `vp list -g`, `vp outdated
-g`, and `vp update -g`. Aliases installed before this release need one
reinstall
([#3480](#3480)), by
@liangmiQwQ.
- `vp install -g --force` checks for unmanaged files in the bin
directory before it uninstalls a package that owns a conflicting binary,
so a rejected installation leaves the existing packages installed
([#3504](#3504)), by
@jong-kyung.
- `vp update -g` with only local paths or packages that are not
installed no longer updates every other global package too
([#3551](#3551)), by
@jong-kyung.
- `vp add --save-prod` with npm moves a package that is already in
`devDependencies` or `optionalDependencies` into `dependencies`, as pnpm
does ([#3515](#3515)), by
@liangmiQwQ.
- `vp install <packages>` fails when more than one of `--prod`, `--dev`,
`--save-peer`, and `--save-optional` is given, as `vp add` does, instead
of using one and ignoring the others
([#3516](#3516)), by
@liangmiQwQ.
- `vp install --frozen-lockfile --lockfile-only` with npm 11.16.0 or
later checks that the lockfile matches `package.json` with `npm ci
--dry-run --ignore-scripts`. Before, it ran a plain `npm ci`, which
removed `node_modules`, reinstalled dependencies, and ran lifecycle
scripts. With older npm, Vite+ rejects this combination
([#3518](#3518)), by
@liangmiQwQ.
- In Yarn projects where `yarnPath` selects another Yarn release than
`packageManager`, Vite+ selects commands and options for the release
that runs. Before, a Yarn 2 launcher with a Yarn 3 `yarnPath` skipped
`vp unlink` with a warning and exited with code 0. When Vite+ downloaded
the Yarn launcher, it runs `yarn --version` through it before each
command in these projects
([#3532](#3532)), by
@jong-kyung.
- A task command that starts with `vp -C <dir>`, such as `vp -C .
check`, keeps the cache configuration of its subcommand, so a change to
an environment variable that the subcommand tracks now misses the cache
([#3537](#3537),
[#3536](#3536),
[vite-task#1005](voidzero-dev/vite-task#1005)),
by @jong-kyung.
- On Windows, tasks with automatic file-access tracking can run Git
Bash's `sh` and other MSYS2 or Cygwin programs, which aborted with
`Win32 error 487`
([vite-task#952](voidzero-dev/vite-task#952),
[#3529](#3529)), by
@ReemX.
- On Linux, when the `seccomp` filter for file-access tracking cannot be
installed, for example in rootless bubblewrap, a task runs untracked and
is reported as not cached, instead of failing to spawn child processes
([vite-task#701](voidzero-dev/vite-task#701)),
by @lifeiscontent.
- `vp create` completes the catalog entries that new packages reference
in existing Yarn and Bun workspaces, so no `catalog:` reference stays
unresolved. On Bun 1.4.0 and later, `vp create` and `vp migrate` no
longer write an entry to both `catalog` and `catalogs.default`, which
made the install fail
([#3473](#3473)), by
@jong-kyung.
- After a migration from Husky, `vp config` and `vp hooks enable`
replace a leftover `core.hooksPath` of `.husky` or `.husky/_`, so the
Vite+ hooks run. They do this only when no hook scripts remain directly
under `.husky/` and no package manifest declares Husky
([#3344](#3344)), by
@semimikoh and @fengmk2.
- Git hooks that a package in a subdirectory installs still find that
package's commands after the hook runs `cd`
([#3451](#3451)), by
@voidzero-bot[bot] and @fengmk2.
- `vp migrate` keeps imports in files where the lint configuration turns
off `vite-plus/prefer-vite-plus-imports`, with the same `lint.overrides`
order as `vp lint --fix`, and keeps the Vitest dependencies that those
imports need
([#3411](#3411)), by
@fengmk2.
- `vp migrate` merges `.oxlintrc.json` into `vite.config.ts` when a
value contains text such as `$200` or `$OUT_DIR/**`, and keeps those
values as written
([#3046](#3046)), by
@BenjyLimmy and @fengmk2.
- `vp migrate` no longer fails with a `TypeError` when an npm or Bun
project sets an object under `overrides.vite` or `overrides.vitest`. It
updates the `"."` entry and keeps the child overrides
([#2267](#2267)), by
@charpeni and @fengmk2.
- `vp migrate` and `vp create` replace a dangling agent instruction
symlink, such as `CLAUDE.md`, with a link to `AGENTS.md` instead of
crashing with `EEXIST`
([#3544](#3544)), by
@thejesh23.
- `vp create` accepts target directory names that contain two dots, such
as `my..lib`. A `..` path segment is still rejected
([#3545](#3545)), by
@thejesh23.
- `vp dlx` works with npm 6: it runs `npx`, because `npm exec` first
shipped in npm 7
([#3479](#3479)), by
@jong-kyung.
- In system-first mode (`vp env off`), package-manager commands keep the
system package manager and Node.js directories at their `PATH`
positions, so install scripts no longer run a Node.js from the package
manager's directory instead of the selected one
([#3447](#3447)), by
@liangmiQwQ.
- In a project without the global `vp`, `vp env`, `vp upgrade`, and `vp
implode` print the installation command for the current platform next to
the documentation link
([#3448](#3448)), by
@liangmiQwQ.
- `stream.message` in `@voidzero-dev/vite-plus-prompts` writes to the
`output` that the caller selects instead of stdout, and keeps words
together when that output has no column count
([#3466](#3466)), by
@SaKaNa-Y.
- `vp check` reads the `lint`, `fmt`, and `check` blocks of the root
Vite config statically when it can, as `vp run` does, and loads the
config through Vite only when a block cannot be read statically. On
npmx.dev, `vp check --no-lint` took 559 ms instead of 835 ms. As with
`vp run`, the static path does not see blocks that a plugin adds in its
`config` hook
([#3487](#3487)), by
@jong-kyung.
- `vp config` starts 9 Git processes instead of 15 when the hooks are
already installed. On macOS, `vp config --no-agent` took 200 ms instead
of 260 ms
([#3501](#3501)), by
@jong-kyung.
- The Vitest 5 step of `vp migrate` no longer slows down with the square
of the number of findings in a file
([#3481](#3481)), by
@jong-kyung.
- A registry redirect to a deeply nested `blob:` URL no longer makes
`vp` exit with a stack overflow
([RUSTSEC-2026-0592](https://rustsec.org/advisories/RUSTSEC-2026-0592.html))
([#3540](#3540)), by
@fengmk2.
- The task cache uses SQLite 3.54.1 through `rusqlite` 0.41, which fixes
[RUSTSEC-2026-0459](https://rustsec.org/advisories/RUSTSEC-2026-0459.html)
([vite-task#990](voidzero-dev/vite-task#990)),
by @fengmk2.

### Refactor

- `vp create` runs remote templates through `vp dlx`, which selects the
package-manager command
([#3478](#3478)), by
@jong-kyung.
- `vp` commands, `vp env`, and the shims select the project Node.js
version through one code path. `vp env current`, `vp env which`, `vp env
use`, and the shims now also warn about an invalid `engines.node`, and
`vp` commands print that warning once instead of twice
([#3498](#3498)), by
@fengmk2.

### Docs

- Show how to group Vite+ updates in Renovate with `group:vitePlus`, and
what to check before you merge an update
([#2463](#2463)), by
@fengmk2.
- Add a guide for replacing nvm or fnm with `vp env`
([#3257](#3257)), by
@fengmk2.
- Show how to restore generator outputs that automatic output tracking
leaves out of the cache
([#3483](#3483)), by
@voidzero-bot[bot] and @fengmk2.
- Document offline CI installs with a private registry, and the files to
mirror for a fresh global CLI installation
([#3520](#3520)), by
@fengmk2.
- List the network hosts to allow through a firewall
([docs](https://viteplus.dev/guide/global-cli#network-hosts))
([#3534](#3534)), by
@voidzero-bot[bot].
- Note that Yarn and Bun keep an existing entry in its section for `vp
add --save-prod`
([#3517](#3517)), by
@liangmiQwQ.
- Clarify which dependency sections `vp remove -D`, `-O`, and `-P`
change on each package manager
([#3527](#3527)), by
@SaKaNa-Y.
- Add tsrs and oxc-node to the README toolchain list
([#3494](#3494)), by
@jong-kyung.

### Chore

- Replace the unmaintained `chrono` crate with `jiff` in the global CLI
([RUSTSEC-2026-0543](https://rustsec.org/advisories/RUSTSEC-2026-0543.html))
([#3496](#3496)), by
@voidzero-bot[bot] and @fengmk2.
- Stop installing and tracking the legacy `oxlint-tsgolint` backend in
the repository. `vp migrate` still removes it from projects
([#3531](#3531)), by
@voidzero-guard[bot] and @fengmk2.
- Update Rust dependencies, including `testing_macros` 3
([#3541](#3541),
[#3543](#3543)), by
@renovate[bot].
- Update `cargo-xwin` to 0.24.1 and pin it to exact releases
([#3542](#3542)), by
@renovate[bot] and @fengmk2.
- Keep the Homebrew formula passing `brew style` after a new Homebrew
check, and run the Homebrew installation tests on related changes
([#3550](#3550)), by
@voidzero-bot[bot] and @fengmk2.
- Track tsrs through its `latest` tag in the dependency upgrade workflow
([#3488](#3488)), by
@fengmk2.
- Use the Oxc triage action and GLM-5.3 for issue triage
([#3508](#3508)), by
@fengmk2.
- Remove obsolete `typos` exceptions
([#3519](#3519)), by
@liangmiQwQ.

### Bundled Versions

| Tool | Version | Source | Changelog |
| -------- | ------------------ |
----------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
| vite | `8.3.8` |
[`b39e6e6`](vitejs/vite@b39e6e6)
| unchanged |
| rolldown | `1.2.19` |
[`b9c75dd`](rolldown/rolldown@b9c75dd)
| unchanged |
| oxc-node | `1.0.2` |
[`16c0f34`](oxc-project/oxc-node@16c0f34)
| unchanged |
| tsdown | `0.23.4` | [npm](https://npmx.dev/package/tsdown/v/0.23.4) |
unchanged |
| vitest | `5.1.1` | [npm](https://npmx.dev/package/vitest/v/5.1.1) |
[5.1.1](https://github.com/vitest-dev/vitest/releases/tag/v5.1.1) |
| oxlint | `1.94.0` | [npm](https://npmx.dev/package/oxlint/v/1.94.0) |
unchanged |
| tsrs | `7.1.0-beta.tsrs4` |
[npm](https://npmx.dev/package/tsrs/v/7.1.0-beta.tsrs4) |
[7.1.0-beta.tsrs3](https://github.com/oxc-project/tsrs/releases/tag/v7.1.0-beta.tsrs3),
[7.1.0-beta.tsrs4](https://github.com/oxc-project/tsrs/releases/tag/v7.1.0-beta.tsrs4)
|
| oxfmt | `0.79.0` | [npm](https://npmx.dev/package/oxfmt/v/0.79.0) |
unchanged |

### Upgrade

```bash
vp upgrade
```

In each project, run `vp migrate` to update `vite-plus`, the `vite`
alias to `@voidzero-dev/[email protected]`, and the Vitest pin
together ([guide](https://viteplus.dev/guide/upgrade-project)).

### New Contributors

@mondaychen, @ReemX, @BenjyLimmy, @thejesh23

**Full Changelog**:
v1.7.0...v1.8.0

---

For a stable release, complete the `HomebrewFormula/vp.rb` update after
publication by merging the generated `release/homebrew-v1.8.0` PR.

Merging this PR will trigger the release workflow.

---------

Co-authored-by: voidzero-guard[bot] <278573678+voidzero-guard[bot]@users.noreply.github.com>
Co-authored-by: MK (fengmk2) <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test: create-e2e Run `vp create` e2e tests test: e2e Auto run e2e tests test: install-e2e run vite install e2e test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(migrate): tolerate nested npm overrides during bootstrap detection

2 participants