From 7f7e6f1065820003df1265b6f624bfbaa0e6285d Mon Sep 17 00:00:00 2001 From: wobsoriano Date: Fri, 4 Dec 2026 04:48:26 +0800 Subject: [PATCH 1/5] chore(hono): release 1.0.0 --- .changeset/hono-v1.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/hono-v1.md diff --git a/.changeset/hono-v1.md b/.changeset/hono-v1.md new file mode 100644 index 00000000000..a6afc9d8d8c --- /dev/null +++ b/.changeset/hono-v1.md @@ -0,0 +1,5 @@ +--- +'@clerk/hono': major +--- + +`@clerk/hono` is now stable. This release has no breaking changes. It moves the SDK from `0.x` to `1.0.0`. From c9e199cbd6503516be870e788968a316f9870478 Mon Sep 17 00:00:00 2001 From: Robert Soriano Date: Fri, 4 Dec 2026 05:35:36 +0800 Subject: [PATCH 2/5] Update hono-v1.md --- .changeset/hono-v1.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/hono-v1.md b/.changeset/hono-v1.md index a6afc9d8d8c..cdb122cb8c4 100644 --- a/.changeset/hono-v1.md +++ b/.changeset/hono-v1.md @@ -2,4 +2,4 @@ '@clerk/hono': major --- -`@clerk/hono` is now stable. This release has no breaking changes. It moves the SDK from `0.x` to `1.0.0`. +`@clerk/hono` is now stable. This release has no breaking changes. From a41fd9d6794957109f16e83e8bc1a51f04b9bba6 Mon Sep 17 00:00:00 2001 From: wobsoriano Date: Fri, 4 Dec 2026 05:38:09 +0800 Subject: [PATCH 3/5] chore(hono): add a usage example to the 1.0 changeset --- .changeset/hono-v1.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.changeset/hono-v1.md b/.changeset/hono-v1.md index cdb122cb8c4..bcc30e60ccb 100644 --- a/.changeset/hono-v1.md +++ b/.changeset/hono-v1.md @@ -3,3 +3,24 @@ --- `@clerk/hono` is now stable. This release has no breaking changes. + +```ts +import { Hono } from 'hono'; +import { clerkMiddleware, getAuth } from '@clerk/hono'; + +const app = new Hono(); + +app.use('*', clerkMiddleware()); + +app.get('/protected', c => { + const { userId } = getAuth(c); + + if (!userId) { + return c.json({ error: 'Unauthorized' }, 401); + } + + return c.json({ userId }); +}); + +export default app; +``` From 91a95c42929e1eba99a13eb4cb8793e6b764c1d1 Mon Sep 17 00:00:00 2001 From: wobsoriano Date: Fri, 4 Dec 2026 05:40:26 +0800 Subject: [PATCH 4/5] chore(hono): show fetching the user in the 1.0 changeset --- .changeset/hono-v1.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.changeset/hono-v1.md b/.changeset/hono-v1.md index bcc30e60ccb..d35abbd8ae5 100644 --- a/.changeset/hono-v1.md +++ b/.changeset/hono-v1.md @@ -4,6 +4,8 @@ `@clerk/hono` is now stable. This release has no breaking changes. +## Basic usage + ```ts import { Hono } from 'hono'; import { clerkMiddleware, getAuth } from '@clerk/hono'; @@ -12,14 +14,16 @@ const app = new Hono(); app.use('*', clerkMiddleware()); -app.get('/protected', c => { +app.get('/protected', async c => { const { userId } = getAuth(c); if (!userId) { return c.json({ error: 'Unauthorized' }, 401); } - return c.json({ userId }); + const user = await c.get('clerk').users.getUser(userId); + + return c.json({ user }); }); export default app; From 3a5c4a7158a86fae46e3377293ff26ca1174e4e1 Mon Sep 17 00:00:00 2001 From: wobsoriano Date: Fri, 4 Dec 2026 06:06:55 +0800 Subject: [PATCH 5/5] chore(hono): drop the getUser call from the 1.0 changeset --- .changeset/hono-v1.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.changeset/hono-v1.md b/.changeset/hono-v1.md index d35abbd8ae5..f6cee7597bc 100644 --- a/.changeset/hono-v1.md +++ b/.changeset/hono-v1.md @@ -14,16 +14,14 @@ const app = new Hono(); app.use('*', clerkMiddleware()); -app.get('/protected', async c => { +app.get('/protected', c => { const { userId } = getAuth(c); if (!userId) { return c.json({ error: 'Unauthorized' }, 401); } - const user = await c.get('clerk').users.getUser(userId); - - return c.json({ user }); + return c.json({ userId }); }); export default app;