Upgrade to Nextcloud 34
Deprecations
\OCP\Util::setChannelis now deprecated and you need to use\OCP\ServerVersion::setChannelinstead.\OCP\Util::linkToAbsoluteis now deprecated and you need to use\OCP\IUrlGenerator::getAbsoluteUrland\OCP\IUrlGenerator::linkToinstead.\OCP\Util::linkToRemoveis now deprecated and you need to use\OCP\IUrlGenerator::linkToRemoteinstead.\OCP\Util::isPublicLinkPasswordRequiredis now deprecated and you need to use\OCP\Share\IManager::shareApiLinkEnforcePasswordinstead.\OCP\Util::isDefaultExpireDateEnforcedis now deprecated and you need to use\OCP\Share\IManager::shareApiLinkDefaultExpireDateEnforcedinstead.
Removed front-end APIs and libraries
OC.Dialogs.fileexistswas deprecated and is now removed. Use the conflict picker from the@nextcloud/dialogslibrary instead.OC.Notificationswas deprecated and is now removed. Use the notification API from the@nextcloud/dialogslibrary instead.OC.Appswas deprecated and is now removed. Use Vue components from the@nextcloud/vueinstead.OC.*menu*methods were deprecated and are now removed. Use Vue components from the@nextcloud/vueinstead.Magic handling of
.live-relative-timestamp(elements with this class were automatically updated to show relative timestamps) was removed. Use theNcDateTimecomponent from the@nextcloud/vuelibrary insteadThe global
snapperwas deprecated and is now removed. For the app navigation please migrate your app to Vue and use theNcAppNavigationcomponent from the@nextcloud/vuelibrary instead.Some deprecated globally shared libraries were removed. If you still rely on them, you need to bundle them with your app:
jQuerywas deprecated and scheduled for removal since Nextcloud 19.jQuery UIwas deprecated and scheduled for removal since Nextcloud 19.Backbonewas deprecated and scheduled for removal since Nextcloud 19.OC.Files.Clientas it was extending theBackbone.Handlebarswas deprecated and scheduled for removal since Nextcloud 19.
Removed back-end APIs
\OCP\Share_Backend,\OCP\Share_Backend_Collection,\OCP\Share_Backend_File_Dependentwere removed. This old share backend was replaced in Nextcloud 9 with a new backend system based onIShareProvider.All these methods were deprecated since before Nextcloud 20 and were removed:
\OCP\AppFramework\Http\EmptyContentSecurityPolicy::allowEvalScript\OCP\AppFramework\Http\EmptyContentSecurityPolicy::addAllowedChildSrcDomain\OCP\AppFramework\Http\EmptyContentSecurityPolicy::disallowChildSrcDomain\OCP\Collaboration\Resources\IManager::registerResourceProvider\OCP\Notification\IManager::registerNotifier\OCP\Util::recursiveArraySearch
All these classes were deprecated since before Nextcloud 20 and were removed:
\OCP\AppFramework\Http\StrictContentSecurityPolicy\OCP\AppFramework\Http\StrictEvalContentSecurityPolicy\OCP\AppFramework\Http\StrictInlineContentSecurityPolicy
Various methods from the legacy
OC_Utilstatic class were removed:Instead of
\OC_Util::encodePathuse\OCP\Util::encodePath.Instead of
\OC_Util::sanitizeHTMLuse\OCP\Util::sanitizeHTMLInstead of
\OC_Util::redirectToDefaultPageand\OC_Util::getDefaultPageUrluse\OCP\IUrlGenerator::linkToDefaultPageUrlInstead of
\OC_Util::checkAdminUseruseIGroupManager::class::isAdmin
Unified sharing
Todo
This is work in progress and needs an update when the changes have been finalized.
Changes to sharing APIs and user interface are planned. This includes both a new general API for sharing of entities and updates to the sharing user interface. See nextcloud/server#51803 for details and mockups.
Settings title left-alignment
Todo
This is work in progress and needs an update when the changes have been finalized.
The title alignment of settings pages will be changed to left-aligned. See nextcloud-libraries/nextcloud-vue#7641 for details.