Skip to content

Commit 863d10f

Browse files
ci(repo): Version packages
1 parent 7c56495 commit 863d10f

3 files changed

Lines changed: 24 additions & 23 deletions

File tree

.changeset/nextjs-deprecate-route-matcher.md

Lines changed: 0 additions & 22 deletions
This file was deleted.

packages/nextjs/CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,28 @@
11
# Change Log
22

3+
## 7.5.14
4+
5+
### Patch Changes
6+
7+
- Deprecate `createRouteMatcher()` in favor of resource-based auth checks. ([#8994](https://github.com/clerk/javascript/pull/8994)) by [@Ephem](https://github.com/Ephem)
8+
9+
Middleware-based auth checks rely on path matching, which can diverge from how Next.js routes requests and leave protected resources reachable.
10+
11+
For a migration guide, see:
12+
https://clerk.com/docs/guides/development/upgrading/upgrade-guides/migrate-from-create-route-matcher
13+
14+
Instead of protecting routes from middleware, move auth checks into each protected page, layout, API route, or Server Function, for example:
15+
16+
```ts
17+
import { auth } from '@clerk/nextjs/server'
18+
19+
export default async function Page() {
20+
await auth.protect()
21+
22+
return <h1>Dashboard</h1>
23+
}
24+
```
25+
326
## 7.5.13
427

528
### Patch Changes

packages/nextjs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@clerk/nextjs",
3-
"version": "7.5.13",
3+
"version": "7.5.14",
44
"description": "Clerk SDK for NextJS",
55
"keywords": [
66
"clerk",

0 commit comments

Comments
 (0)