Skip to content

v0.23.0

Compare
Choose a tag to compare
@github-actions github-actions released this 14 Jun 11:30
· 451 commits to main since this release
38ee4b1

0.23.0 (2023-06-14)

Features

  • add uploadAll method to trigger upload (db69508)
  • add separate addFileFromUrl, addFileFromUuid and addFileFromObject (b5a89c4)

Deprecations

  • method addFiles is deprecated in favour of addFileFromUrl, addFileFromUuid and addFileFromObject above

API

// `silent` option supresses `LR_UPLOAD_FINISH` event
// `fileName` options specifies file name 
uploaderCtx.addFileFromUrl(url: string, { silent?: boolean, fileName?: string } = {});
uploaderCtx.addFileFromUuid(uuid: string, { silent?: boolean, fileName?: string } = {});
uploaderCtx.addFileFromObject(file: File, { silent?: boolean, fileName?: string } = {});

// Trigger uploading. Useful with `--cfg-confirm-upload: 1;` to force uploading predefined files.
uploaderCtx.uploadAll();