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

Add support for AbortSignal #557

Merged
merged 9 commits into from
Sep 12, 2024
Merged

Add support for AbortSignal #557

merged 9 commits into from
Sep 12, 2024

Conversation

klippx
Copy link
Collaborator

@klippx klippx commented Sep 10, 2024

https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal

It is standard practice for all APIs capable of using the AbortController API to take the signal property of an AbortController class instance as an argument. In Mappersmith case, we are the glue between the user and Fetch / HTTP and these APIs support AbortController API. Let's get out of the way and let people use it if they need.

Copy link

changeset-bot bot commented Sep 10, 2024

🦋 Changeset detected

Latest commit: 5aa6c66

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
mappersmith Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@klippx klippx marked this pull request as ready for review September 11, 2024 07:55
Copy link
Contributor

@Yurickh Yurickh left a comment

Choose a reason for hiding this comment

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

Great new feature 🎉

README.md Outdated Show resolved Hide resolved
src/gateway/http.ts Show resolved Hide resolved
src/request.ts Show resolved Hide resolved
@klippx klippx merged commit 3a3c092 into master Sep 12, 2024
10 checks passed
@klippx klippx deleted the abort-signal branch September 12, 2024 06:59
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.

2 participants