chore(nuxt): Deprecate createRouteMatcher#9092
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: 6f1ee33 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
@clerk/astro
@clerk/backend
@clerk/chrome-extension
@clerk/clerk-js
@clerk/electron
@clerk/electron-passkeys
@clerk/eslint-plugin
@clerk/expo
@clerk/expo-passkeys
@clerk/express
@clerk/fastify
@clerk/hono
@clerk/localizations
@clerk/nextjs
@clerk/nuxt
@clerk/react
@clerk/react-router
@clerk/shared
@clerk/tanstack-react-start
@clerk/testing
@clerk/ui
@clerk/upgrade
@clerk/vue
commit: |
API Changes Report
Summary
No API Changes DetectedAll packages have stable APIs with no detected changes. Report generated by Break Check Last ran on |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Repository UI (inherited) Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThis PR deprecates ChangesDeprecate createRouteMatcher
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Comment |
Description
Deprecates
createRouteMatcher()in@clerk/nuxt, following the same pattern as Astro (#8981) and Next.js (#8994). Both the server and client variants get a@deprecatedJSDoc notice and a one-time dev-only runtime warning via@clerk/shared/deprecated; behavior is unchanged.The two variants point at different replacements, matching what the updated docs (clerk/clerk-docs#3426) recommend: the server matcher points to native
event.path/getRequestURL(event).pathnamechecks insideclerkMiddleware(), and the client matcher points to Nuxt's built-in route middleware withdefinePageMeta().Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change
Summary by CodeRabbit
createRouteMatcher()with clear replacement guidance for handling API route paths inclerkMiddleware()and protecting pages via Nuxt route middleware.