@chainfuse/types 2.11.2 → 2.11.4

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,5 +1,5 @@
1
- import { z as z4 } from 'zod';
2
1
  import { z as z3 } from 'zod/v3';
2
+ import { z as z4 } from 'zod/v4';
3
3
  /**
4
4
  * @link https://zod.dev/?id=json-type
5
5
  */
package/dist/zod/index.js CHANGED
@@ -1,15 +1,15 @@
1
- import { z as z4 } from 'zod';
2
1
  import { z as z3 } from 'zod/v3';
2
+ import { z as z4 } from 'zod/v4';
3
3
  /**
4
4
  * @link https://zod.dev/?id=json-type
5
5
  */
6
6
  const literalSchema = z3.union([z3.string(), z3.number(), z3.boolean(), z3.null()]);
7
7
  export const jsonSchema = z3.lazy(() => z3.union([literalSchema, z3.array(jsonSchema), z3.record(jsonSchema)]));
8
- export const ZodCoordinate = await import('zod/v4').then(({ z }) => z
8
+ export const ZodCoordinate = z4
9
9
  .string()
10
10
  .trim()
11
11
  .min(3)
12
- .regex(new RegExp(/^-?\d+\.\d+$/i)));
12
+ .regex(new RegExp(/^-?\d+\.\d+$/i));
13
13
  const prefixedUuidRegex = /^((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;
14
14
  const hexUuidRegex = /^[0-9a-f]{8}[0-9a-f]{4}[0-9a-f]{4}[0-9a-f]{4}[0-9a-f]{12}$/i;
15
15
  const hexUuid4Regex = /^[0-9a-f]{8}[0-9a-f]{4}4[0-9a-f]{3}[0-9a-f]{4}[0-9a-f]{12}$/i;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chainfuse/types",
3
- "version": "2.11.2",
3
+ "version": "2.11.4",
4
4
  "description": "",
5
5
  "author": "ChainFuse",
6
6
  "homepage": "https://github.com/ChainFuse/packages/tree/main/packages/types#readme",
@@ -98,8 +98,8 @@
98
98
  "zod": "^4.0.17"
99
99
  },
100
100
  "devDependencies": {
101
- "@cloudflare/workers-types": "^4.20250813.0",
101
+ "@cloudflare/workers-types": "^4.20250819.0",
102
102
  "@types/validator": "^13.15.2"
103
103
  },
104
- "gitHead": "cfe239cc5855452922aeb9e55d9014c47ebaa9e8"
104
+ "gitHead": "34690e8aa0cd8c205ab9e5340eeef97daefc76cd"
105
105
  }