From fa383c0cc32386a3b7c4532a83f4505c3fd86d1a Mon Sep 17 00:00:00 2001 From: Zolyn Date: Tue, 6 Aug 2024 23:07:43 +0800 Subject: [PATCH 1/2] fix: import `AuthObject` from public api --- src/app/api/middleware/auth/index.ts | 2 +- src/app/api/middleware/auth/utils.test.ts | 2 +- src/app/api/middleware/auth/utils.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/api/middleware/auth/index.ts b/src/app/api/middleware/auth/index.ts index ab9ac7f2162a..c0875bb1c17d 100644 --- a/src/app/api/middleware/auth/index.ts +++ b/src/app/api/middleware/auth/index.ts @@ -1,4 +1,4 @@ -import { AuthObject } from '@clerk/backend/internal'; +import { AuthObject } from '@clerk/backend'; import { getAuth } from '@clerk/nextjs/server'; import { NextRequest } from 'next/server'; diff --git a/src/app/api/middleware/auth/utils.test.ts b/src/app/api/middleware/auth/utils.test.ts index ed1b0df30322..e3aa504fba47 100644 --- a/src/app/api/middleware/auth/utils.test.ts +++ b/src/app/api/middleware/auth/utils.test.ts @@ -1,4 +1,4 @@ -import { type AuthObject } from '@clerk/backend/internal'; +import { type AuthObject } from '@clerk/backend'; import { beforeEach, describe, expect, it, vi } from 'vitest'; import { getAppConfig } from '@/config/app'; diff --git a/src/app/api/middleware/auth/utils.ts b/src/app/api/middleware/auth/utils.ts index 3888d997a307..8511270b7880 100644 --- a/src/app/api/middleware/auth/utils.ts +++ b/src/app/api/middleware/auth/utils.ts @@ -1,4 +1,4 @@ -import { type AuthObject } from '@clerk/backend/internal'; +import { type AuthObject } from '@clerk/backend'; import { importJWK, jwtVerify } from 'jose'; import { getAppConfig } from '@/config/app'; From 12ac4486a9210165bbba7b13b2ae1ee15bb157eb Mon Sep 17 00:00:00 2001 From: Arvin Xu Date: Wed, 7 Aug 2024 02:03:41 +0800 Subject: [PATCH 2/2] Update package.json --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index a8cc1b134daf..567faee043f0 100644 --- a/package.json +++ b/package.json @@ -108,7 +108,7 @@ "@azure/openai": "1.0.0-beta.12", "@cfworker/json-schema": "^1.12.8", "@clerk/localizations": "2.0.0", - "@clerk/nextjs": "^5.2.6", + "@clerk/nextjs": "^5.2.14", "@clerk/themes": "^2.1.10", "@google/generative-ai": "^0.16.0", "@icons-pack/react-simple-icons": "^9.6.0", @@ -163,7 +163,7 @@ "numeral": "^2.0.6", "nuqs": "^1.17.4", "ollama": "^0.5.2", - "openai": "^4.52.3", + "openai": "~4.54.0", "partial-json": "^0.1.7", "pg": "^8.12.0", "pino": "^9.2.0",