@chainfuse/types 2.10.20 → 2.10.21

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,2 +1,7 @@
1
- import { z } from 'zod/v4';
2
- export declare const ZodUuidExportInput: z.ZodUnion<readonly [z.ZodString, z.ZodUUID, z.ZodString, z.ZodBase64, z.ZodBase64URL]>;
1
+ import { z as z3 } from 'zod/v3';
2
+ import { z as z4 } from 'zod/v4';
3
+ /**
4
+ * @deprecated
5
+ */
6
+ export declare const ZodUuidExportInput3: z3.ZodUnion<[z3.ZodString, z3.ZodString, z3.ZodEffects<z3.ZodString, string, string>, z3.ZodString, z3.ZodString]>;
7
+ export declare const ZodUuidExportInput: z4.ZodUnion<readonly [z4.ZodString, z4.ZodUUID, z4.ZodString, z4.ZodBase64, z4.ZodBase64URL]>;
package/dist/wf/index.js CHANGED
@@ -1,21 +1,45 @@
1
- import { z } from 'zod/v4';
2
- export const ZodUuidExportInput = z.union([
1
+ import { z as z3 } from 'zod/v3';
2
+ import { z as z4 } from 'zod/v4';
3
+ /**
4
+ * @deprecated
5
+ */
6
+ export const ZodUuidExportInput3 = z3.union([
3
7
  // PrefixedUuid
4
- z
8
+ z3
5
9
  .string()
6
10
  .trim()
7
11
  .min(38)
8
12
  .max(40)
9
13
  .regex(new RegExp(/^((d|t|u)_)?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}(_p)?$/i)),
10
14
  // utf-8
11
- z.uuid().trim().toLowerCase(),
15
+ z3.string().trim().nonempty().uuid(),
12
16
  // hex
13
- z
17
+ z3
14
18
  .string()
15
19
  .trim()
16
20
  .toLowerCase()
17
21
  .length(32)
18
22
  .refine((value) => import('validator/es/lib/isHexadecimal').then(({ default: isHexadecimal }) => isHexadecimal(value)).catch(() => import('validator').then(({ default: validator }) => validator.isHexadecimal(value)))),
19
- z.base64().trim().nonempty().toLowerCase(),
20
- z.base64url().trim().nonempty().toLowerCase(),
23
+ z3.string().trim().nonempty().base64(),
24
+ z3.string().trim().nonempty().base64url(),
25
+ ]);
26
+ export const ZodUuidExportInput = z4.union([
27
+ // PrefixedUuid
28
+ z4
29
+ .string()
30
+ .trim()
31
+ .min(38)
32
+ .max(40)
33
+ .regex(new RegExp(/^((d|t|u)_)?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}(_p)?$/i)),
34
+ // utf-8
35
+ z4.uuid().trim().toLowerCase(),
36
+ // hex
37
+ z4
38
+ .string()
39
+ .trim()
40
+ .toLowerCase()
41
+ .length(32)
42
+ .refine((value) => import('validator/es/lib/isHexadecimal').then(({ default: isHexadecimal }) => isHexadecimal(value)).catch(() => import('validator').then(({ default: validator }) => validator.isHexadecimal(value)))),
43
+ z4.base64().trim().nonempty(),
44
+ z4.base64url().trim().nonempty(),
21
45
  ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chainfuse/types",
3
- "version": "2.10.20",
3
+ "version": "2.10.21",
4
4
  "description": "",
5
5
  "author": "ChainFuse",
6
6
  "homepage": "https://github.com/ChainFuse/packages/tree/main/packages/types#readme",
@@ -99,11 +99,11 @@
99
99
  "prettier": "@demosjarco/prettier-config",
100
100
  "dependencies": {
101
101
  "validator": "^13.15.15",
102
- "zod": "^3.25.49"
102
+ "zod": "^3.25.51"
103
103
  },
104
104
  "devDependencies": {
105
- "@cloudflare/workers-types": "^4.20250603.0",
105
+ "@cloudflare/workers-types": "^4.20250605.0",
106
106
  "@types/validator": "^13.15.1"
107
107
  },
108
- "gitHead": "932b7500502575cce5fc6751d594f14098bdd543"
108
+ "gitHead": "726cf6c05c96cf75a1213019de78835853d470aa"
109
109
  }