Set warning on V3 function useage?

オープン
#1,625 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
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時間
マージ済み PR(30日)
62

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

redis/node-redis のほかの issue

redis/node-redis の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。