Skip to content

fix: add missing error classes to types - #3316

Merged
mcollina merged 5 commits into
nodejs:mainfrom
maxbeatty:add-missing-errors-types
Jun 12, 2024
Merged

fix: add missing error classes to types#3316
mcollina merged 5 commits into
nodejs:mainfrom
maxbeatty:add-missing-errors-types

Conversation

@maxbeatty

@maxbeatty maxbeatty commented Jun 7, 2024

Copy link
Copy Markdown
Contributor

This relates to...

  • types: RequestRetryError and SecureProxyConnectionError are exported but not included in the types
  • fix: RequestRetryError inconsistently set data

Changes

Exports new types for existing Error classes. When trying to type the classes, I saw that data was set inconsistently so matched the class implementation.

Features

N/A

Bug Fixes

RequestRetryError now consistently sets data

Breaking Changes and Deprecations

N/A

Status

@maxbeatty
maxbeatty force-pushed the add-missing-errors-types branch from be41ebf to 64c7dd1 Compare June 7, 2024 15:56
@maxbeatty
maxbeatty marked this pull request as ready for review June 7, 2024 15:57

@mcollina mcollina left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm

Comment thread lib/handler/retry-handler.js
Comment thread types/errors.d.ts
Comment thread test/retry-handler.js Outdated
@maxbeatty
maxbeatty requested a review from mcollina June 9, 2024 19:32

@metcoder95 metcoder95 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for the contribution, just a small comment left 👍

@metcoder95 metcoder95 changed the title add missing error classes to types fix: add missing error classes to types Jun 10, 2024
Comment thread test/retry-handler.js Outdated
@maxbeatty
maxbeatty requested review from mcollina and metcoder95 June 11, 2024 17:41

@mcollina mcollina left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm

@Uzlopak Uzlopak left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet