From d7dc0c747b1b013a04a2f91346c703bf9ca024d2 Mon Sep 17 00:00:00 2001 From: Bryce Kalow Date: Fri, 6 Oct 2023 15:09:21 -0500 Subject: [PATCH 1/3] chore(backend): Remove noisy deprecation warning --- packages/backend/src/api/request.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/packages/backend/src/api/request.ts b/packages/backend/src/api/request.ts index e7ed19bc0b9..75cc94e6902 100644 --- a/packages/backend/src/api/request.ts +++ b/packages/backend/src/api/request.ts @@ -8,7 +8,6 @@ import { API_URL, API_VERSION, constants, USER_AGENT } from '../constants'; import runtime from '../runtime'; import { assertValidSecretKey } from '../util/assertValidSecretKey'; import { joinPaths } from '../util/path'; -import { deprecated } from '../util/shared'; import type { CreateBackendApiOptions } from './factory'; import { deserialize } from './resources/Deserializer'; @@ -51,11 +50,6 @@ type LegacyRequestFunction = (requestOptions: ClerkBackendApiRequestOptions) const withLegacyReturn = (cb: any): LegacyRequestFunction => async (...args) => { - deprecated( - '', - 'Resources return format will switch to `{ data: any, errors: ClerkAPIError[] }` from `data | never` the next major version.', - 'resources-legacy-return', - ); // @ts-ignore const { data, errors, status, statusText } = await cb(...args); if (errors === null) { From 8629be9439752aab3fe2f29488f13590ac31dcd0 Mon Sep 17 00:00:00 2001 From: Bryce Kalow Date: Fri, 6 Oct 2023 15:10:20 -0500 Subject: [PATCH 2/3] chore(repo): Add changeset --- .changeset/moody-coats-serve.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/moody-coats-serve.md diff --git a/.changeset/moody-coats-serve.md b/.changeset/moody-coats-serve.md new file mode 100644 index 00000000000..f0e08cec7dc --- /dev/null +++ b/.changeset/moody-coats-serve.md @@ -0,0 +1,5 @@ +--- +'@clerk/backend': patch +--- + +Remove deprecation warning that is logging more than intended and not actionable for users of our SDKs. From 61d26d282fd614e77e1136918778757d83e049ee Mon Sep 17 00:00:00 2001 From: Bryce Kalow Date: Fri, 6 Oct 2023 15:16:40 -0500 Subject: [PATCH 3/3] chore(backend): Add back deprecated import --- packages/backend/src/api/request.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/backend/src/api/request.ts b/packages/backend/src/api/request.ts index 75cc94e6902..fee69a39486 100644 --- a/packages/backend/src/api/request.ts +++ b/packages/backend/src/api/request.ts @@ -8,6 +8,7 @@ import { API_URL, API_VERSION, constants, USER_AGENT } from '../constants'; import runtime from '../runtime'; import { assertValidSecretKey } from '../util/assertValidSecretKey'; import { joinPaths } from '../util/path'; +import { deprecated } from '../util/shared'; import type { CreateBackendApiOptions } from './factory'; import { deserialize } from './resources/Deserializer';