4.1.0
Add
- Port
Blobfromfetch-blob@3and replacefetch-blob@2package with our own implementation. Note thatformdata-nodewill switch back to usefetch-blobonce we drop CommonJS. OurBlobimplementation should be compatible withfetch-blob, so you can use either of them inFormDatavalues. In terms of usage nothing is changed - you can importBlobas fromformdata-node package:
import {FormData, Blob} from "formdata-node" // This will now import our own Blob implementation instead of `node-fetch@2`
const form = new FormData()
form.set("file", new Blob(["Some ", "content"]))- This release also introduces a new dependency:
web-streams-polyfill, so the overall installation size will increase by ≈393KB.
All changes: v4.0.1...v4.1.0