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