From 37d8856babb9db8edf763455172c4d22d6035036 Mon Sep 17 00:00:00 2001 From: Dimitris Klouvas Date: Wed, 18 Oct 2023 16:51:45 +0300 Subject: [PATCH] chore(clerk-js,clerk-react): Update JSDocs to mark `setActive` stable (#1917) * chore(clerk-js,clerk-react): Update JSDocs to mark `setActive` stable * Create slimy-hornets-obey.md --- .changeset/slimy-hornets-obey.md | 6 ++++++ packages/clerk-js/src/core/clerk.ts | 3 --- packages/react/src/isomorphicClerk.ts | 3 --- 3 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 .changeset/slimy-hornets-obey.md diff --git a/.changeset/slimy-hornets-obey.md b/.changeset/slimy-hornets-obey.md new file mode 100644 index 0000000000..9c4e7271ab --- /dev/null +++ b/.changeset/slimy-hornets-obey.md @@ -0,0 +1,6 @@ +--- +"@clerk/clerk-js": patch +"@clerk/clerk-react": patch +--- + +Consider `Clerk.setActive` as stable. diff --git a/packages/clerk-js/src/core/clerk.ts b/packages/clerk-js/src/core/clerk.ts index c12f4aebe5..8d9c9b8a8e 100644 --- a/packages/clerk-js/src/core/clerk.ts +++ b/packages/clerk-js/src/core/clerk.ts @@ -583,9 +583,6 @@ export default class Clerk implements ClerkInterface { /** * `setActive` can be used to set the active session and/or organization. - * It will eventually replace `setSession`. - * - * @experimental */ public setActive = async ({ session, organization, beforeEmit }: SetActiveParams): Promise => { if (!this.client) { diff --git a/packages/react/src/isomorphicClerk.ts b/packages/react/src/isomorphicClerk.ts index d51e2a93d1..308cf9e0f6 100644 --- a/packages/react/src/isomorphicClerk.ts +++ b/packages/react/src/isomorphicClerk.ts @@ -346,9 +346,6 @@ export default class IsomorphicClerk { /** * `setActive` can be used to set the active session and/or organization. - * It will eventually replace `setSession`. - * - * @experimental */ setActive = ({ session, organization, beforeEmit }: SetActiveParams): Promise => { if (this.clerkjs) {