Skip to content

refactor(deps): migrate connect-redis from v8 to v9#7059

Open
digital-wizard48 wants to merge 1 commit intoexpressjs:masterfrom
digital-wizard48:deps/upgrade-connect-redis-9.0.0
Open

refactor(deps): migrate connect-redis from v8 to v9#7059
digital-wizard48 wants to merge 1 commit intoexpressjs:masterfrom
digital-wizard48:deps/upgrade-connect-redis-9.0.0

Conversation

@digital-wizard48
Copy link

Changes

Breaking Changes Addressed

  • connect-redis v9 removes the legacy factory function pattern: The old API required wrapping the module with the session object — require('connect-redis')(session) — so the store could inherit from session.Store. In v9, RedisStore is now a proper named export and no longer needs this wrapper.

  • Redis client must now be passed explicitly: In v9, a connected Redis client instance must be passed directly to the RedisStore constructor via the client option. The store no longer manages its own internal client.

Files Updated

  • package.json: Bumped connect-redis devDependency from ^8.0.1 to ^9.0.0.

  • examples/session/redis.js:

    • Replaced require('connect-redis')(session) factory pattern with { RedisStore } = require('connect-redis') named export
    • Added redis client initialization using createClient() and redisClient.connect() (requires redis npm package, already referenced in example comments)
    • Updated new RedisStore (no args) to new RedisStore({ client: redisClient }) to pass the client explicitly as required by v9

This PR was auto-generated by Gittensor upgrade bot using Claude AI

@socket-security
Copy link

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedconnect-redis@​8.1.0 ⏵ 9.0.0100 +110010086100

View full report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants