Skip to content

Releases: octet-stream/form-data-encoder

v4.0.2

25 Oct 01:12
b51e11c
Compare
Choose a tag to compare

Patch Changes

v4.0.1

24 Oct 22:35
2dee2df
Compare
Choose a tag to compare

Patch Changes

v4.0.0

24 Oct 22:23
cb7c774
Compare
Choose a tag to compare

Major Changes

  • 7f953c7 Thanks @octet-stream! - Bring back support for CJS via tsup. This package can be used with both ES and CJS modules

  • 5a4cd63 Thanks @octet-stream! - Drop Node.js 16 support. Minimal required version now is Node.js 18

  • 7f953c7 Thanks @octet-stream! - Make FileLike and FormDataLike types compatible with File and FormData

3.0.1

23 Oct 22:31
Compare
Choose a tag to compare

Update

  • Fix FormDataLike types compatibility with undici (#19);
  • Set compilerOptions.module value to node16 to meet TS requirements;

All changes: v3.0.0...v3.0.1

3.0.0

19 May 13:44
Compare
Choose a tag to compare

Remove

  • Remove deprecated isFileLike() utility, use isFile() instead;
  • Remove deprecated FormDataEncoder.getContentLength() method.

Update

  • BREAKING: Drop Node 14.x support. Since 3.x the minimal required version is 16.5.x;
  • Implement internal chunk utility to split value into chunks, if the value size is greater than 65536 bytes. This applied both to Files and string values, because FormDataEnocder supports AsyncIterable returned by File.stream();
  • Expose package.json in esports field of package.json.

All changes: v2.1.4...v3.0.0

1.9.0

05 Apr 19:03
Compare
Choose a tag to compare

Update

  • Revert headers bug fix from 1.8.0, because it introduced breaking change in FormDataEncoder.getContentLength signature and behaviour (See #15).

All changes: v1.8.0...v1.9.0

1.8.0

05 Apr 16:08
Compare
Choose a tag to compare

Update

  • Make isFileLike utility less strict when testing file-ish objects (See #14);
  • Backport headers changes from v2.1.0
  • Backport browsers compatibility fix from v2.1.4

Important notice: I no longer support 1.x branch! You should switch to 2.x if you can!


All changes: v1.7.2...v1.8.0

2.1.4

24 Nov 14:13
Compare
Choose a tag to compare

Update

  • Fix for browser compatibility: Add a fallback for ReadableStream that does not implement Symbol.asyncIterator method;
  • Improve documentation for FormDataEncoder constructor.

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

2.1.3

03 Oct 20:48
Compare
Choose a tag to compare

Update

  • Replace LowercaseObjectKeys TS utility with two interfaces: RawHeaders and FormDataEncoderHeaders. This should resolve #8;

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

2.1.2

06 Sep 20:15
Compare
Choose a tag to compare

Update

  • Fix exports order (#11)

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