Skip to content

fix(dev): move the node service to 22, and say so in package.json (#101) - #103

Merged
matbrgz merged 1 commit into
masterfrom
fix/101-node-version
Sep 13, 2026
Merged

matbrgz merged 1 commit into
masterfrom
fix/101-node-version

Conversation

@matbrgz

@matbrgz matbrgz commented Sep 13, 2026

Copy link
Copy Markdown
Member

Fecha a #101.

O docker-compose fixava node:20-alpine e a suíte de frontend precisa de 22.15. No Node 20 o tests/Frontend/vue-loader.js morre no import — module.registerHooks() não existe lá — e o features.test.js vai junto.

Medido:

node:20   # tests 15   # pass 14   # fail 1
node:22   # tests 26   # pass 26   # fail 0

Onze testes a menos, e o node --test reporta um arquivo com falha, não onze testes ausentes. O total muda junto, então nada parece errado a menos que você já saiba o número.

O CI está no 22 desde a #81 e verde em 26/26 — que é exatamente a divisão que valia fechar: quem rodava docker compose --profile dev up via catorze passando e não tinha motivo nenhum para desconfiar.

O engines.node faz o npm avisar na instalação, em vez de deixar um teste sumido ser o sinal.

Verificado em node:22-alpine, a imagem que o compose passa a usar: 26/26.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Pvf2R8xtgbWQm1wRvjBqQY

Closes #101.

docker-compose pinned node:20-alpine and the frontend suite needs 22.15.
On Node 20, tests/Frontend/vue-loader.js dies at import --
module.registerHooks() does not exist there -- and features.test.js goes
with it. Measured:

    node:20   # tests 15   # pass 14   # fail 1
    node:22   # tests 26   # pass 26   # fail 0

Eleven tests missing, and `node --test` reports one failed file rather
than eleven absent tests. The total changes too, so nothing looks wrong
unless you already know the number.

CI has been on 22 since #81 and is green at 26/26, which is exactly the
split worth closing: a developer running `docker compose --profile dev up`
saw fourteen passing and had no reason to doubt it.

engines.node makes npm say so at install time, rather than leaving a
vanished test to be the signal.

Verified on node:22-alpine, the image the compose file now uses: 26/26.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pvf2R8xtgbWQm1wRvjBqQY
@matbrgz
matbrgz merged commit ecea2eb into master Sep 13, 2026
3 checks passed
@matbrgz
matbrgz deleted the fix/101-node-version branch September 13, 2026 19:43
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.

1 participant