Skip to content

Releases: octet-stream/form-data

3.7.0

15 Aug 16:14
Compare
Choose a tag to compare

Update

  • Improve browser.ts;
  • Return both Content-Type and Content-Length headers from FormData#headers getter;
  • Updated deprecation warnings;
  • Deprecate options argument in set and append methods;
  • Deprecate FormData#boundary property;

All changes: v3.6.4...v3.7.0

3.6.4

12 Aug 11:32
Compare
Choose a tag to compare

Update

  • Update form-data-encoder to 1.4.3 version to improve spec compliance;

All changes: v3.6.3...v3.6.4

3.6.3

04 Aug 00:12
Compare
Choose a tag to compare

Update

  • Update form-data-encoder to latest version;
  • Reduce package size by removing comments for JS output (but keep comments for .d.ts output).

All changes: v3.6.2...v3.6.3

3.6.2

26 Jul 06:25
Compare
Choose a tag to compare

Update

  • Fix path in browser field in package.json

All changes: v3.6.1...v3.6.2

3.6.1

25 Jul 22:27
Compare
Choose a tag to compare

Update

  • Rewrite browser.js module with TypeScript and introduce CJS and ESM versions of it;
  • Update exports field in main package.json to expose compiled versions browser.js.

All changes: v3.6.0...v3.6.1

3.6.0

25 Jul 19:57
Compare
Choose a tag to compare

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

3.5.4

15 Jun 14:13
Compare
Choose a tag to compare

Update

  • Various improvements TS typings:
    • Updated blobParts argument in file constructor to expect an array of unknown parts, because fetch-blob can perform automatic conversions if necessary;
    • FileLike interface will expect type field to be presented, because every File and Blob has such field;
  • Simplify getFilename helper;
  • Update dependencies;

All changes: v3.5.3...v3.5.4

3.5.3

10 Jun 11:26
Compare
Choose a tag to compare

Update

  • Fix for FormData#stream initialization (#36)

All changes: v3.5.2...v3.5.3

3.5.2

06 Jun 12:20
Compare
Choose a tag to compare

Add

  • Expose isFileLike helper for public usage

Update

  • Update fetch-blob to 2.1.2 version since it has a fix for checks with nullish values (null instanceof Blob)
  • Improvements for documentation
  • Use dynamic error message in File constructor.

All changes: v3.5.1...v3.5.2

3.5.1

30 May 14:01
Compare
Choose a tag to compare

Update

  • Fix for .append() method behaviour: It should always append entries

All changes: v3.5.0...v3.5.1