1e41f4b71Sopenharmony_ci# Changelog of NFC JS APIs in the Communication Subsystem
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ci## cl.nfc.1 API Change
4e41f4b71Sopenharmony_ciDeprecated some NFC JS APIs in API versions 6 to 8 because the APIs cannot throw error codes, and added new APIs in API version 9 instead.
5e41f4b71Sopenharmony_ci
6e41f4b71Sopenharmony_ciYou need to adapt your application based on the following information.
7e41f4b71Sopenharmony_ci
8e41f4b71Sopenharmony_ci **Change Impact**
9e41f4b71Sopenharmony_ci
10e41f4b71Sopenharmony_ciThe deprecated JS APIs in API versions 6 to 8 are affected. Your application needs to adapt new APIs so that it can properly implement functions in the SDK environment of the new version.
11e41f4b71Sopenharmony_ci
12e41f4b71Sopenharmony_ci**Key API/Component Changes**
13e41f4b71Sopenharmony_ci
14e41f4b71Sopenharmony_ci| Module                   | Class               | Method/Attribute/Enumeration/Constant                                         | Change Type|
15e41f4b71Sopenharmony_ci| ------------------------- | ------------------- | ------------------------------------------------------------ | -------- |
16e41f4b71Sopenharmony_ci| api/@ohos.nfc.cardEmulation.d.ts        | cardEmulation         | FeatureType  | Deprecated    |
17e41f4b71Sopenharmony_ci| api/@ohos.nfc.cardEmulation.d.ts        | cardEmulation         | isSupported  | Deprecated    |
18e41f4b71Sopenharmony_ci| api/@ohos.nfc.cardEmulation.d.ts        | cardEmulation         | hasHceCapability  | Added    |
19e41f4b71Sopenharmony_ci| api/@ohos.nfc.controller.d.ts        | nfcController         | isNfcAvailable  | Deprecated    |
20e41f4b71Sopenharmony_ci| api/@ohos.nfc.controller.d.ts        | nfcController         | openNfc  | Deprecated    |
21e41f4b71Sopenharmony_ci| api/@ohos.nfc.controller.d.ts        | nfcController         | closeNfc  | Deprecated    |
22e41f4b71Sopenharmony_ci| api/@ohos.nfc.controller.d.ts        | nfcController         | enableNfc  | Added    |
23e41f4b71Sopenharmony_ci| api/@ohos.nfc.controller.d.ts        | nfcController         | disableNfc  | Added    |
24e41f4b71Sopenharmony_ci| api/@ohos.nfc.tag.d.ts        | tag         | getNfcATag  | Deprecated    |
25e41f4b71Sopenharmony_ci| api/@ohos.nfc.tag.d.ts        | tag         | getNfcBTag  | Deprecated    |
26e41f4b71Sopenharmony_ci| api/@ohos.nfc.tag.d.ts        | tag         | getNfcFTag  | Deprecated    |
27e41f4b71Sopenharmony_ci| api/@ohos.nfc.tag.d.ts        | tag         | getNfcVTag  | Deprecated    |
28e41f4b71Sopenharmony_ci| api/@ohos.nfc.tag.d.ts        | tag         | getNfcA  | Added    |
29e41f4b71Sopenharmony_ci| api/@ohos.nfc.tag.d.ts        | tag         | getNfcB  | Added    |
30e41f4b71Sopenharmony_ci| api/@ohos.nfc.tag.d.ts        | tag         | getNfcF  | Added    |
31e41f4b71Sopenharmony_ci| api/@ohos.nfc.tag.d.ts        | tag         | getNfcV  | Added    |
32e41f4b71Sopenharmony_ci| api/tag/tagSession.d.ts        | TagSession          | getTagInfo  | Deprecated    |
33e41f4b71Sopenharmony_ci| api/tag/tagSession.d.ts        | TagSession          | connectTag  | Deprecated    |
34e41f4b71Sopenharmony_ci| api/tag/tagSession.d.ts        | TagSession          | reset  | Deprecated    |
35e41f4b71Sopenharmony_ci| api/tag/tagSession.d.ts        | TagSession          | isTagConnected  | Deprecated    |
36e41f4b71Sopenharmony_ci| api/tag/tagSession.d.ts        | TagSession          | setSendDataTimeout  | Deprecated    |
37e41f4b71Sopenharmony_ci| api/tag/tagSession.d.ts        | TagSession          | getSendDataTimeout  | Deprecated    |
38e41f4b71Sopenharmony_ci| api/tag/tagSession.d.ts        | TagSession          | sendData  | Deprecated    |
39e41f4b71Sopenharmony_ci| api/tag/tagSession.d.ts        | TagSession          | getMaxSendLength  | Deprecated    |
40e41f4b71Sopenharmony_ci| api/tag/tagSession.d.ts        | TagSession          | connect  | Added    |
41e41f4b71Sopenharmony_ci| api/tag/tagSession.d.ts        | TagSession          | resetConnection  | Added    |
42e41f4b71Sopenharmony_ci| api/tag/tagSession.d.ts        | TagSession          | isConnected  | Added    |
43e41f4b71Sopenharmony_ci| api/tag/tagSession.d.ts        | TagSession          | setTimeout  | Added    |
44e41f4b71Sopenharmony_ci| api/tag/tagSession.d.ts        | TagSession          | getTimeout  | Added    |
45e41f4b71Sopenharmony_ci| api/tag/tagSession.d.ts        | TagSession          | transmit  | Added    |
46e41f4b71Sopenharmony_ci| api/tag/tagSession.d.ts        | TagSession          | getMaxTransmitSize  | Added    |
47e41f4b71Sopenharmony_ci
48e41f4b71Sopenharmony_ci**Adaptation Guide**
49e41f4b71Sopenharmony_ci
50e41f4b71Sopenharmony_ciSee the following:
51e41f4b71Sopenharmony_ci[@ohos.nfc.cardEmulation (Standard NFC Card Emulation)](../../../application-dev/reference/apis/js-apis-cardEmulation.md)
52e41f4b71Sopenharmony_ci
53e41f4b71Sopenharmony_ci[@ohos.nfc.controller (Standard NFC)](../../../application-dev/reference/apis/js-apis-nfcController.md)
54e41f4b71Sopenharmony_ci
55e41f4b71Sopenharmony_ci[@ohos.nfc.tag (Standard NFC Tags)](../../../application-dev/reference/apis/js-apis-nfcTag.md)
56e41f4b71Sopenharmony_ci
57e41f4b71Sopenharmony_ci[tagSession (Standard NFC Tag Session)](../../../application-dev/reference/apis/js-apis-tagSession.md)
58e41f4b71Sopenharmony_ci```
59