diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 704ace8f3..695bc45a6 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -10,6 +10,6 @@ jobs: with: dev-cluster: dev-gcp prod-cluster: prod-gcp - node-version: 18 + node-version: 22 distroless: true secrets: inherit diff --git a/Dockerfile b/Dockerfile index 1e95d509d..167610820 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:18-alpine AS builder +FROM node:22-alpine AS builder WORKDIR /syfomodiaperson COPY server.ts package.json tsconfig.json ./ @@ -10,7 +10,7 @@ COPY dist ./dist RUN npm install -g typescript @types/node RUN tsc --build -FROM gcr.io/distroless/nodejs18-debian12 +FROM gcr.io/distroless/nodejs22-debian12 WORKDIR /syfomodiaperson COPY --from=builder /syfomodiaperson/package.json ./ diff --git a/README.md b/README.md index 5dc0c73e7..cc5545d82 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ Node-app som kjører på Naiserator, og bygges med GitHub Actions Applikasjonen har en mock som kan brukes lokalt. Her mockes diverse endepunkter, dog ikke alle. -Du må ha Node v18 og npm v9 installert. +Du må ha Node v22 og npm v10 installert. - For å kjøre koden lokalt: - `$ npm install` diff --git a/package-lock.json b/package-lock.json index 134264713..0b3f7e6cf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -93,7 +93,7 @@ "@testing-library/dom": "10.4.0", "@testing-library/react": "16.0.1", "@testing-library/user-event": "14.5.2", - "@types/node": "17.0.45", + "@types/node": "22.10.7", "@types/react-document-title": "2.0.10", "@types/react-router-dom": "5.3.3", "@types/webpack": "5.28.5", @@ -3121,16 +3121,6 @@ "node": ">=18" } }, - "node_modules/@inquirer/core/node_modules/@types/node": { - "version": "22.7.2", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.7.2.tgz", - "integrity": "sha512-866lXSrpGpgyHBZUa2m9YNWqHDjjM0aBTJlNtYaGEw4rqY/dcD7deRVTbBBAJelfA7oaGDbNftXF/TL/A6RgoA==", - "dev": true, - "license": "MIT", - "dependencies": { - "undici-types": "~6.19.2" - } - }, "node_modules/@inquirer/core/node_modules/ansi-styles": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", @@ -5155,9 +5145,13 @@ } }, "node_modules/@types/node": { - "version": "17.0.45", - "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.45.tgz", - "integrity": "sha512-w+tIMs3rq2afQdsPJlODhoUEKzFP1ayaoyl1CcnwtIlsVe7K7bA1NGm4s3PraqTLlXnbIN84zuBlxBWo1u9BLw==" + "version": "22.10.7", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.10.7.tgz", + "integrity": "sha512-V09KvXxFiutGp6B7XkpaDXlNadZxrzajcY50EuoLIpQ6WWYCSvf19lVIazzfIzQvhUN2HjX12spLojTnhuKlGg==", + "license": "MIT", + "dependencies": { + "undici-types": "~6.20.0" + } }, "node_modules/@types/prop-types": { "version": "15.7.4", @@ -17533,10 +17527,9 @@ } }, "node_modules/undici-types": { - "version": "6.19.8", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz", - "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==", - "dev": true, + "version": "6.20.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz", + "integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==", "license": "MIT" }, "node_modules/unicode-canonical-property-names-ecmascript": { @@ -20734,15 +20727,6 @@ "mute-stream": "^1.0.0" } }, - "@types/node": { - "version": "22.7.2", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.7.2.tgz", - "integrity": "sha512-866lXSrpGpgyHBZUa2m9YNWqHDjjM0aBTJlNtYaGEw4rqY/dcD7deRVTbBBAJelfA7oaGDbNftXF/TL/A6RgoA==", - "dev": true, - "requires": { - "undici-types": "~6.19.2" - } - }, "ansi-styles": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", @@ -22128,9 +22112,12 @@ } }, "@types/node": { - "version": "17.0.45", - "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.45.tgz", - "integrity": "sha512-w+tIMs3rq2afQdsPJlODhoUEKzFP1ayaoyl1CcnwtIlsVe7K7bA1NGm4s3PraqTLlXnbIN84zuBlxBWo1u9BLw==" + "version": "22.10.7", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.10.7.tgz", + "integrity": "sha512-V09KvXxFiutGp6B7XkpaDXlNadZxrzajcY50EuoLIpQ6WWYCSvf19lVIazzfIzQvhUN2HjX12spLojTnhuKlGg==", + "requires": { + "undici-types": "~6.20.0" + } }, "@types/prop-types": { "version": "15.7.4", @@ -30799,10 +30786,9 @@ } }, "undici-types": { - "version": "6.19.8", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz", - "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==", - "dev": true + "version": "6.20.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz", + "integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==" }, "unicode-canonical-property-names-ecmascript": { "version": "2.0.1", diff --git a/package.json b/package.json index 2b8d118cd..2ce82bb00 100644 --- a/package.json +++ b/package.json @@ -106,7 +106,7 @@ "@testing-library/dom": "10.4.0", "@testing-library/react": "16.0.1", "@testing-library/user-event": "14.5.2", - "@types/node": "17.0.45", + "@types/node": "22.10.7", "@types/react-document-title": "2.0.10", "@types/react-router-dom": "5.3.3", "@types/webpack": "5.28.5",