github clerk/javascript @clerk/astro@2.3.0

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

Minor Changes

  • Introduce protect-fallback slot to avoid naming conflicts with Astro's server islands fallback slot. (#5196) by @wobsoriano

    When using Clerk's <Protect> component with server:defer, you can now use both slots:

    • fallback: Default loading content
    • protect-fallback: Shows when a user doesn't have the role or permission to access the protected content

    Regular usage without server islands:

    <Protect role="admin">
      <p slot="fallback">Not an admin</p>
      <p>You're an admin</p>
    </Protect>

    Example with server islands:

    <Protect server:defer role="admin">
      <p slot="fallback">Loading...</p>
      <p slot="protect-fallback">Not an admin</p>
      <p>You're an admin</p>
    </Protect>
  • Surface new pending session as a signed-in state (#5136) by @LauraBeatris

Patch Changes

Don't miss a new javascript release

NewReleases is sending notifications on new releases.