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