Deprecations

In order to improve our platform we are phasing out some APIs. Deprecated APIs are kept for at least three years before removal, unless the breakage can not be avoided.

We highly recommend using the Nextcloud Rector rules, which can fix some API changes automatically.

New deprecations

Legacy app layout CSS

The pre-Vue app layout styles in core/css/apps.scss are deprecated and no longer loaded automatically from Nextcloud 40: #app-navigation entries and menus, #app-content, #app-sidebar, #app-settings, .popovermenu / .bubble and .tabHeaders. Use the matching @nextcloud/vue components instead (NcAppNavigation, NcAppContent, NcAppSidebar, NcAppSettingsDialog, NcActions). Apps that still use this markup must load the styles themselves with \OCP\Util::addStyle('core', 'legacy-apps');. #content and .app-content-list are not affected. See server#67426.

Older deprecations

You find all current deprecations in this section.

  • Deprecated since Nextcloud 35

    • 32-bit PHP support is deprecated, Nextcloud 35 will be the last version to support 32-bit PHP. See our announcement for details.

    • \OCP\DB\QueryBuilder\IFunctionBuilder::md5 is deprecated. MD5 is not considered secure anymore, thus most databases have or will drop support for this SQL function.

    • \OCP\Broadcast\Events\IBroadcastEvent is now deprecated as it is unused.

    • \OCP\TaskProcessing\ISynchronousWatermarkingProvider is now deprecated, instead use \OCP\TaskProcessing\ISynchronousOptionsAwareProvider now.

  • Deprecated since Nextcloud 34

    • \OCP\AppFramework\App::buildAppNamespace is deprecated in favor of non-static method \OCP\App\IAppManager::getAppNamespace

    • \OCP\Util::setChannel is deprecated in favor of \OCP\ServerVersion::setChannel.

    • \OCP\Util::linkToAbsolute is deprecated in favor of \OCP\IUrlGenerator::getAbsoluteUrl and \OCP\IUrlGenerator::linkTo.

    • \OCP\Util::linkToRemove is deprecated in favor of \OCP\IUrlGenerator::linkToRemote.

    • \OCP\Util::isPublicLinkPasswordRequired is deprecated in favor of \OCP\Share\IManager::shareApiLinkEnforcePassword.

    • \OCP\Util::isDefaultExpireDateEnforced is deprecated in favor of \OCP\Share\IManager::shareApiLinkDefaultExpireDateEnforced.

Also see the older Release Notes for deprecations.