diff --git a/CHANGELOG.md b/CHANGELOG.md index a134f974..65c41509 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,21 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). +## [3.2.0] - 2024-05-31 + +### Added + +- Android Instance will be checked before calling its method, an error will be visible on the RN side +- Added information related to Android 14 to the documentation. + +### Changed + +- Changed destroyClient, cancelTransaction, setLogLevel, startDeviceScan, stopDeviceScan calls to promises to allow error reporting if it occurs. + +### Fixed + +- Fixed one of the functions calls that clean up the BLE instance after it is destroyed. + ## [3.1.2] - 2023-10-26 ### Added diff --git a/README.md b/README.md index ae9995be..68d7a55e 100644 --- a/README.md +++ b/README.md @@ -43,19 +43,19 @@ For old RN versions (<0.60) please check [old README](./docs/README_V1.md) (1.x) for the old instructions or [migration guide](./docs/MIGRATION_V1.md). | React Native | 3.1.2 | -| ------------ | ------------------ | -| 0.72.6 | :white_check_mark: | -| 0.71.13 | :white_check_mark: | -| 0.70.13 | :white_check_mark: | -| Expo 49 | :white_check_mark: | +|--------------| ------------------ | +| 0.74.1 | :white_check_mark: | +| 0.69.6 | :white_check_mark: | +| Expo 51 | :white_check_mark: | ## Recent Changes -**3.1.2** +**3.2.0** -- Added rawScanRecord to advertising data -- Fixed onDisconnected event -- Fixed missing advertising data fields on iOS +- Added Android Instance checking before calling its method, an error will be visible on the RN side +- Added information related to Android 14 to the documentation. +- Changed destroyClient, cancelTransaction, setLogLevel, startDeviceScan, stopDeviceScan calls to promises to allow error reporting if it occurs. +- Fixed one of the functions calls that clean up the BLE instance after it is destroyed. [Current version changes](CHANGELOG.md) [All previous changes](CHANGELOG-pre-3.0.0.md) diff --git a/docs/index.html b/docs/index.html index a42dfab7..c30ec164 100644 --- a/docs/index.html +++ b/docs/index.html @@ -2,7 +2,7 @@ - react-native-ble-plx 3.1.2 | Documentation + react-native-ble-plx 3.2.0 | Documentation @@ -15,7 +15,7 @@

react-native-ble-plx

-
3.1.2
+
3.2.0
- destroy() + destroy
+ + + + + + +
Returns
+ Promise<void>: + Promise may return an error when the function cannot be called. + Device (devices may be scanned multiple times). It's first argument is potential Error @@ -2812,15 +2853,14 @@

Device . -

- -
- - - - + +
Returns
+ Promise<void>: + the promise may be rejected if the operation is impossible to perform. + + @@ -2845,7 +2885,7 @@

- stopDeviceScan() + stopDeviceScan