Skip to content

Commit 746c4c0

Browse files
committed
chore: try with nitro/deps/h3
1 parent 375af7d commit 746c4c0

File tree

10 files changed

+14
-36
lines changed

10 files changed

+14
-36
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
"ai": "^5.0.60",
1818
"date-fns": "^4.1.0",
1919
"drizzle-orm": "^0.44.6",
20-
"h3": "beta",
2120
"katex": "^0.16.23",
2221
"mermaid": "^11.12.0",
2322
"nitro": "npm:nitro-nightly",

pnpm-lock.yaml

Lines changed: 4 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server/routes/api/chats.get.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { defineEventHandler } from 'h3'
1+
import { defineEventHandler } from 'nitro/deps/h3'
22
import { useUserSession } from '../../utils/session'
33
import { useDrizzle, tables, eq } from '../../utils/drizzle'
44

server/routes/api/chats.post.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { defineEventHandler, HTTPError, readValidatedBody } from 'h3'
1+
import { defineEventHandler, HTTPError, readValidatedBody } from 'nitro/deps/h3'
22
import { z } from 'zod'
33
import { useUserSession } from '../../utils/session'
44
import { useDrizzle, tables } from '../../utils/drizzle'

server/routes/api/chats/[id].delete.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { defineEventHandler, getValidatedRouterParams } from 'h3'
1+
import { defineEventHandler, getValidatedRouterParams } from 'nitro/deps/h3'
22
import { useUserSession } from '../../../utils/session'
33
import { useDrizzle, tables, eq, and } from '../../../utils/drizzle'
44
import { z } from 'zod'

server/routes/api/chats/[id].get.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { defineEventHandler, getValidatedRouterParams } from 'h3'
1+
import { defineEventHandler, getValidatedRouterParams } from 'nitro/deps/h3'
22
import { useUserSession } from '../../../utils/session'
33
import { useDrizzle, and } from '../../../utils/drizzle'
44
import { z } from 'zod'

server/routes/api/chats/[id].post.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type { UIMessage } from 'ai'
44
import { z } from 'zod'
55
import { useUserSession } from '../../../utils/session'
66
import { useDrizzle, tables, eq, and } from '../../../utils/drizzle'
7-
import { defineEventHandler, getValidatedRouterParams, readValidatedBody, HTTPError } from 'h3'
7+
import { defineEventHandler, getValidatedRouterParams, readValidatedBody, HTTPError } from 'nitro/deps/h3'
88

99
export default defineEventHandler(async (event) => {
1010
const session = await useUserSession(event)

server/routes/api/session.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { defineEventHandler, isMethod } from "h3"
2-
import { useUserSession } from "../../utils/session"
1+
import { defineEventHandler, isMethod } from 'nitro/deps/h3'
2+
import { useUserSession } from '../../utils/session'
33

44
export default defineEventHandler(async (event) => {
55
if (isMethod(event, 'DELETE')) {

server/routes/auth/github.get.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { FetchError, $fetch } from 'ofetch'
22
import { getRandomValues } from 'uncrypto'
3-
import type { H3Event } from 'h3'
4-
import { eventHandler, getQuery, redirect, HTTPError, getRequestURL, setCookie, deleteCookie, getCookie } from 'h3'
3+
import type { H3Event } from 'nitro/deps/h3'
4+
import { eventHandler, getQuery, redirect, HTTPError, getRequestURL, setCookie, deleteCookie, getCookie } from 'nitro/deps/h3'
55
import { withQuery } from 'ufo'
66
import { defu } from 'defu'
77
import type { Endpoints } from '@octokit/types'

server/utils/session.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { useSession, type HTTPEvent, type Session } from 'h3'
1+
import { useSession, type HTTPEvent, type Session } from 'nitro/deps/h3'
22

33
export interface UserSession extends Session {
44
user?: {

0 commit comments

Comments
 (0)