You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
chore(deps-dev): bump vite-plus from 1.6.0 to 1.8.0 - #325
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, #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) (#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), by @naokihaba.
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
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), 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, #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), 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), 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), 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), 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), 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), 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), 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), 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), 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), 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), 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, #3536, 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, #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), 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), 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), 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), 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), 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), 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), 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), by @thejesh23.
vp create accepts target directory names that contain two dots, such as my..lib. A .. path segment is still rejected (#3545), by @thejesh23.
vp dlx works with npm 6: it runs npx, because npm exec first shipped in npm 7 (#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), 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), 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), 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), 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), by @jong-kyung.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase will rebase this PR
@dependabot recreate will recreate this PR, overwriting any edits that have been made to it
@dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
@dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
@dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
@dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Each alert has instructions on how to review if you don't know what it means. If lost, ask your Security Liaison or the supply-chain group
Copy-paste ignore lines for specific packages or a group of one kind with a note on what research you did to deem it safe. @SocketSecurity ignore npm/PACKAGE@VERSION
Priority
Alert (click "▶" to expand/collapse)
Action
Potential code anomaly (AI signal): npm oxfmt is 98.0% likely to have a medium risk anomaly
Notes: This is a parser bundle and shows no evidence of malware, data theft, or external side effects. The provided text contains an apparent unterminated string in Ms, which makes it syntactically invalid and could break module loading; severity is high for availability if the defect exists in the published file. No domains, URLs, IP addresses, file paths, or targeted credentials are present.
Next steps: Take a moment to review the security alert above. Review
the linked package source code to understand the potential risk. Ensure the
package is not malicious before proceeding. If you're unsure how to proceed,
reach out to your security team or ask the Socket team for help at
support@socket.dev.
Suggestion: An AI system found a low-risk anomaly in this package. It may still be fine to use, but you should check that it is safe before proceeding.
Mark the package as acceptable risk. To ignore this alert only
in this pull request, reply with the comment
@SocketSecurity ignore npm/oxfmt@0.79.0. You can
also ignore all packages with @SocketSecurity ignore-all.
To ignore an alert for all future pull requests, use Socket's Dashboard to
change the triage state of this alert.
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
dependenciesPull requests that update a dependency filejavascriptPull requests that update javascript code
0 participants
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.
Bumps vite-plus from 1.6.0 to 1.8.0.
Release notes
Sourced from vite-plus's releases.
... (truncated)
Commits
3742625release: v1.8.0 (#3557)be9b8fdfix(cli): run project-local vp dev in the launcher process (#3512)160d927fix(create): stop logging template command environment in debug output (#3552)dfeeb26fix(cli): keep subcommand cache config for vp -C in task scripts (#3537)a9b6a32fix(cli): relink dangling agent instruction symlinks instead of crashing (#3544)abdad51fix(create): accept target directory names that contain two dots (#3545)149bdcdfix(migrate): tolerate nested npm overrides during bootstrap detection (#2267)8fb3245chore(lint): remove the legacy tsgolint backend (#3531)426d967refactor(create): run remote templates through vp dlx (#3478)e98aaa0feat(cli): suggest the vp run order when package flags come first (#3500)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)