-
Notifications
You must be signed in to change notification settings - Fork 90
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
chore: switch to platform AbortController & Signal implementations after dropping Node.js 14 #1308
Conversation
…ter dropping Node.js 14
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.
nit: removing redundant names in docs
Verified that |
Co-authored-by: Trivikram Kamat <[email protected]>
Co-authored-by: Trivikram Kamat <[email protected]>
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.
The jest fit
needs to be reverted.
Is there a reason for the addEventListener()
and .onabort
branching? Is it to differentiate the platform` and custom controller implementation we had?
It'd also be nice to import every reference of the deprecated AbortController
as `DeprecatedAbortController as you did in some files already.
export interface AbortHandler { | ||
(this: AbortSignal | DeprecatedAbortSignal, ev: any): any; | ||
} |
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.
nit question: will this ever need to be scoped down or have extra arguments?
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.
this should be ev: Event -> void
, but I wouldn't change it at this point for compatibility
confirmed TS22 is action runner memory issue |
fixes aws/aws-sdk-js-v3#4872
fixes #974
this deprecates our own Abort types and implementation and switches to the platform types where available.
AbortController / AbortSignal are available in Node.js 16+.