ITADN
tj/connect-redis

版本发布 8

v9.0.0
? · 2025-06-14

## Breaking changes This library no longer supports `ioredis`. It only supports `redis` (`v5` and later) now. Rationale: Due to the growing divergence between the `ioredis` and `redis` libraries, it was causing this library to maintain shims to synthesize the two, which was a source of issues and overhead. Following the recommendations from Redis, we will use `redis` going forward (we support both a single client and cluster APIs): see https://redis.io/docs/latest/develop/clients/nodejs/migration/ #### Maintenance * #431 - Fix broken windows (@wavded)

v8.1.0
? · 2025-05-19

#### Enhancements * #430 - Made callbacks optional for async functions (@lobabob)

v8.0.2
? · 2025-03-10

#### Maintenance * #422 - Fix broken windows (@wavded) * #425 - Fix up readme badges (@wavded) * #423 - Improve performance of set method (@ozcanovunc) * #420 - Fix typo in readme (@m-housni)

v8.0.0
? · 2024-11-27

## Breaking changes This changes from a default export to a named export to support a consistent API between both CJS and ESM. Support for Node 16 has also been removed. ## Migration from v7 If you are using ESM (`import`) modules: ```js // Previously import RedisStore from "connect-redis" // Now import {RedisStore} from "connect-redis" ``` If you are using CommonJS (`require`) modules: ```js // Previously const RedisStore = require("connect-redis").default // Now const {RedisStore} = require("connect-redis") ```

v7.1.1
? · 2024-01-22

#### Maintenance * #408 - Fix typo in readme (@kunal-mandalia) * #409 - Fix broken windows (@wavded)

v7.1.0
? · 2023-05-11

#### Enhancements * #393 - Add TTL interception for external conditional TTL handling (@movwf) * #390 - Add support for async serializer so it can be used with worker threads (@ozcanovunc)

v7.0.1
? · 2023-03-06

#### Maintenance * #382 - Remove FAQ section in readme (@wavded) * #381 - Declare express-session as a peerDependency (@wavded)

v7.0.0
? · 2023-02-28

## Breaking changes This drops support for the following legacy clients: - redis@v3 - redis-mock This also rewrites the codebase in TypeScript removing the need to include a separate @types/connect-redis dependency. Build now supports both CJS and ESM. Support for Node 14 has been removed. ## Migration from v6 If you were using `@types/connect-redis`, remove that package as types are now included in this package. If you were using the `legacyMode: true` setting for the `redis` package, remove this as legacy mode is no longer required to run this package and is no longer supported. Initializing the `RedisStore` no longer takes in `express-session`. ```js // Previously import connectRedis from "connect-redis" import session from "express-session" const RedisStore = connectRedis(seession) // Now import RedisStore from "connect-redis" ``` If you are using CommonJS (`require`) modules. You must import the `default` export. ```js // Previously const RedisStore = require("connect-redis") // Now const RedisStore = require("connect-redis").default ```