From 004b4a551732fcb50dd2299c2e074fdfdb1c7b41 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 3 Dec 2024 09:12:01 +0000 Subject: [PATCH 1/2] Bump connect-redis from 7.1.1 to 8.0.0 in /api-gateway Bumps [connect-redis](https://github.com/tj/connect-redis) from 7.1.1 to 8.0.0. - [Release notes](https://github.com/tj/connect-redis/releases) - [Commits](https://github.com/tj/connect-redis/compare/v7.1.1...v8.0.0) --- updated-dependencies: - dependency-name: connect-redis dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- api-gateway/package.json | 2 +- api-gateway/yarn.lock | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/api-gateway/package.json b/api-gateway/package.json index 88c9442..ef67e85 100644 --- a/api-gateway/package.json +++ b/api-gateway/package.json @@ -14,7 +14,7 @@ "@node-saml/node-saml": "^5.0.0", "@node-saml/passport-saml": "^5.0.0", "axios": "^1.7.7", - "connect-redis": "^7.1.1", + "connect-redis": "^8.0.0", "cookie-parser": "^1.4.7", "csurf": "^1.11.0", "date-fns": "^4.1.0", diff --git a/api-gateway/yarn.lock b/api-gateway/yarn.lock index 4409a93..2ce9a9d 100644 --- a/api-gateway/yarn.lock +++ b/api-gateway/yarn.lock @@ -1230,12 +1230,12 @@ __metadata: languageName: node linkType: hard -"connect-redis@npm:^7.1.1": - version: 7.1.1 - resolution: "connect-redis@npm:7.1.1" +"connect-redis@npm:^8.0.0": + version: 8.0.0 + resolution: "connect-redis@npm:8.0.0" peerDependencies: express-session: ">=1" - checksum: 1a0801356783c977c6467eea5bee1e91690c7ca62b6b699cf6de0aedbeb0e481eeacc32f372eda6530bdf3867259b7230bc00cf13b295abe9349aaa50fe0c8fb + checksum: 0203da19f98c468413d029681116ca0512cbf2c97e9d989a9ed38a2241ac085a5ba8e13939f32eb2011ec1c55e447991301253c185fc30bca43c403ef5e6683c languageName: node linkType: hard @@ -3011,7 +3011,7 @@ __metadata: "@typescript-eslint/parser": "npm:^8.16.0" axios: "npm:^1.7.7" concurrently: "npm:^9.1.0" - connect-redis: "npm:^7.1.1" + connect-redis: "npm:^8.0.0" cookie-parser: "npm:^1.4.7" csurf: "npm:^1.11.0" date-fns: "npm:^4.1.0" From f670f985f9062c7396521e516708e5df7064dbb4 Mon Sep 17 00:00:00 2001 From: Jari Helenius Date: Tue, 3 Dec 2024 12:53:22 +0200 Subject: [PATCH 2/2] Migrate to connect-redis v8 --- api-gateway/src/auth/session.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api-gateway/src/auth/session.ts b/api-gateway/src/auth/session.ts index 852dfa7..c3eab9b 100644 --- a/api-gateway/src/auth/session.ts +++ b/api-gateway/src/auth/session.ts @@ -2,7 +2,7 @@ // // SPDX-License-Identifier: LGPL-2.1-or-later -import RedisStore from 'connect-redis' +import { RedisStore } from 'connect-redis' import { addMinutes, differenceInMinutes,