Releases: octet-stream/form-data
Releases · octet-stream/form-data
2.4.0
Update
- Fix returning value of the
FormData#get()
method for non-existent fields: it now returnsnull
instead ofundefined
just like the browser implementations do.
All changes: v2.3.0...v2.4.0
2.3.0
Remove
- Removed Babel from the project. All modules as been rewritten as CJS. The
@babel/runtime
package is no more included.
All changes: v2.2.2...v2.3.0
2.2.2
2.2.1
2.2.0
Update
- Bump minimal required Node.js version to 10.17
- Improved fields data consumption for
FormData#stream
- Fix for
FormData#getComputedLength()
to match browsers behaviour: now it will return the length of the boundary when FormData has no fields
Remove
- Replace
nanoid
withcrypto.randomBytes
in boundary generator
All changes: v2.1.4...v2.2.0
2.1.4
2.1.3
2.1.2
2.1.1
Update
- Fix default name for a Blob field (#13)
import FormData from "formdata-node"
import Blob from "fetch-blob"
const fd = new FormData()
const blob = new Blob(["Where's your motivation?"], {type: "text/plain"})
fd.set("file", blob)
fd.get("file").name // "blob"
All changes: v2.1.0...v2.1.1
2.1.0
Update
- Improve form-data encoding algorithm to make it more spec-compliant
- Improve documentation
All changes: v2.0.1...v2.1.0