Skip to content

3.6.0

Compare
Choose a tag to compare
@octet-stream octet-stream released this 25 Jul 19:57

Add

  • [EXPERIMENTAL] Introduce browser field in package.json (see #39 PR by @char0n). Node.js user will not be affected by this change.

Update

  • Replace domexpeption with node-domexception which is using DOMException class from Node.js
  • Replace internal form-data encoding implementation with form-data-encoder package. Note that the encoding will be removed in v4, so you'll need a client that support spec-compatible FormData or form-data-encoder to handle the encoding.

Remove

  • [BREAKING] Remove options.lastModified from fileFromPath and fileFromPathSync since it may have introduce DOMException error to be thrown.
  • Remove mime-types package to reduce the size of formdata-node and make fileFromPath and fileFromPathSync behaviour more compatible with File class;

All changes: v3.5.4...v3.6.0