Skip to content

chore: upgrade Node.js from 20 to 24 LTS#479

Merged
karelhala merged 2 commits intoRedHatInsights:mainfrom
platex-rehor-bot:bot/RHCLOUD-47368
Apr 30, 2026
Merged

chore: upgrade Node.js from 20 to 24 LTS#479
karelhala merged 2 commits intoRedHatInsights:mainfrom
platex-rehor-bot:bot/RHCLOUD-47368

Conversation

@platex-rehor-bot
Copy link
Copy Markdown
Contributor

Summary

  • Upgrades Node.js from 20.19.5 to 24.15.0 (Active LTS, EOL April 2028)
  • Bumps engines.node from >=16.0.0 to >=20.0.0
  • Updates @types/node from ^20 to ^24
  • Aligns jest-environment-node to 30.0.5 (matching Jest 30)
  • Removes unused ts-node direct dependency
  • Regenerates package-lock.json

Resolves EBADENGINE warnings from @stoplight/prism-cli@5.15.10 which requires node >=24.14.0. Node 20 EOL is October 2026.

RHCLOUD-47368

Test plan

  • npm run test:unit — 42 tests pass (17 projects)
  • npm run build — all 17 packages build successfully
  • npm run lint — no lint issues
  • CI pipeline passes on GitHub Actions (Node 24 via .nvmrc)
  • npm run test:integration — integration tests with Prism on Node 24

🤖 Generated with Claude Code

platex-rehor-bot and others added 2 commits April 30, 2026 10:25
RHCLOUD-47368

- .nvmrc: 20.19.5 → 24.15.0
- engines.node: >=16.0.0 → >=20.0.0
- @types/node: ^20 → ^24
- jest-environment-node: ^29.4.1 → 30.0.5 (match Jest 30)
- Remove unused ts-node direct dependency
- Regenerate package-lock.json

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
RHCLOUD-47368
build-utils has "type": "commonjs" in package.json, causing Node 24's
native TS parser to reject ESM export syntax in jest.config.ts. Convert
to jest.config.js with module.exports to avoid ts-node dependency.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@karelhala karelhala merged commit fee0071 into RedHatInsights:main Apr 30, 2026
9 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