From c5d48dba11f923d29c0c50a6f2d7229685e1ad34 Mon Sep 17 00:00:00 2001 From: Tee Date: Mon, 22 Mar 2021 22:23:29 -0400 Subject: [PATCH] Add set deprication noticess --- src/classes/set.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/classes/set.ts b/src/classes/set.ts index bde2361..bb8f9df 100644 --- a/src/classes/set.ts +++ b/src/classes/set.ts @@ -20,6 +20,9 @@ export class Set implements ISet { return 'sets'; } + /** + * @deprecated `Set.find` is renamed to `findSetById` in version 2. See the **[migration guide](https://github.com/acupoftee/pokemon-tcg-sdk-typescript/blob/master/MIGRATING.md)** for more info. + */ static async find(id: string): Promise { return QueryBuilder.find(this, id) .then(response => { @@ -28,6 +31,9 @@ export class Set implements ISet { .catch(error => Promise.reject(error)); } + /** + * @deprecated `Set.all` is renamed to `getAllSets` in version 2. See the **[migration guide](https://github.com/acupoftee/pokemon-tcg-sdk-typescript/blob/master/MIGRATING.md)** for more info. + */ static async all(): Promise { return QueryBuilder.all(this) .then(response => { @@ -36,6 +42,9 @@ export class Set implements ISet { .catch(error => Promise.reject(error)); } + /** + * @deprecated `Set.where` is renamed to `findSetsByQueries` in version 2. See the **[migration guide](https://github.com/acupoftee/pokemon-tcg-sdk-typescript/blob/master/MIGRATING.md)** for more info. + */ static async where(params: IQuery[]): Promise { return QueryBuilder.where(this, params) .then(response => { @@ -43,4 +52,4 @@ export class Set implements ISet { }) .catch(error => Promise.reject(error)); } -} \ No newline at end of file +}