npm connect-redis 7.0.0
v7.0.0

latest releases: 7.1.1, 7.1.0, 7.0.1...
19 months ago

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

Don't miss a new connect-redis release

NewReleases is sending notifications on new releases.