Skip to content

Latest commit

 

History

History
2203 lines (1441 loc) · 120 KB

File metadata and controls

2203 lines (1441 loc) · 120 KB

@clerk/astro

2.16.12

Patch Changes

  • Updated dependencies [6b26afc]:
    • @clerk/backend@2.29.2

2.16.11

Patch Changes

  • Updated dependencies [9320c4f, a4e6932]:
    • @clerk/backend@2.29.1
    • @clerk/shared@3.42.0
    • @clerk/types@4.101.10

2.16.10

Patch Changes

  • Updated dependencies [ede3e2a, 03dd374]:
    • @clerk/backend@2.29.0
    • @clerk/shared@3.41.1
    • @clerk/types@4.101.9

2.16.9

Patch Changes

2.16.8

Patch Changes

2.16.7

Patch Changes

  • Updated dependencies [e448757]:
    • @clerk/backend@2.27.0

2.16.6

Patch Changes

  • Allow reordering API Keys and Billing pages in <UserProfile /> and <OrganizationProfile />. (#7383) by @wobsoriano

    Example:

    export function CustomUserProfile() {
      return (
        <UserProfile>
          <UserProfile.Page label='apiKeys' />
          <UserProfile.Page label='billing' />
        </UserProfile>
      );
    }
  • Updated dependencies [b117ebc, 6dbb02b]:

    • @clerk/shared@3.39.0
    • @clerk/backend@2.26.0
    • @clerk/types@4.101.6

2.16.5

Patch Changes

2.16.4

Patch Changes

2.16.3

Patch Changes

  • Updated dependencies [f85abda, 36e43cc, 337430b]:
    • @clerk/shared@3.36.0
    • @clerk/backend@2.24.0
    • @clerk/types@4.101.3

2.16.2

Patch Changes

  • Updated dependencies [d8f59a6]:
    • @clerk/shared@3.35.2
    • @clerk/backend@2.23.2
    • @clerk/types@4.101.2

2.16.1

Patch Changes

  • Updated dependencies [a9c13ca]:
    • @clerk/shared@3.35.1
    • @clerk/backend@2.23.1
    • @clerk/types@4.101.1

2.16.0

Minor Changes

Patch Changes

2.15.1

Patch Changes

2.15.0

Minor Changes

Patch Changes

  • Updated dependencies [613cb97]:
    • @clerk/shared@3.33.0
    • @clerk/backend@2.21.0
    • @clerk/types@4.99.0

2.14.6

Patch Changes

2.14.5

Patch Changes

  • Updated dependencies [a474c59, b505755, 5536429]:
    • @clerk/shared@3.31.1
    • @clerk/backend@2.20.0
    • @clerk/types@4.97.2

2.14.4

Patch Changes

  • Updated dependencies [85b5acc, ea65d39, b09b29e]:
    • @clerk/types@4.97.1
    • @clerk/shared@3.31.0
    • @clerk/backend@2.19.3

2.14.3

Patch Changes

  • Deprecate @clerk/types in favor of @clerk/shared/types (#7022) by @nikosdouvlis

    The @clerk/types package is now deprecated. All type definitions have been consolidated and moved to @clerk/shared/types to improve consistency across the Clerk ecosystem.

    Backward Compatibility:

    The @clerk/types package will remain available and will continue to re-export all types from @clerk/shared/types to ensure backward compatibility. Existing applications will continue to work without any immediate breaking changes. However, we strongly recommend migrating to @clerk/shared/types as new type definitions and updates will only be added to @clerk/shared/types starting with the next major release.

    Migration Steps:

    Please update your imports from @clerk/types to @clerk/shared/types:

    // Before
    import type { ClerkResource, UserResource } from '@clerk/types';
    
    // After
    import type { ClerkResource, UserResource } from '@clerk/shared/types';

    What Changed:

    All type definitions including:

    • Resource types (User, Organization, Session, etc.)
    • API response types
    • Configuration types
    • Authentication types
    • Error types
    • And all other shared types

    Have been moved from packages/types/src to packages/shared/src/types and are now exported via @clerk/shared/types.

  • Updated dependencies [3e0ef92, 2587aa6]:

    • @clerk/shared@3.30.0
    • @clerk/types@4.97.0
    • @clerk/backend@2.19.2

2.14.2

Patch Changes

2.14.1

Patch Changes

  • Updated dependencies [4d46e4e, a42a015, 8ebbf1e]:
    • @clerk/types@4.95.1
    • @clerk/backend@2.19.0
    • @clerk/shared@3.28.3

2.14.0

Minor Changes

Patch Changes

  • Updated dependencies [a172d51, 947d0f5]:
    • @clerk/types@4.95.0
    • @clerk/shared@3.28.2
    • @clerk/backend@2.18.3

2.13.9

Patch Changes

  • Updated dependencies [d8147fb]:
    • @clerk/shared@3.28.1
    • @clerk/backend@2.18.2

2.13.8

Patch Changes

2.13.7

Patch Changes

2.13.6

Patch Changes

  • Updated dependencies [fba4781, a1f6714]:
    • @clerk/types@4.92.0
    • @clerk/backend@2.17.2
    • @clerk/shared@3.27.3

2.13.5

Patch Changes

2.13.4

Patch Changes

  • Updated dependencies [ea2bc26, 37028ca]:
    • @clerk/backend@2.17.0
    • @clerk/types@4.90.0
    • @clerk/shared@3.27.1

2.13.3

Patch Changes

2.13.2

Patch Changes

2.13.1

Patch Changes

2.13.0

Minor Changes

Patch Changes

2.12.0

Minor Changes

  • Introduces machine authentication, supporting four token types: api_key, oauth_token, m2m_token, and session_token. For backwards compatibility, session_token remains the default when no token type is specified. This enables machine-to-machine authentication and use cases such as API keys and OAuth integrations. Existing applications continue to work without modification. (#6671) by @wobsoriano

    You can specify which token types are allowed by using the acceptsToken option in the auth() local. This option can be set to a specific type, an array of types, or 'any' to accept all supported tokens.

    Example usage in endpoints:

    export const GET: APIRoute = ({ locals }) => {
      const authObject = locals.auth({ acceptsToken: 'any' });
    
      if (authObject.tokenType === 'session_token') {
        console.log('this is session token from a user');
      } else {
        console.log('this is some other type of machine token (api_key | oauth_token | m2m_token)');
        console.log('more specifically, a ' + authObject.tokenType);
      }
    
      return new Response(JSON.stringify({}));
    };

    In middleware:

    import { clerkMiddleware, createRouteMatcher } from '@clerk/astro/server';
    
    const isProtectedRoute = createRouteMatcher(['/api(.*)']);
    
    export const onRequest = clerkMiddleware((auth, context) => {
      const { userId } = auth({ acceptsToken: 'api_key' });
    
      if (!userId && isProtectedRoute(context.request)) {
        return new Response('Unauthorized', { status: 401 });
      }
    });

Patch Changes

2.11.11

Patch Changes

  • Updated dependencies [fced4fc, e6e19d2, 1b1e8b1]:
    • @clerk/types@4.84.1
    • @clerk/shared@3.24.1
    • @clerk/backend@2.12.1

2.11.10

Patch Changes

2.11.9

Patch Changes

2.11.8

Patch Changes

  • Updated dependencies [600c648]:
    • @clerk/shared@3.23.0
    • @clerk/types@4.83.0
    • @clerk/backend@2.10.1

2.11.7

Patch Changes

2.11.6

Patch Changes

2.11.5

Patch Changes

  • Updated dependencies [8dc6bad, aa6a3c3, db50c47]:
    • @clerk/types@4.80.0
    • @clerk/backend@2.9.3
    • @clerk/shared@3.21.2

2.11.4

Patch Changes

  • Updated dependencies [413468c, 7b7eb1f]:
    • @clerk/shared@3.21.1
    • @clerk/types@4.79.0
    • @clerk/backend@2.9.2

2.11.3

Patch Changes

  • Updated dependencies [5b24129]:
    • @clerk/shared@3.21.0
    • @clerk/types@4.78.0
    • @clerk/backend@2.9.1

2.11.2

Patch Changes

2.11.1

Patch Changes

2.11.0

Minor Changes

Patch Changes

2.10.15

Patch Changes

  • Add ability to define a machine secret key to Clerk BAPI client function (#6479) by @wobsoriano

    const clerkClient = createClerkClient({ machineSecretKey: 'ak_xxxxx' })
    
    clerkClient.m2mTokens.create({...})
  • Updated dependencies [1ad16da, 4edef81, 6ff416f, e82f177, 696f8e1, f318d22, 0d27281, 1cc66ab]:

    • @clerk/types@4.74.0
    • @clerk/backend@2.7.0
    • @clerk/shared@3.18.1

2.10.14

Patch Changes

2.10.13

Patch Changes

2.10.12

Patch Changes

2.10.11

Patch Changes

  • Updated dependencies [2bbeaf3, b0fdc9e]:
    • @clerk/backend@2.6.0
    • @clerk/types@4.70.1
    • @clerk/shared@3.15.1

2.10.10

Patch Changes

  • Updated dependencies [cd59c0e, cd59c0e]:
    • @clerk/types@4.70.0
    • @clerk/shared@3.15.0
    • @clerk/backend@2.5.2

2.10.9

Patch Changes

2.10.8

Patch Changes

2.10.7

Patch Changes

  • Updated dependencies [2a90b68, af50905]:
    • @clerk/types@4.67.0
    • @clerk/shared@3.12.3
    • @clerk/backend@2.4.5

2.10.6

Patch Changes

  • Updated dependencies [8ee859c]:
    • @clerk/shared@3.12.2
    • @clerk/types@4.66.1
    • @clerk/backend@2.4.4

2.10.5

Patch Changes

  • Updated dependencies [025e304, dedf487, b96114e]:
    • @clerk/types@4.66.0
    • @clerk/backend@2.4.3
    • @clerk/shared@3.12.1

2.10.4

Patch Changes

2.10.3

Patch Changes

2.10.2

Patch Changes

2.10.1

Patch Changes

  • Extract internal ProtectProps type to shared types to eliminate duplication across SDKs (#6197) by @wobsoriano

  • Updated dependencies [02a1f42, edc0bfd]:

    • @clerk/shared@3.10.1
    • @clerk/types@4.62.1
    • @clerk/backend@2.3.1

2.10.0

Minor Changes

  • Introduce feature or plan based authorization (#6188) by @wobsoriano

    <Protect />

    Plan

    <Protect plan="my-plan" />

    Feature

    <Protect feature="my-feature" />

    Scoped per user or per org

    <Protect feature="org:my-feature" />
    <Protect feature="user:my-feature" />
    <Protect plan="org:my-plan" />
    <Protect plan="user:my-plan" />

    useAuth() in React

    Plan

    const { has } = useAuth();
    has({ plan: 'my-plan' });

    Feature

    const { has } = useAuth();
    has({ feature: 'my-feature' });

    Scoped per user or per org

    const { has } = useAuth();
    
    has({ feature: 'org:my-feature' });
    has({ feature: 'user:my-feature' });
    has({ plan: 'user:my-plan' });
    has({ plan: 'org:my-plan' });

Patch Changes

2.9.2

Patch Changes

2.9.1

Patch Changes

2.9.0

Minor Changes

  • Machine authentication is now supported for advanced use cases via the backend SDK. You can use clerkClient.authenticateRequest to validate machine tokens (such as API keys, OAuth tokens, and machine-to-machine tokens). No new helpers are included in these packages yet. (#5689) by @wobsoriano

    Example (Astro):

    import { clerkClient } from '@clerk/astro/server';
    
    export const GET: APIRoute = ({ request }) => {
      const requestState = await clerkClient.authenticateRequest(request, {
        acceptsToken: 'api_key',
      });
    
      if (!requestState.isAuthenticated) {
        return new Response(401, { message: 'Unauthorized' });
      }
    
      return new Response(JSON.stringify(requestState.toAuth()));
    };
  • The svix dependency is no longer needed when using the verifyWebhook() function. verifyWebhook() was refactored to not rely on svix anymore while keeping the same functionality and behavior. (#6059) by @royanger

    If you previously installed svix to use verifyWebhook() you can uninstall it now:

    npm uninstall svix

Patch Changes

2.8.2

Patch Changes

2.8.1

Patch Changes

  • Updated dependencies [6ed3dfc, 22c3363, ac6b231]:
    • @clerk/types@4.59.2
    • @clerk/backend@1.33.1
    • @clerk/shared@3.9.4

2.8.0

Minor Changes

  • Introduce treatPendingAsSignedOut option to getAuth and auth from clerkMiddleware (#5757) by @LauraBeatris

    By default, treatPendingAsSignedOut is set to true, which means pending sessions are treated as signed-out. You can set this option to false to treat pending sessions as authenticated.

    // `pending` sessions will be treated as signed-out by default
    const { userId } = getAuth(req, locals);
    // Both `active` and `pending` sessions will be treated as authenticated when `treatPendingAsSignedOut` is false
    const { userId } = getAuth(req, locals, { treatPendingAsSignedOut: false });
    clerkMiddleware((auth, context) => {
      const { redirectToSignIn, userId } = auth({ treatPendingAsSignedOut: false });
    
      // Both `active` and `pending` sessions will be treated as authenticated when `treatPendingAsSignedOut` is false
      if (!userId && isProtectedRoute(context.request)) {
        return redirectToSignIn();
      }
    });

Patch Changes

2.7.5

Patch Changes

  • Updated dependencies [c305b31, b813cbe, 6bb480e]:
    • @clerk/types@4.59.1
    • @clerk/backend@1.32.3
    • @clerk/shared@3.9.2

2.7.4

Patch Changes

2.7.3

Patch Changes

  • Updated dependencies [1ff6d6e, fbf3cf4]:
    • @clerk/shared@3.9.0
    • @clerk/types@4.58.1
    • @clerk/backend@1.32.1

2.7.2

Patch Changes

  • Export <CreateOrganization /> Astro component (#5876) by @wobsoriano

    Usage:

    ---
    import { CreateOrganization } from '@clerk/astro/components';
    ---
    
    <CreateOrganization />
  • Updated dependencies [0769a9b, 0f5145e, afdfd18, b7c51ba, 437b53b, 5217155]:

    • @clerk/backend@1.32.0
    • @clerk/types@4.58.0
    • @clerk/shared@3.8.2

2.7.1

Patch Changes

2.7.0

Minor Changes

Patch Changes

2.6.13

Patch Changes

  • Updated dependencies [9ec0a73, d9222fc]:
    • @clerk/types@4.56.3
    • @clerk/backend@1.31.2
    • @clerk/shared@3.7.8

2.6.12

Patch Changes

  • Updated dependencies [225b9ca]:
    • @clerk/types@4.56.2
    • @clerk/backend@1.31.1
    • @clerk/shared@3.7.7

2.6.11

Patch Changes

2.6.10

Patch Changes

  • Fix handshake redirect loop in applications deployed to Netlify with a Clerk development instance. (#5656) by @wobsoriano

  • Updated dependencies [387bf62, 2716622, 294da82, 4a8fe40]:

    • @clerk/types@4.56.1
    • @clerk/shared@3.7.6
    • @clerk/backend@1.30.2

2.6.9

Patch Changes

2.6.8

Patch Changes

  • Updated dependencies [ba19465, 8b25035]:
    • @clerk/backend@1.30.0
    • @clerk/types@4.55.1
    • @clerk/shared@3.7.4

2.6.7

Patch Changes

  • Updated dependencies [33201bf, 4334598, 0ae0403]:
    • @clerk/types@4.55.0
    • @clerk/backend@1.29.2
    • @clerk/shared@3.7.3

2.6.6

Patch Changes

2.6.5

Patch Changes

2.6.4

Patch Changes

2.6.3

Patch Changes

2.6.2

Patch Changes

2.6.1

Patch Changes

  • Updated dependencies [f6f275d]:
    • @clerk/backend@1.27.1
    • @clerk/types@4.51.1
    • @clerk/shared@3.4.1

2.6.0

Minor Changes

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

Patch Changes

  • 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, 2cceeba, 9b25e31]:

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

2.5.0

Minor Changes

  • Introduce a verifyWebhook() function to verify incoming Clerk webhook requests and process the payload. This function handles webhook signature verification using Svix and is now available across all backend and fullstack SDKs. (#5468) by @wobsoriano

    To get started, install svix, which Clerk uses to verify its webhooks:

    npm install svix

    Then in your webhook route handler, import verifyWebhook() from the Astro SDK:

    // pages/api/webhooks.ts
    import { verifyWebhook } from '@clerk/astro/webhooks';
    
    export const POST = ({ request }) => {
      try {
        const evt = await verifyWebhook(request);
    
        // Do something with payload
        const { id } = evt.data;
        const eventType = evt.type;
        console.log(`Received webhook with ID ${id} and event type of ${eventType}`);
        console.log('Webhook payload:', body);
    
        return new Response('Webhook received', { status: 200 });
      } catch (err) {
        console.error('Error: Could not verify webhook:', err);
        return new Response('Error: Verification error', {
          status: 400,
        });
      }
    };

    For more information on how to sync Clerk data to your app with webhooks, see our guide.

  • Redirect to tasks on auth.protect and auth.redirectToSignIn (#5440) by @LauraBeatris

Patch Changes

2.4.5

Patch Changes

  • Updated dependencies [e20fb6b, 77e6462]:
    • @clerk/shared@3.2.3
    • @clerk/types@4.50.1
    • @clerk/backend@1.25.8

2.4.4

Patch Changes

2.4.3

Patch Changes

  • Updated dependencies [27d66a5, 466ed13]:
    • @clerk/backend@1.25.6
    • @clerk/types@4.49.2
    • @clerk/shared@3.2.1

2.4.2

Patch Changes

  • Updated dependencies [892bc0e, 892bc0e]:
    • @clerk/backend@1.25.5
    • @clerk/shared@3.2.0

2.4.1

Patch Changes

  • Updated dependencies [facefaf, 3910ebe, e513333]:
    • @clerk/backend@1.25.4
    • @clerk/types@4.49.1
    • @clerk/shared@3.1.0

2.4.0

Minor Changes

  • Deprecate out of date jwt types in favour of existing that are up-to-date. (#5354) by @panteliselef

Patch Changes

2.3.3

Patch Changes

2.3.2

Patch Changes

2.3.1

Patch Changes

2.3.0

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

2.2.1

Patch Changes

2.2.0

Minor Changes

  • Add support for type-safe environment variables using the astro:env API. (#5104) by @wobsoriano

    The integration now provides a type-safe schema for all Clerk environment variables by default. You can use the environment variables like so:

    import { PUBLIC_CLERK_PUBLISHABLE_KEY } from 'astro:env/client';
    import { CLERK_SECRET_KEY } from 'astro:env/server';

    To override this behavior, you can disable the feature by setting enableEnvSchema to false:

    export default defineConfig({
      integrations: [clerk({ enableEnvSchema: false })],
    });

Patch Changes

2.1.20

Patch Changes

2.1.19

Patch Changes

2.1.18

Patch Changes

2.1.17

Patch Changes

2.1.16

Patch Changes

2.1.15

Patch Changes

2.1.14

Patch Changes

2.1.13

Patch Changes

2.1.12

Patch Changes

2.1.11

Patch Changes

2.1.10

Patch Changes

2.1.9

Patch Changes

2.1.8

Patch Changes

2.1.7

Patch Changes

2.1.6

Patch Changes

2.1.5

Patch Changes

2.1.4

Patch Changes

2.1.3

Patch Changes

2.1.2

Patch Changes

2.1.1

Patch Changes

2.1.0

Minor Changes

  • Switching to use ^ for semver ranges of internal @clerk/ production dependencies. (#4664) by @jacekradko

Patch Changes

2.0.1

Patch Changes

  • Addresses: CVE-2024-55565i (#4744) by @renovate

    nanoid (aka Nano ID) before 5.0.9 mishandles non-integer values. 3.3.8 is also a fixed version.

  • Updated dependencies [cd72a27a75863dfd94b0a00ed5b2d03231556bc0]:

    • @clerk/types@4.39.2
    • @clerk/backend@1.20.3
    • @clerk/shared@2.19.4

2.0.0

Major Changes

  • Recently Astro released its v5. Read their migration guide to learn more. (#4721) by @wobsoriano

    @clerk/astro@2.0.0 supports Astro v4.15.0 and above, including v5. If you're using Astro v3, you'll need to upgrade your Astro version as v3 support has been removed. If you need to stay on Astro v3, stick with your current version.

    The @clerk/astro@2.0.0 upgrade itself doesn't have any required code changes as only internal dependencies and requirements were updated.

Patch Changes

1.5.6

Patch Changes

1.5.5

Patch Changes

1.5.4

Patch Changes

1.5.3

Patch Changes

1.5.2

Patch Changes

1.5.1

Patch Changes

1.5.0

Minor Changes

1.4.17

Patch Changes

1.4.16

Patch Changes

1.4.15

Patch Changes

1.4.14

Patch Changes

1.4.13

Patch Changes

1.4.12

Patch Changes

1.4.11

Patch Changes

1.4.10

Patch Changes

1.4.9

Patch Changes

1.4.8

Patch Changes

1.4.7

Patch Changes

1.4.6

Patch Changes

1.4.5

Patch Changes

1.4.2

Patch Changes

1.4.1

Patch Changes

  • Updated dependencies [3fdcdbf88, 1c7e105a3]:
    • @clerk/types@4.28.0
    • @clerk/backend@1.15.1
    • @clerk/shared@2.10.1

1.4.0

Minor Changes

Patch Changes

1.3.16

Patch Changes

  • Updated dependencies [e1a26547a]:
    • @clerk/backend@1.14.1

1.3.15

Patch Changes

1.3.14

Patch Changes

  • Updated dependencies [d64e54c40, 2ba2fd148]:
    • @clerk/shared@2.9.1
    • @clerk/types@4.25.1
    • @clerk/backend@1.13.10

1.3.13

Patch Changes

  • Updated dependencies [358be296a]:
    • @clerk/backend@1.13.9

1.3.12

Patch Changes

  • Updated dependencies [fb932e5cf]:
    • @clerk/shared@2.9.0
    • @clerk/types@4.25.0
    • @clerk/backend@1.13.8

1.3.11

Patch Changes

  • Updated dependencies [f6fb8b53d, 4a8570590]:
    • @clerk/types@4.24.0
    • @clerk/backend@1.13.7
    • @clerk/shared@2.8.5

1.3.10

Patch Changes

1.3.9

Patch Changes

1.3.8

Patch Changes

1.3.7

Patch Changes

1.3.6

Patch Changes

  • Updated dependencies [02babaccb]:
    • @clerk/backend@1.13.2

1.3.5

Patch Changes

  • Updated dependencies [3743eb911]:
    • @clerk/shared@2.8.1
    • @clerk/backend@1.13.1

1.3.4

Patch Changes

  • Updated dependencies [e578b1599]:
    • @clerk/backend@1.13.0

1.3.3

Patch Changes

1.3.2

Patch Changes

1.3.1

Patch Changes

  • Allow child elements in unstyled Astro components. (#4122) by @wobsoriano

    Usage:

    ---
    import { SignInButton } from '@clerk/components/astro';
    ---
    
    <SignInButton asChild>
      <button>Sign in with Clerk</button>
    </SignInButton>
  • Fixes an issue where control components in client-side rendered apps are always hidden. (#4131) by @wobsoriano

  • Updated dependencies [b97b2c1ca, 8c6909d46]:

    • @clerk/backend@1.11.0
    • @clerk/types@4.20.1
    • @clerk/shared@2.7.1

1.3.0

Minor Changes

  • Add support for custom pages and links in the <OrganizationProfile /> Astro component. (#4096) by @wobsoriano

Patch Changes

1.2.6

Patch Changes

1.2.5

Patch Changes

  • Fixes an issue where not setting an element in an unstyled component causes a TypeScript error. (#4057) by @wobsoriano

  • Updated dependencies [82593173a, afad9af89]:

    • @clerk/types@4.18.0
    • @clerk/backend@1.9.1
    • @clerk/shared@2.6.1

1.2.4

Patch Changes

1.2.3

Patch Changes

  • Updated dependencies [c1389492d]:
    • @clerk/types@4.16.0
    • @clerk/backend@1.8.3
    • @clerk/shared@2.5.5

1.2.2

Patch Changes

  • Updated dependencies [0158c774a, 8be1a7abc]:
    • @clerk/types@4.15.1
    • @clerk/backend@1.8.2
    • @clerk/shared@2.5.4

1.2.1

Patch Changes

  • Fixes a bug where subscribing to the $clerkStore nanostore would give incorrect values. (#4008) by @wobsoriano

  • Updated dependencies [247b3fd75]:

    • @clerk/types@4.15.0
    • @clerk/backend@1.8.1
    • @clerk/shared@2.5.3

1.2.0

Minor Changes

  • Add support for custom pages and links in the <UserProfile /> Astro component. (#3987) by @wobsoriano

  • Add support for Astro static and hybrid outputs. (#3911) by @wobsoriano

Patch Changes

  • Fix incorrect authentication state when subscribing to client stores. (#4000) by @wobsoriano

  • Updated dependencies [ed7baa048]:

    • @clerk/backend@1.8.0

1.1.0

Minor Changes

  • Add support for custom menu items in the <UserButton /> Astro component. (#3969) by @wobsoriano

  • Inject windowNavigate through router functions. (#3922) by @panteliselef

Patch Changes

  • Remove dependency @clerk/clerk-js. (#3965) by @panteliselef

    Since clerk-js is being hotloaded it is unnecessary to keep the npm package as a dependency.

  • Remove duplicate headers set in Clerk middleware (#3948) by @wobsoriano

  • Updated dependencies [dc0e1c33d, dc94c0834]:

    • @clerk/types@4.14.0
    • @clerk/backend@1.7.0
    • @clerk/shared@2.5.2

1.0.12

Patch Changes

1.0.11

Patch Changes

  • Updated dependencies [59d5f19d3, 4e6c94e3f]:
    • @clerk/shared@2.5.0
    • @clerk/clerk-js@5.14.0
    • @clerk/types@4.13.0
    • @clerk/backend@1.6.2

1.0.10

Patch Changes

  • Internal change: Use AuthObject type import from @clerk/backend. (#3844) by @kduprey

  • Updated dependencies [d7bf0f87c, 9b2aeacb3]:

    • @clerk/backend@1.6.1
    • @clerk/clerk-js@5.13.2
    • @clerk/types@4.12.1
    • @clerk/shared@2.4.5

1.0.9

Patch Changes

  • Updated dependencies [069103c8f]:
    • @clerk/clerk-js@5.13.1

1.0.8

Patch Changes

  • Updated dependencies [7e94fcf0f]:
    • @clerk/backend@1.6.0
    • @clerk/clerk-js@5.13.0
    • @clerk/types@4.12.0
    • @clerk/shared@2.4.4

1.0.7

Patch Changes

  • Updated dependencies [568186cad, 407195270]:
    • @clerk/clerk-js@5.12.0
    • @clerk/types@4.11.0
    • @clerk/backend@1.5.2
    • @clerk/shared@2.4.3

1.0.6

Patch Changes

  • Updated dependencies [992e5960c]:
    • @clerk/backend@1.5.1

1.0.5

Patch Changes

  • Fixed a bug where the <Protect /> component would not validate any properties passed (#3846) by @wobsoriano

  • Updated dependencies [fde5b5e7e, aa06f3ba7, 80e647731]:

    • @clerk/backend@1.5.0
    • @clerk/clerk-js@5.11.0
    • @clerk/types@4.10.0
    • @clerk/shared@2.4.2

1.0.4

Patch Changes

  • Introduce option to opt-out of telemetry data collection (#3808) by @wobsoriano

  • Allow the handler of clerkMiddleware to return undefined. When undefined is returned, clerkMiddleware implicitly calls await next(). (#3792) by @wobsoriano

  • Updated dependencies [b48689705, 17bbe0199, 4e61f8d27]:

    • @clerk/clerk-js@5.10.2
    • @clerk/types@4.9.1
    • @clerk/backend@1.4.3
    • @clerk/shared@2.4.1

1.0.3

Patch Changes

  • Updated dependencies [d465d7069]:
    • @clerk/backend@1.4.2

1.0.2

Patch Changes

  • Updated dependencies [045fb93cb]:
    • @clerk/backend@1.4.1
    • @clerk/clerk-js@5.10.1

1.0.1

Patch Changes

1.0.0

Major Changes

Patch Changes

  • Allow for client side navigation inside UI components and improves the UX while navigating in components with path routing. (#3734) by @panteliselef

0.0.4

Patch Changes

  • Introduce <ClerkLoaded/> and <ClerkLoading/> React components (#3724) by @wobsoriano

0.0.3

Patch Changes

  • Update existing env variables that is still using PUBLIC_ASTRO_APP prefix to PUBLIC_. by @nikosdouvlis

  • Move @clerk/astro/components/* to @clerk/astro/components by @nikosdouvlis

    - import { UserProfile } from "@clerk/astro/components/interactive"
    + import { UserProfile } from "@clerk/astro/components"
    
    - import { Protect } from "@clerk/astro/components/control"
    + import { Protect } from "@clerk/astro/components"
    
    - import { SignInButton } from "@clerk/astro/components/unstyled"
    + import { SignInButton } from "@clerk/astro/components"
  • Simplify submodules and drop the bundled variant. by @nikosdouvlis

    Moved

    • @clerk/astro/client/react to @clerk/astro/react
    • @clerk/astro/client/stores to @clerk/astro/client Dropped
    • @clerk/astro/bundled
    • @clerk/astro/client/bundled
    • @clerk/astro/internal/bundled
    • @clerk/astro/integration
    • @clerk/astro/integration/bundled
  • Support Astro.locals.auth().redirectToSignIn() by @nikosdouvlis

    This allows for redirectingToSignIn at the page level

  • Add a reusable ID generation function by @nikosdouvlis

  • Remove @nanostores/react from dependency. by @nikosdouvlis

  • Introduce <AuthenticateWithRedirectCallback/> as an Astro and as a React component by @nikosdouvlis

  • Updated dependencies [df7d856d5, df7d856d5]:

    • @clerk/clerk-js@5.9.0
    • @clerk/types@4.8.0
    • @clerk/backend@1.3.2
    • @clerk/shared@2.3.3

0.0.2

Patch Changes

  • Add an Astro component and a React UI Component for Google One Tap. (#3676) by @panteliselef

  • Add unstyled authentication button components for Astro and React integration (#3656) by @wobsoriano

  • Introduce a shared component for interactive components that handles UI mounting (#3664) by @wobsoriano

  • Improve stream processing performance (#3673) by @wobsoriano

  • Drop convenience Astro wrappers for React components (#3682) by @wobsoriano

  • Change prefix for public env variables to PUBLIC_. The previous prefix was PUBLIC_ASTRO_APP_. (#3669) by @panteliselef

    • After this change the publishable key from should be set as PUBLIC_CLERK_PUBLISHABLE_KEY=xxxxx
  • Implement telemetry for nanostores and middleware usage; include SDK metadata. (#3662) by @wobsoriano

  • Bug fix: Removed import.meta from integration to avoid breaking app during build. (#3675) by @panteliselef

  • Updated dependencies [09f905a89, 6a98c084e, 5642b2616]:

    • @clerk/clerk-js@5.8.1
    • @clerk/backend@1.3.1

0.0.1

Patch Changes