-
Notifications
You must be signed in to change notification settings - Fork 572
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat!: drop throwOnError #3451
feat!: drop throwOnError #3451
Conversation
|
||
class RequestHandler extends AsyncResource { | ||
constructor (opts, callback) { | ||
if (!opts || typeof opts !== 'object') { | ||
throw new InvalidArgumentError('invalid opts') | ||
} | ||
|
||
const { signal, method, opaque, body, onInfo, responseHeaders, throwOnError, highWaterMark } = opts | ||
const { signal, method, opaque, body, onInfo, responseHeaders, highWaterMark } = opts | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
throw error if throwError === true
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shall we? Its a major, it means overall that it won't work if not documented.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't hurt? Less suprising to people that don't update their code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair: f723cc2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
@metcoder95 Why was this removed without a linked issue or discussion or rationale given?.. |
For further reference, as i believe we missed more context while working on this:
|
This relates to...
Rationale
Changes
Features
Bug Fixes
Breaking Changes and Deprecations
Status