@mastra/schema-compat 1.3.2-alpha.1 → 1.3.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 +10 -0
  2. package/package.json +8 -8
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @mastra/schema-compat
2
2
 
3
+ ## 1.3.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 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))
8
+
9
+ - 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))
10
+
11
+ - 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))
12
+
3
13
  ## 1.3.2-alpha.1
4
14
 
5
15
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/schema-compat",
3
- "version": "1.3.2-alpha.1",
3
+ "version": "1.3.2",
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.8",
119
119
  "zod": "^4.4.3",
120
120
  "zod-v3": "npm:zod@^3.25.76",
121
- "@internal/ai-sdk-v4": "0.0.56",
122
- "@internal/ai-sdk-v5": "0.0.56",
123
- "@internal/ai-v6": "0.0.56",
124
- "@internal/lint": "0.0.109",
125
- "@internal/test-utils": "0.0.45",
126
- "@internal/types-builder": "0.0.84",
127
- "@internal/llm-recorder": "0.0.45"
121
+ "@internal/ai-sdk-v5": "0.0.57",
122
+ "@internal/ai-sdk-v4": "0.0.57",
123
+ "@internal/llm-recorder": "0.0.46",
124
+ "@internal/ai-v6": "0.0.57",
125
+ "@internal/lint": "0.0.110",
126
+ "@internal/test-utils": "0.0.46",
127
+ "@internal/types-builder": "0.0.85"
128
128
  },
129
129
  "homepage": "https://mastra.ai",
130
130
  "repository": {