Repository navigation
release: v1.7.0 - #3471
release: v1.7.0#3471
Conversation
NAPI bakes the package.json version into binding/index.cjs version checks. The prepare_release workflow bumps package.json but does not regenerate this file, so the CI build's regeneration step produces a diff that the post-build no-unexpected-changes guard rejects. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Update the pnpm and npx --package pins and the matching release text in the migration guide and the setup, migration, and upgrade prompts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
✅ Staging deployment successful! Preview: https://viteplus-staging.void.app/ |
🚀 Deploying Preview to Cloudflare 🚀Preview URL: https://release-v1-7-0-viteplus-dev.voidzero-docs.workers.dev (commit 309b96a)This URL reflects your latest Preview deploymentPreview Deployments by commit
|
CLI artifact sizes (
|
| Artifact | Format | Base | PR | Change |
|---|---|---|---|---|
packages/cli/dist |
Directory total | 2.36 MiB | 2.36 MiB | 0 B (0.00%) |
packages/core/dist |
Directory total | 4.11 MiB | 4.11 MiB | 0 B (0.00%) |
| Combined package dist | Directory total | 6.47 MiB | 6.47 MiB | 0 B (0.00%) |
vp (Linux x64) |
Binary | 8.35 MiB | 8.35 MiB | 0 B (0.00%) |
vp (Linux x64) |
gzip -9 | 3.82 MiB | 3.82 MiB | -32 B (-0.00%) |
| NAPI (Linux x64) | Binary | 37.06 MiB | 37.06 MiB | 0 B (0.00%) |
| NAPI (Linux x64) | gzip -9 | 14.80 MiB | 14.79 MiB | -811 B (-0.01%) |
vp (macOS ARM64) |
Binary | 5.46 MiB | 5.46 MiB | 0 B (0.00%) |
vp (macOS ARM64) |
gzip -9 | 3.25 MiB | 3.25 MiB | +74 B (+0.00%) |
| NAPI (macOS ARM64) | Binary | 43.65 MiB | 43.65 MiB | 0 B (0.00%) |
| NAPI (macOS ARM64) | gzip -9 | 18.95 MiB | 18.94 MiB | -2.56 KiB (-0.01%) |
vp (Windows x64) |
Binary | 6.19 MiB | 6.19 MiB | 0 B (0.00%) |
vp (Windows x64) |
gzip -9 | 2.86 MiB | 2.86 MiB | -1 B (-0.00%) |
| NAPI (Windows x64) | Binary | 33.03 MiB | 33.03 MiB | 0 B (0.00%) |
| NAPI (Windows x64) | gzip -9 | 13.53 MiB | 13.53 MiB | +63 B (+0.00%) |
| 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 | 0 B (0.00%) |
| 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%) |
Preview binary sizes (
|
| Binary | Latest release | Preview | Change |
|---|---|---|---|
vp (macOS ARM64) |
5.46 MiB | 5.46 MiB | +32 B (+0.00%) |
| NAPI (macOS ARM64) | 43.39 MiB | 43.61 MiB | +226.23 KiB (+0.51%) |
vp (macOS x64) |
6.92 MiB | 6.93 MiB | +16.05 KiB (+0.23%) |
| NAPI (macOS x64) | 48.76 MiB | 49.00 MiB | +245.23 KiB (+0.49%) |
vp (Linux ARM64 GNU) |
6.90 MiB | 6.91 MiB | +8.05 KiB (+0.11%) |
| NAPI (Linux ARM64 GNU) | 32.68 MiB | 32.92 MiB | +248.02 KiB (+0.74%) |
vp (Linux ARM64 musl) |
6.97 MiB | 6.99 MiB | +10.73 KiB (+0.15%) |
| NAPI (Linux ARM64 musl) | 31.89 MiB | 32.13 MiB | +248.52 KiB (+0.76%) |
vp (Linux x64 GNU) |
8.33 MiB | 8.35 MiB | +16.05 KiB (+0.19%) |
| NAPI (Linux x64 GNU) | 36.69 MiB | 36.98 MiB | +292.00 KiB (+0.78%) |
vp (Linux x64 musl) |
8.41 MiB | 8.42 MiB | +8.81 KiB (+0.10%) |
| NAPI (Linux x64 musl) | 35.90 MiB | 36.18 MiB | +290.47 KiB (+0.79%) |
vp (Windows x64) |
6.19 MiB | 6.19 MiB | 0 B (0.00%) |
| NAPI (Windows x64) | 32.45 MiB | 32.67 MiB | +226.00 KiB (+0.68%) |
| Trampoline (Windows x64) | 13.00 KiB | 13.00 KiB | 0 B (0.00%) |
| Installer (Windows x64) | 4.69 MiB | 4.69 MiB | +5.00 KiB (+0.10%) |
vp (Windows ARM64) |
5.42 MiB | 5.42 MiB | +3.50 KiB (+0.06%) |
| NAPI (Windows ARM64) | 28.66 MiB | 28.85 MiB | +202.00 KiB (+0.69%) |
| Trampoline (Windows ARM64) | 13.00 KiB | 13.00 KiB | 0 B (0.00%) |
| Installer (Windows ARM64) | 3.86 MiB | 3.86 MiB | +5.00 KiB (+0.13%) |
gzip -9 sizes
| Binary | Latest release | Preview | Change |
|---|---|---|---|
vp (macOS ARM64) |
3.25 MiB | 3.25 MiB | +3.05 KiB (+0.09%) |
| NAPI (macOS ARM64) | 18.85 MiB | 18.93 MiB | +84.79 KiB (+0.44%) |
vp (macOS x64) |
3.43 MiB | 3.44 MiB | +6.97 KiB (+0.20%) |
| NAPI (macOS x64) | 20.12 MiB | 20.22 MiB | +101.60 KiB (+0.49%) |
vp (Linux ARM64 GNU) |
3.74 MiB | 3.75 MiB | +6.66 KiB (+0.17%) |
| NAPI (Linux ARM64 GNU) | 13.93 MiB | 14.02 MiB | +85.20 KiB (+0.60%) |
vp (Linux ARM64 musl) |
3.77 MiB | 3.77 MiB | +7.01 KiB (+0.18%) |
| NAPI (Linux ARM64 musl) | 13.64 MiB | 13.72 MiB | +81.96 KiB (+0.59%) |
vp (Linux x64 GNU) |
3.81 MiB | 3.82 MiB | +4.52 KiB (+0.12%) |
| NAPI (Linux x64 GNU) | 14.65 MiB | 14.75 MiB | +102.50 KiB (+0.68%) |
vp (Linux x64 musl) |
3.84 MiB | 3.84 MiB | +2.97 KiB (+0.08%) |
| NAPI (Linux x64 musl) | 14.33 MiB | 14.43 MiB | +96.56 KiB (+0.66%) |
vp (Windows x64) |
2.86 MiB | 2.86 MiB | -2.59 KiB (-0.09%) |
| NAPI (Windows x64) | 13.31 MiB | 13.39 MiB | +83.07 KiB (+0.61%) |
| Trampoline (Windows x64) | 7.14 KiB | 7.14 KiB | -1 B (-0.01%) |
| Installer (Windows x64) | 2.25 MiB | 2.25 MiB | +1.97 KiB (+0.09%) |
vp (Windows ARM64) |
2.73 MiB | 2.73 MiB | +287 B (+0.01%) |
| NAPI (Windows ARM64) | 12.62 MiB | 12.70 MiB | +80.33 KiB (+0.62%) |
| Trampoline (Windows ARM64) | 6.93 KiB | 6.93 KiB | -1 B (-0.01%) |
| Installer (Windows ARM64) | 2.14 MiB | 2.14 MiB | +3.28 KiB (+0.15%) |
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.309b96aaf065d95452ca218076c666671cf36440 |
@voidzero-dev/vite-plus-core |
0.0.0-commit.309b96aaf065d95452ca218076c666671cf36440 |
create-vite-plus |
0.0.0-commit.309b96aaf065d95452ca218076c666671cf36440 |
Install the Vite+ CLI built from this commit, then migrate a project:
# macOS / Linux
curl -fsSL https://raw.githubusercontent.com/voidzero-dev/vite-plus/309b96aaf065d95452ca218076c666671cf36440/packages/cli/install.sh | VP_PR_VERSION=3471 VP_LEGACY_INSTALLER_URL=https://raw.githubusercontent.com/voidzero-dev/vite-plus/309b96aaf065d95452ca218076c666671cf36440/packages/cli/install-legacy.sh bash# Windows (PowerShell)
$env:VP_PR_VERSION="3471"; $env:VP_LEGACY_INSTALLER_URL="https://raw.githubusercontent.com/voidzero-dev/vite-plus/309b96aaf065d95452ca218076c666671cf36440/packages/cli/install-legacy.ps1"; irm https://raw.githubusercontent.com/voidzero-dev/vite-plus/309b96aaf065d95452ca218076c666671cf36440/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=309b96aaf065d95452ca218076c666671cf36440
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.309b96aaf065d95452ca218076c666671cf36440" --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 vite-plus@0.0.0-commit.309b96aaf065d95452ca218076c666671cf36440 # or: npm create vite-plus@0.0.0-commit.309b96aaf065d95452ca218076c666671cf36440$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.309b96aaf065d95452ca218076c666671cf36440 # or: npm create vite-plus@0.0.0-commit.309b96aaf065d95452ca218076c666671cf36440pnpm 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.309b96aaf065d95452ca218076c666671cf36440",
"vite": "npm:@voidzero-dev/vite-plus-core@0.0.0-commit.309b96aaf065d95452ca218076c666671cf36440"
}
}
🐳 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-3471 2>/dev/null; docker pull ghcr.io/voidzero-dev/vite-plus:pr-3471Quick check: docker run --rm ghcr.io/voidzero-dev/vite-plus:pr-3471 vp --versionSee docs/guide/docker.md for usage. |
Vite+ 1.7.0 runs type-aware linting and type checking on tsrs, a Rust port of the TypeScript 7 compiler, gives
@voidzero-dev/vite-plus-corea version that encodes the bundled Vite version (8.3.8000for Vite8.3.8) so compatibleviteplugins pass peer checks, and addsvp check --fix-dangerously.Features
vp lintandvp checkuse tsrs, a Rust port of the TypeScript 7 compiler, through itstsrs-lintexecutable. Commands and configuration stay the same, andtsrsinstalls withvite-plus. In the benchmark on two projects, with the same CLI and Oxlint, type-awarevp lintand a fullvp checktook 18% to 53% less time with tsrs than with the previous backend, and used about half the peak memory (docs) (#3352), by @fengmk2:7.1.0-beta, so type-check diagnostics can change.trustPolicy: no-downgradeinpnpm-workspace.yaml, pnpm rejects the bundledtsrsrelease (upstream issue).vp migrateaddstsrs@7.1.0-beta.tsrs2totrustPolicyExclude, so run it if this policy blocks the upgrade.@voidzero-dev/vite-plus-corehas a version that encodes the bundled Vite version:8.3.8000for Vite8.3.8in this release. Projects aliasviteto this package, so plugins whosevitepeer range includes the bundled Vite, such as@vitejs/plugin-reactwith^8.0.0, now pass peer checks. npm no longer printsERESOLVE overriding peer dependencywarnings, and npm and Bun projects that declare onlyvite-plusinstall one copy of Vite for Vitest and Vite+, about 20 MiB less innode_moduleson macOS arm64 (#3317), by @fengmk2:vp migrateremoves the broadviterule frompeerDependencyRules. A plugin whosevitepeer range excludes the bundled Vite then reports a peer warning, and withstrictPeerDependenciesthe install fails. Update that plugin, or allow its range for that plugin only (migration rules).vite-plusand the core no longer share a version number. If you update them by hand or with a dependency bot, read the alias withnpm view vite-plus@1.7.0 dependencies.vite, or runvp migrateto update both (docs).vp check --fix-dangerouslyformats files and applies all lint fixes, including dangerous fixes and suggestions. It does not need--fix, and it works with--no-fmtand--continue-on-error. Review the changes before you commit them, because dangerous fixes can change program behavior (docs) (#3413), by @chbaefront.vp createwith a third-partycreate-xxxtemplate asks about agent instructions, editor configs, Git, and commit hooks after the template's own CLI finishes, and checks what that CLI generated: it offers to append to an existing agent file, merges existing editor configs, and asks about Git only when the template did not create a repository. When the generated standalone project already depends onvite-plus,vp createkeeps the template's choices, such as ESLint or itsvite-plusversion, and skips the migration. SetVP_FORCE_MIGRATE=1to run it (#3424, #3435), by @liangmiQwQ.vite@8.3.7tovite@8.3.8. Vite rejects CSS entry points whenbuild.cssCodeSplitisfalse, imports Sass once instead of once per file, and no longer opens a console window foryarn config geton Windows.rolldown@1.2.18torolldown@1.2.19. Thelinux-x64-gnubinding runs on older CPUs.oxc-node@1.0.1tooxc-node@1.0.2, the loader behindvpxfor TypeScript files andvite-plus/register. TypeScript files withimportandexportin a CommonJS package run as CommonJS when tsconfig compiles them to CommonJS,package.json"type"selects the format of.tsfiles undermodule: node16andnodenext, andvpx --watchon macOS no longer uses more memory each time a watched folder is replaced.oxlint@1.93.0tooxlint@1.94.0. Many fixes that can change program behavior are now suggestions or dangerous fixes, sovp check --fixapplies fewer of them, andvp check --fix-dangerouslyapplies them.typeCheckis no longer experimental, andno-misused-promisesgets aflagUnionsoption.oxfmt@0.78.0tooxfmt@0.79.0. Oxfmt moves to Prettier 3.10.1 and fixes the output for several TypeScript, Vue, Angular, HTML, Markdown, CSS, and GraphQL cases, so formatting can change.lint-staged@17.6.0tolint-staged@17.6.1invp staged. The warning about hidden partially staged changes appears only when the changes are restored.vp check, runvp check --fix --continue-on-errorafter you upgrade: it formats files, applies the available lint fixes, formats again, and reports every error that remains.Fixes & Enhancements
vp upgradeno longer deletes a version directory that it did not create when an installation fails, sovp upgrade --rollbackstill finds the previous version after a failed reinstall.vp upgrade,vp upgrade --rollback, and installer setup wait for each other, so two upgrades that run at the same time can no longer leavecurrentpointing to a missing directory.vp upgradealso repairs an active version whosevpbinary is missing (#3412), by @jong-kyung and @fengmk2.VP_NODE_SKIP_SIGNATURE_VERIFY,VP_NODE_DIST_MIRROR, ornpm_config_registry(in either letter case) counts as unset, as in pnpm. Before,VP_NODE_SKIP_SIGNATURE_VERIFY=""turned off PGP verification of Node.js downloads, and an empty mirror or registry failed withrelative URL without a base(#3444), by @jong-kyung..npmrc, the package-manager shims again use cached dist-tags for alatestdefault and fall back to the cache offline, instead of waiting on the registry at each call and failing when it cannot be reached. Other authenticated registries still skip the cache (#3457), by @liangmiQwQ.vp packusespack.envPrefixfromvite.config.ts. Before, the default prefixesVITE_PACK_andTSDOWN_always replaced it, so variables under the configured prefix were not inlined and variables under the default prefixes were. The--env-prefixflag still takes precedence (#3454), by @jong-kyung.vp migrate --fullon a project that the first migration left on ESLint and Prettier no longer loses their settings. Whenvite.config.tsholds only the defaultlintandfmtblocks thatvp migrateadded, the converted settings replace them. When those blocks have your own settings, the converted.oxlintrc.jsonor Prettier stays in place with a warning (#3464), by @jong-kyung.vp migratewritesnpmPreapprovedPackagesto.yarnrc.ymlonly for Yarn 4.10.0 and later. Older Yarn versions do not know this key and refused to run, so migrated Yarn 2 and 3 projects, and Yarn 4.0 to 4.9 projects whose Yarn upgrade failed, could not install (#3443), by @jong-kyung.vp migratemerges the duplicatevite-plusimports that it creates when it rewritesviteimports, soimport/no-duplicatesno longer reports them. Comments, side-effect imports, and code between the imports stay in place (#3439), by @voidzero-bot[bot] and @fengmk2.vp migraterun keepsoxlintin thedependenciesof a package that publishes an Oxlint plugin, as the first run does (#3462), by @jong-kyung.vp migratewarns when the root or a workspace package hasturbo.json,turbo.jsonc, or aturbodependency, becausevp rundoes not read Turborepo configuration. The warning links to the task and cache guides for manual migration (#3300), by @voidzero-bot[bot] and @fengmk2.vp createadds a third-party template to a monorepo, it rewrites the new package'sviteimports tovite-plus, sovp checkno longer reportsvite-plus/prefer-vite-plus-importserrors there (#3282), by @voidzero-bot[bot] and @fengmk2.vp createreference their dependency catalog entries withcatalog:and contain no unused entries, and the TypeScript and@types/nodecatalog versions match the generated packages (#3393), by @d4rshnn.vp createworks in projects pinned to Yarn 1.x: it runs templates withnpx --yes, asvp dlxdoes, because Yarn Classic has noyarn dlx(#3468), by @jong-kyung.vp env exec --nodeandvp env pinacceptlts/*,lts/<codename>, andlts/-n, asvp env usedoes.vp env pin lts/*writes the resolved exact version (#3437), by @jong-kyung.SIGTERMduring a spinner invp createandvp migrateends the command by that signal, so the shell reports 130 or 143 instead of 0, as for the native spinners since 1.6.0. Escape no longer ends the command while a spinner is visible (#3432), by @jong-kyung.defineConfigadds declares aresolveIdfilter, so Rolldown builds skip it without a call into JavaScript for imports other thanvitest,vitest/*,@vitest/*, andvite-plus/test. A synthetic build with 40,000resolveIdcalls and no other work took 1.4 s instead of 1.9 s (#3434), by @jasonkuhrt.Docs
vp testtogether withvp buildas commands that support cooperative tracking in the cache guide (#3453), by @SaKaNa-Y.vp migrateguide (#3456), by @fengmk2.Chore
vp create vite:generatordepend onbingo@^0.16.0(#3392), by @renovate[bot].syn3 andtesting_macros2 (#3312, #3460, #3461), by @renovate[bot].User-Agentheader names case-insensitively in an HTTP test (#3469), by @liangmiQwQ.Bundled Versions
8.3.8b39e6e61.2.19b9c75dd1.0.216c0f340.23.45.1.01.94.07.1.0-beta.tsrs20.79.0Upgrade
In each project, run
vp migrateto updatevite-plus, thevitealias to@voidzero-dev/vite-plus-core@8.3.8000, and the Vitest pin together (guide).New Contributors
@jasonkuhrt, @d4rshnn
Full Changelog: v1.6.0...v1.7.0
For a stable release, complete the
HomebrewFormula/vp.rbupdate after publication by merging the generatedrelease/homebrew-v1.7.0PR.Merging this PR will trigger the release workflow.