From 0c670e14c1fdb714e1d51d0fe45f7c46df1cfebf Mon Sep 17 00:00:00 2001 From: Noel De Martin Date: Mon, 13 Nov 2023 16:59:25 +0100 Subject: [PATCH] MOBILE-4463 core: Deprecate CoreCache for plugins --- src/core/features/compile/services/compile.ts | 2 +- upgrade.txt | 12 +++++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/core/features/compile/services/compile.ts b/src/core/features/compile/services/compile.ts index f79aff978..2192c499a 100644 --- a/src/core/features/compile/services/compile.ts +++ b/src/core/features/compile/services/compile.ts @@ -368,7 +368,7 @@ export class CoreCompileProvider { instance['CoreTime'] = CoreTime; instance['CoreUrl'] = CoreUrl; instance['CoreWindow'] = CoreWindow; - instance['CoreCache'] = CoreCache; + instance['CoreCache'] = CoreCache; // @deprecated since 4.4, plugins should use plain objects instead. instance['CoreDelegate'] = CoreDelegate; instance['CorePromisedValue'] = CorePromisedValue; instance['CoreContentLinksHandlerBase'] = CoreContentLinksHandlerBase; diff --git a/upgrade.txt b/upgrade.txt index f38922c56..908f4e8da 100644 --- a/upgrade.txt +++ b/upgrade.txt @@ -1,5 +1,11 @@ -This files describes API changes in the Moodle Mobile app, -information provided here is intended especially for developers. +This file describes API changes in the Moodle App that affect site plugins, information provided here is intended especially for developers. + +For more information about upgrading, read the official documentation: https://moodledev.io/general/app/upgrading/ + +=== 4.4.0 === + +- Starting with this release, this file will only document breaking changes for APIs exposed to site plugins. Internal changes will no longer be documented. +- CoreCache has been deprecated, use plain object as in-memory stores instead. === 4.3.0 === @@ -7,7 +13,7 @@ information provided here is intended especially for developers. - Font Awesome icon library has been updated to 6.4.0. But nothing has changed, only version number. - The analytics system in the app has been refactored and some functions that could trigger analytics calls no longer do it, now you need to use CoreAnalytics instead. Some functions in CoreCourseLogHelper and CorePushNotificationsProvider have been deprecated. - Due to the analytics refactor, the parameters of most log functions have changed. - - CoreCourseModuleHandlerData.buttons has been deprecated, now only one button in atribute button will be shown. + - CoreCourseModuleHandlerData.buttons has been deprecated, now only one button in attribute button will be shown. === 4.2.0 ===