Skip to content

chore(deps): update dependency redis to v5 #5890

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

Merged
merged 2 commits into from
Jul 16, 2025
Merged

Conversation

dane-ai-mastra[bot]
Copy link
Contributor

This PR contains the following updates:

Package Type Update Change
redis dependencies major ^4.7.1 -> ^5.6.0

Release Notes

redis/node-redis (redis)

v5.6.0

Compare Source

What's Changed

New Contributors

Full Changelog: https://github.com/redis/node-redis/compare/[email protected]@5.6.0

v5.5.6

Compare Source

Note: During our efforts to automate the release process, we inadvertently bumped the version from 5.1.1 to 5.5.5, skipping a few minor versions. No features or changes were actually released in those skipped versions — 5.5.6 is the first release since 5.1.1 with actual changes. We’re now back on track, and the automation is in place moving forward.

What's Changed

New Contributors

Full Changelog: https://github.com/redis/node-redis/compare/[email protected]@5.5.6

v5.5.5

Compare Source

v5.1.1

Compare Source

What's Changed

New Contributors

Full Changelog: https://github.com/redis/node-redis/compare/[email protected]@5.1.1

v5.1.0

Compare Source

What's Changed

New Contributors

Full Changelog: https://github.com/redis/node-redis/compare/[email protected]@5.1.0

v5.0.1

Compare Source

What's Changed

New Contributors

Full Changelog: https://github.com/redis/node-redis/compare/[email protected]@5.0.1

v5.0.0

Compare Source

Redis Node.js Client Release Notes

🚀 New Features

🛠️ Improvements

BREAKING CHANGES

client.ft.search('index', '*', {DIALECT: 1})
  • Client Configuration:

    • keepAlive option has been split into keepAlive (boolean) and keepAliveInitialDelay (number)
    • Legacy mode is now accessed via .legacy() method instead of { legacyMode: true }
  • Command Options:

    • New API uses "proxy client" to store options instead of passing them directly to commands
    • Example: client.withCommandOptions({ ... }).get('key') instead of client.get(client.commandOptions({ ... }), 'key')
  • Connection Management:

    • client.QUIT/quit() is replaced by client.close()
    • client.disconnect() has been renamed to client.destroy()
  • Scan Iterators:

    • Now yield collections of items instead of individual items
    • Example: for await (const keys of client.scanIterator()) { ... } returns arrays of keys
  • Isolation Pool:

    • Superseded by RedisClientPool for better separation of concerns
  • Cluster Multi:

    • cluster.multi().addCommand() now requires isReadonly parameter for replica execution support
  • Boolean to Number Types:

    • Many commands now return numbers (0/1) instead of booleans for better Redis protocol alignment
    • Affects: COPY, EXPIRE, EXPIREAT, HEXISTS, HSETNX, MOVE, PEXPIRE, PEXPIREAT, PFADD, RENAMENX, SETNX, etc.
  • API Changes:

    • Many commands have updated parameter names and return types
    • Enums replaced with constants (e.g., RedisFlushModesREDIS_FLUSH_MODES)
    • Module-specific commands (JSON, Search, Time Series) have parameter restructuring

Full migration details: https://github.com/redis/node-redis/blob/master/docs/v4-to-v5.md

New Contributors


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

Copy link

vercel bot commented Jul 13, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
assistant-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 15, 2025 6:45pm
mastra-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 15, 2025 6:45pm
openapi-spec-writer ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 15, 2025 6:45pm

Copy link

codesandbox bot commented Jul 13, 2025

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

Copy link

changeset-bot bot commented Jul 13, 2025

🦋 Changeset detected

Latest commit: a135f1b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@mastra/memory Patch
@mastra/dane Patch
@mastra/longmemeval Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Greptile Summary

This PR updates the Redis dependency in the @mastra/memory package from version 4.7.1 to 5.6.0. This is a major version upgrade that introduces significant breaking changes to the Redis client API along with new features.

The key changes include:

  • RESP3 protocol support for improved data type handling
  • New Sentinel support for high availability
  • Configurable type mapping system
  • Breaking changes in connection management, command options, and scan iterators
  • Removal of the graph module
  • Changes in boolean return values to numbers for better protocol alignment

Migration will require updating code that:

  • Uses legacy connection management methods (quit() -> close())
  • Relies on boolean returns from Redis commands
  • Uses scan iterators (now returns collections instead of individual items)
  • Depends on the removed graph module

Confidence score: 1/5

  1. This is a high-risk upgrade requiring extensive testing and code changes
  2. Major version bump with numerous breaking changes that could impact core functionality
  3. Files needing attention:
    • Any files in @mastra/memory package using Redis client API
    • Integration tests involving Redis operations
    • Connection management and cleanup code

1 file reviewed, no comments
Edit PR Review Bot Settings | Greptile

@abhiaiyer91 abhiaiyer91 merged commit 138f4a2 into main Jul 16, 2025
31 checks passed
@abhiaiyer91 abhiaiyer91 deleted the renovate/redis-5.x branch July 16, 2025 22:37
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.

1 participant