chore!: bump engines.node to drop Node 20.x support (hpm 4.x compat)

http-proxy-middleware 4.x (introduced via #2228) requires Node >=22.15.0.
Updated engines.node to >=22.22.2 <23 || >=24.0.0 <27 (drops 20.x).

BREAKING CHANGE: users on Node 20.x must upgrade to Node 22.22.2+ or 24+.

Refs: #2228

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
diegosouzapw
2026-05-14 08:28:50 -03:00
parent ebed308fbb
commit 52f3285dcd
4 changed files with 5 additions and 4 deletions

View File

@@ -4,6 +4,7 @@
### Changed
- **BREAKING**: dropped Node 20.x support. Minimum Node version is now 22.22.2 (or 24.0.0+). Required because http-proxy-middleware 4.x requires `node >=22.15.0`. Users on Node 20 must upgrade — see [`package.json` engines field](package.json) and the README Node badge.
- **Platform overhaul (FASES 1-9):** scripts cleanup, `.env` audit, `/docs` restructure, diagrams folder, i18n pipelines (docs + UI), `/src/app/docs` sync, CI gates.
- **Scripts:** `scripts/` reorganized into 6 subfolders (`build/`, `dev/`, `check/`, `docs/`, `i18n/`, `ad-hoc/`); 23 one-shot scripts archived to the `archive/scripts-scratch-pre-3.8` branch.
- **Environment:** `.env.example` cleaned (-11 orphan vars, +63 missing vars, 11 hardcoded URLs/timeouts promoted to env); new strict `scripts/check/check-env-doc-sync.mjs` validates code ↔ `.env.example``docs/reference/ENVIRONMENT.md` parity.

View File

@@ -56,7 +56,7 @@
[![npm](https://img.shields.io/npm/v/omniroute?logo=npm&style=flat-square)](https://www.npmjs.com/package/omniroute)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?style=flat-square)](LICENSE)
[![Node](https://img.shields.io/badge/node-%E2%89%A520.20.2-brightgreen?style=flat-square)](package.json)
[![Node](https://img.shields.io/badge/node-%E2%89%A522.22.2-brightgreen?style=flat-square)](package.json)
[![Stars](https://img.shields.io/github/stars/diegosouzapw/OmniRoute?style=social)](https://github.com/diegosouzapw/OmniRoute)
[![Trendshift](https://trendshift.io/api/badge/repositories/23589)](https://trendshift.io/repositories/23589)
@@ -488,6 +488,6 @@ Free forever. Self-hosted. No tracking. No cloud lock-in.
**[⬆ Back to top](#-omniroute)** · Built with ❤️ for the open-source AI community.
<sub>OmniRoute v3.8.0 · Node ≥20.20.2 · MIT License</sub>
<sub>OmniRoute v3.8.0 · Node ≥22.22.2 · MIT License</sub>
</div>

2
package-lock.json generated
View File

@@ -97,7 +97,7 @@
"wtfnode": "^0.10.1"
},
"engines": {
"node": ">=20.20.2 <21 || >=22.22.2 <23 || >=24.0.0 <27"
"node": ">=22.22.2 <23 || >=24.0.0 <27"
},
"optionalDependencies": {
"keytar": "^7.9.0"

View File

@@ -36,7 +36,7 @@
"open-sse"
],
"engines": {
"node": ">=20.20.2 <21 || >=22.22.2 <23 || >=24.0.0 <27"
"node": ">=22.22.2 <23 || >=24.0.0 <27"
},
"keywords": [
"ai",