@mastra/schema-compat 1.2.2-alpha.0 → 1.2.2

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/package.json +6 -6
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @mastra/schema-compat
2
2
 
3
+ ## 1.2.2
4
+
5
+ ### Patch Changes
6
+
7
+ - `@mastra/schema-compat`: patch ([#14195](https://github.com/mastra-ai/mastra/pull/14195))
8
+
9
+ Fixed published `@mastra/schema-compat` types so AI SDK v5 schemas resolve correctly for consumers
10
+
11
+ - Fixed false `z.toJSONSchema is not available` errors for compatible Zod versions. ([#14264](https://github.com/mastra-ai/mastra/pull/14264))
12
+
13
+ **What changed**
14
+ - Improved Zod schema conversion detection so JSON Schema generation works more reliably across different runtime setups.
15
+
3
16
  ## 1.2.2-alpha.0
4
17
 
5
18
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/schema-compat",
3
- "version": "1.2.2-alpha.0",
3
+ "version": "1.2.2",
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.0.0",
118
- "@internal/ai-sdk-v5": "0.0.15",
119
- "@internal/lint": "0.0.68",
120
- "@internal/types-builder": "0.0.43",
121
- "@internal/ai-v6": "0.0.15",
122
- "@internal/ai-sdk-v4": "0.0.15"
118
+ "@internal/ai-sdk-v4": "0.0.16",
119
+ "@internal/ai-v6": "0.0.16",
120
+ "@internal/lint": "0.0.69",
121
+ "@internal/types-builder": "0.0.44",
122
+ "@internal/ai-sdk-v5": "0.0.16"
123
123
  },
124
124
  "homepage": "https://mastra.ai",
125
125
  "repository": {