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