@chainfuse/types 2.11.0 → 2.11.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.
@@ -60,4 +60,29 @@ export declare const ZodUuid4: z4.ZodUnion<readonly [z4.ZodUUID, z4.ZodString, z
60
60
  */
61
61
  export declare const Zod3Uuid7: z3.ZodUnion<[z3.ZodString, z3.ZodEffects<z3.ZodString, string, string>, z3.ZodEffects<z3.ZodString, string, string>, z3.ZodString, z3.ZodString]>;
62
62
  export declare const ZodUuid7: z4.ZodUnion<readonly [z4.ZodString, z4.ZodUUID, z4.ZodString, z4.ZodBase64, z4.ZodBase64URL]>;
63
+ /**
64
+ * @deprecated
65
+ */
66
+ export declare const Zod3FakeUuidExport: z3.ZodObject<{
67
+ utf8: z3.ZodString;
68
+ hex: z3.ZodEffects<z3.ZodString, string, string>;
69
+ base64: z3.ZodString;
70
+ base64url: z3.ZodString;
71
+ }, "strip", z3.ZodTypeAny, {
72
+ base64: string;
73
+ base64url: string;
74
+ utf8: string;
75
+ hex: string;
76
+ }, {
77
+ base64: string;
78
+ base64url: string;
79
+ utf8: string;
80
+ hex: string;
81
+ }>;
82
+ export declare const Zod4FakeUuidExport: z4.ZodObject<{
83
+ utf8: z4.ZodUUID;
84
+ hex: z4.ZodString;
85
+ base64: z4.ZodBase64;
86
+ base64url: z4.ZodBase64URL;
87
+ }, z4.core.$strip>;
63
88
  export {};
package/dist/zod/index.js CHANGED
@@ -202,3 +202,30 @@ export const ZodUuid7 = z4.union([
202
202
  z4.base64().trim().nonempty(),
203
203
  z4.base64url().trim().nonempty(),
204
204
  ]);
205
+ /**
206
+ * @deprecated
207
+ */
208
+ export const Zod3FakeUuidExport = z3.object({
209
+ utf8: z3.string().trim().toLowerCase().uuid(),
210
+ hex: z3
211
+ .string()
212
+ .trim()
213
+ .toLowerCase()
214
+ .length(32)
215
+ .regex(hexUuidRegex)
216
+ .refine((value) => import('validator/es/lib/isHexadecimal').then(({ default: isHexadecimal }) => isHexadecimal(value)).catch(() => import('validator').then(({ default: validator }) => validator.isHexadecimal(value)))),
217
+ base64: z3.string().trim().nonempty().base64(),
218
+ base64url: z3.string().trim().nonempty().base64url(),
219
+ });
220
+ export const Zod4FakeUuidExport = z4.object({
221
+ utf8: z4.uuid().trim().toLowerCase(),
222
+ hex: z4
223
+ .string()
224
+ .trim()
225
+ .toLowerCase()
226
+ .length(32)
227
+ .regex(hexUuidRegex)
228
+ .refine((value) => import('validator/es/lib/isHexadecimal').then(({ default: isHexadecimal }) => isHexadecimal(value)).catch(() => import('validator').then(({ default: validator }) => validator.isHexadecimal(value)))),
229
+ base64: z4.base64().trim().nonempty(),
230
+ base64url: z4.base64url().trim().nonempty(),
231
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chainfuse/types",
3
- "version": "2.11.0",
3
+ "version": "2.11.2",
4
4
  "description": "",
5
5
  "author": "ChainFuse",
6
6
  "homepage": "https://github.com/ChainFuse/packages/tree/main/packages/types#readme",
@@ -95,11 +95,11 @@
95
95
  "prettier": "@demosjarco/prettier-config",
96
96
  "dependencies": {
97
97
  "validator": "^13.15.15",
98
- "zod": "^4.0.15"
98
+ "zod": "^4.0.17"
99
99
  },
100
100
  "devDependencies": {
101
- "@cloudflare/workers-types": "^4.20250807.0",
101
+ "@cloudflare/workers-types": "^4.20250813.0",
102
102
  "@types/validator": "^13.15.2"
103
103
  },
104
- "gitHead": "2da7381e517cfdbd6b2750e2fc1a59f3b36edc4d"
104
+ "gitHead": "cfe239cc5855452922aeb9e55d9014c47ebaa9e8"
105
105
  }