@clerk/nextjs@7.5.14
📦 clerkView on GitHub →
⚡ 1 deprecations🔧 1 symbols
Summary
This patch deprecates `createRouteMatcher()` in favor of more robust resource-based authentication checks within individual components or routes. Dependencies for shared, react, and backend packages have also been updated.
Migration Steps
- Instead of protecting routes from middleware using `createRouteMatcher()`, move auth checks into each protected page, layout, API route, or Server Function, utilizing `await auth.protect()` within those contexts.
Affected Symbols
⚡ Deprecations
- The function `createRouteMatcher()` is deprecated in favor of resource-based auth checks.