close

Filter

loading table of contents...

Release Notes / Version 12.2506.0

Table Of Contents

Public API changes for studio-client packages

The following changes to Public API packages have been made:

Package @coremedia/studio-client.base-models

  • Deprecations

    • The module TimeZones_properties has been deprecated. Use the new timeZoneLocalizationRegistry to add localization for time zones instead.

Package @coremedia/studio-client.cap-base-models

  • Changes

    • Member svgIcon of IContentTypeLocalizationis now string | URL was string.

    • getPreferencesState of PostUploadPreferences}}now returns a {{Promise<boolean | undefined>, in addition to this the type has been sharpened, reflecting that it can also return undefined (which it could before but it was not stated)

  • Deprecations

    • The import for types ILocalization and ILocalizationWithIcon have been deprecated. Please import the types now from @coremedia/studio-client.base-models

Package @coremedia/studio-client.content-services-api

Package @coremedia/studio-client.interaction-services-api

  • Removal

    • The abstract classes Clipboard and ClipboardItem have been removed in favor of the standard Web API interface (https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_API )

    • The class ClipboardItemImpl and the singleton clipboard have been removed without replacement. To access clipboard data utilize new API observeClipboardData and writeToClipboard of new package @coremedia/studio-client.interaction-services-toolkit instead

  • Move

    • DataTransferTypes has been moved to package @coremedia/studio-client.interaction-services-toolkit

Package @coremedia/studio-client.project-services-api

Package @coremedia/studio-client.workflow-services-api

  • Deprecations

    • The methods getActiveProcess, getActiveTask, getOpenedProcesses and getOpenedTasks of WorkflowFormService have been deprecated. Please utilize observe_activeProcess, observe_activeTask, observe_openedProcesses and observe_openedTasks instead (also check https://rxjs.dev/api/index/function/firstValueFrom).

General

The API of many types extending (and including) RemoteBean has been sharpened. It is now correctly stated if a property can be null. In addition to this all properties that are only available if a RemoteBean has been loaded are now also declared as undefined. Furthermore, the isLoaded method has been improved with a type guard meaning that Typescript https://www.typescriptlang.org/docs/handbook/2/narrowing.htmlis now working when checking isLoaded first before accessing a RemoteBean property.

While improving the types has no impact on runtime code, you might need to consider the undefined / null results in your code in case you have enabled strict null checks in your TypeScript project. The later however, is not relevant for packages build with jangaroo as strict null checks are not enabled per default.

(CMS-27964)

Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

Please use Mozilla Firefox, Google Chrome, or Microsoft Edge.