Skip to content

v7.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 28 Feb 17:35
· 11 commits to refs/heads/master since this release
3230e28

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.

// 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.

// Previously
const RedisStore = require("connect-redis")

// Now
const RedisStore = require("connect-redis").default