🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@mastra/schema-compat

Package Overview
Dependencies
Maintainers
7
Versions
287
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mastra/schema-compat - npm Package Compare versions

Comparing version
1.3.2-alpha.1
to
1.3.2
+10
-0
CHANGELOG.md
# @mastra/schema-compat
## 1.3.2
### Patch Changes
- Fix the Zod v4 string handler silently dropping unrecognized `string_format` checks. Formats without a textual description (such as `ipv4`, `ipv6`, `datetime`, `date`, `time`, `base64`, `cuid2`, `ulid`, `nanoid`, `jwt`) are now preserved as validation instead of being removed, so schemas using them keep rejecting invalid input. Closes #18634. ([#18673](https://github.com/mastra-ai/mastra/pull/18673))
- Fix inverted date constraint descriptions in the Zod v4 schema handler. `z.date().min()` and `z.date().max()` were described with their bounds swapped (a lower bound was labelled "older than" and an upper bound "newer than"), so the schema sent to the model stated the opposite and impossible constraint. The handler now matches Zod semantics and the existing v3 handler. Closes #18581. ([#18582](https://github.com/mastra-ai/mastra/pull/18582))
- Fixed 'Type instantiation is excessively deep' (TS2589) errors that occurred when defining workflows with Zod schemas. Workflow and step type inference is now significantly faster and no longer causes TypeScript to crash or report depth errors. ([#18608](https://github.com/mastra-ai/mastra/pull/18608))
## 1.3.2-alpha.1

@@ -4,0 +14,0 @@

+8
-8
{
"name": "@mastra/schema-compat",
"version": "1.3.2-alpha.1",
"version": "1.3.2",
"description": "Tool schema compatibility layer for Mastra.ai",

@@ -121,9 +121,9 @@ "type": "module",

"zod-v3": "npm:zod@^3.25.76",
"@internal/ai-sdk-v4": "0.0.56",
"@internal/ai-sdk-v5": "0.0.56",
"@internal/ai-v6": "0.0.56",
"@internal/lint": "0.0.109",
"@internal/test-utils": "0.0.45",
"@internal/types-builder": "0.0.84",
"@internal/llm-recorder": "0.0.45"
"@internal/ai-sdk-v5": "0.0.57",
"@internal/ai-sdk-v4": "0.0.57",
"@internal/llm-recorder": "0.0.46",
"@internal/ai-v6": "0.0.57",
"@internal/lint": "0.0.110",
"@internal/test-utils": "0.0.46",
"@internal/types-builder": "0.0.85"
},

@@ -130,0 +130,0 @@ "homepage": "https://mastra.ai",