Skip to content

v1.0.0-alpha.5

Pre-release
Pre-release
Compare
Choose a tag to compare
@bautrukevich bautrukevich released this 30 Aug 04:56
· 853 commits to master since this release

Added

  • Support of multipart and uploading of big files: multipartStart,
    multipartUpload and multipartComplete methods to UploadAPI.
  • Support of cancel and handling canceling uploads for all api methods
    (info, fromUrl, fromUrlStatus, group, groupInfo).
  • DefaultSettingsInterface with required properties.
  • pollingTimeoutMilliseconds to SettingsInterface.
    Now you can adjust the timeout for checking file is ready
    and checking file is uploaded from url.
  • maxConcurrentRequests setting that allows you to specify the number
    of concurrent requests.

Changed

  • FileFrom enum was renamed to FileFromEnum.
  • GroupFrom enum was renamed to GroupFromEnum.
  • Settings was renamed to SettingsInterface.
  • FileInfo was renamed to FileInfoInterface.
  • GroupInfo was renamed to GroupInfoInfoInterface.
  • OriginalImageInfo was renamed to OriginalImageInfoInterface.
  • RequestOptions was renamed to RequestOptionsInterface.
  • ProgressStatus was renamed to ProgressStatusInterface.
  • Audio type was renamed to AudioInterface.
  • Video type was renamed to VideoInterface.
  • ErrorRequestInfo type was renamed to ErrorRequestInfoInterface.
  • ErrorResponseInfoInfo type was renamed to ErrorResponseInfoInterface.
  • ProgressState was renamed to ProgressStateEnum.
  • ProgressParams was renamed to ProgressParamsInterface.
  • base method of Upload API now returns BaseThenableInterface<BaseResponse>
    instead of DirectUploadInterface.
  • info, fromUrl, fromUrlStatus, group, groupInfo now returns
    CancelableThenableInterface.
  • Progress is now calculated from 0 to 1 instead of 0 to 100

Fixed

  • Example with directUpload.onProgress in README.md.
  • All tests now passed.
  • Mock server tests are now passed.

Removed

  • DirectUploadInterface was removed in favor of BaseThenableInterface<BaseResponse>.
  • BaseProgress was removed in favor of native ProgressEvent.
  • InfoResponse was removed in favor of FileInfoInterface.
  • Old code in folder ./.back.