Skip to content
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

Dispatch events to AbortSignal properly #78

Merged
merged 2 commits into from
Dec 6, 2023
Merged

Conversation

JoshMock
Copy link
Member

@JoshMock JoshMock commented Dec 5, 2023

This implementation was assuming the use of the legacy node-abort-controller package instead of the global AbortController. The legacy package supports dispatching strings as events, but the AbortSignal as implemented in the Node.js API from 15.x forward only accepts Event objects.

This also explicitly drops support for Node.js 14. elasticsearch-js dropped it a while ago, but it didn't need to get dropped on the transport until now.

See #73.

@JoshMock JoshMock merged commit 88c29e3 into main Dec 6, 2023
14 checks passed
@JoshMock JoshMock deleted the dont-emit-string-event branch December 6, 2023 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant