@mastra/schema-compat 1.2.7-alpha.1 → 1.2.7
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 +12 -0
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @mastra/schema-compat
|
|
2
2
|
|
|
3
|
+
## 1.2.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fixed schema-compat ESM imports for Zod JSON Schema helpers. ([#14617](https://github.com/mastra-ai/mastra/pull/14617))
|
|
8
|
+
|
|
9
|
+
@mastra/schema-compat no longer uses createRequire in its Zod v4 adapter or runtime eval tests, which avoids createRequire-related ESM issues while preserving support for zod/v3 and zod/v4.
|
|
10
|
+
|
|
11
|
+
- Fix Zod v3 and Zod v4 compatibility across public structured-output APIs. ([#14464](https://github.com/mastra-ai/mastra/pull/14464))
|
|
12
|
+
|
|
13
|
+
Mastra agent and client APIs accept schemas from either `zod/v3` or `zod/v4`, matching the documented peer dependency range and preserving TypeScript compatibility for both Zod versions.
|
|
14
|
+
|
|
3
15
|
## 1.2.7-alpha.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/schema-compat",
|
|
3
|
-
"version": "1.2.7
|
|
3
|
+
"version": "1.2.7",
|
|
4
4
|
"description": "Tool schema compatibility layer for Mastra.ai",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -115,11 +115,11 @@
|
|
|
115
115
|
"vitest": "4.0.18",
|
|
116
116
|
"zod": "^4.3.6",
|
|
117
117
|
"zod-v3": "npm:zod@^3.25.76",
|
|
118
|
-
"@internal/ai-
|
|
119
|
-
"@internal/ai-sdk-v5": "0.0.
|
|
120
|
-
"@internal/
|
|
121
|
-
"@internal/
|
|
122
|
-
"@internal/types-builder": "0.0.
|
|
118
|
+
"@internal/ai-v6": "0.0.21",
|
|
119
|
+
"@internal/ai-sdk-v5": "0.0.21",
|
|
120
|
+
"@internal/lint": "0.0.74",
|
|
121
|
+
"@internal/ai-sdk-v4": "0.0.21",
|
|
122
|
+
"@internal/types-builder": "0.0.49"
|
|
123
123
|
},
|
|
124
124
|
"homepage": "https://mastra.ai",
|
|
125
125
|
"repository": {
|