ai 5.0.0-alpha.7 → 5.0.0-alpha.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,54 @@
1
1
  # ai
2
2
 
3
+ ## 5.0.0-alpha.9
4
+
5
+ ### Major Changes
6
+
7
+ - 9ae327d: chore (ui): replace chat store concept with chat instances
8
+
9
+ ### Patch Changes
10
+
11
+ - 8255639: ### Fix use with Google APIs + zod v4's `.literal()` schema
12
+
13
+ Before [zod@3.25.49](https://github.com/colinhacks/zod/releases/tag/v3.25.49), requests to Google's APIs failed due to a missing `type` in the provided schema. The problem has been resolved for the `ai` SDK by bumping our `zod` peer dependencies to `^3.25.49`.
14
+
15
+ pull request: https://github.com/vercel/ai/pull/6609
16
+
17
+ - Updated dependencies [26b6dd0]
18
+ - Updated dependencies [811dff3]
19
+ - @ai-sdk/gateway@1.0.0-alpha.9
20
+ - @ai-sdk/provider@2.0.0-alpha.9
21
+ - @ai-sdk/provider-utils@3.0.0-alpha.9
22
+
23
+ ## 5.0.0-alpha.8
24
+
25
+ ### Major Changes
26
+
27
+ - c25cbce: feat (ai): use console.error as default error handler for streamText and streamObject
28
+
29
+ ### Patch Changes
30
+
31
+ - 4fef487: feat: support for zod v4 for schema validation
32
+
33
+ All these methods now accept both a zod v4 and zod v3 schemas for validation:
34
+
35
+ - `generateObject()`
36
+ - `streamObject()`
37
+ - `generateText()`
38
+ - `experimental_useObject()` from `@ai-sdk/react`
39
+ - `streamUI()` from `@ai-sdk/rsc`
40
+
41
+ - 6b1c55c: feat (ai): introduce GLOBAL_DEFAULT_PROVIDER
42
+ - 2e4f9e4: feat (ai): improved error messages when using gateway
43
+ - Updated dependencies [4fef487]
44
+ - Updated dependencies [9222aeb]
45
+ - Updated dependencies [3cbcbb7]
46
+ - Updated dependencies [989ac75]
47
+ - Updated dependencies [7742ba3]
48
+ - @ai-sdk/provider-utils@3.0.0-alpha.8
49
+ - @ai-sdk/provider@2.0.0-alpha.8
50
+ - @ai-sdk/gateway@1.0.0-alpha.8
51
+
3
52
  ## 5.0.0-alpha.7
4
53
 
5
54
  ### Major Changes