Bump vite-plus from 1.4.0 to 1.7.0 in the vite-plus group
DE
1d ago+753+753+012345678901234567890123456789-406-406-012345678901234567890123456789
Bumps the vite-plus group with 1 update: vite-plus.
Updates vite-plus from 1.4.0 to 1.7.0
Release notes
Sourced from vite-plus's releases.
vite-plus v1.7.0
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
- Type-aware linting and type checking in
vp lintandvp checkuse tsrs, a Rust port of the TypeScript 7 compiler, through itstsrs-lintexecutable. Commands and configuration stay the same, andtsrsinstalls withvite-plus(docs) (#3352), by@fengmk2:
- tsrs targets TypeScript
7.1.0-beta, so type-check diagnostics can change.- With
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.- Benchmark with the same CLI and
oxlint@1.93.0on an Apple M4 Max, previous backend (oxlint-tsgolint@7.0.2007) → tsrs. Time is the median of 10 runs, and peak memory the median of 5 runs:
Project Workload Time Peak memory Vite+ Type-aware rules 1.51 → 1.23 s (-18%) 1.21 → 0.58 GiB (-52%) Vite+ Type-aware rules + type check 1.89 → 1.38 s (-27%) 1.28 → 0.65 GiB (-49%) Vite+ Full vp check2.09 → 1.70 s (-19%) 1.46 → 0.70 GiB (-52%) vinext Type-aware rules 2.73 → 1.66 s (-39%) 3.61 → 1.73 GiB (-52%) vinext Type-aware rules + type check 3.41 → 1.73 s (-49%) 3.72 → 1.82 GiB (-51%) vinext Full vp check4.73 → 2.20 s (-53%) 5.09 → 1.97 GiB (-61%) @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:
- On pnpm 10.2.0 and later,
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.- Upgrade the bundled tools (#3436, #3440, #3452, #3463, #3470), by
@voidzero-guard[bot] and@fengmk2:
Tool Version What changes for you Vite 8.3.7→8.3.8Rejects CSS entry points when build.cssCodeSplitisfalse, and imports Sass once instead of once per fileRolldown 1.2.18→1.2.19The linux-x64-gnubinding runs on older CPUsoxc-node 1.0.1→1.0.2vpxruns CommonJS TypeScript files the waytsccompiles themOxlint 1.93.0→1.94.0Fixes that can change behavior are now suggestions, applied only by vp check --fix-dangerouslyOxfmt 0.78.0→0.79.0Uses Prettier 3.10.1, so formatting can change lint-staged 17.6.0→17.6.1vp stagedwarns about hidden partial changes only when it restores them
- If your CI runs
vp check, runvp check --fix --continue-on-errorafter you upgrade: the new Oxlint, Oxfmt, and tsrs can flag code that passed before.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-kyungand@fengmk2.- An empty
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.- With a token for the default npm registry in
.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.- A second
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.- When
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.- New monorepos from
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.- Ctrl+C or
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.- The Vitest resolver that
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.
... (truncated)
Commits
a3f54d7release: v1.7.0 (#3471)77feb44feat(lint): replace tsgolint with tsrs-lint (#3352)60ab6e5feat(deps): upgrade upstream dependencies (#3470)eb2b757fix(migrate): keep converted ESLint and Prettier settings when default blocks...3302eadfix(migrate): keep a published Oxlint plugin's oxlint dependency on rerun (#3...b6d8400fix(create): fall back to npx for Yarn Classic templates (#3468)6e81fa6fix(create): use monorepo dependency catalogs (#3393)9fc3597fix(pack): respect envPrefix from the config file (#3454)4dc066afeat: align the core version with the bundled Vite version (#3317)a25ca09fix(create): rewrite imports when adding a package to a monorepo (#3282)- Additional commits viewable in compare view
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 <dependency name> major versionwill close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)@dependabot ignore <dependency name> minor versionwill close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)@dependabot ignore <dependency name>will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)@dependabot unignore <dependency name>will remove all of the ignore conditions of the specified dependency@dependabot unignore <dependency name> <ignore condition>will remove the ignore condition of the specified dependency and ignore conditions