Skip to content

refactor: Bump redis from 4.7.0 to 5.1.0 #9765

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

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github May 21, 2025

Bumps redis from 4.7.0 to 5.1.0.

Release notes

Sourced from redis's releases.

[email protected]

What's Changed

New Contributors

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

[email protected]

What's Changed

New Contributors

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

[email protected]

Redis Node.js Client Release Notes

🚀 New Features

  • EntraID added support for azure identity by @​bobymicroby in redis/node-redis#2901
  • Added HGETEX, HSETEX, HGETDEL hash field expiration commands by @​htemelski in redis/node-redis#2907
  • feat(auth): add Entra ID identity provider integration for Redis client authentication by @​bobymicroby in redis/node-redis#2877
  • RESP3 support : Node Redis v5 adds support for RESP3, the new Redis serialization protocol introduced in Redis 6.0. RESP3 offers richer data types and improved type handling compared to RESP2
  • Sentinel: Redis Sentinel provides high availability for Redis through monitoring, automatic failover, and client-side support.
  • Type mapping: Version five allows you configuring the type mapping. Responses can be mapped to objects, arrays, or maps. Likewise, numeric formats can be mapped to either strings or numbers.

... (truncated)

Commits
Maintainer changes

This version was pushed to npm by nkaradzhov, a new releaser for redis since your current version.


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Summary by CodeRabbit

  • Chores
    • Upgraded the Redis dependency to version 5.1.0.

@dependabot dependabot bot added dependencies Bot label; pull requests that updates a dependency file javascript Pull requests that update javascript code labels May 21, 2025
Copy link

I will reformat the title to use the proper commit message syntax.

@parse-github-assistant parse-github-assistant bot changed the title refactor: bump redis from 4.7.0 to 5.1.0 refactor: Bump redis from 4.7.0 to 5.1.0 May 21, 2025
Copy link

coderabbitai bot commented May 21, 2025

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

📝 Walkthrough

Walkthrough

The change updates the redis package version in package.json from 4.7.0 to 5.1.0. No other files or logic are modified, and there are no changes to exported or public entities.

Changes

File(s) Change Summary
package.json Updated redis dependency from 4.7.0 to 5.1.0

Sequence Diagram(s)

No sequence diagram generated as the change is limited to a dependency version update.


🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Join our Discord community for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@parseplatformorg
Copy link
Contributor

parseplatformorg commented May 21, 2025

🎉 Snyk checks have passed. No issues have been found so far.

security/snyk check is complete. No issues have been found. (View Details)

@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/redis-5.1.0 branch from 690a69c to f156413 Compare May 25, 2025 17:55
@mtrezza
Copy link
Member

mtrezza commented May 26, 2025

@coderabbitai review

Copy link

coderabbitai bot commented May 26, 2025

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@mtrezza
Copy link
Member

mtrezza commented May 26, 2025

@coderabbitai Are there any code changes necessary for this dependency upgrade not to break anything?

Copy link

coderabbitai bot commented May 26, 2025

You are on the CodeRabbit Free Plan. In order to use the Chat feature, please upgrade to CodeRabbit Pro.

1 similar comment
Copy link

coderabbitai bot commented May 26, 2025

You are on the CodeRabbit Free Plan. In order to use the Chat feature, please upgrade to CodeRabbit Pro.

@parse-community parse-community deleted a comment from coderabbitai bot May 26, 2025
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/redis-5.1.0 branch from f156413 to 14e2cbd Compare May 26, 2025 15:28
@mtrezza
Copy link
Member

mtrezza commented May 27, 2025

@coderabbitai review

Copy link

coderabbitai bot commented May 27, 2025

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (1)
package.json (1)

59-59:

❓ Verification inconclusive

Verify Redis v5.1.0 client upgrade compatibility
Bumping the major version of the Redis client may introduce breaking API changes (e.g., RESP3 defaults, Sentinel integration, command import locations, connection options). Ensure that all createClient calls, command imports, and any custom type mappings are updated and validated.

Run this script to locate and review Redis client usage throughout the codebase:


🏁 Script executed:

#!/bin/bash
# Search for Redis client instantiations to verify API compatibility.
rg -n "createClient(" --glob "*.js" --glob "*.ts"

Length of output: 128


🏁 Script executed:

#!/bin/bash
# Search for Redis client instantiations to verify API compatibility.
# 1) createClient calls (escape the parenthesis)
rg -n "createClient\(" --glob "*.js" --glob "*.ts"

# 2) ES module imports of createClient
rg -n "import .*createClient" --glob "*.js" --glob "*.ts"

# 3) CommonJS require of redis
rg -n "require('redis')" --glob "*.js" --glob "*.ts"

Length of output: 1147


Verify Redis v5.1.0 client upgrade compatibility
We’ve located all createClient usages—please manually review each location against the v5.x API changes (RESP3 defaults, URL-based connections, command invocation, type mappings, etc.):

• src/middlewares.js
– import { createClient } from ‘redis’ at line 14
createClient({ … }) call at line 538

• src/Adapters/Cache/RedisCacheAdapter.js
– import { createClient } from ‘redis’ at line 1
this.client = createClient(...) at line 18

• src/Adapters/PubSub/RedisPubSub.js
– import { createClient } from ‘redis’ at line 1
– two createClient({ … }) calls at lines 6 and 16

Key areas to confirm:

  • Connection options use the new { url: … } format
  • RESP3 is enabled by default (adjust any multi-bulk or streaming logic)
  • Commands must be invoked on the returned client instance (no more static imports)
  • Any custom TypeScript interfaces/types for Redis commands or responses are up to date
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 40bad26 and 14e2cbd.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (1)
  • package.json (1 hunks)

coderabbitai[bot]
coderabbitai bot previously approved these changes May 27, 2025
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/redis-5.1.0 branch from 14e2cbd to c9adb25 Compare May 27, 2025 14:54
Bumps [redis](https://github.com/redis/node-redis) from 4.7.0 to 5.1.0.
- [Release notes](https://github.com/redis/node-redis/releases)
- [Changelog](https://github.com/redis/node-redis/blob/master/CHANGELOG.md)
- [Commits](https://github.com/redis/node-redis/compare/[email protected]@5.1.0)

---
updated-dependencies:
- dependency-name: redis
  dependency-version: 5.1.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/redis-5.1.0 branch from c9adb25 to 6df325b Compare May 29, 2025 04:29
Copy link
Contributor Author

dependabot bot commented on behalf of github May 29, 2025

Superseded by #9778.

@dependabot dependabot bot closed this May 29, 2025
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/redis-5.1.0 branch May 29, 2025 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Bot label; pull requests that updates a dependency file javascript Pull requests that update javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants