@mastra/schema-compat 1.2.11-alpha.0 → 1.2.11
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 +8 -0
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @mastra/schema-compat
|
|
2
2
|
|
|
3
|
+
## 1.2.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fixed Gemini REST tool calls failing for `z.discriminatedUnion`, `z.lazy`, and `z.tuple` inputs. `GoogleSchemaCompatLayer` now rewrites JSON Schema 2020-12 keywords into the OpenAPI 3.0 Schema Object subset that Gemini expects: `oneOf` → `anyOf`, `const` → `enum`, tuple `items: [array]` → `items: { anyOf: [...] }`, nullable `anyOf` collapse, `$ref` inlining with recursive schema support, and stripping of `$schema`/`additionalProperties`/`propertyNames`. Fixes #17057. ([#17179](https://github.com/mastra-ai/mastra/pull/17179))
|
|
8
|
+
|
|
9
|
+
- Fixed Zod 4 schemas with `.transform()` producing the wrong JSON Schema for structured output and tool calling. The generated schema now describes the pre-transform input the model must produce instead of the post-transform output, so a field like `z.string().transform(JSON.parse)` is advertised as a `string` rather than `string | number | boolean | null`. ([#17357](https://github.com/mastra-ai/mastra/pull/17357))
|
|
10
|
+
|
|
3
11
|
## 1.2.11-alpha.0
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/schema-compat",
|
|
3
|
-
"version": "1.2.11
|
|
3
|
+
"version": "1.2.11",
|
|
4
4
|
"description": "Tool schema compatibility layer for Mastra.ai",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -118,13 +118,13 @@
|
|
|
118
118
|
"vitest": "4.1.5",
|
|
119
119
|
"zod": "^4.4.3",
|
|
120
120
|
"zod-v3": "npm:zod@^3.25.76",
|
|
121
|
-
"@internal/ai-sdk-v4": "0.0.
|
|
122
|
-
"@internal/ai-v6": "0.0.
|
|
123
|
-
"@internal/
|
|
124
|
-
"@internal/
|
|
125
|
-
"@internal/
|
|
126
|
-
"@internal/
|
|
127
|
-
"@internal/
|
|
121
|
+
"@internal/ai-sdk-v4": "0.0.47",
|
|
122
|
+
"@internal/ai-v6": "0.0.47",
|
|
123
|
+
"@internal/lint": "0.0.100",
|
|
124
|
+
"@internal/types-builder": "0.0.75",
|
|
125
|
+
"@internal/llm-recorder": "0.0.36",
|
|
126
|
+
"@internal/test-utils": "0.0.36",
|
|
127
|
+
"@internal/ai-sdk-v5": "0.0.47"
|
|
128
128
|
},
|
|
129
129
|
"homepage": "https://mastra.ai",
|
|
130
130
|
"repository": {
|