Skip to content

v2.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 15 Nov 20:01
· 417 commits to master since this release
c60bb20

2.0.0 (2021-11-15)

Features

  • feat!: add cjs and esm support (#283) (081f27e), closes #283
  • feat!: replace CancelController with native AbortController (#282) (020e1ae), closes #282
  • add mimeType to UploadcareFile type (33b6c58)
  • export high-level upload methods (1354018)
  • handle server error codes (948c9d1)
  • add option userAgent to pass custom user agent string or function (d74fefb)

BREAKING CHANGES

  • remove default export because webpack can't handle it without bugs
  • replace cancel key with signal in all cancelable methods
  • property response of UploadClientError now contains the whole response object ({ error: {...}})