From: Jérôme Benoit Date: Mon, 24 Nov 2025 11:02:24 +0000 (+0100) Subject: ci: remove node 20.x X-Git-Tag: ocpp-server@v2.2.0~31 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=3a9c38827d06c2cb513d8a853c88f6084f27282a;p=e-mobility-charging-stations-simulator.git ci: remove node 20.x Signed-off-by: Jérôme Benoit --- diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8ebbf9f9..2d74a2b5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -50,7 +50,7 @@ jobs: strategy: matrix: os: [windows-latest, macos-latest, ubuntu-latest] - node: ['20.x', '22.x', '24.x', 'latest'] + node: ['22.x', '24.x', 'latest'] name: Build simulator with Node ${{ matrix.node }} on ${{ matrix.os }} runs-on: ${{ matrix.os }} steps: @@ -98,7 +98,7 @@ jobs: strategy: matrix: os: [windows-latest, macos-latest, ubuntu-latest] - node: ['20.x', '22.x', '24.x', 'latest'] + node: ['22.x', '24.x', 'latest'] name: Build dashboard with Node ${{ matrix.node }} on ${{ matrix.os }} runs-on: ${{ matrix.os }} defaults: diff --git a/.serena/memories/project_overview.md b/.serena/memories/project_overview.md index e54e0a7d..48d7fdfa 100644 --- a/.serena/memories/project_overview.md +++ b/.serena/memories/project_overview.md @@ -6,7 +6,7 @@ Simple Node.js software to simulate and scale a set of charging stations based o ## Tech Stack -- **Runtime**: Node.js (>=20.11.0) +- **Runtime**: Node.js (>=22.0.0) - **Language**: TypeScript - **Package Manager**: pnpm (>=9.0.0) - **Testing Framework**: Node.js native test runner with @std/expect diff --git a/openspec/project.md b/openspec/project.md index b05c8ce9..66498b25 100644 --- a/openspec/project.md +++ b/openspec/project.md @@ -6,7 +6,7 @@ The e-Mobility Charging Stations Simulator provides a scalable, configurable loa ## Tech Stack -- Runtime: Node.js (>=20.11.0) + Worker Threads +- Runtime: Node.js (>=22.0.0) + Worker Threads - Language: TypeScript (~5.9) (ESM modules; `type: module`) - Build: esbuild bundling (custom scripts) + PNPM workspaces - Package Manager: pnpm (>=9) @@ -78,7 +78,7 @@ The e-Mobility Charging Stations Simulator provides a scalable, configurable loa ## Important Constraints -- Node.js >=20.11 runtime features (Worker Threads, ESM) required. +- Node.js >=22.0.0 runtime features (Worker Threads, ESM) required. - Strict OCPP JSON schema validation when `ocppStrictCompliance` is true; deviations require explicit config relaxation (e.g., out-of-order meter values). - Simulator must avoid blocking operations in worker threads; heavy tasks delegated or streamed. - Memory footprint scalability: workerSet auto sizing formula ensures balanced distribution. diff --git a/package.json b/package.json index fb447a22..8928ccf1 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "name": "e-mobility-charging-stations-simulator", "version": "2.1.0", "engines": { - "node": ">=20.11.0", + "node": ">=22.0.0", "pnpm": ">=9.0.0" }, "volta": { diff --git a/ui/web/package.json b/ui/web/package.json index 414b46e4..1697dbfb 100644 --- a/ui/web/package.json +++ b/ui/web/package.json @@ -4,7 +4,7 @@ "version": "2.1.0", "readme": "README.md", "engines": { - "node": ">=20.0.0", + "node": ">=22.0.0", "pnpm": ">=9.0.0" }, "volta": {