From ede74a81277b58887b91d6cadec7135ecd601a68 Mon Sep 17 00:00:00 2001 From: Pavel Fadeev Date: Thu, 17 Sep 2026 23:25:53 +0200 Subject: [PATCH] chore: CI on Node 22/24, actions v5, engines >=22 --- .github/workflows/npm-publish.yml | 6 +++--- .github/workflows/security.yml | 8 ++++---- .github/workflows/test.yml | 6 +++--- CLAUDE.md | 2 +- README.md | 2 +- package.json | 2 +- src/utils/io.ts | 1 - 7 files changed, 13 insertions(+), 14 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 1da711b..87d4c0a 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -13,11 +13,11 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v5 with: - node-version: 20.x + node-version: 24.x registry-url: 'https://registry.npmjs.org' cache: 'npm' diff --git a/.github/workflows/security.yml b/.github/workflows/security.yml index 4ffe2d2..d7d3f24 100644 --- a/.github/workflows/security.yml +++ b/.github/workflows/security.yml @@ -10,11 +10,11 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v5 with: - node-version: 20.x + node-version: 24.x cache: 'npm' - run: npm ci @@ -37,7 +37,7 @@ jobs: - name: Upload audit artifacts if: always() - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v5 with: name: audit-reports path: audit-reports/ diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3a079b0..f30349d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,12 +16,12 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [20.x, 22.x] + node-version: [22.x, 24.x] steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v5 with: node-version: ${{ matrix.node-version }} cache: 'npm' diff --git a/CLAUDE.md b/CLAUDE.md index 2edd889..f66c90e 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -11,7 +11,7 @@ npm run test:integration # offline CLI tests (help, lint, validation — no ke npm run dev -- # run CLI directly via tsx ``` -Requires Node.js >= 20 (matches the official SDK). +Requires Node.js >= 22. ## Architecture diff --git a/README.md b/README.md index 5223cfb..1833baa 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ jev models Get a key at: https://console.typesafe.ai/settings/keys -Requires Node.js >= 20.0.0 (matches the official SDK). +Requires Node.js >= 22.0.0. ## CLI Usage diff --git a/package.json b/package.json index 75c5fd3..61013ff 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "typescript": "^5.3.3" }, "engines": { - "node": ">=20.0.0" + "node": ">=22.0.0" }, "files": [ "dist/", diff --git a/src/utils/io.ts b/src/utils/io.ts index a4b35fd..9bb1813 100644 --- a/src/utils/io.ts +++ b/src/utils/io.ts @@ -43,7 +43,6 @@ export async function readState(opts: StateSource & { extra: string[] }): Promis } export function readStdin(): Promise { - // Executor form (not Promise.withResolvers): Node 18 compat per engines. return new Promise((resolve, reject) => { let data = ""; process.stdin.setEncoding("utf8");