Repository navigation
fix(cli): run project-local vp dev in the launcher process - #3512
Conversation
CLI artifact sizes (
|
| Artifact | Format | Base | PR | Change |
|---|---|---|---|---|
packages/cli/dist |
Directory total | 2.38 MiB | 2.38 MiB | +790 B (+0.03%) |
packages/core/dist |
Directory total | 4.11 MiB | 4.11 MiB | 0 B (0.00%) |
| Combined package dist | Directory total | 6.49 MiB | 6.49 MiB | +790 B (+0.01%) |
vp (Linux x64) |
Binary | 8.56 MiB | 8.56 MiB | 0 B (0.00%) |
vp (Linux x64) |
gzip -9 | 3.92 MiB | 3.92 MiB | 0 B (0.00%) |
| NAPI (Linux x64) | Binary | 37.28 MiB | 37.29 MiB | +16.00 KiB (+0.04%) |
| NAPI (Linux x64) | gzip -9 | 14.90 MiB | 14.91 MiB | +7.44 KiB (+0.05%) |
vp (macOS ARM64) |
Binary | 5.61 MiB | 5.61 MiB | 0 B (0.00%) |
vp (macOS ARM64) |
gzip -9 | 3.34 MiB | 3.34 MiB | 0 B (0.00%) |
| NAPI (macOS ARM64) | Binary | 43.81 MiB | 43.83 MiB | +16.14 KiB (+0.04%) |
| NAPI (macOS ARM64) | gzip -9 | 19.03 MiB | 19.03 MiB | +2.45 KiB (+0.01%) |
vp (Windows x64) |
Binary | 6.64 MiB | 6.64 MiB | 0 B (0.00%) |
vp (Windows x64) |
gzip -9 | 3.03 MiB | 3.03 MiB | 0 B (0.00%) |
| NAPI (Windows x64) | Binary | 33.23 MiB | 33.24 MiB | +10.00 KiB (+0.03%) |
| NAPI (Windows x64) | gzip -9 | 13.63 MiB | 13.63 MiB | +4.23 KiB (+0.03%) |
| Trampoline (Windows x64) | Binary | 13.50 KiB | 13.50 KiB | 0 B (0.00%) |
| Trampoline (Windows x64) | gzip -9 | 7.09 KiB | 7.09 KiB | +1 B (+0.01%) |
| Installer (Windows x64) | Binary | 4.69 MiB | 4.69 MiB | 0 B (0.00%) |
| Installer (Windows x64) | gzip -9 | 2.25 MiB | 2.25 MiB | -1 B (-0.00%) |
be76f1d to
af53571
Compare
07c2b30 to
1538e35
Compare
Preview binary sizes (
|
| Binary | Latest release | Preview | Change |
|---|---|---|---|
vp (macOS ARM64) |
5.46 MiB | 5.61 MiB | +162.05 KiB (+2.90%) |
| NAPI (macOS ARM64) | 43.61 MiB | 43.78 MiB | +177.77 KiB (+0.40%) |
vp (macOS x64) |
6.93 MiB | 7.10 MiB | +172.79 KiB (+2.43%) |
| NAPI (macOS x64) | 49.00 MiB | 49.22 MiB | +220.63 KiB (+0.44%) |
vp (Linux ARM64 GNU) |
6.91 MiB | 7.10 MiB | +188.07 KiB (+2.66%) |
| NAPI (Linux ARM64 GNU) | 32.90 MiB | 33.13 MiB | +233.28 KiB (+0.69%) |
vp (Linux ARM64 musl) |
6.99 MiB | 7.16 MiB | +183.93 KiB (+2.57%) |
| NAPI (Linux ARM64 musl) | 32.13 MiB | 32.32 MiB | +188.33 KiB (+0.57%) |
vp (Linux x64 GNU) |
8.35 MiB | 8.55 MiB | +204.07 KiB (+2.39%) |
| NAPI (Linux x64 GNU) | 36.98 MiB | 37.21 MiB | +237.38 KiB (+0.63%) |
vp (Linux x64 musl) |
8.42 MiB | 8.62 MiB | +207.08 KiB (+2.40%) |
| NAPI (Linux x64 musl) | 36.18 MiB | 36.40 MiB | +227.06 KiB (+0.61%) |
vp (Windows x64) |
6.19 MiB | 6.64 MiB | +461.00 KiB (+7.27%) |
| NAPI (Windows x64) | 32.67 MiB | 32.88 MiB | +212.00 KiB (+0.63%) |
| Trampoline (Windows x64) | 13.00 KiB | 13.00 KiB | 0 B (0.00%) |
| Installer (Windows x64) | 4.69 MiB | 4.69 MiB | +1.00 KiB (+0.02%) |
vp (Windows ARM64) |
5.42 MiB | 5.86 MiB | +450.50 KiB (+8.12%) |
| NAPI (Windows ARM64) | 28.85 MiB | 29.00 MiB | +155.50 KiB (+0.53%) |
| Trampoline (Windows ARM64) | 13.00 KiB | 13.00 KiB | 0 B (0.00%) |
| Installer (Windows ARM64) | 3.86 MiB | 3.86 MiB | +1.00 KiB (+0.03%) |
gzip -9 sizes
| Binary | Latest release | Preview | Change |
|---|---|---|---|
vp (macOS ARM64) |
3.25 MiB | 3.34 MiB | +93.83 KiB (+2.82%) |
| NAPI (macOS ARM64) | 18.93 MiB | 19.02 MiB | +94.88 KiB (+0.49%) |
vp (macOS x64) |
3.44 MiB | 3.52 MiB | +90.12 KiB (+2.56%) |
| NAPI (macOS x64) | 20.22 MiB | 20.32 MiB | +101.11 KiB (+0.49%) |
vp (Linux ARM64 GNU) |
3.75 MiB | 3.84 MiB | +98.32 KiB (+2.56%) |
| NAPI (Linux ARM64 GNU) | 14.02 MiB | 14.12 MiB | +108.00 KiB (+0.75%) |
vp (Linux ARM64 musl) |
3.77 MiB | 3.87 MiB | +102.07 KiB (+2.64%) |
| NAPI (Linux ARM64 musl) | 13.72 MiB | 13.82 MiB | +102.21 KiB (+0.73%) |
vp (Linux x64 GNU) |
3.82 MiB | 3.92 MiB | +103.17 KiB (+2.64%) |
| NAPI (Linux x64 GNU) | 14.75 MiB | 14.86 MiB | +110.10 KiB (+0.73%) |
vp (Linux x64 musl) |
3.84 MiB | 3.94 MiB | +103.30 KiB (+2.63%) |
| NAPI (Linux x64 musl) | 14.43 MiB | 14.53 MiB | +101.76 KiB (+0.69%) |
vp (Windows x64) |
2.86 MiB | 3.03 MiB | +170.12 KiB (+5.80%) |
| NAPI (Windows x64) | 13.39 MiB | 13.49 MiB | +106.38 KiB (+0.78%) |
| Trampoline (Windows x64) | 7.14 KiB | 7.14 KiB | 0 B (0.00%) |
| Installer (Windows x64) | 2.25 MiB | 2.25 MiB | +306 B (+0.01%) |
vp (Windows ARM64) |
2.73 MiB | 2.90 MiB | +166.92 KiB (+5.96%) |
| NAPI (Windows ARM64) | 12.70 MiB | 12.78 MiB | +84.08 KiB (+0.65%) |
| Trampoline (Windows ARM64) | 6.93 KiB | 6.93 KiB | 0 B (0.00%) |
| Installer (Windows ARM64) | 2.14 MiB | 2.14 MiB | +43 B (+0.00%) |
Raw sizes are uncompressed file sizes. gzip sizes recompress each binary at level 9; they are not package or download archive sizes.
The baseline uses published release files, including NAPI packages from npm at the same version. Build versions and toolchains can affect the difference.
Registry bridge build (
|
| Package | Version |
|---|---|
vite-plus |
0.0.0-commit.947d9fba2f87c28375f1efa5796833e3179b1b5e |
@voidzero-dev/vite-plus-core |
0.0.0-commit.947d9fba2f87c28375f1efa5796833e3179b1b5e |
create-vite-plus |
0.0.0-commit.947d9fba2f87c28375f1efa5796833e3179b1b5e |
Install the Vite+ CLI built from this commit, then migrate a project:
# macOS / Linux
curl -fsSL https://raw.githubusercontent.com/voidzero-dev/vite-plus/947d9fba2f87c28375f1efa5796833e3179b1b5e/packages/cli/install.sh | VP_PR_VERSION=3512 VP_LEGACY_INSTALLER_URL=https://raw.githubusercontent.com/voidzero-dev/vite-plus/947d9fba2f87c28375f1efa5796833e3179b1b5e/packages/cli/install-legacy.sh bash# Windows (PowerShell)
$env:VP_PR_VERSION="3512"; $env:VP_LEGACY_INSTALLER_URL="https://raw.githubusercontent.com/voidzero-dev/vite-plus/947d9fba2f87c28375f1efa5796833e3179b1b5e/packages/cli/install-legacy.ps1"; irm https://raw.githubusercontent.com/voidzero-dev/vite-plus/947d9fba2f87c28375f1efa5796833e3179b1b5e/packages/cli/install.ps1 | iexOr install with Homebrew (macOS / glibc Linux):
These commands use the formula and binary from this published commit. Replace brew install with brew reinstall if the tap package is already installed.
If Homebrew Core’s vite-plus is installed, run brew uninstall vite-plus first. This keeps your user data; do not run vp implode to switch installations.
(
set -eu
export HOMEBREW_NO_AUTO_UPDATE=1
export HOMEBREW_VP_PR_VERSION=947d9fba2f87c28375f1efa5796833e3179b1b5e
brew tap voidzero-dev/vite-plus https://github.com/voidzero-dev/vite-plus
preview_tap="$(brew --repository voidzero-dev/vite-plus)"
git -C "$preview_tap" fetch --depth=1 https://github.com/voidzero-dev/vite-plus.git "$HOMEBREW_VP_PR_VERSION"
git -C "$preview_tap" switch --detach "$HOMEBREW_VP_PR_VERSION"
brew install voidzero-dev/vite-plus/vp
brew test voidzero-dev/vite-plus/vp
"$(brew --prefix)/bin/vp"
)The tap stays at the tested commit. Return it to main after testing:
git -C "$(brew --repository voidzero-dev/vite-plus)" switch mainOr download the standalone Windows installer built from this commit:
| Architecture | Installer |
|---|---|
| x64 | vp-setup-x86_64-pc-windows-msvc.exe |
| Arm64 | vp-setup-aarch64-pc-windows-msvc.exe |
GitHub requires you to sign in and downloads each installer as a ZIP artifact. Extract vp-setup.exe, then run it against this preview build:
.\vp-setup.exe --version "0.0.0-commit.947d9fba2f87c28375f1efa5796833e3179b1b5e" --registry "https://registry-bridge.viteplus.dev/"After installing, upgrade the current project's vite-plus to this test build with:
vp migrateOr create a new project from this commit without installing the CLI:
export npm_config_registry=https://registry-bridge.viteplus.dev/ pnpm_config_registry=https://registry-bridge.viteplus.dev/
pnpm create [email protected] # or: npm create [email protected]$env:npm_config_registry="https://registry-bridge.viteplus.dev/"; $env:pnpm_config_registry="https://registry-bridge.viteplus.dev/"
pnpm create vite-plus@0.0.0-commit.947d9fba2f87c28375f1efa5796833e3179b1b5e # or: npm create [email protected]pnpm 11+ reads pnpm_config_registry, npm and older pnpm read npm_config_registry. The new project pins this build, so keep the registry set for later installs, or configure it as below.
Or point your package manager at the bridge registry https://registry-bridge.viteplus.dev/:
| Package manager | Registry config |
|---|---|
| npm / pnpm / Bun | .npmrc: registry=https://registry-bridge.viteplus.dev/ |
| Yarn (v2+) | .yarnrc.yml: npmRegistryServer: "https://registry-bridge.viteplus.dev/" |
Then pin the build (vite aliases to vite-plus-core; pnpm can use a catalog, npm an overrides entry):
{
"devDependencies": {
"vite-plus": "0.0.0-commit.947d9fba2f87c28375f1efa5796833e3179b1b5e",
"vite": "npm:@voidzero-dev/vite-plus-core@0.0.0-commit.947d9fba2f87c28375f1efa5796833e3179b1b5e"
}
}
🐳 Docker preview imageBuilt from this PR's registry bridge build:
# remove any stale local copy from a previous run, then pull fresh
docker rmi ghcr.io/voidzero-dev/vite-plus:pr-3512 2>/dev/null; docker pull ghcr.io/voidzero-dev/vite-plus:pr-3512Quick check: docker run --rm ghcr.io/voidzero-dev/vite-plus:pr-3512 vp --versionSee docs/guide/docker.md for usage. |
eef408b to
b055d64
Compare
On Unix, `vp dev` in a project started Vite in a child process. A SIGTERM to the launcher's process ID stopped only the launcher, and Vite kept the port open. The binding now returns the dev command instead of starting it. The launcher applies the command's environment and working directory, rewrites `process.argv`, and imports Vite's entry point in its own process. A signal to the launcher's process ID now reaches the dev server. The launcher's Node.js options, preloads, and IPC channel apply to Vite once, as when Vite runs directly. A Worker keeps Vite as a child process, because a Worker cannot change the working directory. Before Vite starts, the launcher sets stdout and stderr pipes back to non-blocking, as Vite's own process did, so a slow reader cannot stall the server. Refs #3106. Co-Authored-By: Claude Opus 5.5 <[email protected]>
b055d64 to
ef3dbb4
Compare
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]>
On Unix,
vp devin a project starts Vite in a child process. A process manager can stop the launcher withSIGTERMwhile Vite keeps the port open.The project-local launcher now runs Vite in its own process. The binding returns the dev command instead of starting it. The launcher applies the command's environment, working directory, and arguments, and then imports Vite's entry point. A signal to the launcher's process ID now reaches the dev server directly. Windows uses the same path.
Before and after
flowchart LR subgraph before["Before: two processes"] direction TB s1(["kill -TERM 100"]) --> l1["PID 100: launcher<br/>node bin/vp dev"] l1 -- "spawns and waits" --> v1["PID 101: Vite<br/>node vite.js dev"] l1 --> e1["The launcher exits"] v1 --> o1["Vite keeps running<br/>and holds the port"] end subgraph after["After: one process"] direction TB s2(["kill -TERM 100"]) --> p2["PID 100: launcher<br/>node bin/vp dev<br/>imports vite.js"] p2 --> e2["Vite closes the server<br/>and frees the port"] end classDef bad fill:#fde2e1,stroke:#c0392b,color:#000 classDef good fill:#ddf4e4,stroke:#1e8449,color:#000 class o1 bad class e2 goodvp devSIGTERMto the launcher PIDviterun directly does.SIGKILLto the launcher PID--inspect-brk--cpu-profNODE_OPTIONS, it writes two profiles.NODE_OPTIONSvp devSIGTERMto the globalvpPID still stops onlyvp.Startup performance
vp devThe time and memory saved come from one less Node.js process, so the saving should stay about the same in a larger project.
In a Worker, the launcher keeps Vite as a child process, because a Worker cannot change the working directory.
Node.js restores the terminal mode itself on exit,
SIGINT, andSIGTERM, as it does when Vite runs directly. The launcher no longer restores the terminal afterSIGHUP,SIGKILL, or a signal that arrives after the last JavaScript listener is removed.Closes #3106.