Skip to content

Commit c2757f8

Browse files
authored
Update dependencies. (vercel#378)
2 parents 901e4cc + d34aaa5 commit c2757f8

File tree

3 files changed

+1821
-1555
lines changed

3 files changed

+1821
-1555
lines changed

lib/chat/actions.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ async function submitUserMessage(content: string) {
310310
price: z.number().describe('The price of the stock.'),
311311
numberOfShares: z
312312
.number()
313+
.optional()
313314
.describe(
314315
'The **number of shares** for a stock or currency to purchase. Can be optional if the user did not specify it.'
315316
)
@@ -506,7 +507,7 @@ export const AI = createAI<AIState, UIState>({
506507
const session = await auth()
507508

508509
if (session && session.user) {
509-
const aiState = getAIState()
510+
const aiState = getAIState() as Chat
510511

511512
if (aiState) {
512513
const uiState = getUIStateFromAIState(aiState)

package.json

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"scripts": {
4-
"dev": "next dev",
4+
"dev": "next dev --turbo",
55
"build": "next build",
66
"start": "next start",
77
"lint": "next lint",
@@ -13,65 +13,65 @@
1313
"format:check": "prettier --check \"{app,lib,components}**/*.{ts,tsx,mdx}\" --cache"
1414
},
1515
"dependencies": {
16-
"@ai-sdk/openai": "^0.0.9",
17-
"@radix-ui/react-alert-dialog": "^1.0.5",
18-
"@radix-ui/react-dialog": "^1.0.5",
19-
"@radix-ui/react-dropdown-menu": "^2.0.6",
16+
"@ai-sdk/openai": "^0.0.34",
17+
"@radix-ui/react-alert-dialog": "^1.1.1",
18+
"@radix-ui/react-dialog": "^1.1.1",
19+
"@radix-ui/react-dropdown-menu": "^2.1.1",
2020
"@radix-ui/react-icons": "^1.3.0",
21-
"@radix-ui/react-label": "^2.0.2",
22-
"@radix-ui/react-select": "^2.0.0",
23-
"@radix-ui/react-separator": "^1.0.3",
24-
"@radix-ui/react-slot": "^1.0.2",
25-
"@radix-ui/react-switch": "^1.0.3",
26-
"@radix-ui/react-tooltip": "^1.0.7",
27-
"@vercel/analytics": "^1.1.2",
28-
"@vercel/kv": "^1.0.1",
21+
"@radix-ui/react-label": "^2.1.0",
22+
"@radix-ui/react-select": "^2.1.1",
23+
"@radix-ui/react-separator": "^1.1.0",
24+
"@radix-ui/react-slot": "^1.1.0",
25+
"@radix-ui/react-switch": "^1.1.0",
26+
"@radix-ui/react-tooltip": "^1.1.2",
27+
"@vercel/analytics": "^1.3.1",
28+
"@vercel/kv": "^2.0.0",
2929
"@vercel/og": "^0.6.2",
30-
"ai": "^3.1.5",
30+
"ai": "^3.2.16",
3131
"class-variance-authority": "^0.7.0",
32-
"clsx": "^2.1.0",
32+
"clsx": "^2.1.1",
3333
"d3-scale": "^4.0.2",
34-
"date-fns": "^3.3.1",
34+
"date-fns": "^3.6.0",
3535
"focus-trap-react": "^10.2.3",
36-
"framer-motion": "^10.18.0",
37-
"geist": "^1.2.1",
38-
"nanoid": "^5.0.4",
39-
"next": "14.2.3",
36+
"framer-motion": "^11.2.12",
37+
"geist": "^1.3.0",
38+
"nanoid": "^5.0.7",
39+
"next": "14.2.4",
4040
"next-auth": "5.0.0-beta.4",
41-
"next-themes": "^0.2.1",
42-
"openai": "^4.24.7",
43-
"react": "^18.2.0",
44-
"react-dom": "^18.2.0",
45-
"react-intersection-observer": "^9.5.3",
41+
"next-themes": "^0.3.0",
42+
"openai": "^4.52.2",
43+
"react": "^18.3.1",
44+
"react-dom": "^18.3.1",
45+
"react-intersection-observer": "^9.10.3",
4646
"react-markdown": "^8.0.7",
4747
"react-syntax-highlighter": "^15.5.0",
4848
"react-textarea-autosize": "^8.5.3",
4949
"remark-gfm": "^3.0.1",
5050
"remark-math": "^5.1.1",
51-
"sonner": "^1.4.3",
52-
"usehooks-ts": "^2.16.0",
53-
"zod": "^3.22.4"
51+
"sonner": "^1.5.0",
52+
"usehooks-ts": "^3.1.0",
53+
"zod": "^3.23.8"
5454
},
5555
"devDependencies": {
56-
"@tailwindcss/typography": "^0.5.10",
56+
"@tailwindcss/typography": "^0.5.13",
5757
"@types/d3-scale": "^4.0.8",
58-
"@types/node": "^20.11.5",
59-
"@types/react": "^18.2.48",
60-
"@types/react-dom": "^18.2.18",
61-
"@types/react-syntax-highlighter": "^15.5.11",
62-
"@typescript-eslint/parser": "^6.19.0",
63-
"autoprefixer": "^10.4.17",
58+
"@types/node": "^20.14.9",
59+
"@types/react": "^18.3.3",
60+
"@types/react-dom": "^18.3.0",
61+
"@types/react-syntax-highlighter": "^15.5.13",
62+
"@typescript-eslint/parser": "^7.14.1",
63+
"autoprefixer": "^10.4.19",
6464
"dotenv": "^16.4.5",
6565
"eslint": "^8.56.0",
6666
"eslint-config-next": "14.1.0",
6767
"eslint-config-prettier": "^9.1.0",
6868
"eslint-plugin-tailwindcss": "^3.14.0",
69-
"postcss": "^8.4.33",
70-
"prettier": "^3.2.4",
71-
"tailwind-merge": "^2.2.0",
72-
"tailwindcss": "^3.4.1",
69+
"postcss": "^8.4.39",
70+
"prettier": "^3.3.2",
71+
"tailwind-merge": "^2.3.0",
72+
"tailwindcss": "^3.4.4",
7373
"tailwindcss-animate": "^1.0.7",
74-
"typescript": "^5.3.3"
74+
"typescript": "^5.5.2"
7575
},
7676
"packageManager": "[email protected]"
7777
}

0 commit comments

Comments
 (0)