Releases: octet-stream/form-data
Releases · octet-stream/form-data
3.7.0
Update
- Improve
browser.ts
; - Return both
Content-Type
andContent-Length
headers fromFormData#headers
getter; - Updated deprecation warnings;
- Deprecate
options
argument inset
andappend
methods; - Deprecate
FormData#boundary
property;
All changes: v3.6.4...v3.7.0
3.6.4
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
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
3.6.1
Update
- Rewrite
browser.js
module with TypeScript and introduce CJS and ESM versions of it; - Update
exports
field in mainpackage.json
to expose compiled versionsbrowser.js
.
All changes: v3.6.0...v3.6.1
3.6.0
Add
- [EXPERIMENTAL] Introduce
browser
field inpackage.json
(see #39 PR by @char0n). Node.js user will not be affected by this change.
Update
- Replace
domexpeption
withnode-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 orform-data-encoder
to handle the encoding.
Remove
- [BREAKING] Remove
options.lastModified
fromfileFromPath
andfileFromPathSync
since it may have introduceDOMException
error to be thrown. - Remove
mime-types
package to reduce the size offormdata-node
and makefileFromPath
andfileFromPathSync
behaviour more compatible with File class;
All changes: v3.5.4...v3.6.0
3.5.4
Update
- Various improvements TS typings:
- Updated
blobParts
argument in file constructor to expect an array ofunknown
parts, becausefetch-blob
can perform automatic conversions if necessary; FileLike
interface will expecttype
field to be presented, because everyFile
andBlob
has such field;
- Updated
- Simplify getFilename helper;
- Update dependencies;
All changes: v3.5.3...v3.5.4
3.5.3
3.5.2
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
Update
- Fix for
.append()
method behaviour: It should always append entries
All changes: v3.5.0...v3.5.1