Repository navigation
fix(types): keep redis-errors out of public error declarations - #2322
Merged
Merged
Conversation
WatchError and MaxRetriesPerRequestError extended AbortError imported from redis-errors, so their published .d.ts files imported an untyped package. Consumers without @types/redis-errors lost message, stack, command, and args on these errors. Re-declare AbortError in lib/errors/AbortError.ts with an explicit type so the emitted declarations are self-contained. The runtime value is still the redis-errors class, so instanceof behavior is unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This was referenced Dec 1, 2026
nkaradzhov
approved these changes
Dec 2, 2026
github-actions Bot
pushed a commit
that referenced
this pull request
Dec 2, 2026
## [6.1.1](v6.1.0...v6.1.1) (2026-12-02) ### Bug Fixes * exclude all subscriber-mode commands from auto pipelines ([#2311](#2311)) ([466f6be](466f6be)) * keep the current db when Redis rejects a SELECT ([#2308](#2308)) ([0516749](0516749)), closes [#2307](#2307) * reject length-prefixed strings that are not followed by CRLF ([#2300](#2300)) ([77f88ee](77f88ee)), closes [#1172](#1172) * **types:** accept binary keys in scan streams ([#2296](#2296)) ([1c1fd3c](1c1fd3c)) * **types:** keep redis-errors out of public error declarations ([#2322](#2322)) ([754d967](754d967))
|
🎉 This PR is included in version 6.1.1 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #2319
WatchError and MaxRetriesPerRequestError extended AbortError imported from redis-errors, so their published .d.ts files imported an untyped package. Consumers without @types/redis-errors lost message, stack, command, and args on these errors.
Re-declare AbortError in lib/errors/AbortError.ts with an explicit type so the emitted declarations are self-contained. The runtime value is still the redis-errors class, so instanceof behavior is unchanged.