From 0a506aeaaeaab4208466a9295d72a903bae6d4e8 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Wed, 12 Aug 2026 17:52:57 +0200 Subject: [PATCH] Upgrade Node.js to version 24 --- .github/workflows/build-code.yml | 2 +- .nvmrc | 2 +- DEVELOPMENT.md | 2 +- Dockerfile | 4 ++-- package-lock.json | 18 +++++++++--------- package.json | 4 ++-- tsconfig.base.json | 2 +- 7 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/build-code.yml b/.github/workflows/build-code.yml index bd5d1efdc..dfef9e74e 100644 --- a/.github/workflows/build-code.yml +++ b/.github/workflows/build-code.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: node_version: - - 22.22.1 + - 24.19.0 steps: - name: Checkout code uses: actions/checkout@v4 diff --git a/.nvmrc b/.nvmrc index 53d1c14db..54c65116f 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v22 +v24 diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 5b1b36afb..a4f7ff0f8 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -5,7 +5,7 @@ ### Prerequisites - [Docker](https://www.docker.com/products/docker-desktop) -- [Node.js](https://nodejs.org/en/download) (version `>=22.18.0`) +- [Node.js](https://nodejs.org/en/download) (version `>=24.19.0`) - Create a local copy of this Git repository (clone) - Copy the file `.env.dev` to `.env` and populate it with your data (`cp .env.dev .env`) diff --git a/Dockerfile b/Dockerfile index e73cd73e6..a2331ec62 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=$BUILDPLATFORM node:22-slim AS builder +FROM --platform=$BUILDPLATFORM node:24-slim AS builder # Build application and add additional files WORKDIR /ghostfolio @@ -49,7 +49,7 @@ COPY package.json /ghostfolio/dist/apps/api/ RUN npm run database:generate-typings # Image to run, copy everything needed from builder -FROM node:22-slim +FROM node:24-slim LABEL org.opencontainers.image.source="https://github.com/ghostfolio/ghostfolio" ENV NODE_ENV=production diff --git a/package-lock.json b/package-lock.json index 270171969..e9c0e33f7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -141,7 +141,7 @@ "@types/jest": "30.0.0", "@types/jsonpath": "0.2.4", "@types/lodash": "4.17.24", - "@types/node": "22.15.17", + "@types/node": "24.13.3", "@types/papaparse": "5.5.2", "@types/passport-google-oauth20": "2.0.17", "@types/passport-openidconnect": "0.1.3", @@ -171,7 +171,7 @@ "webpack-cli": "7.1.0" }, "engines": { - "node": ">=22.18.0" + "node": ">=24.19.0" } }, "node_modules/@adobe/css-tools": { @@ -12257,12 +12257,12 @@ "license": "MIT" }, "node_modules/@types/node": { - "version": "22.15.17", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.15.17.tgz", - "integrity": "sha512-wIX2aSZL5FE+MR0JlvF87BNVrtFWf6AE6rxSE9X7OwnVvoyCQjpzSRJ+M87se/4QCkCiebQAqrJ0y6fwIyi7nw==", + "version": "24.13.3", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.13.3.tgz", + "integrity": "sha512-Dh8vAsV36ig5wa9OX4pXvMc9D3Veibfw2wix0CUwYODLD8nkj9UsLjASr49nPg+2eKzxhBV+v7L8pXvT4e639Q==", "license": "MIT", "dependencies": { - "undici-types": "~6.21.0" + "undici-types": "~7.18.0" } }, "node_modules/@types/oauth": { @@ -32871,9 +32871,9 @@ } }, "node_modules/undici-types": { - "version": "6.21.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", - "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", + "version": "7.18.2", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.18.2.tgz", + "integrity": "sha512-AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w==", "license": "MIT" }, "node_modules/unicode-canonical-property-names-ecmascript": { diff --git a/package.json b/package.json index a6c09c1d0..3df800d0d 100644 --- a/package.json +++ b/package.json @@ -185,7 +185,7 @@ "@types/jest": "30.0.0", "@types/jsonpath": "0.2.4", "@types/lodash": "4.17.24", - "@types/node": "22.15.17", + "@types/node": "24.13.3", "@types/papaparse": "5.5.2", "@types/passport-google-oauth20": "2.0.17", "@types/passport-openidconnect": "0.1.3", @@ -215,6 +215,6 @@ "webpack-cli": "7.1.0" }, "engines": { - "node": ">=22.18.0" + "node": ">=24.19.0" } } diff --git a/tsconfig.base.json b/tsconfig.base.json index f831040a0..d012da282 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -12,7 +12,7 @@ "target": "es2015", "module": "esnext", "typeRoots": ["node_modules/@types"], - "lib": ["es2017", "dom"], + "lib": ["dom", "es2022"], "skipLibCheck": true, "skipDefaultLibCheck": true, "baseUrl": ".",