From 07d309a16af90f547e9ca074a232e48c3fdbecef Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Sat, 1 Nov 2025 14:46:41 +0100 Subject: [PATCH] chore: document removal of `OC` host functions - for https://github.com/nextcloud/server/pull/56087 Signed-off-by: Ferdinand Thiessen --- .../app_upgrade_guide/upgrade_to_33.rst | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/developer_manual/app_publishing_maintenance/app_upgrade_guide/upgrade_to_33.rst b/developer_manual/app_publishing_maintenance/app_upgrade_guide/upgrade_to_33.rst index eb8575099..fd5cf8ab7 100644 --- a/developer_manual/app_publishing_maintenance/app_upgrade_guide/upgrade_to_33.rst +++ b/developer_manual/app_publishing_maintenance/app_upgrade_guide/upgrade_to_33.rst @@ -34,8 +34,15 @@ Removed APIs To replace ``OC.reload`` directly use ``window.location.reload``. - ``OC.fileIsBlacklisted`` was removed. It was deprecated since Nextcloud 18. The replacement is to use ``validateFilename`` from the `@nextcloud/files `_ package. -- The `OCA.Sharing.ExternalLinkActions` API was deprecated in Nextcloud 23 and is now removed. - It was replaced with `OCA.Sharing.ExternalShareAction` which now have a proper API by using `registerSidebarAction` from `@nextcloud/sharing` instead. +- The deprecated host methods from `OC` were deprecated since Nextcloud 17 and are now removed + + - To replace ``OC.getHost`` use ``window.location.host``. + - To replace ``OC.getHostName`` use ``window.location.hostname``. + - To replace ``OC.getPort`` use ``window.location.port``. + - To replace ``OC.getProtocol`` use ``window.location.protocol``. + +- The ``OCA.Sharing.ExternalLinkActions`` API was deprecated in Nextcloud 23 and is now removed. + It was replaced with ``OCA.Sharing.ExternalShareAction`` which now have a proper API by using ``registerSidebarAction`` from `@nextcloud/sharing `_ instead. Back-end changes ----------------