Skip to content

Upgrade Vite+ to 1.7.0 - #2657

Merged
kmcginnes merged 2 commits into
mainfrom
upgrade-vite-plus-1-7
Nov 24, 2026
Merged

kmcginnes merged 2 commits into
mainfrom
upgrade-vite-plus-1-7

Conversation

@kmcginnes

Copy link
Copy Markdown
Collaborator

Summary

This moves the Vite+ toolchain to 1.7.0, in step with the Docker image that's already on 1.7.0. It also lets pnpm install the TypeScript checker this release bundles, tsrs, which our trustPolicy: no-downgrade setting rejects as a false positive.

User-facing: none

 trustPolicy: no-downgrade
+trustPolicyExclude:
+  - tsrs@7.1.0-beta.tsrs2
 catalog:
-  vite: npm:@voidzero-dev/vite-plus-core@1.5.1
-  vite-plus: 1.5.1
+  vite: npm:@voidzero-dev/vite-plus-core@8.3.8000
+  vite-plus: 1.7.0
  • Why the exclusion: tsrs@0.0.0-bootstrap.0, the first version of tsrs, was a staged publish. Every later release comes from trusted publishing with provenance. pnpm ranks a staged publish higher, so it reads every real release as a trust downgrade. The tsrs maintainers say they can't fix this (oxc-project/tsrs#945), pnpm says it works as intended (pnpm/pnpm#16689), and the Vite+ 1.7.0 release notes recommend this same exclusion. It names one exact version, so every other tsrs version still goes through the trust check.
  • Why 8.3.8000: from 1.7.0 on, the @voidzero-dev/vite-plus-core version encodes the bundled Vite version (8.3.8). vite-plus@1.7.0 declares that alias, and there is no @1.7.0 core version.
  • Docs: a new "Upgrading Vite+" section in docs/development.md explains how to finish Dependabot's vite-plus pull request. It covers where to read the vite alias, and when to move or drop the tsrs exclusion, with a provenance check required first. The Dependabot comment and the supply-chain settings list now point to it.

Evidence

Before: with the exclusion removed, vp install fails with ERR_PNPM_TRUST_DOWNGRADE for tsrs@7.1.0-beta.tsrs2.

After: agent-tested:

  • vp install passes the supply-chain policies.
  • vp check reports no lint or type errors under the tsrs type checker.
  • vp test passes: 285 files, 4112 tests.
  • pnpm dedupe --check passes.

Verified live: agent-tested against the npm registry. Forcing tsrs@7.1.0-beta.tsrs3 with this exclusion in place is still rejected as a trust downgrade, which shows the exclusion covers only the pinned version.

Merge Danger

Door: two-way

Impact: tooling

Only the dev toolchain changes, and reverting this PR goes back to Vite+ 1.5.1.


🤖 Written by an AI agent on my behalf.

@kmcginnes kmcginnes left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved

@kmcginnes
kmcginnes merged commit ab75144 into main Nov 24, 2026
5 checks passed
@kmcginnes
kmcginnes deleted the upgrade-vite-plus-1-7 branch November 24, 2026 17:35
kmcginnes added a commit that referenced this pull request Nov 24, 2026
## Summary

These are two follow-ups to [Upgrade Vite+ to 1.7.0
(#2657)](#2657): removing a
peer-dependency rule that no longer does anything, and filling in the
Vite+ upgrade steps.

**User-facing:** none

```diff
 catalog:
   vite: npm:@voidzero-dev/vite-plus-core@8.3.8000
   vite-plus: 1.7.0
-peerDependencyRules:
-  allowAny:
-    - vite
-  allowedVersions:
-    vite: "*"
```

- **Peer rules:** we needed these while the `vite` catalog alias carried
the `vite-plus` version (1.5.1), which no plugin's `vite` peer range
accepts. Since 1.7.0 the alias is `vite-plus-core@8.3.8000`, which those
ranges do accept. That makes the rules dead.
- **Docs:** in `docs/development.md`, the "Upgrading Vite+" link now
sits on the sentence about finishing Dependabot's `vite-plus` pull
request. It used to sit on the sentence about a major upgrade, which
that section doesn't cover. The section's steps also gain the same last
two steps that "Upgrading pnpm" has: run the checks and tests, then
commit the changed files.

## Evidence

**After:** agent-tested by installing from a clean copy of main and of
this branch:
- **Lockfile:** both installs produce a byte-identical `pnpm-lock.yaml`.
- **Peer warnings:** `pnpm peers check` prints the same output on both.
- **Checks:** `vp check`, `vp test` (4112 tests) and `pnpm dedupe
--check` pass.

## Merge Danger

**Door:** two-way

**Impact:** none

---

<sub>🤖 Written by an AI agent on my behalf.</sub>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant