1# Common Event and Notification Subsystem ChangeLog
2
3## cl.notification.1 Deleting Deprecated APIs (Version 9)
4
5In the [event notification exception handling rectification](../OpenHarmony_3.2.8.3/changelogs-notification.md), some APIs in API version 9 are marked as deprecated, and these APIs need to be deleted, according to OpenHarmony API specifications.
6
7**Change Impacts**
8
9The application developed based on earlier versions needs to use new APIs to replace the deleted ones. Otherwise, the application compilation will be affected.
10
11**Key API/Component Changes**
12
13Deprecated APIs in API version 9 will be deleted, and they will be replaced with new ones with same names.
14
15| Original API                 | New API                          |
16| ----------------------- | -------------------------------- |
17| @ohos.commonEvent.d.ts  | @ohos.commonEventManager.d.ts    |
18| @ohos.notification.d.ts | @ohos.notificationManager.d.ts   |
19| @ohos.notification.d.ts | @ohos.notificationSubscribe.d.ts |
20
21APIs or attributes are deleted:
22
23- @ohos.notification.d.ts
24  - The **publishAsBundle**, **cancelAsBundle**, **isNotificationSlotEnabled**, **setSyncNotificationEnabledWithoutApp**, and **getSyncNotificationEnabledWithoutApp** APIs are deleted. Replace them with APIs with same names in **api/@ohos.notificationManager.d.ts**.
25  - The **enableNotificationSlot** API is deleted. Replace it with **setNotificationEnableSlot** in **api/@ohos.notificationManager.d.ts**.
26  - The export classes **NotificationActionButton**, **NotificationBasicContent**, **NotificationContent**, **NotificationLongTextContent**, **NotificationMultiLineContent**, **NotificationPictureContent**, **NotificationFlags**, **NotificationFlagStatus**, **NotificationRequest**, **DistributedOptions**, **NotificationSlot**, **NotificationSorting**, **NotificationTemplate**, and **NotificationUserInput** are deleted. Replace them with the export classes with the same names in **api/@ohos.notificationManager.d.ts**.
27  - The export classes **NotificationSubscribeInfo**, **NotificationSubscriber**, **SubscribeCallbackData**, and **EnabledNotificationCallbackData** are deleted. Replace them with the export classes with the same names in **api/@ohos.notificationSubscribe.d.ts**.
28
29**Adaptation Guide**
30
31The original APIs are only migrated to the new namespace. Therefore, you can modify **import** to solve the adaptation problem.
32
33If the original API uses **@ohos.commonEvent**:
34
35```js
36import commonEvent from '@ohos.commonEvent';
37```
38
39You can directly modify **import** to switch to the new namespace:
40
41```js
42import commonEvent from '@ohos.commonEventManager';
43```
44
45**@ohos.notification** is split into two namespaces. You need to select a new namespace for adaptation.
46
47In addition, exception handling is needed. For details, see the API reference for the new APIs.
48