github clerk/javascript @clerk/clerk-react@5.26.0

latest releases: @clerk/types@4.92.0, @clerk/clerk-js@5.99.0, @clerk/fastify@2.4.37...
7 months ago

Minor Changes

  • Update useSession to handle pending sessions as signed-out by default, with opt-out via useSession({ treatPendingAsSignedOut: false }) or <ClerkProvider treatPendingAsSignedOut={false} /> (#5525) by @LauraBeatris

  • Update useAuth to handle pending sessions as signed-out by default, with opt-out via useAuth({ treatPendingAsSignedOut: false }) or <ClerkProvider treatPendingAsSignedOut={false} /> (#5507) by @LauraBeatris

Patch Changes

  • Fixes an issue where a race condition was caused by triggering navigations during a call to setActive. (#5515) by @dstaley

  • Introduce clerk.__internal_openCheckout() and clerk.__internal_closeCheckout() methods and remove <Checkout /> from within the <PricingTable /> component. (#5481) by @alexcarpenter

  • Introduce treatPendingAsSignedOut prop to client control components (#5512) by @LauraBeatris

    // Children node only mounts when session is active
    // Example: Organization selection must be completed if enforced
    <SignedIn>
      <p>You have selected an organization!</p>
    </SignedIn>
    // Children node mounts for both active and pending session
    <SignedIn treatPendingAsSignedOut={false}>
      <p>You might not have an organization selected</p>
    </SignedIn>
    // Children node only mounts when session is active
    // Example: Organization selection must be completed if enforced
    <Protect>
      <p>You have selected an organization!</p>
    </Protect>
    // Children node mounts for both active and pending session
    <Protect treatPendingAsSignedOut={false}>
      <p>You might not have an organization selected</p>
    </Protect>
  • Updated dependencies [e1ec52b, bebb6d8, d0d5203, 6112420, 9b25e31]:

    • @clerk/types@4.51.0
    • @clerk/shared@3.4.0

Don't miss a new javascript release

NewReleases is sending notifications on new releases.