Packages

@clerk/chrome-extension

3.1.113 · 20 Nov 2026MIT129.4k / weekRepositoryHomepagenpmAtom feed

Your version

3.0.0

major3 Mar 2026Where it was published

3.1.113 is the newest release of 3.x.

In short

4 breaking2 removed6 new2 fixed2 changed4 internal

  • Breaking

    Renamed __unstable__createClerkClient to createClerkClient (exported from @clerk/chrome-extension/background).

  • Breaking

    Refactor React SDK hooks to subscribe to auth state via useSyncExternalStore. This is a mostly internal refactor to unlock future improvements, but includes a few breaking changes and fixes.

  • Breaking

    Require Node.js 20.9.0 in all packages

  • Breaking

    Introduce <Show when={...}> as the cross-framework authorization control component and remove <Protect>, <SignedIn>, and <SignedOut> in favor of <Show>.

  • Removed

    Removed deprecated billing-related props (__unstable_manageBillingUrl, __unstable_manageBillingLabel, __unstable_manageBillingMembersLimit) and experimental__forceOauthFirst

  • Removed

    Remove clerkJSVariant option and headless bundle. Use prefetchUI={false} instead.

Security

1 advisory affects 3.0.0; 3.1.15 fixes them

Release note

Major Changes

  • Breaking

    Align experimental/unstable prefixes to use consistent naming:

    • Renamed all __unstable_* methods to __internal_* (for internal APIs)

    • Renamed all experimental__* and experimental_* methods to __experimental_* (for beta features)

    • Removed deprecated billing-related props (__unstable_manageBillingUrl, __unstable_manageBillingLabel, __unstable_manageBillingMembersLimit) and experimental__forceOauthFirst

  • Breaking

    Renamed __unstable__createClerkClient to createClerkClient (exported from @clerk/chrome-extension/background).

  • Breaking

    Refactor React SDK hooks to subscribe to auth state via useSyncExternalStore. This is a mostly internal refactor to unlock future improvements, but includes a few breaking changes and fixes.

    Breaking changes:

    • Removes ability to pass in initialAuthState to useAuth

      • This was added for internal use and is no longer needed

      • Instead pass in initialState to the <ClerkProvider>, or dynamic if using the Next package

      • See your specific SDK documentation for more information on Server Rendering

    Fixes:

    • A bug where useAuth would sometimes briefly return the initialState rather than undefined

      • This could in certain situations incorrectly lead to a brief user: null on the first page after signing in, indicating a signed out state

    • Hydration mismatches in certain rare scenarios where subtrees would suspend and hydrate only after clerk-js had loaded fully

  • Breaking

    Require Node.js 20.9.0 in all packages

  • Breaking

    Introduce <Show when={...}> as the cross-framework authorization control component and remove <Protect>, <SignedIn>, and <SignedOut> in favor of <Show>.

Minor Changes

  • Removed

    Remove clerkJSVariant option and headless bundle. Use prefetchUI={false} instead.

  • Add ui prop to ClerkProvider for passing @clerk/ui

  • Export useOrganizationCreationDefaults hook to fetch suggested organization name and logo from default naming rules

  • Add /types subpath export to re-export types from @clerk/shared/types along with SDK-specific types. This allows importing Clerk types directly from the SDK package (e.g., import type { UserResource } from '@clerk/react/types') without needing to install @clerk/types as a separate dependency.

  • Add HandleSSOCallback component which handles the SSO callback during custom flows, including support for sign-in-or-up.

  • Added new createClerkClient() export from @clerk/chrome-extension/client

    import { createClerkClient } from '@clerk/chrome-extension/client';
    
    const publishableKey = process.env.CLERK_PUBLISHABLE_KEY;
    // Use createClerkClient in a popup or side panel
    const clerk = createClerkClient({ publishableKey });
    
    // Use createClerkClient in a background service worker
    const clerk = await createClerkClient({ publishableKey: 'pk_...', background: true });

    createClerkClient() from @clerk/chrome-extension/background is deprecated.

Patch Changes

  • Rename dev browser APIs to remove JWT terminology. The dev browser identifier is now a generic ID, so internal naming has been updated to reflect this. No runtime behavior changes.

  • Add exports for useWaitlist hook.

  • Use new @clerk/react package.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.