Skip to content

Override vite to 6.4.4 or later to clear open advisories - #8

Merged
rafactx merged 1 commit into
mainfrom
deps/vite-override
Nov 6, 2026
Merged

rafactx merged 1 commit into
mainfrom
deps/vite-override

Conversation

@rafactx

@rafactx rafactx commented Nov 6, 2026 •

Copy link
Copy Markdown
Owner

What

Add a pnpm override in pnpm-workspace.yaml so VitePress resolves vite 6.4.5 instead of 5.4.21.

Why

Dependabot has 5 open alerts on vite (affected range <= 6.4.3). They concern the dev server, not the static site, but they stay open until the lockfile no longer has an affected vite. VitePress 1.x pins vite 5, so a normal update cannot fix them. Supersedes #1 and #2.

How tested

  • pnpm install, pnpm typecheck, pnpm build.
  • pnpm preview checked in a headless browser at 390px and 1440px: /en/, /pt/, /en/intro, /pt/api-reference render as before.
  • pnpm dev starts and serves /pt/intro.

VitePress 1.x depends on vite 5, and every vite release up to 6.4.3
is affected by the advisories Dependabot reports (dev-server file
access and cross-origin middleware, plus launch-editor). The build,
typecheck and dev server work unchanged with vite 6.4.5.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@rafactx
rafactx enabled auto-merge (squash) November 6, 2026 03:15
@rafactx
rafactx merged commit 983b201 into main Nov 6, 2026
1 check passed
@rafactx
rafactx deleted the deps/vite-override branch November 6, 2026 03:17
rafactx added a commit that referenced this pull request Nov 6, 2026
## What
Add a pnpm override in `pnpm-workspace.yaml` so VitePress resolves vite
6.4.5 instead of 5.4.21.

## Why
Dependabot has 5 open alerts on vite (affected range `<= 6.4.3`). They
concern the dev server, not the static site, but they stay open until
the lockfile no longer has an affected vite. VitePress 1.x pins vite 5,
so a normal update cannot fix them. Supersedes #1 and #2.

## How tested
- `pnpm install`, `pnpm typecheck`, `pnpm build`.
- `pnpm preview` checked in a headless browser at 390px and 1440px:
`/en/`, `/pt/`, `/en/intro`, `/pt/api-reference` render as before.
- `pnpm dev` starts and serves `/pt/intro`.
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