@mastra/schema-compat 1.2.1-alpha.1 → 1.2.2-alpha.0
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 +22 -0
- package/dist/_types/@internal_ai-sdk-v5/dist/index.d.ts +10345 -0
- package/dist/_types/@internal_ai-v6/dist/index.d.ts +122 -677
- package/dist/{chunk-6XBYPMQP.js → chunk-FVQJCU5H.js} +29 -9
- package/dist/chunk-FVQJCU5H.js.map +1 -0
- package/dist/{chunk-J6CVNRSB.cjs → chunk-KJ6FSJ2V.cjs} +30 -9
- package/dist/chunk-KJ6FSJ2V.cjs.map +1 -0
- package/dist/index.cjs +16 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/schema.cjs +7 -7
- package/dist/schema.js +1 -1
- package/dist/schema.types.d.ts +1 -1
- package/dist/standard-schema/adapters/zod-v4.d.ts.map +1 -1
- package/package.json +6 -6
- package/dist/chunk-6XBYPMQP.js.map +0 -1
- package/dist/chunk-J6CVNRSB.cjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @mastra/schema-compat
|
|
2
2
|
|
|
3
|
+
## 1.2.2-alpha.0
|
|
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
|
+
|
|
16
|
+
## 1.2.1
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- dependencies updates: ([#14119](https://github.com/mastra-ai/mastra/pull/14119))
|
|
21
|
+
- Updated dependency [`zod-from-json-schema@^0.5.2` ↗︎](https://www.npmjs.com/package/zod-from-json-schema/v/0.5.2) (from `^0.5.0`, in `dependencies`)
|
|
22
|
+
|
|
23
|
+
- Fixed Zod v4 schema conversion when `zod/v4` compat layer from Zod 3.25.x is used. Schemas like `ask_user` and other harness tools were not being properly converted to JSON Schema when `~standard.jsonSchema` was absent, causing `type: "None"` errors from the Anthropic API. ([#14157](https://github.com/mastra-ai/mastra/pull/14157))
|
|
24
|
+
|
|
3
25
|
## 1.2.1-alpha.1
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|