From bac0da3fe93dc227258d4aca04feced30e6e4a1d Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Fri, 7 Jul 2023 15:25:22 +0100 Subject: [PATCH] Deprecate customisations in favour of Module API (#25736) --- docs/customisations.md | 8 ++++++++ webpack.config.js | 9 +++++++++ 2 files changed, 17 insertions(+) diff --git a/docs/customisations.md b/docs/customisations.md index 730e9da7941..b1ae005276c 100644 --- a/docs/customisations.md +++ b/docs/customisations.md @@ -1,5 +1,13 @@ # Customisations +### 🦖 DEPRECATED + +Customisations have been deprecated in favour of the [Module API](https://github.com/vector-im/element-web/blob/develop/docs/modules.md). +If you have use cases from customisations which are not yet available via the Module API please open an issue. +Customisations will be removed from the codebase in a future release. + +--- + Element Web and the React SDK support "customisation points" that can be used to easily add custom logic specific to a particular deployment of Element Web. diff --git a/webpack.config.js b/webpack.config.js index 514bf32d063..b77825e3964 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -61,6 +61,15 @@ try { // stringify the output so it appears in logs correctly, as large files can sometimes get // represented as `` which is less than helpful. console.log("Using customisations.json : " + JSON.stringify(fileOverrides, null, 4)); + + process.on("exit", () => { + console.log(""); // blank line + console.warn("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"); + console.warn("!! Customisations have been deprecated and will be removed in a future release !!"); + console.warn("!! See https://github.com/vector-im/element-web/blob/develop/docs/customisations.md !!"); + console.warn("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"); + console.log(""); // blank line + }); } catch (e) { // ignore - not important }