From 526eea8466dc5467d2bfe9b181ee318b15675b88 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 13 Oct 2022 19:11:26 +0200 Subject: [PATCH] Document the removal of the legacy inheritance in TS See WoltLab/WCF#5041 --- docs/migration/wsc55/javascript.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/migration/wsc55/javascript.md b/docs/migration/wsc55/javascript.md index ea5b24d2..ae9885c9 100644 --- a/docs/migration/wsc55/javascript.md +++ b/docs/migration/wsc55/javascript.md @@ -14,3 +14,11 @@ The new implementation comes with a ready-to-use template (`__userObjectWatchBut ``` See [WoltLab/WCF#4962](https://github.com/WoltLab/WCF/pull/4962/) for details. + +## Support for Legacy Inheritance + +The migration from JavaScript to TypeScript was a breaking change because the previous prototype based inheritance was incompatible with ES6 classes. +`Core.enableLegacyInheritance()` was added in an effort to emulate the previous behavior to aid in the migration process. + +This workaround was unstable at best and was designed as a temporary solution only. +[WoltLab/WCF#5041](https://github.com/WoltLab/WCF/pull/5041) removed the legacy inheritance, requiring all depending implementations to migrate to ES6 classes. -- 2.20.1