Skip to content

Support ioredis v6 in peerDependencies #1499

Description

@juancarlosjr97

Summary

ioredis v6.0.0 was released on 2026 07 31. The current peerDependencies in ioredis-mock only allows ioredis v5, which blocks projects that upgrade to ioredis v6 from installing ioredis-mock without peer dependency conflicts.

Current State

In package.json:

"peerDependencies": {
  "@types/ioredis-mock": "^8",
  "ioredis": "^5"
}

Proposed Change

Update the peerDependencies range to also support v6:

"peerDependencies": {
  "@types/ioredis-mock": "^8",
  "ioredis": "^5 || ^6"
}

Notable Breaking Changes in ioredis v6

From the v6.0.0 release notes:

  • ioredis now requires Node.js 20 or newer
  • RESP3 is used by default; protocol: 2 retains the v5 wire protocol
  • Adds RESP3 support (Add RESP3 redis/ioredis#2127)

Additional Considerations

  • Verify that the mock still behaves correctly against ioredis v6, especially regarding RESP3 default behavior
  • Consider updating the ioredis devDependency (currently ^5.8.2) to run the test suite against v6
  • The engines field currently specifies node >=12.22, which may need review given the ioredis v6 requirement of Node.js 20 or newer

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions