Skip to content

Releases: octet-stream/form-data

2.4.0

03 Sep 21:28
Compare
Choose a tag to compare

Update

  • Fix returning value of the FormData#get() method for non-existent fields: it now returns null instead of undefined just like the browser implementations do.

All changes: v2.3.0...v2.4.0

2.3.0

28 Aug 18:51
Compare
Choose a tag to compare

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

22 Jul 10:52
Compare
Choose a tag to compare

Update

  • Coerce field names to string. (#23)

All changes: v2.2.1...v2.2.2

2.2.1

15 Jun 17:25
Compare
Choose a tag to compare

Update

  • Fix for Blob filename retrieving (#20)

All changes: v2.2.0...v2.2.1

2.2.0

07 Jun 16:31
Compare
Choose a tag to compare

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 with crypto.randomBytes in boundary generator

All changes: v2.1.4...v2.2.0

2.1.4

21 May 11:31
Compare
Choose a tag to compare

Update

  • Fix for nanoid import that causes error in Catsby.js

All changes: v2.1.3...v2.1.4

2.1.3

21 May 10:40
Compare
Choose a tag to compare

Update

  • Fix builtin modules imports

All changes: v2.1.2...v2.1.3

2.1.2

19 May 23:46
Compare
Choose a tag to compare

Update

  • Improve TypeScript typings

All changes: v2.1.1...v2.1.2

2.1.1

11 Feb 23:39
Compare
Choose a tag to compare

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

05 Jan 19:49
Compare
Choose a tag to compare

Update

  • Improve form-data encoding algorithm to make it more spec-compliant
  • Improve documentation

All changes: v2.0.1...v2.1.0