From 453dfe8d914e8917fbd93ac62446fe9bfef24f47 Mon Sep 17 00:00:00 2001 From: Roland Bewick Date: Fri, 17 Nov 2023 16:09:01 +0700 Subject: [PATCH 1/2] chore: add sendToAlbyAccount deprecation console warning --- src/client.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/client.ts b/src/client.ts index b549e30..ed1e168 100644 --- a/src/client.ts +++ b/src/client.ts @@ -232,6 +232,9 @@ export class Client { args: SendBoostagramToAlbyRequestParams, request_options?: Partial, ) { + console.warn( + "sendToAlbyAccount is deprecated. Please use sendBoostagramToAlbyAccount instead.", + ); return this.sendBoostagramToAlbyAccount(args, request_options); } From b814b4f8f0409e477f882e4cffc1427d42a3bb65 Mon Sep 17 00:00:00 2001 From: Roland Bewick Date: Fri, 17 Nov 2023 16:21:03 +0700 Subject: [PATCH 2/2] chore: add deprecation version comments to sendToAlbyAccount --- src/client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client.ts b/src/client.ts index ed1e168..2ba2538 100644 --- a/src/client.ts +++ b/src/client.ts @@ -226,7 +226,7 @@ export class Client { } /** - * @deprecated please use sendBoostagramToAlbyAccount + * @deprecated please use sendBoostagramToAlbyAccount. Deprecated since v2.7.0. Will be removed in v3.0.0. */ sendToAlbyAccount( args: SendBoostagramToAlbyRequestParams,