diff --git a/benchmark/bench.js b/benchmark/bench.js index 364a603..af169f3 100644 --- a/benchmark/bench.js +++ b/benchmark/bench.js @@ -1,6 +1,6 @@ 'use strict' -const RedisStore = require('connect-redis').default +const { RedisStore } = require('connect-redis') const Fastify = require('fastify') const Redis = require('ioredis') const fileStoreFactory = require('session-file-store') diff --git a/examples/redis.js b/examples/redis.js index e3355e2..a0fde54 100644 --- a/examples/redis.js +++ b/examples/redis.js @@ -4,7 +4,7 @@ const Fastify = require('fastify') const fastifySession = require('..') const fastifyCookie = require('@fastify/cookie') const Redis = require('ioredis') -const RedisStore = require('connect-redis').default +const { RedisStore } = require('connect-redis') const fastify = Fastify() diff --git a/package.json b/package.json index a7bbd3f..7c21ff2 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,7 @@ "@types/node": "^26.0.1", "c8": "^11.0.0", "connect-mongo": "^6.0.0", - "connect-redis": "^7.1.1", + "connect-redis": "^8.0.0", "cronometro": "^6.0.3", "eslint": "^9.17.0", "fastify": "^5.0.0", diff --git a/types/index.tst.ts b/types/index.tst.ts index 593601b..f082276 100644 --- a/types/index.tst.ts +++ b/types/index.tst.ts @@ -1,5 +1,5 @@ import MongoStore from 'connect-mongo' -import RedisStore from 'connect-redis' +import { RedisStore } from 'connect-redis' import fastify, { type FastifyInstance, type FastifyReply,