Closed negezor closed 3 years ago
What's wrong about this? It only warns you that you'll need another package to perform form-data encoding in case if your HTTP client does not have built in support for spec compliant FormData.
I guess it would be better with a one time warning only if you are using the method.
@octet-stream I am using this module in my library for Node.js. Any time a FormData instance is created, a DeprecationWarning is thrown. Although I am using form-data-encoder
, this warning is annoying for end developers.
That's make sense. This is probably happens because I'm trying to initialize Readable stream for FormData#stream property. Maybe I need to move it to getter and cache it 🤔
I think this would be the right solution.
Try latest version: https://github.com/octet-stream/form-data/releases/tag/v3.5.3
In console