From 572705f74b8c376b2ce5387d362037af14ce496d Mon Sep 17 00:00:00 2001 From: hanming5 Date: Thu, 12 Nov 2026 22:13:56 +0900 Subject: [PATCH] Build with Node 26 Node 20 reached end-of-life on 2026-04-30. Move the NVM and Actions runtime pin to Node 26, the current Active LTS line, which also matches the @types/node major the library builds against. Declare engines.node >=22 so users know which runtimes are supported. The library's runtime code only uses fs, path and util, and builds and passes its tests on Node 22, 24 and 26, so this covers every supported LTS line without warning users on 22 or 24. Fixes #401 --- .nvmrc | 2 +- package-lock.json | 3 +++ package.json | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.nvmrc b/.nvmrc index e6a1787..6050868 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -20.* +26.* diff --git a/package-lock.json b/package-lock.json index 3f0f052..f6d8039 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22,6 +22,9 @@ "pg": "^8.7.1", "tsx": "^4.23.5", "typescript": "^7.0.2" + }, + "engines": { + "node": ">=22" } }, "node_modules/@babel/code-frame": { diff --git a/package.json b/package.json index b02041d..3f4d762 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,9 @@ "dependencies": { "@types/node": "^26.0.0" }, + "engines": { + "node": ">=22" + }, "nyc": { "exclude": "**/*.spec.ts" },