Skip to content

chore(renovate): restrict vite to <8#1715

Merged
AtofStryker merged 1 commit intocypress-io:masterfrom
MikeMcC399:renovate/vite-v7-max
Apr 13, 2026
Merged

chore(renovate): restrict vite to <8#1715
AtofStryker merged 1 commit intocypress-io:masterfrom
MikeMcC399:renovate/vite-v7-max

Conversation

@MikeMcC399
Copy link
Copy Markdown
Collaborator

@MikeMcC399 MikeMcC399 commented Apr 7, 2026

Situation

Two example directories are set up with vite@7:

Cypress Component Testing is not yet compatible with the latest version vite@8, see

The current configuration is:

"devDependencies": {
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^5.2.0",
"cypress": "15.13.0",
"vite": "^7.3.1"
}

The latest version @vitejs/plugin-react@6 shows "vite": "^8.0.0" in peerDependencies, whereas the currently configured version @vitejs/plugin-react@5.2.0 is compatible with "vite": "^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0"

Change

Modify the renovate.json configuration.

For compatibility with Cypress Component Testing, restrict vite to <8 and @vitejs/plugin-react to <6

Keep both example directories using the same vite version for comparability.

Verification

npx --yes --package renovate -- renovate-config-validator

References


Note

Low Risk
Config-only change that just limits dependency update ranges; no runtime code or production behavior is modified.

Overview
Adds Renovate packageRules to prevent major upgrades of Vite tooling by constraining vite to <8 and @vitejs/plugin-react to <6, keeping Renovate from opening PRs that would move the examples onto incompatible versions.

Reviewed by Cursor Bugbot for commit 2d63aaa. Bugbot is set up for automated code reviews on this repo. Configure here.

@cypress-app-bot
Copy link
Copy Markdown

@MikeMcC399 MikeMcC399 self-assigned this Apr 7, 2026
@MikeMcC399 MikeMcC399 marked this pull request as ready for review April 7, 2026 07:49
@MikeMcC399
Copy link
Copy Markdown
Collaborator Author

Note: Renovate is currently disabled from automatically creating PRs in this repo.

See https://developer.mend.io/github/cypress-io/github-action

Presumably this an unintended configuration change. Last month, Renovate was still able to create PRs without being individually triggered by a maintainer.

@mschile mschile requested a review from AtofStryker April 7, 2026 14:07
@MikeMcC399 MikeMcC399 changed the title chore(renovate): restrict vite to <7 chore(renovate): restrict vite to <8 Apr 8, 2026
restrict @vitejs/plugin-react to <6
@MikeMcC399
Copy link
Copy Markdown
Collaborator Author

  • Despite the new feat: support vite 8 for component testing cypress#33580 PR to implement Vite 8 support in Component Testing, I suggest to merge this PR
  • When the examples in this repo are able to be updated to Vite 8, then the Renovate limit for Vite could be bumped up to <9 to prevent the repo updating to this assumed future version prematurely
  • There would then always be a guard in place to prevent incompatible updates from being proposed by Renovate

@AtofStryker AtofStryker merged commit 1fd5cf3 into cypress-io:master Apr 13, 2026
86 checks passed
@MikeMcC399 MikeMcC399 deleted the renovate/vite-v7-max branch April 13, 2026 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants