-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Update packages #857
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update packages #857
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,24 +14,25 @@ | |
| "postinstall": "prisma generate" | ||
| }, | ||
| "dependencies": { | ||
| "@ai-sdk/amazon-bedrock": "3.0.13", | ||
| "@ai-sdk/anthropic": "2.0.9", | ||
| "@ai-sdk/gateway": "1.0.15", | ||
| "@ai-sdk/google": "2.0.11", | ||
| "@ai-sdk/groq": "2.0.16", | ||
| "@ai-sdk/openai": "2.0.23", | ||
| "@ai-sdk/amazon-bedrock": "3.0.45", | ||
| "@ai-sdk/anthropic": "2.0.35", | ||
| "@ai-sdk/gateway": "2.0.0", | ||
| "@ai-sdk/google": "2.0.23", | ||
| "@ai-sdk/groq": "2.0.24", | ||
| "@ai-sdk/openai": "2.0.53", | ||
| "@ai-sdk/provider": "2.0.0", | ||
| "@ai-sdk/react": "2.0.28", | ||
| "@ai-sdk/react": "2.0.76", | ||
| "@asteasolutions/zod-to-openapi": "8.1.0", | ||
| "@better-auth/sso": "1.3.7", | ||
| "@better-auth/sso": "1.3.28", | ||
| "@date-fns/tz": "1.4.1", | ||
| "@dub/analytics": "0.0.30", | ||
| "@formkit/auto-animate": "0.8.4", | ||
| "@googleapis/calendar": "^11.0.1", | ||
| "@googleapis/gmail": "14.0.1", | ||
| "@googleapis/people": "5.0.1", | ||
| "@headlessui/react": "2.2.7", | ||
| "@hookform/resolvers": "5.2.1", | ||
| "@dub/analytics": "0.0.32", | ||
| "@formkit/auto-animate": "0.9.0", | ||
| "@googleapis/calendar": "^12.0.0", | ||
| "@googleapis/gmail": "15.0.0", | ||
| "@googleapis/people": "6.0.0", | ||
| "gaxios": "7.1.2", | ||
| "@headlessui/react": "2.2.9", | ||
| "@hookform/resolvers": "5.2.2", | ||
| "@inboxzero/loops": "workspace:*", | ||
| "@inboxzero/resend": "workspace:*", | ||
| "@inboxzero/tinybird": "workspace:*", | ||
|
|
@@ -40,12 +41,12 @@ | |
| "@mdx-js/loader": "3.1.1", | ||
| "@mdx-js/react": "3.1.1", | ||
| "@microsoft/microsoft-graph-client": "3.0.7", | ||
| "@modelcontextprotocol/sdk": "^1.18.2", | ||
| "@mux/mux-player-react": "3.5.3", | ||
| "@next/mdx": "15.5.2", | ||
| "@next/third-parties": "15.5.2", | ||
| "@openrouter/ai-sdk-provider": "1.1.2", | ||
| "@portabletext/react": "4.0.2", | ||
| "@modelcontextprotocol/sdk": "^1.20.1", | ||
| "@mux/mux-player-react": "3.6.1", | ||
| "@next/mdx": "15.5.6", | ||
| "@next/third-parties": "15.5.6", | ||
| "@openrouter/ai-sdk-provider": "1.2.0", | ||
| "@portabletext/react": "4.0.3", | ||
| "@prisma/client": "6.6.0", | ||
| "@radix-ui/react-alert-dialog": "1.1.15", | ||
| "@radix-ui/react-avatar": "1.1.10", | ||
|
|
@@ -68,14 +69,14 @@ | |
| "@radix-ui/react-toggle": "1.1.10", | ||
| "@radix-ui/react-tooltip": "1.2.8", | ||
| "@radix-ui/react-use-controllable-state": "1.2.2", | ||
| "@react-email/render": "1.2.1", | ||
| "@sentry/nextjs": "10.8.0", | ||
| "@serwist/next": "9.2.0", | ||
| "@stripe/stripe-js": "7.9.0", | ||
| "@react-email/render": "1.4.0", | ||
| "@sentry/nextjs": "10.20.0", | ||
| "@serwist/next": "9.2.1", | ||
| "@stripe/stripe-js": "8.1.0", | ||
| "@t3-oss/env-nextjs": "0.13.8", | ||
| "@tailwindcss/forms": "0.5.10", | ||
| "@tailwindcss/typography": "0.5.16", | ||
| "@tanstack/react-query": "5.85.6", | ||
| "@tailwindcss/typography": "0.5.19", | ||
| "@tanstack/react-query": "5.90.5", | ||
| "@tanstack/react-table": "8.21.3", | ||
| "@tanstack/react-virtual": "3.13.12", | ||
| "@tiptap/extension-mention": "2.26.1", | ||
|
|
@@ -85,61 +86,61 @@ | |
| "@tiptap/starter-kit": "2.26.1", | ||
| "@tiptap/suggestion": "2.26.1", | ||
| "@tremor/react": "3.18.7", | ||
| "@upstash/qstash": "2.8.2", | ||
| "@upstash/redis": "1.35.3", | ||
| "@upstash/qstash": "2.8.4", | ||
| "@upstash/redis": "1.35.6", | ||
| "@vercel/analytics": "1.5.0", | ||
| "@vercel/speed-insights": "1.2.0", | ||
| "ai": "5.0.28", | ||
| "better-auth": "1.3.7", | ||
| "braintrust": "0.3.6", | ||
| "ai": "5.0.76", | ||
| "better-auth": "1.3.28", | ||
| "braintrust": "0.4.6", | ||
| "capital-case": "2.0.0", | ||
| "cheerio": "1.0.0", | ||
| "class-variance-authority": "0.7.1", | ||
| "clsx": "2.1.1", | ||
| "cmdk": "1.1.1", | ||
| "crisp-sdk-web": "1.0.25", | ||
| "crisp-sdk-web": "1.0.26", | ||
| "date-fns": "4.1.0", | ||
| "diff": "7.0.0", | ||
| "dompurify": "3.2.6", | ||
| "dub": "0.66.1", | ||
| "dompurify": "3.3.0", | ||
| "dub": "0.67.0", | ||
| "easymde": "^2.20.0", | ||
| "email-reply-parser": "1.9.4", | ||
| "embla-carousel-react": "8.6.0", | ||
| "encoding": "0.1.13", | ||
| "fast-deep-equal": "3.1.3", | ||
| "fast-xml-parser": "5.2.5", | ||
| "fast-xml-parser": "5.3.0", | ||
| "gmail-api-parse-message": "2.1.2", | ||
| "google": "link:@next/third-parties/google", | ||
| "he": "1.2.0", | ||
| "html-to-text": "9.0.5", | ||
| "ioredis": "5.7.0", | ||
| "jotai": "2.13.1", | ||
| "jsdom": "26.1.0", | ||
| "ioredis": "5.8.2", | ||
| "jotai": "2.15.0", | ||
| "jsdom": "27.0.1", | ||
| "json5": "2.2.3", | ||
| "jsonrepair": "3.13.0", | ||
| "jsonrepair": "3.13.1", | ||
| "linkify-react": "4.3.2", | ||
| "linkifyjs": "4.3.2", | ||
| "lodash": "4.17.21", | ||
| "lucide-react": "0.542.0", | ||
| "lucide-react": "0.546.0", | ||
| "motion": "12.23.24", | ||
| "next": "15.5.2", | ||
| "next-axiom": "1.9.2", | ||
| "next-safe-action": "7.10.8", | ||
| "next": "15.5.6", | ||
|
elie222 marked this conversation as resolved.
|
||
| "next-axiom": "1.9.3", | ||
| "next-safe-action": "8.0.11", | ||
| "next-themes": "0.4.6", | ||
| "nodemailer": "6.10.1", | ||
| "nuqs": "2.5.2", | ||
| "nodemailer": "7.0.9", | ||
| "nuqs": "2.7.2", | ||
| "ollama-ai-provider": "1.2.0", | ||
| "openai": "5.16.0", | ||
| "p-queue": "8.1.0", | ||
| "p-retry": "7.0.0", | ||
| "openai": "6.6.0", | ||
| "p-queue": "9.0.0", | ||
| "p-retry": "7.1.0", | ||
| "posthog-js": "1.261.0", | ||
| "posthog-node": "5.8.1", | ||
| "react": "19.1.1", | ||
| "react-day-picker": "8.10.1", | ||
| "react-dom": "19.1.1", | ||
| "react-dom-confetti": "0.2.0", | ||
| "react-hook-form": "7.62.0", | ||
| "react-hotkeys-hook": "5.1.0", | ||
| "react-hook-form": "7.65.0", | ||
| "react-hotkeys-hook": "5.2.1", | ||
| "react-markdown": "10.1.0", | ||
| "react-resizable-panels": "2.1.7", | ||
| "react-syntax-highlighter": "15.6.6", | ||
|
|
@@ -152,44 +153,44 @@ | |
| "server-only": "0.0.1", | ||
| "shiki": "3.13.0", | ||
| "sonner": "2.0.7", | ||
| "streamdown": "1.1.6", | ||
| "streamdown": "1.4.0", | ||
| "string-similarity": "4.0.4", | ||
| "strip-indent": "4.0.0", | ||
| "stripe": "18.5.0", | ||
| "strip-indent": "4.1.1", | ||
| "stripe": "19.1.0", | ||
| "swr": "2.3.6", | ||
| "tailwind-merge": "2.6.0", | ||
| "tailwindcss-animate": "1.0.7", | ||
| "tiptap-markdown": "0.8.10", | ||
| "typescript": "5.9.2", | ||
| "typescript": "5.9.3", | ||
| "use-stick-to-bottom": "1.1.1", | ||
| "usehooks-ts": "3.1.1", | ||
| "zod": "3.25.46" | ||
| "zod": "4.1.12" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chainCritical: Verify zod 4.x compatibility across the entire codebase. The update from zod 3.25.46 to 4.1.12 is a major version change that may introduce breaking changes to:
This affects the entire application as zod is heavily used for validation. Search for zod 4.x migration guide: 🏁 Script executed: #!/bin/bash
# Description: Comprehensive zod usage analysis
# Find all zod imports
rg -n --type=ts --type=tsx "from ['\"]zod['\"]" apps/web/ | head -50
# Find schema definitions
rg -n --type=ts --type=tsx "\bz\.(object|string|number|array|infer)" apps/web/ | head -50
# Find zod with form resolvers
rg -n --type=ts --type=tsx "zodResolver" apps/web/
# Find zod with next-safe-action
rg -n --type=ts --type=tsx "createServerAction|actionClient" apps/web/ | head -30Length of output: 111 🌐 Web query: 💡 Result: Here are the main breaking changes to be aware of when migrating from Zod 3 -> Zod 4 (summary of the official migration guide). Sources: Zod v4 migration/changelog and library-author notes. [1][2]
If you want, I can:
I need to fix the shell script to properly search the codebase. Let me retry with corrected rg syntax and check the dependent libraries. 🏁 Script executed: #!/bin/bash
# Fixed: Comprehensive zod usage analysis
echo "=== Finding zod imports ==="
rg -n "from ['\"]zod['\"]" apps/web/ | head -50
echo "=== Finding schema definitions (z.object, z.string, etc.) ==="
rg -n "z\.(object|string|number|array|infer)" apps/web/ | head -50
echo "=== Finding zodResolver usage ==="
rg -n "zodResolver" apps/web/
echo "=== Finding next-safe-action usage ==="
rg -n "createServerAction|actionClient" apps/web/ | head -30
echo "=== Checking package.json for zod and dependencies ==="
cat apps/web/package.json | grep -A 2 -B 2 '"zod"\|"@hookform/resolvers"\|"next-safe-action"'Length of output: 17147 🌐 Web query: 💡 Result: Yes — @hookform/resolvers added Zod v4 support. Upgrade to @hookform/resolvers >= 5.1.0 (released June 7, 2025) and import Zod v4 from 'zod/v4' (or use the resolver as shown in the package README). [1][2][3] Sources:
I found a critical breaking change. Let me verify next-safe-action compatibility and search for other breaking patterns in the codebase. 🏁 Script executed: #!/bin/bash
# Search for breaking Zod 4 patterns
echo "=== Checking z.string().email() usage (DEPRECATED in Zod 4) ==="
rg -n "\.email()" apps/web/ | head -20
echo "=== Checking .refine() and .superRefine() usage ==="
rg -n "\.refine\(|\.superRefine\(" apps/web/ | head -30
echo "=== Checking ZodError handling patterns ==="
rg -n "ZodError|\.issues|\.format()" apps/web/ | head -30
echo "=== Checking z.function() usage ==="
rg -n "z\.function" apps/web/
echo "=== Checking .flatten() usage (deprecated in Zod 4) ==="
rg -n "\.flatten()" apps/web/
echo "=== Full context of z.string().email() in email.ts ==="
cat apps/web/utils/email.ts | head -20Length of output: 4523 🌐 Web query: 💡 Result: Short answer: Yes — next-safe-action v8 (including 8.0.11) uses the Standard Schema system and supports Zod v4; import Zod v4 via its subpath (e.g. import * as z from "zod/v4") or any Standard‑Schema‑compatible Zod export. [1][2] Sources:
Let me examine the specific breaking patterns more closely: 🏁 Script executed: #!/bin/bash
# Detailed examination of breaking patterns
echo "=== apps/web/utils/email.ts (z.string().email) ==="
cat apps/web/utils/email.ts
echo ""
echo "=== refine() usage in generate-reply.validation.ts ==="
sed -n '10,20p' apps/web/utils/actions/generate-reply.validation.ts
echo ""
echo "=== superRefine() usage in settings.validation.ts ==="
sed -n '38,48p' apps/web/utils/actions/settings.validation.ts
echo ""
echo "=== formatZodError implementation in error.ts ==="
sed -n '29,50p' apps/web/utils/error.ts
echo ""
echo "=== ZodError handling in middleware.ts ==="
sed -n '90,105p' apps/web/utils/middleware.ts
echo ""
echo "=== Check error message/invalid_type_error patterns ==="
rg -n "invalid_type_error|required_error|errorMap" apps/web/ | head -20Length of output: 5562 Critical: Three breaking changes in Zod 4 require immediate fixes before deployment. The Zod 4 update contains confirmed breaking changes affecting validation across the codebase:
The dependencies are compatible: @hookform/resolvers 5.2.2 and next-safe-action 8.0.11 both support Zod 4. Additionally, review 🤖 Prompt for AI Agents |
||
| }, | ||
| "devDependencies": { | ||
| "@headlessui/tailwindcss": "0.2.2", | ||
| "@microsoft/microsoft-graph-types": "^2.40.0", | ||
| "@microsoft/microsoft-graph-types": "^2.43.1", | ||
| "@testing-library/react": "16.3.0", | ||
| "@types/diff": "7.0.2", | ||
| "@types/diff": "8.0.0", | ||
| "@types/email-reply-parser": "1.4.2", | ||
| "@types/he": "1.2.3", | ||
| "@types/html-to-text": "9.0.4", | ||
| "@types/jsdom": "21.1.7", | ||
| "@types/jsdom": "27.0.0", | ||
| "@types/lodash": "4.17.20", | ||
| "@types/mdx": "2.0.13", | ||
| "@types/node": "24.3.0", | ||
| "@types/nodemailer": "6.4.17", | ||
| "@types/node": "24.9.1", | ||
| "@types/nodemailer": "7.0.2", | ||
| "@types/react": "19.1.12", | ||
| "@types/react-dom": "19.1.9", | ||
| "@types/react-syntax-highlighter": "15.5.13", | ||
| "@types/string-similarity": "4.0.2", | ||
| "@vitest/coverage-v8": "3.2.4", | ||
| "@vitest/ui": "3.2.4", | ||
| "autoprefixer": "10.4.21", | ||
| "cross-env": "7.0.3", | ||
| "dotenv": "17.2.1", | ||
| "cross-env": "10.1.0", | ||
| "dotenv": "17.2.3", | ||
| "postcss": "8.5.6", | ||
| "prisma": "6.6.0", | ||
| "serwist": "9.2.0", | ||
| "serwist": "9.2.1", | ||
| "tailwindcss": "3.4.17", | ||
| "tsconfig": "workspace:*", | ||
| "vite-tsconfig-paths": "5.1.4", | ||
|
|
@@ -200,11 +201,11 @@ | |
| "node": ">=22.0.0" | ||
| }, | ||
| "optionalDependencies": { | ||
| "@sanity/client": "7.10.0", | ||
| "@sanity/client": "7.12.0", | ||
| "@sanity/icons": "3.7.4", | ||
| "@sanity/image-url": "1", | ||
| "@sanity/vision": "4", | ||
| "next-sanity": "10", | ||
| "sanity": "4.6.0" | ||
| "next-sanity": "11", | ||
| "sanity": "4.10.3" | ||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
Verify compatibility with updated AI SDK packages.
Multiple AI SDK packages have been updated, with
@ai-sdk/gatewaymoving from 1.x to 2.0.0 (major version). Ensure all AI provider integrations, streaming responses, and SDK usage patterns remain compatible with the new versions.🏁 Script executed:
Length of output: 55
I need to correct the shell script syntax. The
--type=tsxflag isn't recognized by ripgrep. Let me retry with adjusted parameters:Length of output: 47210
I found extensive AI SDK usage across the codebase. Let me check for breaking changes in the major version updates, particularly for @ai-sdk/gateway:
I need to search more specifically for the version discrepancy and check the gateway usage:Now let me check the actual usage of createGateway in the model.ts file more closely:
Length of output: 10428
Let me search for information about Vercel AI SDK v2 breaking changes and package versions:
Correct the invalid @ai-sdk/gateway version number.
The latest version of @ai-sdk/gateway is 1.0.19, not 2.0.0. The package.json specifies
"@ai-sdk/gateway": "2.0.0", which does not exist in the npm registry and will cause installation failures. All other AI SDK packages use valid v2.x versions that exist.The codebase's AI SDK usage patterns (streamText, generateText, generateObject wrappers, and createGateway) are compatible with available versions. However, this version mismatch must be resolved before the code can be installed or tested.
🤖 Prompt for AI Agents