Skip to content

build(deps): bump @clerk/nextjs from 4.31.8 to 6.13.0#583

Closed
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/clerk/nextjs-6.13.0
Closed

build(deps): bump @clerk/nextjs from 4.31.8 to 6.13.0#583
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/clerk/nextjs-6.13.0

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Apr 7, 2025

Bumps @clerk/nextjs from 4.31.8 to 6.13.0.

Release notes

Sourced from @​clerk/nextjs's releases.

@​clerk/nextjs@​6.13.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 Next.js SDK:

    // app/api/webhooks/route.ts
    import { verifyWebhook } from '@clerk/nextjs/webhooks';
    export async function POST(req: Request) {
    try {
    const evt = await verifyWebhook(req);
    // 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

... (truncated)

Changelog

Sourced from @​clerk/nextjs's changelog.

6.13.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 Next.js SDK:

    // app/api/webhooks/route.ts
    import { verifyWebhook } from '@clerk/nextjs/webhooks';
    export async function POST(req: Request) {
    try {
    const evt = await verifyWebhook(req);
    // 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

... (truncated)

Commits
  • f95de07 ci(repo): Version packages (#5466)
  • fe065a9 feat(nextjs,astro,backend): Redirect to tasks on auth.protect and `auth.red...
  • cd6ee92 feat(backend,react-router,nuxt,astro,nextjs,tanstack-react-start,express,fast...
  • 7d5e361 chore(nextjs): Remove telemetry event from clerkMiddleware() (#5501)
  • 747fd01 chore(nextjs): Update dependency next to v14.2.26 (#5477)
  • 880177c fix(nextjs): Update clerkMiddleware type (#5470)
  • 45701bd ci(repo): Version packages (#5461)
  • 44c0074 chore(nextjs): Update dependency next to v14.2.25 [SECURITY] (#5418)
  • 7fac110 ci(repo): Version packages (#5452)
  • 7f6993a ci(repo): Version packages (#5444)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [@clerk/nextjs](https://github.com/clerk/javascript/tree/HEAD/packages/nextjs) from 4.31.8 to 6.13.0.
- [Release notes](https://github.com/clerk/javascript/releases)
- [Changelog](https://github.com/clerk/javascript/blob/main/packages/nextjs/CHANGELOG.md)
- [Commits](https://github.com/clerk/javascript/commits/@clerk/nextjs@6.13.0/packages/nextjs)

---
updated-dependencies:
- dependency-name: "@clerk/nextjs"
  dependency-version: 6.13.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript labels Apr 7, 2025
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Apr 7, 2025

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

Name Status Preview Comments Updated (UTC)
fork-commit-merge-web ❌ Failed (Inspect) Apr 7, 2025 7:49pm

@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot Bot commented on behalf of github Apr 8, 2025

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot dependabot Bot deleted the dependabot/npm_and_yarn/clerk/nextjs-6.13.0 branch April 8, 2025 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant