Set warning on V3 function useage?

未关闭
#1,625 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
30/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
停滞
技术栈
node.js, redis, typescript
领域
api, backend

调研方向

该 issue 没有指定文件或测试。首先定位允许 V3 命令的 V4 兼容路径和命令分发逻辑;明确完成意味着警告、错误还是可配置的选择,然后在启用兼容性时为使用 V3 命令添加测试覆盖。

由索引模型根据 Issue 内容生成。

描述

feature stale
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
主要语言
TypeScript
星标
17.6k
派生
2k
平均合并
1 天 22 小时
30 天内合并 PR
62

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

redis/node-redis 的其他 Issue

查看 redis/node-redis 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。