Skip to content

chore(deps): bump @vitejs/plugin-react 4.7.0 to 5.2.0 (replaces #16)#41

Merged
saagpatel merged 1 commit into
masterfrom
codex/chore/deps-vitejs-plugin-react-5
Apr 21, 2026
Merged

chore(deps): bump @vitejs/plugin-react 4.7.0 to 5.2.0 (replaces #16)#41
saagpatel merged 1 commit into
masterfrom
codex/chore/deps-vitejs-plugin-react-5

Conversation

@saagpatel
Copy link
Copy Markdown
Owner

What

Bump @vitejs/plugin-react from 4.7.0 to 5.2.0 in package.json + pnpm-lock.yaml.

Why

Supersedes #16 — blocked by branch-name governance. Re-created on a codex-compliant branch per docs/SECURITY.md.

Major version bump (v4 → v5), but our usage surface is vanilla: vite.config.ts:12 is a bare plugins: [react()] with no babel options, no include/exclude, no jsxImportSource override. The project already satisfies every v5 requirement:

v5 requirement Current state
Vite ≥ 5 Vite 7.3.1
React 18 or 19 React 19.1
Node ≥ 20 CI pins Node 20 everywhere
Standard "react-jsx" transform tsconfig.json uses "jsx": "react-jsx"

Wave 4 (remainder, pre-Wave 5) of the audit remediation plan.

How

Single package.json line change (^4.6.0^5.2.0), pnpm install to re-resolve.

Testing

  • Commands run: pnpm install, pnpm build, pnpm test, pnpm typecheck
  • Results:
    • pnpm install resolved cleanly to @vitejs/plugin-react 5.2.0; only dep that moved (per pnpm's devDependencies diff output)
    • pnpm build → 638ms, dist/ shape identical (same entry points, same chunk names/sizes)
    • pnpm test → 127/127 pass
    • pnpm typecheck → clean

Performance impact

  • Bundle delta: none (chunk sizes identical — verified via build output)
  • Build time delta: negligible (<50ms variance)
  • Lighthouse delta: none expected
  • API latency delta: none
  • DB query delta: none

Risk / Notes

Screenshots (UI only)

  • N/A (no UI changes; build/test pass end-to-end)

Lockfile rationale (if lockfile changed)

  • pnpm-lock.yaml regenerated for the dep bump. 90 insertions / 53 deletions reflects only plugin-react's own resolution + a handful of its internal transitive updates; no other top-level deps moved.

🤖 Generated with Claude Code

Supersedes #16 — Dependabot PR blocked by branch-name governance.
Re-created on a codex-compliant branch per docs/SECURITY.md.

v5 is a major release but our usage is vanilla: vite.config.ts line 12
is a bare `plugins: [react()]` with no babel options, no include/
exclude patterns, no jsxImportSource override. The project already
satisfies every v5 requirement:
- Vite 7 (v5 requires >= 5)
- React 19 (v5 supports 18/19)
- Node 20 (v5 requires >= 20)
- tsconfig uses the standard "react-jsx" transform

Validated locally:
- pnpm install resolves to @vitejs/plugin-react 5.2.0
- pnpm build: 638ms, dist/ produced with expected shape
- pnpm test: 127/127 pass (Fast Refresh behavior unchanged)
- pnpm typecheck: clean

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@saagpatel saagpatel merged commit ebba089 into master Apr 21, 2026
22 of 25 checks passed
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