Closed octet-stream closed 2 years ago
.stream()
and it's now considered as stabled and added onto the global namespace. maybe fetch-blob no longer needs to patch buffer.blob anymore... i bet that not many have even used Buffer.Blob
in nodejs at all. it don't have any big usefulness yet if there isn't a way for filesystem to back them up.
I think it is time to keep a note for myself on what I gonna do for v5 and also make my plans clear for everyone who use this package.
Here's the list of what is going to change:
FormData
constructor will be removed, because they are not spec-compatible. I should probably throw an error or somehow report thatformdata-node
doesn't support arguments in its constructor, or maybe just do whatundici
have in theirFormData
implementationBlob
andFile
classes in favour offetch-blob
? I'm not sure about this one yet, becausefetch-blob
addsReadableStream
ontoglobalThis
(they do seem to patch Blob object from Node.js too), which Node.js doesn't do as of now. I think I'd like to keep my package pure.fileFromPath
andfileFromPathSync
in favour of the ones fromfetch-blob
.value
argument in.append()
and.set()
methods fromunknown
tostring | Blob
, to improve compatibility with@types/web
I will add more to this list if I find anything else I want to change.