Hardening/onda 12 0 bump node engine#203
Conversation
Required floor for vite@7 (Onda 12.3) and jsdom@29 (Onda 12.1). Previous "20.x" was too loose (accepted 20.0).
Lê Node version do .nvmrc (SSOT) em vez de hardcoded "20".
Substitui hardcoded "node-version: 20" por node-version-file: '.nvmrc' em todos os 10 jobs (smoke, quality, integration-tests, critical-e2e, ref-warning-suite, hooks-tests, price-freshness-tests, cloud-status-tests, edge-functions-typecheck, theme-validation). SSOT: Node version vive em .nvmrc; workflows leem dali.
|
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 selected for processing (4)
ResumoSincronização de versão Node.js via AlteraçõesSincronização de Versão Node.js
Esforço estimado de revisão🎯 1 (Trivial) | ⏱️ ~3 minutos Mudanças de configuração repetitivas e homogêneas: atualização de versão em arquivo de manifest, propagação dessa versão nos workflows através de um padrão consistente. Sem lógica complexa, sem dependências externas, sem riscos de regressão funcional. PRs possivelmente relacionadas
Labels sugeridas
🚥 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
This PR centralizes the project’s Node.js version selection by adding .nvmrc and wiring GitHub Actions to read from it, while broadening the Node engine range in package.json.
Changes:
- Adds a root
.nvmrc. - Updates CI and E2E workflows to use
node-version-file. - Updates
package.jsonNode engine compatibility.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
package.json |
Broadens supported Node versions in engines.node. |
.nvmrc |
Adds the Node version consumed by local tooling and CI. |
.github/workflows/ci.yml |
Switches CI jobs from hardcoded Node 20 to .nvmrc. |
.github/workflows/e2e.yml |
Switches E2E workflow Node setup to .nvmrc. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
1 issue found across 4 files
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name=".nvmrc">
<violation number="1" location=".nvmrc:1">
P1: `.nvmrc` is pinning Node 20, which is already EOL. Use a currently supported LTS major to keep receiving security and bug-fix updates.</violation>
</file>
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review, or fix all with cubic.
| @@ -0,0 +1 @@ | |||
| 20.20.2 | |||
There was a problem hiding this comment.
P1: .nvmrc is pinning Node 20, which is already EOL. Use a currently supported LTS major to keep receiving security and bug-fix updates.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At .nvmrc, line 1:
<comment>`.nvmrc` is pinning Node 20, which is already EOL. Use a currently supported LTS major to keep receiving security and bug-fix updates.</comment>
<file context>
@@ -0,0 +1 @@
+20.20.2
</file context>
| 20.20.2 | |
| 22 |
📋 Descrição
🎯 Tipo de mudança
🔗 Issues relacionadas
Closes #
Refs #
🌐 Sistemas afetados
🧪 Como testar
✅ Checklist pré-merge
Qualidade
npx tsc --noEmitpassa sem errosnpm run test)Segurança
console.logcom payloads sensíveis (usarlogger.*)Documentação
mem://) se a mudança afetar arquitetura/regras_backup_*_YYYYMMDDse destrutivasUI
📸 Screenshots (se UI)
🔄 Plano de rollback
Summary by cubic
Pins Node version with a single source of truth and aligns CI to it. Updates Node engine range to meet
vite@7andjsdom@29requirements for Onda 12.x.Dependencies
.nvmrcwith Node20.20.2."engines.node"to^20.19.0 || >=22.12.0inpackage.json.ci.yml,e2e.yml) now usesnode-version-file: '.nvmrc'instead of hardcoded versions.20.x(e.g.,20.0) that breaks withvite@7andjsdom@29.Migration
nvm use(ornvm installthennvm use) to switch to20.20.2locally;>=22.12.0also supported.npm cito rebuild modules under the new Node version.Written for commit eda94aa. Summary will update on new commits.
Summary by CodeRabbit
Chores