redis / redis/node-redis

Set warning on V3 function useage?

Open
#1,625 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
TypeScript
Stars
17.6k
Forks
2k
Avg merge
2d 3h
Merged PRs (30d)
40

Description

Feature Request

When using V4, it's possible to set it to allow V3 commands.

Would it be possible to add a flag to log a warning, or maybe even throw an error, when V3 commands are executed? This may help larger projects with migrating.

If you feel like this is a good idea, I'm happy to work on it myself, as I'm fighting the callback based system, but don't want to put in hours searching for every redis command usage in my project.

Environment
  • Node.js Version: v16.3.0
  • Redis Version: Redis server v=6.2.4 sha=00000000:0 malloc=jemalloc-5.2.1 bits=64 build=9fa5a1dac846b927
  • Platform: Linux REDACTED 5.12.9-1-MANJARO #1 SMP PREEMPT Thu Jun 3 14:56:42 UTC 2021 x86_64 GNU/Linux

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue does not name files or tests. Start by locating the V4 compatibility path that permits V3 commands and the command dispatch logic; clarify whether completion means warnings, errors, or a configurable choice, then add coverage for V3 command use while compatibility is enabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, redis, typescript
Domain
api, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.