diff --git a/.changeset/brave-poems-happen.md b/.changeset/brave-poems-happen.md deleted file mode 100644 index 38dd121d5ea4..000000000000 --- a/.changeset/brave-poems-happen.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'ai': patch ---- - -feat (ai/core): standardize generateObject, streamObject, and output errors to NoObjectGeneratedError diff --git a/.changeset/orange-glasses-provide.md b/.changeset/orange-glasses-provide.md deleted file mode 100644 index cd839841849a..000000000000 --- a/.changeset/orange-glasses-provide.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'ai': patch ---- - -feat (ai/core): add additional information to NoObjectGeneratedError diff --git a/examples/ai-core/package.json b/examples/ai-core/package.json index 72244032f31d..5c7826935cf6 100644 --- a/examples/ai-core/package.json +++ b/examples/ai-core/package.json @@ -18,7 +18,7 @@ "@opentelemetry/sdk-node": "0.54.2", "@opentelemetry/auto-instrumentations-node": "0.54.0", "@opentelemetry/sdk-trace-node": "1.28.0", - "ai": "4.0.17", + "ai": "4.0.18", "dotenv": "16.4.5", "mathjs": "14.0.0", "zod": "3.23.8", diff --git a/examples/express/package.json b/examples/express/package.json index 0b6970a6055c..5bb3f8b86eec 100644 --- a/examples/express/package.json +++ b/examples/express/package.json @@ -8,7 +8,7 @@ }, "dependencies": { "@ai-sdk/openai": "1.0.8", - "ai": "4.0.17", + "ai": "4.0.18", "dotenv": "16.4.5", "express": "5.0.1" }, diff --git a/examples/fastify/package.json b/examples/fastify/package.json index f299870be316..a481e2a1e9c2 100644 --- a/examples/fastify/package.json +++ b/examples/fastify/package.json @@ -4,7 +4,7 @@ "private": true, "dependencies": { "@ai-sdk/openai": "1.0.8", - "ai": "4.0.17", + "ai": "4.0.18", "dotenv": "16.4.5", "fastify": "5.1.0" }, diff --git a/examples/hono/package.json b/examples/hono/package.json index b42a37c32f19..f713ae7acedc 100644 --- a/examples/hono/package.json +++ b/examples/hono/package.json @@ -5,7 +5,7 @@ "dependencies": { "@ai-sdk/openai": "1.0.8", "@hono/node-server": "1.13.7", - "ai": "4.0.17", + "ai": "4.0.18", "dotenv": "16.4.5", "hono": "4.6.9" }, diff --git a/examples/nest/package.json b/examples/nest/package.json index 9e334d684b5b..2969049ab5eb 100644 --- a/examples/nest/package.json +++ b/examples/nest/package.json @@ -19,7 +19,7 @@ "@nestjs/common": "^10.4.15", "@nestjs/core": "^10.0.0", "@nestjs/platform-express": "^10.4.9", - "ai": "4.0.17", + "ai": "4.0.18", "reflect-metadata": "^0.2.0", "rxjs": "^7.8.1" }, diff --git a/examples/next-fastapi/package.json b/examples/next-fastapi/package.json index c4dd2a3a2a41..47f1bd2145bd 100644 --- a/examples/next-fastapi/package.json +++ b/examples/next-fastapi/package.json @@ -12,7 +12,7 @@ }, "dependencies": { "@ai-sdk/ui-utils": "1.0.5", - "ai": "4.0.17", + "ai": "4.0.18", "geist": "^1.3.1", "next": "latest", "react": "^18", diff --git a/examples/next-google-vertex/package.json b/examples/next-google-vertex/package.json index c40e71f83394..340b1a469379 100644 --- a/examples/next-google-vertex/package.json +++ b/examples/next-google-vertex/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@ai-sdk/google-vertex": "2.0.8", - "ai": "4.0.17", + "ai": "4.0.18", "geist": "^1.3.1", "next": "latest", "react": "^18", diff --git a/examples/next-langchain/package.json b/examples/next-langchain/package.json index e197847fab4b..67e21e7ee060 100644 --- a/examples/next-langchain/package.json +++ b/examples/next-langchain/package.json @@ -12,7 +12,7 @@ "@ai-sdk/react": "1.0.6", "@langchain/openai": "0.0.28", "@langchain/core": "0.1.63", - "ai": "4.0.17", + "ai": "4.0.18", "langchain": "0.1.36", "next": "latest", "react": "^18", diff --git a/examples/next-openai-kasada-bot-protection/package.json b/examples/next-openai-kasada-bot-protection/package.json index b4c7f7f07ed0..9010ce7d1dcb 100644 --- a/examples/next-openai-kasada-bot-protection/package.json +++ b/examples/next-openai-kasada-bot-protection/package.json @@ -11,7 +11,7 @@ "dependencies": { "@ai-sdk/openai": "1.0.8", "@vercel/functions": "latest", - "ai": "4.0.17", + "ai": "4.0.18", "next": "latest", "react": "^18", "react-dom": "^18", diff --git a/examples/next-openai-pages/package.json b/examples/next-openai-pages/package.json index b9ccf8c14f4f..80b2cc39cf2f 100644 --- a/examples/next-openai-pages/package.json +++ b/examples/next-openai-pages/package.json @@ -11,7 +11,7 @@ "dependencies": { "@ai-sdk/openai": "1.0.8", "@ai-sdk/react": "1.0.6", - "ai": "4.0.17", + "ai": "4.0.18", "next": "latest", "openai": "4.52.6", "react": "^18", diff --git a/examples/next-openai-telemetry-sentry/package.json b/examples/next-openai-telemetry-sentry/package.json index c98526fee32b..9017b92506d7 100644 --- a/examples/next-openai-telemetry-sentry/package.json +++ b/examples/next-openai-telemetry-sentry/package.json @@ -17,7 +17,7 @@ "@sentry/nextjs": "^8.42.0", "@sentry/opentelemetry": "8.22.0", "@vercel/otel": "1.10.0", - "ai": "4.0.17", + "ai": "4.0.18", "next": "latest", "openai": "4.52.6", "react": "^18", diff --git a/examples/next-openai-telemetry/package.json b/examples/next-openai-telemetry/package.json index a2a8111450e1..ea0187f4175e 100644 --- a/examples/next-openai-telemetry/package.json +++ b/examples/next-openai-telemetry/package.json @@ -15,7 +15,7 @@ "@opentelemetry/sdk-logs": "0.55.0", "@opentelemetry/instrumentation": "0.52.1", "@vercel/otel": "1.10.0", - "ai": "4.0.17", + "ai": "4.0.18", "next": "latest", "openai": "4.52.6", "react": "^18", diff --git a/examples/next-openai-upstash-rate-limits/package.json b/examples/next-openai-upstash-rate-limits/package.json index 0b185753d6df..43c96ad18c3b 100644 --- a/examples/next-openai-upstash-rate-limits/package.json +++ b/examples/next-openai-upstash-rate-limits/package.json @@ -12,7 +12,7 @@ "@ai-sdk/openai": "1.0.8", "@upstash/ratelimit": "^0.4.3", "@vercel/kv": "^0.2.2", - "ai": "4.0.17", + "ai": "4.0.18", "next": "latest", "react": "^18", "react-dom": "^18", diff --git a/examples/next-openai/package.json b/examples/next-openai/package.json index 13a249c2b215..2a3156c15d0d 100644 --- a/examples/next-openai/package.json +++ b/examples/next-openai/package.json @@ -13,7 +13,7 @@ "@ai-sdk/ui-utils": "1.0.5", "@ai-sdk/react": "1.0.6", "@vercel/blob": "^0.26.0", - "ai": "4.0.17", + "ai": "4.0.18", "next": "latest", "openai": "4.52.6", "react": "^18", diff --git a/examples/node-http-server/package.json b/examples/node-http-server/package.json index 3997e111e539..05f429b0c7a3 100644 --- a/examples/node-http-server/package.json +++ b/examples/node-http-server/package.json @@ -4,7 +4,7 @@ "private": true, "dependencies": { "@ai-sdk/openai": "1.0.8", - "ai": "4.0.17", + "ai": "4.0.18", "dotenv": "16.4.5", "zod": "3.23.8", "zod-to-json-schema": "3.23.5" diff --git a/examples/nuxt-openai/package.json b/examples/nuxt-openai/package.json index 7349f301141f..482746dbe332 100644 --- a/examples/nuxt-openai/package.json +++ b/examples/nuxt-openai/package.json @@ -11,7 +11,7 @@ "dependencies": { "@ai-sdk/vue": "1.0.6", "@ai-sdk/openai": "1.0.8", - "ai": "4.0.17", + "ai": "4.0.18", "zod": "3.23.8" }, "devDependencies": { diff --git a/examples/solidstart-openai/package.json b/examples/solidstart-openai/package.json index 223b535abf25..396cf375b8b0 100644 --- a/examples/solidstart-openai/package.json +++ b/examples/solidstart-openai/package.json @@ -19,7 +19,7 @@ "@solidjs/meta": "0.29.4", "@solidjs/router": "^0.15.1", "@solidjs/start": "^1.0.10", - "ai": "4.0.17", + "ai": "4.0.18", "solid-js": "^1.9.3", "zod": "^3.23.8" }, diff --git a/examples/sveltekit-openai/package.json b/examples/sveltekit-openai/package.json index eb9ad2c8c854..e6d0340c81f0 100644 --- a/examples/sveltekit-openai/package.json +++ b/examples/sveltekit-openai/package.json @@ -12,7 +12,7 @@ "dependencies": { "@ai-sdk/openai": "1.0.8", "@ai-sdk/svelte": "1.0.6", - "ai": "4.0.17", + "ai": "4.0.18", "openai": "4.52.6", "zod": "^3.23.8" }, diff --git a/examples/swarm/package.json b/examples/swarm/package.json index fd388feafb32..0d58b0f3b519 100644 --- a/examples/swarm/package.json +++ b/examples/swarm/package.json @@ -9,8 +9,8 @@ "@ai-sdk/groq": "1.0.8", "@ai-sdk/mistral": "1.0.5", "@ai-sdk/openai": "1.0.8", - "@ai-sdk/swarm": "0.0.26", - "ai": "4.0.17", + "@ai-sdk/swarm": "0.0.27", + "ai": "4.0.18", "dotenv": "16.4.5", "zod": "3.23.8", "zod-to-json-schema": "3.23.5", diff --git a/packages/ai/CHANGELOG.md b/packages/ai/CHANGELOG.md index 6dddba7ed78a..789c40fd1c3b 100644 --- a/packages/ai/CHANGELOG.md +++ b/packages/ai/CHANGELOG.md @@ -1,5 +1,12 @@ # ai +## 4.0.18 + +### Patch Changes + +- 304e6d3: feat (ai/core): standardize generateObject, streamObject, and output errors to NoObjectGeneratedError +- 304e6d3: feat (ai/core): add additional information to NoObjectGeneratedError + ## 4.0.17 ### Patch Changes diff --git a/packages/ai/package.json b/packages/ai/package.json index a7db376080b2..fb73b71904ac 100644 --- a/packages/ai/package.json +++ b/packages/ai/package.json @@ -1,6 +1,6 @@ { "name": "ai", - "version": "4.0.17", + "version": "4.0.18", "description": "AI SDK by Vercel - The AI Toolkit for TypeScript and JavaScript", "license": "Apache-2.0", "sideEffects": false, diff --git a/packages/ai/tests/e2e/next-server/CHANGELOG.md b/packages/ai/tests/e2e/next-server/CHANGELOG.md index e02e2795a8bd..53cec90ef3f8 100644 --- a/packages/ai/tests/e2e/next-server/CHANGELOG.md +++ b/packages/ai/tests/e2e/next-server/CHANGELOG.md @@ -4,6 +4,14 @@ ### Patch Changes +- Updated dependencies [304e6d3] +- Updated dependencies [304e6d3] + - ai@4.0.18 + +## 0.0.1 + +### Patch Changes + - Updated dependencies [54bbf21] - ai@4.0.17 diff --git a/packages/swarm/CHANGELOG.md b/packages/swarm/CHANGELOG.md index d1ca9b599041..2a74fd7a589e 100644 --- a/packages/swarm/CHANGELOG.md +++ b/packages/swarm/CHANGELOG.md @@ -1,5 +1,13 @@ # @ai-sdk/swarm +## 0.0.27 + +### Patch Changes + +- Updated dependencies [304e6d3] +- Updated dependencies [304e6d3] + - ai@4.0.18 + ## 0.0.26 ### Patch Changes diff --git a/packages/swarm/package.json b/packages/swarm/package.json index 7aab9ff9c18c..e10f2a40ab6b 100644 --- a/packages/swarm/package.json +++ b/packages/swarm/package.json @@ -1,6 +1,6 @@ { "name": "@ai-sdk/swarm", - "version": "0.0.26", + "version": "0.0.27", "license": "Apache-2.0", "sideEffects": false, "main": "./dist/index.js", @@ -27,7 +27,7 @@ } }, "dependencies": { - "ai": "4.0.17", + "ai": "4.0.18", "zod": "3.23.8" }, "devDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 700eccd8fb09..7f1cceac3d1a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -105,7 +105,7 @@ importers: specifier: 1.28.0 version: 1.28.0(@opentelemetry/api@1.9.0) ai: - specifier: 4.0.17 + specifier: 4.0.18 version: link:../../packages/ai dotenv: specifier: 16.4.5 @@ -136,7 +136,7 @@ importers: specifier: 1.0.8 version: link:../../packages/openai ai: - specifier: 4.0.17 + specifier: 4.0.18 version: link:../../packages/ai dotenv: specifier: 16.4.5 @@ -164,7 +164,7 @@ importers: specifier: 1.0.8 version: link:../../packages/openai ai: - specifier: 4.0.17 + specifier: 4.0.18 version: link:../../packages/ai dotenv: specifier: 16.4.5 @@ -192,7 +192,7 @@ importers: specifier: 1.13.7 version: 1.13.7(hono@4.6.9) ai: - specifier: 4.0.17 + specifier: 4.0.18 version: link:../../packages/ai dotenv: specifier: 16.4.5 @@ -226,7 +226,7 @@ importers: specifier: ^10.4.9 version: 10.4.9(@nestjs/common@10.4.15(reflect-metadata@0.2.2)(rxjs@7.8.1))(@nestjs/core@10.4.2) ai: - specifier: 4.0.17 + specifier: 4.0.18 version: link:../../packages/ai reflect-metadata: specifier: ^0.2.0 @@ -305,7 +305,7 @@ importers: specifier: 1.0.5 version: link:../../packages/ui-utils ai: - specifier: 4.0.17 + specifier: 4.0.18 version: link:../../packages/ai geist: specifier: ^1.3.1 @@ -357,7 +357,7 @@ importers: specifier: 2.0.8 version: link:../../packages/google-vertex ai: - specifier: 4.0.17 + specifier: 4.0.18 version: link:../../packages/ai geist: specifier: ^1.3.1 @@ -409,7 +409,7 @@ importers: specifier: 0.0.28 version: 0.0.28 ai: - specifier: 4.0.17 + specifier: 4.0.18 version: link:../../packages/ai langchain: specifier: 0.1.36 @@ -467,7 +467,7 @@ importers: specifier: ^0.26.0 version: 0.26.0 ai: - specifier: 4.0.17 + specifier: 4.0.18 version: link:../../packages/ai next: specifier: latest @@ -525,7 +525,7 @@ importers: specifier: latest version: 1.5.1(@aws-sdk/credential-provider-web-identity@3.662.0(@aws-sdk/client-sts@3.662.0)) ai: - specifier: 4.0.17 + specifier: 4.0.18 version: link:../../packages/ai next: specifier: latest @@ -577,7 +577,7 @@ importers: specifier: 1.0.6 version: link:../../packages/react ai: - specifier: 4.0.17 + specifier: 4.0.18 version: link:../../packages/ai next: specifier: latest @@ -644,7 +644,7 @@ importers: specifier: 1.10.0 version: 1.10.0(@opentelemetry/api-logs@0.55.0)(@opentelemetry/api@1.9.0)(@opentelemetry/instrumentation@0.52.1(@opentelemetry/api@1.9.0))(@opentelemetry/resources@1.29.0(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-logs@0.55.0(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-metrics@1.29.0(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@1.29.0(@opentelemetry/api@1.9.0)) ai: - specifier: 4.0.17 + specifier: 4.0.18 version: link:../../packages/ai next: specifier: latest @@ -717,7 +717,7 @@ importers: specifier: 1.10.0 version: 1.10.0(@opentelemetry/api-logs@0.55.0)(@opentelemetry/api@1.9.0)(@opentelemetry/instrumentation@0.52.1(@opentelemetry/api@1.9.0))(@opentelemetry/resources@1.29.0(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-logs@0.55.0(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-metrics@1.29.0(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@1.28.0(@opentelemetry/api@1.9.0)) ai: - specifier: 4.0.17 + specifier: 4.0.18 version: link:../../packages/ai next: specifier: latest @@ -775,7 +775,7 @@ importers: specifier: ^0.2.2 version: 0.2.4 ai: - specifier: 4.0.17 + specifier: 4.0.18 version: link:../../packages/ai next: specifier: latest @@ -824,7 +824,7 @@ importers: specifier: 1.0.8 version: link:../../packages/openai ai: - specifier: 4.0.17 + specifier: 4.0.18 version: link:../../packages/ai dotenv: specifier: 16.4.5 @@ -855,7 +855,7 @@ importers: specifier: 1.0.6 version: link:../../packages/vue ai: - specifier: 4.0.17 + specifier: 4.0.18 version: link:../../packages/ai zod: specifier: 3.23.8 @@ -919,7 +919,7 @@ importers: specifier: ^1.0.10 version: 1.0.10(@testing-library/jest-dom@6.6.3)(solid-js@1.9.3)(vinxi@0.4.3(@types/node@22.7.4)(@upstash/redis@1.34.3)(ioredis@5.4.1)(terser@5.31.3)(typescript@5.6.3))(vite@6.0.3(@types/node@22.7.4)(jiti@2.4.0)(terser@5.31.3)(tsx@4.19.2)(yaml@2.5.0)) ai: - specifier: 4.0.17 + specifier: 4.0.18 version: link:../../packages/ai solid-js: specifier: ^1.9.3 @@ -950,7 +950,7 @@ importers: specifier: 1.0.6 version: link:../../packages/svelte ai: - specifier: 4.0.17 + specifier: 4.0.18 version: link:../../packages/ai openai: specifier: 4.52.6 @@ -1014,13 +1014,13 @@ importers: specifier: 1.0.8 version: link:../../packages/openai '@ai-sdk/swarm': - specifier: 0.0.26 + specifier: 0.0.27 version: link:../../packages/swarm '@google/generative-ai': specifier: 0.21.0 version: 0.21.0 ai: - specifier: 4.0.17 + specifier: 4.0.18 version: link:../../packages/ai dotenv: specifier: 16.4.5 @@ -1659,7 +1659,7 @@ importers: packages/swarm: dependencies: ai: - specifier: 4.0.17 + specifier: 4.0.18 version: link:../ai zod: specifier: 3.23.8