Support `FormData` Node.js v18
See original GitHub issueSince Node.js v18, FormData
is part of the native Node.js’ API:
Unfortunately mailgun.js doesn’t support it yet. Furthermore the recommended form-data library is unmaintained and not a good alternative.
Issue Analytics
- State:
- Created 10 months ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Use FormData global when targeting Node.js 18 #2077 - GitHub
https://nodejs.org/api/globals.html#class-formdata And remove the dependency. ... Use FormData global when targeting Node.js 18 #2077.
Read more >Unable to use createReadStream with Node 18 FormData
It looks like the new built-in FormData supports a ReadableStream (from the webStream interface) to be compatible with the browser and that's ...
Read more >Node.js 18 is now available!
Node.js 18 will be supported until April 2025. ... following globals are made available: fetch , FormData , Headers , Request , Response...
Read more >formdata-node - npm
Spec-compliant FormData implementation for Node.js. ... Start using formdata-node in your project by running `npm i formdata-node`.
Read more >formdata-node - npm Package Health Analysis - Snyk
Spec-compliant FormData implementation for Node.js For more information about how to use this package see README · Ensure you're using the healthiest npm ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi RemyMachado Currently, Axios isn’t compatible with FormData implemented in node 18. I don’t want to switch to another package because I believe this issue will be fixed in Axios soon.
Here is a related issue in the Axios library that may be used for tracking: https://github.com/axios/axios/issues/5327
There are a few reasons:
Of course, they won’t stop me if node 18 support in Axios takes too much time but in this particular case, I would rather wait some time. Axios will need to implement compatibility with node 18 anyway, and it seems there is a PR already that should fix the issue with form data.