Skip to content

deps: pin vitest's transitive vite to 8.0.16 (react & vue)#267

Merged
ksroda-sa merged 1 commit into
mainfrom
deps/fix-vitest-vite-react-vue
Jun 18, 2026
Merged

deps: pin vitest's transitive vite to 8.0.16 (react & vue)#267
ksroda-sa merged 1 commit into
mainfrom
deps/fix-vitest-vite-react-vue

Conversation

@ksroda-sa

@ksroda-sa ksroda-sa commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

Clears the remaining vite Dependabot alerts (#63#72) in the react and vue samples.

Root cause

The direct vite devDependency is already 8.0.16, but vitest@4.1.9 pulls its own vite (resolved to 8.0.8/8.0.9 via ^6 || ^7 || ^8), which falls in the vulnerable range:

Fix

Add a resolutions entry forcing vitest/vite8.0.16 in all four samples (react & vue × login-pkce + token-refresh) — the same approach already used in the angular samples. After this, only vite@8.0.16 resolves in each lockfile.

Dev/build-time only — vite/vitest are not shipped in the built apps.

🤖 Generated with Claude Code

The direct vite devDependency is already 8.0.16, but vitest@4.1.9 pulls its
own vite (8.0.8/8.0.9, range ^6||^7||^8), which is in the vulnerable range
for GHSA-fx2h-pf6j-xcff (high) and GHSA-v6wh-96g9-6wx3 (medium). Add a
`resolutions` entry forcing vitest/vite to 8.0.16 so only the patched version
resolves — same approach already used in the angular samples.

Dev/build-time only; not shipped in built apps. Verified: build and vitest
pass for all four samples.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses Dependabot security alerts in the React and Vue samples by ensuring Vitest’s transitive vite dependency is resolved to the already-approved, non-vulnerable vite@8.0.16 (matching the direct devDependency), aligning these samples with the existing approach used in the Angular samples.

Changes:

  • Add Yarn resolutions to force vitest/vite8.0.16 in the React and Vue sample package.json files.
  • Update the corresponding yarn.lock files so only vite@8.0.16 is resolved (removing prior vite@8.0.8/8.0.9 resolutions).

Reviewed changes

Copilot reviewed 4 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
samples/vue/token-refresh/package.json Adds resolutions.vitest/vite pin to 8.0.16.
samples/vue/token-refresh/yarn.lock Updates lockfile to remove older resolved Vite versions and reflect vite@8.0.16.
samples/vue/login-pkce/package.json Adds resolutions.vitest/vite pin to 8.0.16.
samples/vue/login-pkce/yarn.lock Updates lockfile to remove older resolved Vite versions and reflect vite@8.0.16.
samples/react/token-refresh/package.json Adds resolutions.vitest/vite pin to 8.0.16.
samples/react/token-refresh/yarn.lock Updates lockfile to remove older resolved Vite versions and reflect vite@8.0.16.
samples/react/login-pkce/package.json Adds resolutions.vitest/vite pin to 8.0.16.
samples/react/login-pkce/yarn.lock Updates lockfile to remove older resolved Vite versions and reflect vite@8.0.16.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ksroda-sa ksroda-sa marked this pull request as ready for review June 17, 2026 12:11
@ksroda-sa ksroda-sa merged commit 6eea8e1 into main Jun 18, 2026
22 checks passed
@ksroda-sa ksroda-sa deleted the deps/fix-vitest-vite-react-vue branch June 18, 2026 09:27
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.

4 participants