Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(repo): Version packages #5524

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

clerk-cookie
Copy link
Collaborator

@clerk-cookie clerk-cookie commented Apr 3, 2025

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@clerk/[email protected]

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/[email protected]

Minor Changes

  • Introduces ver as JWT claim to allow versioning of the session token. (#5521) by @octoper

  • Added constants.Headers.ContentSecurityPolicy and constants.Headers.Nonce (#5493) by @jacekradko

Patch Changes

@clerk/[email protected]

Minor Changes

  • 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

  • import { clerkMiddleware } from '@clerk/nextjs/server';
    
    export default clerkMiddleware(async auth => {
      const { userId, redirectToSignUp } = await auth();
    
      if (!userId) {
        return redirectToSignUp();
      }
    });
  • Added Content Security Policy (CSP) header generation functionality to clerkMiddleware with support for both standard and strict-dynamic modes. Key features: (#5493) by @jacekradko

    • Automatic generation of CSP headers with default security policies compatible with Clerk requirements
    • Support for both standard and strict-dynamic CSP modes
    • Automatic nonce generation for strict-dynamic mode
    • Ability to add custom directives to match project requirements

    Example

    export default clerkMiddleware(
      async (auth, request) => {
        if (!isPublicRoute(request)) {
          await auth.protect();
        }
      },
      {
        contentSecurityPolicy: {
          mode: "strict-dynamic",
          directives: {
            "connect-src": ["external.api.com"],
            "script-src": ["external.scripts.com"]
          }
        }
      }
    );
    

Patch Changes

@clerk/[email protected]

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/[email protected]

Minor Changes

  • 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

@clerk/[email protected]

Minor Changes

  • Introduces ver as JWT claim to allow versioning of the session token. (#5521) by @octoper

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

  • Mark ver claim as experimental (#5548) by @octoper

@clerk/[email protected]

Minor Changes

  • Update useSession to handle pending sessions as signed-out by default, with opt-out via useSession({ treatPendingAsSignedOut: false }) or app.use(clerkPlugin, { treatPendingAsSignedOut: false }) (#5525) by @LauraBeatris

  • Update useAuth to handle pending sessions as signed-out by default, with opt-out via useAuth({ treatPendingAsSignedOut: false }) or app.use(clerkPlugin, { 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, 9b25e31]:

@clerk/[email protected]

Patch Changes

@clerk/[email protected]

Patch Changes

@clerk/[email protected]

Patch Changes

@clerk/[email protected]

Patch Changes

@clerk/[email protected]

Patch Changes

@clerk/[email protected]

Patch Changes

@clerk/[email protected]

Patch Changes

@clerk/[email protected]

Patch Changes

@clerk/[email protected]

Patch Changes

@clerk/[email protected]

Patch Changes

@clerk/[email protected]

Patch Changes

@clerk/[email protected]

Patch Changes

@clerk/[email protected]

Patch Changes

@clerk/[email protected]

Patch Changes

@clerk/[email protected]

Patch Changes

Copy link

vercel bot commented Apr 3, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
clerk-js-sandbox ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 7, 2025 11:06am

@github-actions github-actions bot force-pushed the changeset-release/main branch from 2ab2880 to 4ec833b Compare April 3, 2025 22:56
@github-actions github-actions bot force-pushed the changeset-release/main branch from 4ec833b to 7250ba3 Compare April 3, 2025 23:15
@github-actions github-actions bot force-pushed the changeset-release/main branch from 7250ba3 to 87c4457 Compare April 4, 2025 15:05
@github-actions github-actions bot force-pushed the changeset-release/main branch from 87c4457 to bdb1186 Compare April 4, 2025 18:24
@github-actions github-actions bot force-pushed the changeset-release/main branch from bdb1186 to a1990cd Compare April 4, 2025 20:28
@github-actions github-actions bot force-pushed the changeset-release/main branch from a1990cd to 0e8eee7 Compare April 4, 2025 22:54
@github-actions github-actions bot force-pushed the changeset-release/main branch from 0e8eee7 to 1b15b5f Compare April 7, 2025 07:58
@github-actions github-actions bot force-pushed the changeset-release/main branch from 1b15b5f to 3ec92df Compare April 7, 2025 08:46
@github-actions github-actions bot force-pushed the changeset-release/main branch from 3ec92df to 073fbcb Compare April 7, 2025 09:47
@github-actions github-actions bot force-pushed the changeset-release/main branch from 073fbcb to 806151d Compare April 7, 2025 09:58
@github-actions github-actions bot force-pushed the changeset-release/main branch from 806151d to 0192501 Compare April 7, 2025 10:08
@github-actions github-actions bot force-pushed the changeset-release/main branch from 0192501 to 02fa888 Compare April 7, 2025 10:22
@github-actions github-actions bot force-pushed the changeset-release/main branch from 02fa888 to aa87080 Compare April 7, 2025 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant