v2.27.0
Breaking Changes
-
[#48] uploadFiles() is patched / updated for all platforms to ensure:
- Uniform handling of HTTP errors — in case of HTTP response having 4xx or 5xx status code the upload promise is rejected with a proper Error instance, with its message set to the human-readable error HTTP error reason (according to http-status-codes), and UploadResultT object attached to the
.result
field of that error. - Ensures
statusCode
value in UploadResultT is a number on all platforms (it was already promised so by TypeScript definitions, but it turned out it was string during runtime on Windows).
— Thanks to @Crare for help with troubleshooting this, and PR #49!
- Uniform handling of HTTP errors — in case of HTTP response having 4xx or 5xx status code the upload promise is rejected with a proper Error instance, with its message set to the human-readable error HTTP error reason (according to http-status-codes), and UploadResultT object attached to the
Other Updates
- Update of dependencies.