chore(onda-12.2): bump vite 5 → 6.4.2 — npm audit ZERADO 🎉#206
Conversation
…dit ZERADO) Vite 5.4.19 → 6.4.2 fecha as 2 últimas vulnerabilidades: - esbuild GHSA-67mh-4wv8-2f99 (moderate, transitive) — fechado em esbuild 0.25 - vite GHSA-4w7w-66w2-5vf9 path traversal (moderate, direct) — fechado em vite 6.0.5+ npm audit: 2 moderate → 0 (TOTAL ZERADO) 🎉 Validações locais: - vite 6.4.2 instalado - esbuild 0.25.12 (era 0.21.5) - typecheck: zero regressão (1262 erros baseline === 1262 erros pós-upgrade) - npm run build: ✓ built in 1m 21s, sem erros, todos chunks gerados Compatibilidade verificada: - @vitejs/plugin-react-swc@4 (peer vite ^4..^7) ✅ - vitest@3 ✅ - lovable-tagger@1.1.13 (peer vite >=5 <9) ✅ - rollup@4 ✅ Ref: Onda 12.2 / docs/AUDITORIA-PROFUNDA-PROMOGIFTS-PRE-PROD.md
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (1)
WalkthroughAtualização isolada da dependência de desenvolvimento Vite de versão 5.4.19 para 6.4.2. Mudança unitária em devDependencies do package.json, sem alterações visíveis em scripts, configurações ou outras dependências do projeto. ChangesAtualização Vite v5 → v6
Estimated code review effort🎯 2 (Simple) | ⏱️ ~5 minutos Nota: Esta é uma mudança simples, mas a transição Vite v5 → v6 é uma versão maior. Recomenda-se validar se a build funciona corretamente pós-merge e se não há breaking changes críticas que afetem dev experience ou produção. Verifique também se há incompatibilidades com plugins ou ferramentas relacionadas. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Pull request overview
Updates the project’s Vite toolchain from 5.x to 6.4.2 to address remaining audit findings tied to Vite/esbuild while keeping source code unchanged.
Changes:
- Bumps
viteinpackage.jsonfrom^5.4.19to^6.4.2. - Refreshes
package-lock.jsonto resolve Vite 6 dependencies, includingesbuild@0.25.x. - Removes the old nested Vite/esbuild 0.21.x lockfile entries.
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
package.json |
Updates the direct Vite dev dependency. |
package-lock.json |
Reflects the resolved Vite 6 dependency graph and removal of obsolete nested esbuild packages. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
🎯 Objetivo
Subir vite de
5.4.19→6.4.2para fechar as 2 últimas vulnerabilidades donpm audit.🔒 Vulnerabilidades fechadas
Resultado:
npm audittotal: 2 moderate → 0 (ZERADO) 🎉✅ Validações locais
npm install: Exit 0 (8s, apenas 2 packages removed + 1 changed)npm audit: 0 vulnerabilidades (era 2 moderate)tsc --noEmit -p tsconfig.app.json): ZERO REGRESSÃOnpm run build: ✓ built in 1m 21s, sem erros, todos chunks gerados corretamente🧩 Compatibilidade verificada
@vitejs/plugin-react-swcvite ^4 || ^5 || ^6 || ^7vitestlovable-taggervite >=5 <9rolluprollup-plugin-visualizer🔍 Cenários adversos simulados
Simulei 15+ cenários de quebra ANTES do upgrade. Todos verdes:
manualChunksAPI mantidaesbuild { pure, drop }config mantido (B-1.1)resolve.aliasmantidoresolve.conditionsdefault mudou mas não afeta nossos importsimport.meta.envem 27 arquivos continua funcionandovercel.json📊 Impacto
package.json(+1/-1),package-lock.json(rebuild).ts/.tsxmodificados🎯 Próximas ondas
📚 Ref
4bc7dd687Summary by cubic
Upgrade
vitefrom 5.4.19 to 6.4.2 to close the last two npm audit issues (path traversal inviteand a transitiveesbuildadvisory).npm auditnow shows 0 vulnerabilities; build and typecheck results are unchanged.viteto^6.4.2; engines now^18 || ^20 || >=22(compatible with our setup).esbuildupdated to0.25.x; both advisories resolved.package-lock.json; no.ts/.tsxchanges.@vitejs/plugin-react-swc@^4,vitest@^3,lovable-tagger@^1.1.13,rollup@^4.npm run buildsucceeds,npm audit→ 0.Written for commit 4bc7dd6. Summary will update on new commits.
Summary by CodeRabbit