Packages

@clerk/shared

4.45.1 · 14 Nov 2026MIT11.8M / weekRepositorynpmAtom feed

Upgrading @clerk/shared From 3.48.1 to 4.0.0

1 release in betweenevery note read

Other targets from 3.48.1Latest4.45.1
  1. 3.48.1yours
  2. 4.0.0target
  3. 30 pre

Before you upgrade

Tick each one off as you go
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking4.0.0

Security

Release by release

  1. 4.0.0

    Migration needed3 Mar 202622 new · 17 fixes
    • Breaking

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

    • Breaking

      Rename internal useBillingHookEnabled to useBillingIsEnabled with improved semantics for authentication and organization context checks.

    • Breaking

      Remove useUserContext, useOrganizationContext, useSessionContext and useClientContext from the shared/react package.

    • Breaking

      Updated returned values of Clerk.checkout() and useCheckout.

10 other lines we could not sort, mostly version bumps
  • Renamed all __unstable_* methods to __internal_* (for internal APIs)

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

    4.0.0
  • 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.

    4.0.0
  • Updating minimum version of Node to v20.9.0

    4.0.0
  • Adjust features parsing to throw errors on unknown scopes.

    4.0.0
  • Remove clerkJSUrl, clerkJSVersion, clerkUIUrl, and clerkUIVersion props from all SDKs. To pin a specific version of @clerk/clerk-js, import the Clerk constructor from @clerk/clerk-js and pass it to ClerkProvider via the Clerk prop. To pin a specific version of @clerk/ui, import ui from @clerk/ui and pass it via the ui prop. This bundles the modules directly with your application instead of loading them from the CDN.

    4.0.0
  • Removes now unused contexts ClientContext, SessionContext, UserContext and OrganizationProvider. We do not anticipate public use of these. If you were using any of these, file an issue to discuss a path forward as they are no longer available even internally.

    4.0.0
  • getToken() now throws ClerkOfflineError instead of returning null when the client is offline.

    4.0.0
  • Update ClerkAPIError.kind value to match class name

    4.0.0
  • Removing deprecated top-level exports from @clerk/shared

    4.0.0

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.