summaryrefslogtreecommitdiffstats
path: root/core/src/globals.js
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-02-14 17:39:49 +0100
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-02-14 17:39:49 +0100
commit80450427d1ddc5c1fcc29265e2dd827a18095e68 (patch)
tree92a618502ffeca9f573aaa8a2566939df9162964 /core/src/globals.js
parent6a1ba818f5cd0553fb1dc2ef49d6717b64bb07bf (diff)
downloadnextcloud-server-80450427d1ddc5c1fcc29265e2dd827a18095e68.tar.gz
nextcloud-server-80450427d1ddc5c1fcc29265e2dd827a18095e68.zip
Add removal version number for global deprecations
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'core/src/globals.js')
-rw-r--r--core/src/globals.js22
1 files changed, 11 insertions, 11 deletions
diff --git a/core/src/globals.js b/core/src/globals.js
index 89f8524a0c9..d4926e01845 100644
--- a/core/src/globals.js
+++ b/core/src/globals.js
@@ -111,7 +111,7 @@ setDeprecatedProp('autosize', () => autosize, 'please ship your own, this will b
setDeprecatedProp('Backbone', () => Backbone, 'please ship your own, this will be removed in Nextcloud 20')
setDeprecatedProp(['Clipboard', 'ClipboardJS'], () => ClipboardJS, 'please ship your own, this will be removed in Nextcloud 20')
window['dav'] = dav
-setDeprecatedProp('DOMPurify', () => DOMPurify, 'The global DOMPurify is deprecated, ship your own')
+setDeprecatedProp('DOMPurify', () => DOMPurify, 'The global DOMPurify is deprecated, this will be removed in Nextcloud 21')
setDeprecatedProp('Handlebars', () => Handlebars, 'please ship your own, this will be removed in Nextcloud 20')
setDeprecatedProp(['jstz', 'jstimezonedetect'], () => jstimezonedetect, 'please ship your own, this will be removed in Nextcloud 20')
window['marked'] = deprecate(marked, 'marked', 19)
@@ -120,16 +120,16 @@ setDeprecatedProp('moment', () => moment, 'please ship your own, this will be re
window['OC'] = OC
setDeprecatedProp('initCore', () => initCore, 'this is an internal function')
-setDeprecatedProp('oc_appswebroots', () => OC.appswebroots, 'use OC.appswebroots instead')
-setDeprecatedProp('oc_capabilities', OC.getCapabilities, 'use OC.getCapabilities instead')
-setDeprecatedProp('oc_config', () => OC.config, 'use OC.config instead')
-setDeprecatedProp('oc_current_user', () => OC.getCurrentUser().uid, 'use OC.getCurrentUser().uid instead')
-setDeprecatedProp('oc_debug', () => OC.debug, 'use OC.debug instead')
-setDeprecatedProp('oc_defaults', () => OC.theme, 'use OC.theme instead')
-setDeprecatedProp('oc_isadmin', OC.isUserAdmin, 'use OC.isUserAdmin() instead')
-setDeprecatedProp('oc_requesttoken', () => getRequestToken(), 'use OC.requestToken instead')
-setDeprecatedProp('oc_webroot', () => OC.webroot, 'use OC.getRootPath() instead')
-setDeprecatedProp('OCDialogs', () => OC.dialogs, 'use OC.dialogs instead')
+setDeprecatedProp('oc_appswebroots', () => OC.appswebroots, 'use OC.appswebroots instead, this will be removed in Nextcloud 20')
+setDeprecatedProp('oc_capabilities', OC.getCapabilities, 'use OC.getCapabilities instead, this will be removed in Nextcloud 20')
+setDeprecatedProp('oc_config', () => OC.config, 'use OC.config instead, this will be removed in Nextcloud 20')
+setDeprecatedProp('oc_current_user', () => OC.getCurrentUser().uid, 'use OC.getCurrentUser().uid instead, this will be removed in Nextcloud 20')
+setDeprecatedProp('oc_debug', () => OC.debug, 'use OC.debug instead, this will be removed in Nextcloud 20')
+setDeprecatedProp('oc_defaults', () => OC.theme, 'use OC.theme instead, this will be removed in Nextcloud 20')
+setDeprecatedProp('oc_isadmin', OC.isUserAdmin, 'use OC.isUserAdmin() instead, this will be removed in Nextcloud 20')
+setDeprecatedProp('oc_requesttoken', () => getRequestToken(), 'use OC.requestToken instead, this will be removed in Nextcloud 20')
+setDeprecatedProp('oc_webroot', () => OC.webroot, 'use OC.getRootPath() instead, this will be removed in Nextcloud 20')
+setDeprecatedProp('OCDialogs', () => OC.dialogs, 'use OC.dialogs instead, this will be removed in Nextcloud 20')
window['OCP'] = OCP
window['OCA'] = OCA
window['escapeHTML'] = deprecate(escapeHTML, 'escapeHTML', 19)