Skip to content

Update next version#146

Merged
alex-grover merged 4 commits intomainfrom
alex/muxqxzsk
Apr 30, 2026
Merged

Update next version#146
alex-grover merged 4 commits intomainfrom
alex/muxqxzsk

Conversation

@alex-grover
Copy link
Copy Markdown
Member

Closes #142

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Apr 30, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
v0-sdk-clone-demo Ready Ready Preview, Comment, Open in v0 Apr 30, 2026 10:59pm
v0-sdk-playground Ready Ready Preview, Comment, Open in v0 Apr 30, 2026 10:59pm
v0-sdk-simple-demo Ready Ready Preview, Comment, Open in v0 Apr 30, 2026 10:59pm

@socket-security
Copy link
Copy Markdown

socket-security Bot commented Apr 30, 2026

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatednpm/​next@​16.0.10 ⏵ 16.2.462100 +3091 +198 +170
Updatednpm/​@​radix-ui/​react-label@​2.1.7 ⏵ 2.1.81001006690100
Updatednpm/​@​radix-ui/​react-separator@​1.1.7 ⏵ 1.1.81001006790100
Updatednpm/​eslint-config-next@​16.0.7 ⏵ 16.2.4991006798 +2100
Addednpm/​@​radix-ui/​react-slot@​1.2.41001006990100
Updatednpm/​@​radix-ui/​react-avatar@​1.1.10 ⏵ 1.1.11991006990100
Updatednpm/​@​types/​katex@​0.16.7 ⏵ 0.16.81001007281100
Updatednpm/​@​ai-sdk/​react@​2.0.22 ⏵ 2.0.18499 +110073 +398 +2100
Updatednpm/​@​types/​prismjs@​1.26.5 ⏵ 1.26.610010074 +181100
Updatednpm/​@​types/​react-dom@​19.1.7 ⏵ 19.2.310010075 +186100
Updatednpm/​shiki@​3.12.2 ⏵ 3.23.0100 +110077 +193 -1100
Updatednpm/​@​types/​react@​19.1.11 ⏵ 19.2.141001007988100
Updatednpm/​nanoid@​5.1.5 ⏵ 5.1.1010010081 +189 +1100
Updatednpm/​@​types/​node@​22.17.2 ⏵ 20.19.391001008195100
Updatednpm/​@​types/​node@​22.17.2 ⏵ 22.19.17100 +110081 +195100
Updatednpm/​tsx@​4.20.5 ⏵ 4.21.01001008184100
Addednpm/​postcss@​8.5.131001008294100
Updatednpm/​tailwindcss@​4.1.12 ⏵ 4.2.4100 +110084 +198100
Updatednpm/​react@​19.2.1 ⏵ 19.2.51001008497100
Updatednpm/​drizzle-orm@​0.44.5 ⏵ 0.44.798 +18588 +199100
Updatednpm/​turbo@​2.5.6 ⏵ 2.9.6100 +110085 -196 -1100
Updatednpm/​tailwind-merge@​3.4.0 ⏵ 2.6.1100 +11008696 +1100
Updatednpm/​tailwind-merge@​3.4.0 ⏵ 3.5.0100 +110086 +196100
Updatednpm/​bunchee@​6.6.0 ⏵ 6.10.093 +2100100 +186 -6100
Updatednpm/​postgres@​3.4.7 ⏵ 3.4.999 +110010087100
Updatednpm/​streamdown@​1.6.5 ⏵ 1.6.119810087 +193 -5100
Updatednpm/​tailwindcss@​4.1.12 ⏵ 3.4.1996 -410087 +398100
Updatednpm/​swr@​2.3.6 ⏵ 2.4.19810010087100
Updatednpm/​autoprefixer@​10.4.21 ⏵ 10.5.099 +110089 -288100
Updatednpm/​use-stick-to-bottom@​1.1.1 ⏵ 1.1.4100 +110097 +388 +7100
Updatednpm/​eslint@​9.39.1 ⏵ 9.39.489 +110010095100
Updatednpm/​typescript@​5.7.3 ⏵ 6.0.3100 +110090 +19990
Updatednpm/​tar@​7.4.3 ⏵ 7.5.1399 +1100 +619990 +40100
See 12 more rows in the dashboard

View full report

Copy link
Copy Markdown
Contributor

@vercel vercel Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional Suggestion:

Build fails because getStatusBadge's icons and labels objects don't cover the three new ToolUIPart['state'] values ('approval-requested', 'approval-responded', 'output-denied') introduced in the ai v5→v6 upgrade.

Fix on Vercel

…cts don't cover the three new `ToolUIPart['state']` values ('approval-requested', 'approval-responded', 'output-denied') introduced in the `ai` v5→v6 upgrade.

This commit fixes the issue reported at examples/v0-clone/components/ai-elements/tool.tsx:54

**Bug explanation:**

The `ai` package was upgraded from v5.0.22 to v6.0.172. In v6, the `ToolUIPart['state']` union type was expanded from 4 states to 7 states, adding: `'approval-requested'`, `'approval-responded'`, and `'output-denied'`. 

In `examples/v0-clone/components/ai-elements/tool.tsx`, the `getStatusBadge` function accepts `status: ToolUIPart['state']` and indexes into two `as const` objects (`labels` and `icons`) that only have entries for the original 4 states. TypeScript correctly flags this as an error at line 54 (`icons[status]`) and line 55 (`labels[status]`) because the full union type cannot be used to safely index an object that's missing 3 of the possible keys.

The exact build error from the Vercel deployment log:
```
Type error: Element implicitly has an 'any' type because expression of type '"input-streaming" | "input-available" | "approval-requested" | "approval-responded" | "output-available" | "output-error" | "output-denied"' can't be used to index type '{ readonly 'input-streaming': Element; readonly 'input-available': Element; readonly 'output-available': Element; readonly 'output-error': Element; }'.
```

**Fix explanation:**

Added the three missing states to both the `labels` and `icons` objects:

- `'approval-requested'`: Uses `ClockIcon` (yellow) with label "Approval Requested" — represents a pending approval, analogous to a waiting state.
- `'approval-responded'`: Uses `CheckCircleIcon` (blue) with label "Approved" — the approval has been given.
- `'output-denied'`: Uses `XCircleIcon` (red) with label "Denied" — the output was denied, similar styling to errors.

All icons used (`ClockIcon`, `CheckCircleIcon`, `XCircleIcon`) were already imported, so no import changes were needed. The objects now cover the complete `ToolUIPart['state']` union, resolving the TypeScript error.

Co-authored-by: Vercel <vercel[bot]@users.noreply.github.com>
Co-authored-by: alex-grover <hello@alexgrover.me>
@alex-grover alex-grover merged commit 731fbac into main Apr 30, 2026
13 checks passed
@alex-grover alex-grover deleted the alex/muxqxzsk branch April 30, 2026 23:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update Next.js to 16.2

2 participants