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

Replace our form support with undici's [v4.x] #44

Merged
merged 1 commit into from
Dec 7, 2022
Merged

Replace our form support with undici's [v4.x] #44

merged 1 commit into from
Dec 7, 2022

Conversation

ejizba
Copy link
Contributor

@ejizba ejizba commented Dec 5, 2022

Undici added support for forms in a recent release, so we can get rid of a bunch of our own code 🎉

I copied over some of the old tests just to make sure it's generally working and it is. There are some differences in behavior, but since this is only for v4.x I'm not worried about breaking changes. I'm actually really glad undici landed form support before we announced official v4.x stuff.

@ejizba ejizba requested a review from hossam-nasr December 5, 2022 20:58
Copy link
Contributor

@hossam-nasr hossam-nasr left a comment

Choose a reason for hiding this comment

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

LGTM!! Great that undici is doing this before we go GA, really simplifies our code :)

test/http/HttpRequest.test.ts Show resolved Hide resolved
@ejizba ejizba merged commit ccdae75 into v4.x Dec 7, 2022
@ejizba ejizba deleted the ej/formV2 branch December 7, 2022 22:36
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