Packages

@clerk/nextjs

7.10.2 · 17 Nov 2026MIT4.2M / weekRepositoryHomepagenpmAtom feed

Your version

7.5.14

7 Jul 2026Where it was published

7.10.7 is the newest release of 7.x.

In short

1 deprecated3 internal

  • Deprecated

    Deprecate createRouteMatcher() in favor of resource-based auth checks.

Release note

Patch Changes

  • Deprecated

    Deprecate createRouteMatcher() in favor of resource-based auth checks.

    Middleware-based auth checks rely on path matching, which can diverge from how Next.js routes requests and leave protected resources reachable.

    For a migration guide, see:
    clerk.com/docs/guides/development/upgrading/upg…

    Instead of protecting routes from middleware, move auth checks into each protected page, layout, API route, or Server Function, for example:

    import { auth } from '@clerk/nextjs/server'
    
    export default async function Page() {
      await auth.protect()
    
      return <h1>Dashboard</h1>
    }

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.