Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Usercentrics is introducing a breaking change for two methods that were available in our CMP Version 2.

The methods getSettings() ,and getServices() and getCategories() will be deprecated.

...

For what were these methods used?

  • getSettings() was a public method used to retrieve basic CMP configuration information

  • getServices() was a public method used to get the list of services

  • getCategories() was a method used to get the list of categories

...

Which method are replacing them?

  • the methods deprecated are getSettings(), getServices() and getCategories().

  • getSettings() will be replaced by getSettingsCore(), getSettingsUI(), getSettingsLabels() and getControllerId().

  • getServices() will be replaced by getServicesBaseInfo() and getServicesFullInfo().getCategories() will be replaced by getCategoriesBaseInfo() and getCategoriesFullInfo().

...

What purpose does the deprecation serve?

The methods getSettings() and getServices() are getting deprecated because we restructured our settings configurations file to improve performance by loading only what is necessary for each layer. The new methods available getSettingsCore(), getSettingsUI(), getSettingsLabels(), getControllerId(), and getServicesFullInfo() and getCategoriesFullInfo() will serve you with the same purpose.

...