From 175179b4ca4714fd98d65724d9bdec30ba00d518 Mon Sep 17 00:00:00 2001 From: Robin Genz Date: Fri, 15 Nov 2024 09:45:49 +0100 Subject: [PATCH 1/2] fix(barcode-scanning): remove deprecated warnings for torch methods Close https://github.com/robingenz/capacitor-mlkit-plugin-demo/issues/27 --- .changeset/stupid-trains-change.md | 5 +++++ packages/barcode-scanning/src/definitions.ts | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 .changeset/stupid-trains-change.md diff --git a/.changeset/stupid-trains-change.md b/.changeset/stupid-trains-change.md new file mode 100644 index 0000000..caba4f2 --- /dev/null +++ b/.changeset/stupid-trains-change.md @@ -0,0 +1,5 @@ +--- +'@capacitor-mlkit/barcode-scanning': patch +--- + +fix: remove deprecated warnings for torch methods diff --git a/packages/barcode-scanning/src/definitions.ts b/packages/barcode-scanning/src/definitions.ts index 54da059..7dac6ff 100644 --- a/packages/barcode-scanning/src/definitions.ts +++ b/packages/barcode-scanning/src/definitions.ts @@ -56,7 +56,6 @@ export interface BarcodeScannerPlugin { * Only available on Android and iOS. * * @since 0.0.1 - * @deprecated Use the [Capacitor Torch](https://capawesome.io/plugins/torch/) plugin instead. */ enableTorch(): Promise; /** @@ -65,7 +64,6 @@ export interface BarcodeScannerPlugin { * Only available on Android and iOS. * * @since 0.0.1 - * @deprecated Use the [Capacitor Torch](https://capawesome.io/plugins/torch/) plugin instead. */ disableTorch(): Promise; /** @@ -74,7 +72,6 @@ export interface BarcodeScannerPlugin { * Only available on Android and iOS. * * @since 0.0.1 - * @deprecated Use the [Capacitor Torch](https://capawesome.io/plugins/torch/) plugin instead. */ toggleTorch(): Promise; /** @@ -83,7 +80,6 @@ export interface BarcodeScannerPlugin { * Only available on Android and iOS. * * @since 0.0.1 - * @deprecated Use the [Capacitor Torch](https://capawesome.io/plugins/torch/) plugin instead. */ isTorchEnabled(): Promise; /** @@ -92,7 +88,6 @@ export interface BarcodeScannerPlugin { * Only available on Android and iOS. * * @since 0.0.1 - * @deprecated Use the [Capacitor Torch](https://capawesome.io/plugins/torch/) plugin instead. */ isTorchAvailable(): Promise; /** From 0c6bd6f4e5c2c44a96163076e8721d88a83ff500 Mon Sep 17 00:00:00 2001 From: Robin Genz Date: Fri, 15 Nov 2024 09:56:37 +0100 Subject: [PATCH 2/2] Delete .changeset/stupid-trains-change.md --- .changeset/stupid-trains-change.md | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 .changeset/stupid-trains-change.md diff --git a/.changeset/stupid-trains-change.md b/.changeset/stupid-trains-change.md deleted file mode 100644 index caba4f2..0000000 --- a/.changeset/stupid-trains-change.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@capacitor-mlkit/barcode-scanning': patch ---- - -fix: remove deprecated warnings for torch methods