Skip to content

Commit c99caab

Browse files
authored
Merge pull request #13827 from nextcloud/chore/remove-oc-set-get
chore: document removal of `OC.get`, `OC.set`, `OC.reload` and `OC.redirect`
2 parents 15b82da + a9e580f commit c99caab

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

developer_manual/app_publishing_maintenance/app_upgrade_guide/upgrade_to_33.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ Removed APIs
2626
- The global ``md5`` implementation is removed. It was deprecated since Nextcloud 20 and not used by Nextcloud anymore.
2727
If you still need a ``md5`` implementation you can just use some external package like `crypto-browserify <https://www.npmjs.com/package/crypto-browserify>`_.
2828
- 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.
29+
- ``OC.set`` and ``OC.get`` were removed. Both are deprecated since Nextcloud 19.
30+
For ``get``, if really needed, use `lodash get <https://lodash.com/docs#get>`_.
31+
And for ``set``, use `lodash set <https://lodash.com/docs#set>`_.
32+
- ``OC.redirect`` and ``OC.reload`` were removed. Both were deprecated since Nextcloud 17.
33+
To replace ``OC.redirect`` directly use ``window.location``.
34+
To replace ``OC.reload`` directly use ``window.location.reload``.
2935
- The `OCA.Sharing.ExternalLinkActions` API was deprecated in Nextcloud 23 and is now removed.
3036
It was replaced with `OCA.Sharing.ExternalShareAction` which now have a proper API by using `registerSidebarAction` from `@nextcloud/sharing` instead.
3137

0 commit comments

Comments
 (0)