Merge pull request #13827 from nextcloud/chore/remove-oc-set-get

chore: document removal of `OC.get`, `OC.set`, `OC.reload` and `OC.redirect`
This commit is contained in:
Ferdinand Thiessen
2025-10-31 14:18:00 +01:00
committed by GitHub

View File

@@ -26,6 +26,12 @@ Removed APIs
- The global ``md5`` implementation is removed. It was deprecated since Nextcloud 20 and not used by Nextcloud anymore.
If you still need a ``md5`` implementation you can just use some external package like `crypto-browserify <https://www.npmjs.com/package/crypto-browserify>`_.
- The ``OC.SystemTags`` api was removed. If you need to get the list of system tags, check `this merge request <https://github.com/nextcloud/files_retention/pull/855>`_ for how to fetch the tags directly.
- ``OC.set`` and ``OC.get`` were removed. Both are deprecated since Nextcloud 19.
For ``get``, if really needed, use `lodash get <https://lodash.com/docs#get>`_.
And for ``set``, use `lodash set <https://lodash.com/docs#set>`_.
- ``OC.redirect`` and ``OC.reload`` were removed. Both were deprecated since Nextcloud 17.
To replace ``OC.redirect`` directly use ``window.location``.
To replace ``OC.reload`` directly use ``window.location.reload``.
- 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.