From 00097b505c1a0fade364a2f28fcbd27533017c9d Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Sat, 21 Jun 2025 14:49:38 +0200 Subject: [PATCH] chore: update supported node versions As a library this should support multiple Nextcloud versions which might still use Node 20 (Nextcloud < 31) or Node 22 (Nextcloud 31) or even Node 24 which would be Nextcloud 32 or 33. This package is not bound to Ndoe as this is a browser library, so we can even support all LTS versions. Instead we only should ensure we have a consistent development engine. Signed-off-by: Ferdinand Thiessen --- package-lock.json | 3 +-- package.json | 13 +++++++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index d5fd5c6e..efa6cded 100644 --- a/package-lock.json +++ b/package-lock.json @@ -25,8 +25,7 @@ "vitest": "^3.1.3" }, "engines": { - "node": "^20.0.0", - "npm": "^10.0.0" + "node": "^20.0.0 || ^22.0.0 || ^24.0.0" } }, "node_modules/@ampproject/remapping": { diff --git a/package.json b/package.json index 472f97f1..809ad5a2 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,16 @@ "vitest": "^3.1.3" }, "engines": { - "node": "^20.0.0", - "npm": "^10.0.0" + "node": "^20.0.0 || ^22.0.0 || ^24.0.0" + }, + "devEngines": { + "packageManager": { + "name": "npm", + "version": "^10.0.0" + }, + "runtime": { + "name": "node", + "version": "^22.0.0" + } } }