Skip to content

ci(repo): Version packages - #4358

Merged
colinclerk merged 1 commit into
mainfrom
changeset-release/main
Oct 23, 2024
Merged

ci(repo): Version packages#4358
colinclerk merged 1 commit into
mainfrom
changeset-release/main

Conversation

@clerk-cookie

@clerk-cookie clerk-cookie commented Oct 17, 2024

Copy link
Copy Markdown
Collaborator

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/nextjs@6.0.0

Major Changes

  • Stop <ClerkProvider> from opting applications into dynamic rendering. A new prop, <ClerkProvider dynamic> can be used to opt-in to dynamic rendering and make auth data available during server-side rendering. The RSC auth() helper should be preferred for accessing auth data during dynamic rendering. (#4366) by @jacekradko

  • @clerk/nextjs: Converting auth() and clerkClient() interfaces to be async (#4366) by @jacekradko

    @clerk/upgrade: Adding required codemod for @clerk/nextjs breaking changes

    Migration guide

    auth() is now async

    Previously the auth() method from @clerk/nextjs/server was synchronous.

    import { auth } from "@clerk/nextjs/server";
    
    export function GET() {
      const { userId } = auth();
      return new Response(JSON.stringify({ userId }));
    }

    The auth method now becomes asynchronous. You will need to make the following changes to the snippet above to make it compatible.

    - export function GET() {
    + export async function GET() {
    -   const { userId } = auth();
    +   const { userId } = await auth();
      return new Response(JSON.stringify({ userId }));
    }

    Clerk middleware auth is now async

    import { clerkClient, clerkMiddleware } from '@clerk/nextjs/server';
    import { NextResponse } from 'next/server';
    
    export default clerkMiddleware(async (auth, request) => {
      const resolvedAuth = await auth();
    
      const count = await resolvedAuth.users.getCount();
    
      if (count) {
        return NextResponse.redirect(new URL('/new-url', request.url));
      }
    });
    
    export const config = {
      matcher: [...],
    };

    clerkClient() is now async

    Previously the clerkClient() method from @clerk/nextjs/server was synchronous.

    import { clerkClient, clerkMiddleware } from '@clerk/nextjs/server';
    import { NextResponse } from 'next/server';
    
    export default clerkMiddleware((auth, request) => {
      const client = clerkClient();
    
      const count = await client.users?.getCount();
    
      if (count) {
        return NextResponse.redirect(new URL('/new-url', request.url));
      }
    });
    
    export const config = {
      matcher: [...],
    };

    The method now becomes async. You will need to make the following changes to the snippet above to make it compatible.

    - export default clerkMiddleware((auth, request) => {
    - const client = clerkClient();
    + export default clerkMiddleware(async (auth, request) => {
    + const client = await clerkClient();
      const count = await client.users?.getCount();
    
      if (count) {
    }
  • Support unstable_rethrow inside clerkMiddleware. (#4366) by @jacekradko

    We changed the errors thrown by protect() inside clerkMiddleware in order for unstable_rethrow to recognise them and rethrow them.

  • Removes deprecated APIs: authMiddleware(), redirectToSignIn(), and redirectToSignUp(). See the migration guide to learn how to update your usage. (#4366) by @jacekradko

Minor Changes

Patch Changes

@clerk/astro@1.4.0

Minor Changes

Patch Changes

@clerk/backend@1.15.0

Minor Changes

    • Added legalAcceptedAt on User (#4367) by @octoper

    • Added legalAcceptedAt and skipLegalChecks on CreateUserParams and UpdateUserParams

    • Added legal_accepted_at on UserJSON

Patch Changes

@clerk/clerk-js@5.28.0

Minor Changes

  • Add experimental support for new UI components (#4114) by @BRKalow

Patch Changes

  • Bug fix: Always receive a new session verification object when UserVerification component mounts. (#4359) by @panteliselef

  • Updated dependencies [3b50b67bd, 3b50b67bd]:

    • @clerk/shared@2.10.0
    • @clerk/types@4.27.0
    • @clerk/localizations@3.3.1

@clerk/elements@0.17.0

Minor Changes

  • Add experimental support for new UI components (#4114) by @BRKalow

Patch Changes

  • Remove @clerk/clerk-react as a dev depedency. Move @clerk/shared to depedencies (previously devDepedencies). (#4114) by @BRKalow

  • Updated dependencies [3b50b67bd, 3b50b67bd]:

    • @clerk/shared@2.10.0
    • @clerk/types@4.27.0

@clerk/clerk-react@5.13.0

Minor Changes

Patch Changes

@clerk/shared@2.10.0

Minor Changes

  • Add experimental support for new UI components (#4114) by @BRKalow

Patch Changes

@clerk/types@4.27.0

Minor Changes

  • Add experimental support for new UI components (#4114) by @BRKalow

Patch Changes

  • Fix SignInProps/SignUpProps __experimental type to allow for arbitrary properties (#4114) by @BRKalow

@clerk/upgrade@1.1.0

Minor Changes

  • @clerk/nextjs: Converting auth() and clerkClient() interfaces to be async (#4366) by @jacekradko

    @clerk/upgrade: Adding required codemod for @clerk/nextjs breaking changes

    Migration guide

    auth() is now async

    Previously the auth() method from @clerk/nextjs/server was synchronous.

    import { auth } from "@clerk/nextjs/server";
    
    export function GET() {
      const { userId } = auth();
      return new Response(JSON.stringify({ userId }));
    }

    The auth method now becomes asynchronous. You will need to make the following changes to the snippet above to make it compatible.

    - export function GET() {
    + export async function GET() {
    -   const { userId } = auth();
    +   const { userId } = await auth();
      return new Response(JSON.stringify({ userId }));
    }

    Clerk middleware auth is now async

    import { clerkClient, clerkMiddleware } from '@clerk/nextjs/server';
    import { NextResponse } from 'next/server';
    
    export default clerkMiddleware(async (auth, request) => {
      const resolvedAuth = await auth();
    
      const count = await resolvedAuth.users.getCount();
    
      if (count) {
        return NextResponse.redirect(new URL('/new-url', request.url));
      }
    });
    
    export const config = {
      matcher: [...],
    };

    clerkClient() is now async

    Previously the clerkClient() method from @clerk/nextjs/server was synchronous.

    import { clerkClient, clerkMiddleware } from '@clerk/nextjs/server';
    import { NextResponse } from 'next/server';
    
    export default clerkMiddleware((auth, request) => {
      const client = clerkClient();
    
      const count = await client.users?.getCount();
    
      if (count) {
        return NextResponse.redirect(new URL('/new-url', request.url));
      }
    });
    
    export const config = {
      matcher: [...],
    };

    The method now becomes async. You will need to make the following changes to the snippet above to make it compatible.

    - export default clerkMiddleware((auth, request) => {
    - const client = clerkClient();
    + export default clerkMiddleware(async (auth, request) => {
    + const client = await clerkClient();
      const count = await client.users?.getCount();
    
      if (count) {
    }

@clerk/chrome-extension@1.3.21

Patch Changes

@clerk/clerk-expo@2.2.27

Patch Changes

@clerk/express@1.3.2

Patch Changes

@clerk/fastify@2.0.4

Patch Changes

@clerk/localizations@3.3.1

Patch Changes

@clerk/remix@4.2.40

Patch Changes

@clerk/clerk-sdk-node@5.0.53

Patch Changes

@clerk/tanstack-start@0.4.16

Patch Changes

@clerk/testing@1.3.14

Patch Changes

@clerk/themes@2.1.38

Patch Changes

@github-actions
github-actions Bot force-pushed the changeset-release/main branch 3 times, most recently from 77a434c to b93ff84 Compare October 22, 2024 22:48
@brkalow brkalow closed this Oct 22, 2024
@brkalow brkalow reopened this Oct 22, 2024
@brkalow
brkalow enabled auto-merge (squash) October 22, 2024 23:55
@github-actions
github-actions Bot force-pushed the changeset-release/main branch from b93ff84 to be509dd Compare October 22, 2024 23:59
@brkalow brkalow closed this Oct 22, 2024
auto-merge was automatically disabled October 22, 2024 23:59

Pull request was closed

@brkalow brkalow reopened this Oct 22, 2024
@brkalow

brkalow commented Oct 23, 2024

Copy link
Copy Markdown
Member

!allow-major

@brkalow
brkalow enabled auto-merge (squash) October 23, 2024 00:19
@dstaley

dstaley commented Oct 23, 2024

Copy link
Copy Markdown
Member

commenting for reach

@brkalow
brkalow disabled auto-merge October 23, 2024 00:29
@colinclerk
colinclerk merged commit 180f5a5 into main Oct 23, 2024
@colinclerk
colinclerk deleted the changeset-release/main branch October 23, 2024 00:29
wobsoriano pushed a commit that referenced this pull request Feb 8, 2025
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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.

4 participants