Merge pull request #11253 from nextcloud/update/sorbaugh/removed-apis

This commit is contained in:
John Molakvoæ
2023-11-03 09:33:31 +01:00
committed by GitHub

View File

@@ -31,7 +31,7 @@ Added APIs
* File actions: to register file actions, please use the dedicated API from https://npmjs.org/@nextcloud/files or
https://nextcloud-libraries.github.io/nextcloud-files/functions/registerFileAction.html
* New file menu: to register entries in the new file menu, please use the dedicated API from https://npmjs.org/@nextcloud/files or
* New file menu: to register entries in the new file menu, please use the dedicated API from https://npmjs.org/@nextcloud/files or
https://nextcloud-libraries.github.io/nextcloud-files/functions/addNewFileMenuEntry.html
* Reminder from 27, to interact with the Files app router, use ``OCP.Files.Router``. See :ref:`FilesAPI`
* To Interact with the Files app data, please use the following events. All of them have a `Node object <https://nextcloud-libraries.github.io/nextcloud-files/classes/Node.html>`_ as main parameter.
@@ -58,6 +58,7 @@ Removed APIs
* ``OC.loadScript`` and ``OC.loadStyle``: Use ``OCP.Loader`` instead.
* ``OC.appSettings``: There is no replacement.
* ``OCA.Files``: Everything removed but Sidebar and Settings. See the Added API section for replacements.
* ``OCA.Comments``: There is no replacement.
Back-end changes
----------------
@@ -169,6 +170,7 @@ Removed APIs
* ``\OC_Defaults::getLogoClaim``: There is no replacement.
* ``\OC::$server->createEventSource()`` has been removed, use ``\OCP\Server::get(\OCP\IEventSourceFactory::class)->create()`` instead.
* ``\OCP\Util::writeLog`` has been removed, use ``\OCP\Server::get(LoggerInterface::class)->…`` instead.
* ``\OCP\Comments::load``: there is no replacement.
The factory ``\OCP\IEventSourceFactory`` works only from Nextcloud 28.
For older versions use ``\OC::$server->createEventSource()``.