From e1a3308355818a104851319d997ae8d20409584f Mon Sep 17 00:00:00 2001 From: Peter Dave Hello Date: Thu, 16 May 2024 09:40:06 +0800 Subject: [PATCH] chore: replace EOL Node.js v19 w/ LTS v20 in engine spec (#2080) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update the Node.js engine setting in service/package.json to use LTS v20 instead of the end-of-life v19. This aligns with our Dockerfile that uses node:lts-alpine, which has been a while without issues. The update also helps suppress the runtime warnings about engine compatibility: > WARN  Unsupported engine: wanted: {"node":"^16 || ^18 || ^19"} (current: {"node":"v20.12.2","pnpm":"9.0.4"}) --- service/package-lock.json | 2 +- service/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/service/package-lock.json b/service/package-lock.json index 2ede9ed6fc..e526c3d935 100644 --- a/service/package-lock.json +++ b/service/package-lock.json @@ -29,7 +29,7 @@ "typescript": "^4.9.5" }, "engines": { - "node": "^16 || ^18 || ^19" + "node": "^16 || ^18 || ^20" } }, "node_modules/@aashutoshrathi/word-wrap": { diff --git a/service/package.json b/service/package.json index cc6574ac99..99cd34e4c0 100644 --- a/service/package.json +++ b/service/package.json @@ -11,7 +11,7 @@ "express" ], "engines": { - "node": "^16 || ^18 || ^19" + "node": "^16 || ^18 || ^20" }, "scripts": { "start": "esno ./src/index.ts",