From: Alexander Ebert Date: Tue, 16 Nov 2021 16:23:46 +0000 (+0100) Subject: Mention the new AJAX API in the migration docs X-Git-Tag: 5.6.final~112^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a88a88d892bd249af24e332dbd6df396a9de6a55;p=GitHub%2FWoltLab%2Fwoltlab.github.io.git Mention the new AJAX API in the migration docs --- diff --git a/docs/migration/wsc54/javascript.md b/docs/migration/wsc54/javascript.md index d4cb8cf9..4a2eec89 100644 --- a/docs/migration/wsc54/javascript.md +++ b/docs/migration/wsc54/javascript.md @@ -1,5 +1,12 @@ # Migrating from WSC 5.4 - TypeScript and JavaScript +## `Ajax.dboAction()` + +We have introduced a new `Promise` based API for the interaction with `wcf\\data\\DatabaseObjectAction`. +It provides full IDE autocompletion support and transparent error handling, but is designed to be used with `DatabaseObjectAction` only. + +See [the documentation for the new API](../../javascript/new-api_ajax.md) and [WoltLab/WCF#4585](https://github.com/WoltLab/WCF/pull/4585) for details. + ## `WCF.ColorPicker` We have replaced the old jQuery-based color picker `WCF.ColorPicker` with a more lightweight replacement `WoltLabSuite/Core/Ui/Color/Picker`, which uses the build-in `input[type=color]` field.