-
Notifications
You must be signed in to change notification settings - Fork 929
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
🦋 Changeset detectedLatest commit: a135f1b The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
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 |
There was a problem hiding this 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
- This is a high-risk upgrade requiring extensive testing and code changes
- Major version bump with numerous breaking changes that could impact core functionality
- 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
cb4911b
to
cf409f2
Compare
This PR contains the following updates:
^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
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
cluster.sUnsubscribe
- makelistener
optional by @Clsan in https://github.com/redis/node-redis/pull/2946New 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
TYPE
field which includes the newly supported integer8 and uinteger8 types by @htemelski in https://github.com/redis/node-redis/pull/2911BREAKING CHANGES
Important: Be aware that the query dialect may impact the results returned. If needed, you can revert to a different dialect version by passing an option to the search commands. You can find further details in the query dialect documentation. by @htemelski in https://github.com/redis/node-redis/pull/2895
Client Configuration:
keepAlive
option has been split intokeepAlive
(boolean) andkeepAliveInitialDelay
(number).legacy()
method instead of{ legacyMode: true }
Command Options:
client.withCommandOptions({ ... }).get('key')
instead ofclient.get(client.commandOptions({ ... }), 'key')
Connection Management:
client.QUIT/quit()
is replaced byclient.close()
client.disconnect()
has been renamed toclient.destroy()
Scan Iterators:
for await (const keys of client.scanIterator()) { ... }
returns arrays of keysIsolation Pool:
RedisClientPool
for better separation of concernsCluster Multi:
cluster.multi().addCommand()
now requiresisReadonly
parameter for replica execution supportBoolean to Number Types:
API Changes:
RedisFlushModes
→REDIS_FLUSH_MODES
)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.
This PR has been generated by Renovate Bot.