From d1c757662db69db3b2cd2097971cd23ae3f584a4 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 19 Dec 2024 16:03:18 +0000 Subject: [PATCH 1/2] Update dependency connect-redis to v8 --- package-lock.json | 11 ++++++----- package.json | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0ce637d72..0aa4b3053 100644 --- a/package-lock.json +++ b/package-lock.json @@ -23,7 +23,7 @@ "case": "^1.6.3", "compression": "^1.7.4", "connect-flash": "^0.1.1", - "connect-redis": "^7.1.1", + "connect-redis": "^8.0.1", "csrf-sync": "^4.0.3", "date-fns": "^4.1.0", "express": "^4.21.2", @@ -6186,11 +6186,12 @@ } }, "node_modules/connect-redis": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/connect-redis/-/connect-redis-7.1.1.tgz", - "integrity": "sha512-M+z7alnCJiuzKa8/1qAYdGUXHYfDnLolOGAUjOioB07pP39qxjG+X9ibsud7qUBc4jMV5Mcy3ugGv8eFcgamJQ==", + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/connect-redis/-/connect-redis-8.0.1.tgz", + "integrity": "sha512-7iOI214/r15ahvu0rqKCHhsgpMdOgyLwqlw/icSTnnAR75xFvMyfxAE+je4M87rZLjDlKzKcTc48XxQXYFsMgA==", + "license": "MIT", "engines": { - "node": ">=16" + "node": ">=18" }, "peerDependencies": { "express-session": ">=1" diff --git a/package.json b/package.json index c97d1ed0e..9c0c94bcd 100644 --- a/package.json +++ b/package.json @@ -146,7 +146,7 @@ "case": "^1.6.3", "compression": "^1.7.4", "connect-flash": "^0.1.1", - "connect-redis": "^7.1.1", + "connect-redis": "^8.0.1", "csrf-sync": "^4.0.3", "date-fns": "^4.1.0", "express": "^4.21.2", From fcdb0290900bfc1a8267a019438b3619bf885bd6 Mon Sep 17 00:00:00 2001 From: Alistair Laing Date: Tue, 31 Dec 2024 11:39:49 +0000 Subject: [PATCH 2/2] Use the named export to address breaking change See https://github.com/tj/connect-redis/releases/tag/v8.0.0 --- server/middleware/setUpWebSession.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/middleware/setUpWebSession.ts b/server/middleware/setUpWebSession.ts index ce10d6e08..133ae08f2 100644 --- a/server/middleware/setUpWebSession.ts +++ b/server/middleware/setUpWebSession.ts @@ -1,4 +1,4 @@ -import RedisStore from 'connect-redis' +import { RedisStore } from 'connect-redis' import express, { Router } from 'express' import session from 'express-session' import logger from '../../logger'