Releases: octet-stream/form-data-encoder
Releases · octet-stream/form-data-encoder
v4.0.2
Patch Changes
0cc9cd4
Thanks @octet-stream! - Remove changelog from distro
v4.0.1
Patch Changes
247fb3e
Thanks @octet-stream! - Remove removeComments from tsconfig.json
v4.0.0
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
Update
- Fix
FormDataLike
types compatibility with undici (#19); - Set
compilerOptions.module
value tonode16
to meet TS requirements;
All changes: v3.0.0...v3.0.1
3.0.0
Remove
- Remove deprecated
isFileLike()
utility, useisFile()
instead; - Remove deprecated
FormDataEncoder.getContentLength()
method.
Update
- BREAKING: Drop Node
14.x
support. Since 3.x the minimal required version is16.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, becauseFormDataEnocder
supportsAsyncIterable
returned byFile.stream()
; - Expose
package.json
inesports
field ofpackage.json
.
All changes: v2.1.4...v3.0.0
1.9.0
Update
- Revert headers bug fix from
1.8.0
, because it introduced breaking change inFormDataEncoder.getContentLength
signature and behaviour (See #15).
All changes: v1.8.0...v1.9.0
1.8.0
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
Update
- Fix for browser compatibility: Add a fallback for
ReadableStream
that does not implementSymbol.asyncIterator
method; - Improve documentation for
FormDataEncoder
constructor.
All changes: v2.1.3...v2.1.4
2.1.3
Update
- Replace
LowercaseObjectKeys
TS utility with two interfaces:RawHeaders
andFormDataEncoderHeaders
. This should resolve #8;
All changes: v2.1.2...v2.1.3