From 51f094f312bf1b27d6108a1747cd9ec596cfdfb3 Mon Sep 17 00:00:00 2001 From: nd0ut Date: Fri, 14 Jun 2024 19:56:24 +0300 Subject: [PATCH] feat: remove depreacted `addFiles` method --- abstract/UploaderBlock.js | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/abstract/UploaderBlock.js b/abstract/UploaderBlock.js index a43f2290d..0125de8f4 100644 --- a/abstract/UploaderBlock.js +++ b/abstract/UploaderBlock.js @@ -162,28 +162,6 @@ export class UploaderBlock extends ActivityBlock { return this.getOutputItem(internalId); } - /** - * @deprecated Will be removed in the near future. Please use `addFileFromObject`, `addFileFromUrl` or - * `addFileFromUuid` instead. - * @param {File[]} files - * @returns {import('../types').OutputFileEntry<'idle'>[]} - */ - addFiles(files) { - console.warn( - '`addFiles` method is deprecated. Please use `addFileFromObject`, `addFileFromUrl` or `addFileFromUuid` instead.', - ); - return files.map((/** @type {File} */ file) => { - const internalId = this.uploadCollection.add({ - file, - isImage: fileIsImage(file), - mimeType: file.type, - fileName: file.name, - fileSize: file.size, - }); - return this.getOutputItem(internalId); - }); - } - /** @param {string} internalId */ removeFileByInternalId(internalId) { if (!this.uploadCollection.read(internalId)) {