From 8893a5e11b80fd294aa4da3e50416542e7feb983 Mon Sep 17 00:00:00 2001 From: dominik-czupryna-withintent <143402866+dominik-czupryna-withintent@users.noreply.github.com> Date: Fri, 31 May 2024 09:51:58 +0200 Subject: [PATCH] chore: 3.2.0 (#1207) --- CHANGELOG.md | 15 + README.md | 18 +- docs/index.html | 98 +- .../BlePlxExample.xcodeproj/project.pbxproj | 14 +- package-lock.json | 27895 ++++++++++++++++ package.json | 4 +- src/BleManager.js | 13 +- src/BleModule.js | 6 +- src/index.d.ts | 6 +- yarn.lock | 13378 -------- 10 files changed, 28011 insertions(+), 13436 deletions(-) create mode 100644 package-lock.json delete mode 100644 yarn.lock 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