createRouteMatcher migration guide + eslint-plugin docs#3452
Merged
jacekradko merged 20 commits intoJun 30, 2026
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Ephem
marked this pull request as ready for review
June 24, 2026 12:45
Ephem
commented
Jun 25, 2026
| }, | ||
| { | ||
| "title": "Migrating away from `createRouteMatcher()`", | ||
| "href": "/docs/guides/development/upgrading/upgrade-guides/migrating-from-create-route-matcher" |
Member
Author
There was a problem hiding this comment.
If this URL changes, this PR also needs updating: clerk/javascript#8994
Contributor
|
Posted my docs review! The largest updates were: eslint-plugin.mdx
migrating-from-create-route-matcher.mdx
|
…amples - Document auth.protect() response per request type (redirect for document requests, 401 for Server Actions, 404 for other non-document requests) in the Bulk Fixer partial and the manual migration tab, matching protect.ts - Show the bare `await auth.protect()` the CLI actually inserts (it doesn't destructure userId) in the Route Handler and Server Function examples - Point Pages Router users to the getAuth() reference instead of a dead-end "migrate manually" with no example - Give the whole-app tab a complete eslint.config.mjs, not a dangling object - Soften "in late 2025" to "in 2025"; align "Remove the Middleware gate" headings with their bodies; fix a double space and a redundant comment
jacekradko
approved these changes
Jun 29, 2026
…3473) Co-authored-by: Alexis Aguilar <98043211+alexisintech@users.noreply.github.com>
jacekradko
merged commit Jun 30, 2026
4295067
into
jacek/middleware-auth-resource-guidance
2 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Important
This does not represent a PR that is ready to merge to main. My intent is to merge it into #3426
That PR represents what we will finally merge for the
createRouteMatcherdeprecation and will require more work.🔎 Previews:
What does this solve? What changed?
createRouteMatcherdocs to the bottom of theclerkMiddlewarereferencecreateRouteMatcher()migration guide and moves it to the Upgrades sectionNote that in contrast to #3426 I decided to include the wording that
createRouteMatcheris deprecated here, as I know expect that deprecation to land first, with these docs as an immediate follow-up.Deadline
Other resources