Change8

@clerk/nuxt@2.6.13

📦 clerkView on GitHub →
1 deprecations🔧 5 symbols

Summary

This patch deprecates `createRouteMatcher()` encouraging users to adopt Nuxt's native route matching for better integration. Dependencies including @clerk/shared, @clerk/backend, and @clerk/vue have also been updated.

Migration Steps

  1. For API route protection, match paths natively inside `clerkMiddleware()` using `getRequestURL(event)` and checking `pathname`.
  2. For page protection, use Nuxt's built-in route middleware with `definePageMeta({ middleware: 'auth' })`.

Affected Symbols

⚡ Deprecations

  • The function `createRouteMatcher()` is deprecated in favor of Nuxt's native route matching.