Skip to content

Upgrade vite/vitest/plugin-react to patch esbuild advisory (GHSA-gv7w-rqvm-qjhr)#114

Merged
telivity-otaip merged 1 commit into
mainfrom
claude/upgrade-vite-vitest
Jun 16, 2026
Merged

Upgrade vite/vitest/plugin-react to patch esbuild advisory (GHSA-gv7w-rqvm-qjhr)#114
telivity-otaip merged 1 commit into
mainfrom
claude/upgrade-vite-vitest

Conversation

@telivity-otaip

Copy link
Copy Markdown
Collaborator

Why

esbuild < 0.28.1 is flagged High (GHSA-gv7w-rqvm-qjhr). This isn't just a Dependabot alert — CI runs pnpm audit --audit-level=high, so the advisory fails CI. The patched esbuild 0.28.1 is incompatible with the pinned vite 6 (it broke examples/platform-ui's transpile with 92 errors), so the fix is a small toolchain bump to versions whose defaults tolerate it.

What

Package From To
vite (examples/platform-ui) 6.4.2 8.0.16
@vitejs/plugin-react (examples/platform-ui) 4.3.4 6.0.2
vitest (root) 4.1.2 4.1.9
esbuild (transitive) 0.25.12 + 0.27.7 0.28.1

pnpm overrides pin a single vite ^8.0.16 (covers platform-ui + vitest's peer) and esbuild >=0.28.1 across the workspace. vite 8's higher default build target no longer forces the down-leveling that broke vite 6 with esbuild 0.28.

Verified locally

  • esbuild resolves to a single 0.28.1 — clears the advisory / pnpm audit --audit-level=high.
  • ✅ Full pnpm -r build green across all 21 packages (platform-ui builds on vite 8).
  • 3,292 tests pass, 17 skipped; platform-ui typecheck clean.
  • The one local test failure (examples/ota playground) only occurs because it needs pnpm run data:download, which my sandbox can't fetch (no network). CI runs data:download before tests, so it passes there — not a regression from this change.

No source/runtime code changes — dependency + lockfile only.

https://claude.ai/code/session_01TwDq6fWRtNtPqxzYm4fshB


Generated by Claude Code

…qvm-qjhr)

esbuild < 0.28.1 was flagged (High, GHSA-gv7w-rqvm-qjhr). The patched
0.28.1 was incompatible with vite 6 (broke platform-ui transpile), so
bump the toolchain to versions whose defaults tolerate it:

- examples/platform-ui: vite ^6.4.2 -> ^8.0.16, @vitejs/plugin-react
  ^4.3.4 -> ^6.0.2
- root: vitest ^4.1.2 -> ^4.1.9
- pnpm overrides: pin vite ^8.0.16 (single version across workspace +
  vitest peer) and esbuild >=0.28.1

Verified: full workspace build green (incl. platform-ui on vite 8),
3292 tests pass, platform-ui typecheck clean. (The one failing test,
examples/ota playground, needs network-downloaded airport data and is
unrelated to this change.)

https://claude.ai/code/session_01TwDq6fWRtNtPqxzYm4fshB
@telivity-otaip telivity-otaip merged commit d43e0ee into main Jun 16, 2026
1 check passed
@telivity-otaip telivity-otaip deleted the claude/upgrade-vite-vitest branch June 16, 2026 13:13
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.

2 participants