Skip to content

feat(cli): expose dependency alignment plans - #2600

Open
afonsojramos wants to merge 2 commits into
voidzero-dev:mainfrom
afonsojramos:feat/sync-versions-plan
Open

feat(cli): expose dependency alignment plans#2600
afonsojramos wants to merge 2 commits into
voidzero-dev:mainfrom
afonsojramos:feat/sync-versions-plan

Conversation

@afonsojramos

@afonsojramos afonsojramos commented Sep 2, 2026

Copy link
Copy Markdown

Summary

Vite+ releases can now tell external automation how to align Vite+, Vite+ core, Vitest, and official Vitest packages without reading or changing the project itself. This provides the release-owned compatibility contract needed to prevent dependency bots from producing mixed toolchains.

This is the first part of a three-repository integration. Containerbase installation and Renovate reconciliation follow after this contract ships in a Vite+ release.

Design

  • vp sync-versions --plan-json accepts bounded manifest snapshots over stdin and returns deterministic before/after replacements.
  • Planning updates only existing managed declarations. It preserves catalog protocols, JSON formatting, and YAML comments, quoting, indentation, and line endings.
  • The command does not load project configuration, run installs or lifecycle scripts, format source, or write to the repository.
  • Both the npm CLI and standalone archive expose the same protocol. Release archives include the self-contained planner, toolchain manifest, and checksums needed for verified installation.

Validation

  • Planner, protocol, package-override, and migration suites: 395 tests passed.
  • Focused sync-version suites: 39 tests passed.
  • Global CLI Rust suite: 486 tests passed, 2 ignored.
  • CLI TypeScript build, optimized Rust build, npm entrypoint smoke test, and standalone archive-layout simulation passed.
  • Scoped formatting, lint, type checks, and git diff --check passed.

Related: #2356

Downstream drafts:

@netlify

netlify Bot commented Sep 2, 2026

Copy link
Copy Markdown

Deploy Preview for viteplus-preview canceled.

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

Comment thread packages/cli/src/sync-versions/bin.ts Outdated
@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 preview-build Publish this PR's commits to the registry bridge as preview builds labels Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

preview-build Publish this PR's commits to the registry bridge as preview builds 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.

2 participants