diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f206f0e..7e93128 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -43,8 +43,12 @@ jobs: fail_ci_if_error: true - run: pnpm build - run: pnpm test:integration + # Prove the exact consumer floor; development and integration stay on Node 24. - uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0 with: - node-version: "20" + node-version: "22.0.0" cache: "pnpm" - - run: pnpm test:package + - name: Test packed package on the minimum Node.js version + run: | + node --version + pnpm test:package diff --git a/README.md b/README.md index 8b40005..8c4ce1c 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,8 @@ pnpm add prom-client@^15.1.3 pnpm add hot-shots@^17.0.0 ``` -DialCache requires Node.js 20 or Node.js 22 and newer. +DialCache requires Node.js 22.0.0 or newer. Production deployments should use a +[currently supported LTS release](https://nodejs.org/en/about/previous-releases). ## Quick start diff --git a/package.json b/package.json index ed21551..27cc5b7 100644 --- a/package.json +++ b/package.json @@ -93,7 +93,7 @@ } }, "engines": { - "node": "20 || >=22" + "node": ">=22.0.0" }, "dependencies": { "@types/node": "^24.10.1",