ai 4.0.39 → 4.0.40

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,14 @@
1
1
  # ai
2
2
 
3
+ ## 4.0.40
4
+
5
+ ### Patch Changes
6
+
7
+ - 33592d2: fix (ai/core): switch to json schema 7 target for zod to json schema conversion
8
+ - Updated dependencies [33592d2]
9
+ - @ai-sdk/ui-utils@1.0.12
10
+ - @ai-sdk/react@1.0.13
11
+
3
12
  ## 4.0.39
4
13
 
5
14
  ### Patch Changes
package/dist/index.js CHANGED
@@ -1962,7 +1962,7 @@ var arrayOutputStrategy = (schema) => {
1962
1962
  // be able to generate an array directly:
1963
1963
  // possible future optimization: use arrays directly when model supports grammar-guided generation
1964
1964
  jsonSchema: {
1965
- $schema: "https://json-schema.org/draft/2019-09/schema#",
1965
+ $schema: "http://json-schema.org/draft-07/schema#",
1966
1966
  type: "object",
1967
1967
  properties: {
1968
1968
  elements: { type: "array", items: itemSchema }
@@ -2074,7 +2074,7 @@ var enumOutputStrategy = (enumValues) => {
2074
2074
  // be able to generate an enum value directly:
2075
2075
  // possible future optimization: use enums directly when model supports top-level enums
2076
2076
  jsonSchema: {
2077
- $schema: "https://json-schema.org/draft/2019-09/schema#",
2077
+ $schema: "http://json-schema.org/draft-07/schema#",
2078
2078
  type: "object",
2079
2079
  properties: {
2080
2080
  result: { type: "string", enum: enumValues }