@mastra/client-js 0.17.0-alpha.1 → 0.17.0-alpha.3

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.
@@ -1,3 +1,11 @@
1
1
  import type { ZodType } from 'zod';
2
- export declare function zodToJsonSchema<T extends ZodType | any>(zodSchema: T): any;
2
+ /**
3
+ * Converts a Zod schema to JSON Schema, or passes through non-Zod values unchanged.
4
+ *
5
+ * Uses the schema-compat implementation which includes:
6
+ * - Zod v4 z.record() bug fix
7
+ * - Date to date-time format conversion
8
+ * - Handling of unrepresentable types
9
+ */
10
+ export declare function zodToJsonSchema<T extends ZodType | any>(zodSchema: T): T;
3
11
  //# sourceMappingURL=zod-to-json-schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"zod-to-json-schema.d.ts","sourceRoot":"","sources":["../../src/utils/zod-to-json-schema.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAgBnC,wBAAgB,eAAe,CAAC,CAAC,SAAS,OAAO,GAAG,GAAG,EAAE,SAAS,EAAE,CAAC,OAYpE"}
1
+ {"version":3,"file":"zod-to-json-schema.d.ts","sourceRoot":"","sources":["../../src/utils/zod-to-json-schema.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAkBnC;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,CAAC,SAAS,OAAO,GAAG,GAAG,EAAE,SAAS,EAAE,CAAC,GAAG,CAAC,CAQxE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/client-js",
3
- "version": "0.17.0-alpha.1",
3
+ "version": "0.17.0-alpha.3",
4
4
  "description": "The official TypeScript library for the Mastra Client API",
5
5
  "author": "",
6
6
  "type": "module",
@@ -38,8 +38,8 @@
38
38
  "@lukeed/uuid": "^2.0.1",
39
39
  "json-schema": "^0.4.0",
40
40
  "rxjs": "7.8.1",
41
- "zod-to-json-schema": "^3.24.6",
42
- "@mastra/core": "0.24.7-alpha.1"
41
+ "@mastra/core": "0.24.7-alpha.3",
42
+ "@mastra/schema-compat": "0.11.9-alpha.0"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "zod": "^3.25.0 || ^4.0.0"