Skip to content

Commit 0d2ce43

Browse files
Upgrade to node version 20.18.2
1 parent aba0237 commit 0d2ce43

File tree

8 files changed

+233
-1314
lines changed

8 files changed

+233
-1314
lines changed

.node-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18.13.0
1+
20.18.2

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18.13.0
1+
20.18.2

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:18.13.0 as builder
1+
FROM node:20.18.2 as builder
22

33
WORKDIR /usr/src/app
44

@@ -7,7 +7,7 @@ COPY / /usr/src/app/
77
RUN yarn install \
88
&& yarn predeploy
99

10-
FROM node:18.13.0-alpine
10+
FROM node:20.18.2-alpine
1111
LABEL maintainer="https://pagopa.gov.it"
1212

1313
# Install major CA certificates to cover

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"description": "IO app and web backend",
1313
"main": "index.js",
1414
"engines": {
15-
"node": "18.13.0"
15+
"node": "20.18.2"
1616
},
1717
"scripts": {
1818
"watch": "tsc -w",
@@ -88,9 +88,9 @@
8888
"@azure/storage-queue": "^12.0.0",
8989
"@pagopa/io-functions-app-sdk": "x",
9090
"@pagopa/io-functions-cgn-sdk": "x",
91-
"@pagopa/io-functions-commons": "^29.1.1",
91+
"@pagopa/io-functions-commons": "^29.3.0",
9292
"@pagopa/io-functions-eucovidcerts-sdk": "x",
93-
"@pagopa/ts-commons": "^12.4.1",
93+
"@pagopa/ts-commons": "^13.1.2",
9494
"@pagopa/winston-ts": "^2.2.0",
9595
"applicationinsights": "1.8.10",
9696
"body-parser": "^1.19.2",
@@ -123,7 +123,7 @@
123123
"winston": "^3.3.3"
124124
},
125125
"devDependencies": {
126-
"@pagopa/eslint-config": "^3.0.0",
126+
"@pagopa/eslint-config": "^4.0.0",
127127
"@pagopa/openapi-codegen-ts": "^14.0.0",
128128
"@types/dotenv": "^4.0.2",
129129
"@types/express": "4.17.11",
@@ -134,7 +134,7 @@
134134
"@types/jsonwebtoken": "7.2.7",
135135
"@types/lolex": "2.1.3",
136136
"@types/morgan": "^1.7.35",
137-
"@types/node": "~18.13.0",
137+
"@types/node": "^20.17.0",
138138
"@types/node-fetch": "^2.1.2",
139139
"@types/passport": "^1.0.2",
140140
"@types/passport-http-bearer": "^1.0.34",

src/services/__tests__/__snapshots__/newMessagesService.test.ts.snap

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

src/services/__tests__/redisSessionStorage.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ describe("RedisSessionStorage#getBySessionToken", () => {
145145
expect(mockGet).toHaveBeenCalledTimes(1);
146146
expect(mockGet).toHaveBeenCalledWith(`SESSION-${aValidUser.session_token}`);
147147
expect(response).toEqual(
148-
E.left(new SyntaxError("Unexpected token I in JSON at position 0"))
148+
E.left(new SyntaxError("Unexpected token 'I', \"Invalid JSON\" is not valid JSON"))
149149
);
150150
});
151151

@@ -225,7 +225,7 @@ describe("RedisSessionStorage#getByMyPortalToken", () => {
225225
`SESSION-${aValidUser.session_token}`
226226
);
227227
expect(response).toEqual(
228-
E.left(new SyntaxError("Unexpected token I in JSON at position 0"))
228+
E.left(new SyntaxError("Unexpected token 'I', \"Invalid JSON\" is not valid JSON"))
229229
);
230230
});
231231

src/utils/__tests__/__snapshots__/barcode.test.ts.snap

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)