From 7d2aea4d6948e5712d284b6112c960f9a1832bb1 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Thu, 24 Oct 2024 20:47:25 +0100 Subject: [PATCH] DEV: Deprecate uppy-upload-mixin (#29394) --- app/assets/javascripts/discourse/app/mixins/uppy-upload.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/assets/javascripts/discourse/app/mixins/uppy-upload.js b/app/assets/javascripts/discourse/app/mixins/uppy-upload.js index 764af5b4c29..0a7897af35d 100644 --- a/app/assets/javascripts/discourse/app/mixins/uppy-upload.js +++ b/app/assets/javascripts/discourse/app/mixins/uppy-upload.js @@ -3,6 +3,7 @@ import { readOnly } from "@ember/object/lib/computed/computed_macros"; import Mixin from "@ember/object/mixin"; import { getOwner } from "@ember/owner"; import UppyUpload from "discourse/lib/uppy/uppy-upload"; +import deprecated from "discourse-common/lib/deprecated"; import { deepMerge } from "discourse-common/lib/object"; export { HUGE_FILE_THRESHOLD_BYTES } from "discourse/lib/uppy/uppy-upload"; @@ -36,6 +37,12 @@ export default Mixin.create({ processing: false, init() { + deprecated( + "The UppyUploadMixin is deprecated. See discourse/lib/uppy/uppy-upload.js for the new implementation.", + { + id: "discourse.uppy-upload-mixin", + } + ); this.uppyUpload = new UppyUpload(getOwner(this), configShim(this)); this.addObserver("uppyUpload.uploading", () =>