Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop legacy client support. Switch to Typescript #377

Merged
merged 12 commits into from
Feb 28, 2023
Merged

Drop legacy client support. Switch to Typescript #377

merged 12 commits into from
Feb 28, 2023

Conversation

wavded
Copy link
Collaborator

@wavded wavded commented Feb 16, 2023

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

@wavded wavded self-assigned this Feb 16, 2023
@wavded wavded changed the title Drop legcay client support. Switch to Typescript Drop legacy client support. Switch to Typescript Feb 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant