zod 4.2.0-canary.20251001T172710 → 4.2.0-canary.20251016T223057

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zod",
3
- "version": "4.2.0-canary.20251001T172710",
3
+ "version": "4.2.0-canary.20251016T223057",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "Colin McDonnell <zod@colinhacks.com>",
@@ -265,6 +265,7 @@ export const _ZodString: core.$constructor<_ZodString> = /*@__PURE__*/ core.$con
265
265
  inst.maxLength = bag.maximum ?? null;
266
266
 
267
267
  // validations
268
+ // if (inst.regex) throw new Error("regex already defined");
268
269
  inst.regex = (...args) => inst.check(checks.regex(...args));
269
270
  inst.includes = (...args) => inst.check(checks.includes(...args));
270
271
  inst.startsWith = (...args) => inst.check(checks.startsWith(...args));
@@ -792,6 +793,7 @@ export interface ZodNumber extends _ZodNumber<core.$ZodNumberInternals<number>>
792
793
 
793
794
  export const ZodNumber: core.$constructor<ZodNumber> = /*@__PURE__*/ core.$constructor("ZodNumber", (inst, def) => {
794
795
  core.$ZodNumber.init(inst, def);
796
+
795
797
  ZodType.init(inst, def);
796
798
 
797
799
  inst.gt = (value, params) => inst.check(checks.gt(value, params));
@@ -20,21 +20,34 @@ export /*@__NO_SIDE_EFFECTS__*/ function $constructor<T extends ZodTrait, D = T[
20
20
  params?: { Parent?: typeof Class }
21
21
  ): $constructor<T, D> {
22
22
  function init(inst: T, def: D) {
23
- Object.defineProperty(inst, "_zod", {
24
- value: inst._zod ?? {},
25
- enumerable: false,
26
- });
23
+ if (!inst._zod) {
24
+ Object.defineProperty(inst, "_zod", {
25
+ value: {
26
+ def,
27
+ constr: _,
28
+ traits: new Set(),
29
+ },
30
+ enumerable: false,
31
+ });
32
+ }
27
33
 
28
- inst._zod.traits ??= new Set();
34
+ if (inst._zod.traits.has(name)) {
35
+ return;
36
+ }
29
37
 
30
38
  inst._zod.traits.add(name);
39
+
31
40
  initializer(inst, def);
41
+
32
42
  // support prototype modifications
33
- for (const k in _.prototype) {
34
- if (!(k in inst)) Object.defineProperty(inst, k, { value: _.prototype[k].bind(inst) });
43
+ const proto = _.prototype;
44
+ const keys = Object.keys(proto);
45
+ for (let i = 0; i < keys.length; i++) {
46
+ const k = keys[i]!;
47
+ if (!(k in inst)) {
48
+ (inst as any)[k] = proto[k].bind(inst);
49
+ }
35
50
  }
36
- inst._zod.constr = _;
37
- inst._zod.def = def;
38
51
  }
39
52
 
40
53
  // doesn't work if Parent has a constructor with arguments
@@ -489,7 +489,7 @@ export const $ZodURL: core.$constructor<$ZodURL> = /*@__PURE__*/ core.$construct
489
489
  code: "invalid_format",
490
490
  format: "url",
491
491
  note: "Invalid hostname",
492
- pattern: regexes.hostname.source,
492
+ pattern: def.hostname.source,
493
493
  input: payload.value,
494
494
  inst,
495
495
  continue: !def.abort,
@@ -741,10 +741,8 @@ export interface $ZodIPv4 extends $ZodType {
741
741
  export const $ZodIPv4: core.$constructor<$ZodIPv4> = /*@__PURE__*/ core.$constructor("$ZodIPv4", (inst, def): void => {
742
742
  def.pattern ??= regexes.ipv4;
743
743
  $ZodStringFormat.init(inst, def);
744
- inst._zod.onattach.push((inst) => {
745
- const bag = inst._zod.bag as $ZodStringInternals<unknown>["bag"];
746
- bag.format = `ipv4`;
747
- });
744
+
745
+ inst._zod.bag.format = `ipv4`;
748
746
  });
749
747
 
750
748
  ////////////////////////////// ZodIPv6 //////////////////////////////
@@ -765,10 +763,7 @@ export const $ZodIPv6: core.$constructor<$ZodIPv6> = /*@__PURE__*/ core.$constru
765
763
  def.pattern ??= regexes.ipv6;
766
764
  $ZodStringFormat.init(inst, def);
767
765
 
768
- inst._zod.onattach.push((inst) => {
769
- const bag = inst._zod.bag as $ZodStringInternals<unknown>["bag"];
770
- bag.format = `ipv6`;
771
- });
766
+ inst._zod.bag.format = `ipv6`;
772
767
 
773
768
  inst._zod.check = (payload) => {
774
769
  try {
@@ -879,9 +874,7 @@ export const $ZodBase64: core.$constructor<$ZodBase64> = /*@__PURE__*/ core.$con
879
874
  def.pattern ??= regexes.base64;
880
875
  $ZodStringFormat.init(inst, def);
881
876
 
882
- inst._zod.onattach.push((inst) => {
883
- inst._zod.bag.contentEncoding = "base64";
884
- });
877
+ inst._zod.bag.contentEncoding = "base64";
885
878
 
886
879
  inst._zod.check = (payload) => {
887
880
  if (isValidBase64(payload.value)) return;
@@ -918,9 +911,7 @@ export const $ZodBase64URL: core.$constructor<$ZodBase64URL> = /*@__PURE__*/ cor
918
911
  def.pattern ??= regexes.base64url;
919
912
  $ZodStringFormat.init(inst, def);
920
913
 
921
- inst._zod.onattach.push((inst) => {
922
- inst._zod.bag.contentEncoding = "base64url";
923
- });
914
+ inst._zod.bag.contentEncoding = "base64url";
924
915
 
925
916
  inst._zod.check = (payload) => {
926
917
  if (isValidBase64URL(payload.value)) return;
@@ -1065,8 +1056,8 @@ export interface $ZodNumber<Input = unknown> extends $ZodType {
1065
1056
 
1066
1057
  export const $ZodNumber: core.$constructor<$ZodNumber> = /*@__PURE__*/ core.$constructor("$ZodNumber", (inst, def) => {
1067
1058
  $ZodType.init(inst, def);
1068
- inst._zod.pattern = inst._zod.bag.pattern ?? regexes.number;
1069
1059
 
1060
+ inst._zod.pattern = inst._zod.bag.pattern ?? regexes.number;
1070
1061
  inst._zod.parse = (payload, _ctx) => {
1071
1062
  if (def.coerce)
1072
1063
  try {
@@ -1113,10 +1104,10 @@ export interface $ZodNumberFormat extends $ZodType {
1113
1104
  }
1114
1105
 
1115
1106
  export const $ZodNumberFormat: core.$constructor<$ZodNumberFormat> = /*@__PURE__*/ core.$constructor(
1116
- "$ZodNumber",
1107
+ "$ZodNumberFormat",
1117
1108
  (inst, def) => {
1118
1109
  checks.$ZodCheckNumberFormat.init(inst, def);
1119
- $ZodNumber.init(inst, def); // no format checksp
1110
+ $ZodNumber.init(inst, def); // no format checks
1120
1111
  }
1121
1112
  );
1122
1113
 
@@ -1237,7 +1228,7 @@ export interface $ZodBigIntFormat extends $ZodType {
1237
1228
  }
1238
1229
 
1239
1230
  export const $ZodBigIntFormat: core.$constructor<$ZodBigIntFormat> = /*@__PURE__*/ core.$constructor(
1240
- "$ZodBigInt",
1231
+ "$ZodBigIntFormat",
1241
1232
  (inst, def) => {
1242
1233
  checks.$ZodCheckBigIntFormat.init(inst, def);
1243
1234
  $ZodBigInt.init(inst, def); // no format checks
@@ -1,5 +1,5 @@
1
1
  export const version = {
2
2
  major: 4,
3
3
  minor: 1,
4
- patch: 11 as number,
4
+ patch: 12 as number,
5
5
  } as const;
@@ -1,6 +1,7 @@
1
1
  export { default as ar } from "./ar.js";
2
2
  export { default as az } from "./az.js";
3
3
  export { default as be } from "./be.js";
4
+ export { default as bg } from "./bg.js";
4
5
  export { default as ca } from "./ca.js";
5
6
  export { default as cs } from "./cs.js";
6
7
  export { default as da } from "./da.js";
@@ -6,7 +6,7 @@ export interface ZodMiniISODateTime extends schemas.ZodMiniStringFormat<"datetim
6
6
  _zod: core.$ZodISODateTimeInternals;
7
7
  }
8
8
  export const ZodMiniISODateTime: core.$constructor<ZodMiniISODateTime> = /*@__PURE__*/ core.$constructor(
9
- "$ZodISODateTime",
9
+ "ZodMiniISODateTime",
10
10
  (inst, def) => {
11
11
  core.$ZodISODateTime.init(inst, def);
12
12
  schemas.ZodMiniStringFormat.init(inst, def);
@@ -21,7 +21,7 @@ export interface ZodMiniISODate extends schemas.ZodMiniStringFormat<"date"> {
21
21
  _zod: core.$ZodISODateInternals;
22
22
  }
23
23
  export const ZodMiniISODate: core.$constructor<ZodMiniISODate> = /*@__PURE__*/ core.$constructor(
24
- "$ZodISODate",
24
+ "ZodMiniISODate",
25
25
  (inst, def) => {
26
26
  core.$ZodISODate.init(inst, def);
27
27
  schemas.ZodMiniStringFormat.init(inst, def);
@@ -36,7 +36,7 @@ export interface ZodMiniISOTime extends schemas.ZodMiniStringFormat<"time"> {
36
36
  _zod: core.$ZodISOTimeInternals;
37
37
  }
38
38
  export const ZodMiniISOTime: core.$constructor<ZodMiniISOTime> = /*@__PURE__*/ core.$constructor(
39
- "$ZodISOTime",
39
+ "ZodMiniISOTime",
40
40
  (inst, def) => {
41
41
  core.$ZodISOTime.init(inst, def);
42
42
  schemas.ZodMiniStringFormat.init(inst, def);
@@ -51,7 +51,7 @@ export interface ZodMiniISODuration extends schemas.ZodMiniStringFormat<"duratio
51
51
  _zod: core.$ZodISODurationInternals;
52
52
  }
53
53
  export const ZodMiniISODuration: core.$constructor<ZodMiniISODuration> = /*@__PURE__*/ core.$constructor(
54
- "$ZodISODuration",
54
+ "ZodMiniISODuration",
55
55
  (inst, def) => {
56
56
  core.$ZodISODuration.init(inst, def);
57
57
  schemas.ZodMiniStringFormat.init(inst, def);
@@ -208,6 +208,7 @@ exports._ZodString = core.$constructor("_ZodString", (inst, def) => {
208
208
  inst.minLength = bag.minimum ?? null;
209
209
  inst.maxLength = bag.maximum ?? null;
210
210
  // validations
211
+ // if (inst.regex) throw new Error("regex already defined");
211
212
  inst.regex = (...args) => inst.check(checks.regex(...args));
212
213
  inst.includes = (...args) => inst.check(checks.includes(...args));
213
214
  inst.startsWith = (...args) => inst.check(checks.startsWith(...args));
@@ -91,6 +91,7 @@ export const _ZodString = /*@__PURE__*/ core.$constructor("_ZodString", (inst, d
91
91
  inst.minLength = bag.minimum ?? null;
92
92
  inst.maxLength = bag.maximum ?? null;
93
93
  // validations
94
+ // if (inst.regex) throw new Error("regex already defined");
94
95
  inst.regex = (...args) => inst.check(checks.regex(...args));
95
96
  inst.includes = (...args) => inst.check(checks.includes(...args));
96
97
  inst.startsWith = (...args) => inst.check(checks.startsWith(...args));
package/v4/core/core.cjs CHANGED
@@ -9,21 +9,30 @@ exports.NEVER = Object.freeze({
9
9
  });
10
10
  function $constructor(name, initializer, params) {
11
11
  function init(inst, def) {
12
- var _a;
13
- Object.defineProperty(inst, "_zod", {
14
- value: inst._zod ?? {},
15
- enumerable: false,
16
- });
17
- (_a = inst._zod).traits ?? (_a.traits = new Set());
12
+ if (!inst._zod) {
13
+ Object.defineProperty(inst, "_zod", {
14
+ value: {
15
+ def,
16
+ constr: _,
17
+ traits: new Set(),
18
+ },
19
+ enumerable: false,
20
+ });
21
+ }
22
+ if (inst._zod.traits.has(name)) {
23
+ return;
24
+ }
18
25
  inst._zod.traits.add(name);
19
26
  initializer(inst, def);
20
27
  // support prototype modifications
21
- for (const k in _.prototype) {
22
- if (!(k in inst))
23
- Object.defineProperty(inst, k, { value: _.prototype[k].bind(inst) });
28
+ const proto = _.prototype;
29
+ const keys = Object.keys(proto);
30
+ for (let i = 0; i < keys.length; i++) {
31
+ const k = keys[i];
32
+ if (!(k in inst)) {
33
+ inst[k] = proto[k].bind(inst);
34
+ }
24
35
  }
25
- inst._zod.constr = _;
26
- inst._zod.def = def;
27
36
  }
28
37
  // doesn't work if Parent has a constructor with arguments
29
38
  const Parent = params?.Parent ?? Object;
package/v4/core/core.js CHANGED
@@ -4,21 +4,30 @@ export const NEVER = Object.freeze({
4
4
  });
5
5
  export /*@__NO_SIDE_EFFECTS__*/ function $constructor(name, initializer, params) {
6
6
  function init(inst, def) {
7
- var _a;
8
- Object.defineProperty(inst, "_zod", {
9
- value: inst._zod ?? {},
10
- enumerable: false,
11
- });
12
- (_a = inst._zod).traits ?? (_a.traits = new Set());
7
+ if (!inst._zod) {
8
+ Object.defineProperty(inst, "_zod", {
9
+ value: {
10
+ def,
11
+ constr: _,
12
+ traits: new Set(),
13
+ },
14
+ enumerable: false,
15
+ });
16
+ }
17
+ if (inst._zod.traits.has(name)) {
18
+ return;
19
+ }
13
20
  inst._zod.traits.add(name);
14
21
  initializer(inst, def);
15
22
  // support prototype modifications
16
- for (const k in _.prototype) {
17
- if (!(k in inst))
18
- Object.defineProperty(inst, k, { value: _.prototype[k].bind(inst) });
23
+ const proto = _.prototype;
24
+ const keys = Object.keys(proto);
25
+ for (let i = 0; i < keys.length; i++) {
26
+ const k = keys[i];
27
+ if (!(k in inst)) {
28
+ inst[k] = proto[k].bind(inst);
29
+ }
19
30
  }
20
- inst._zod.constr = _;
21
- inst._zod.def = def;
22
31
  }
23
32
  // doesn't work if Parent has a constructor with arguments
24
33
  const Parent = params?.Parent ?? Object;
@@ -237,7 +237,7 @@ exports.$ZodURL = core.$constructor("$ZodURL", (inst, def) => {
237
237
  code: "invalid_format",
238
238
  format: "url",
239
239
  note: "Invalid hostname",
240
- pattern: regexes.hostname.source,
240
+ pattern: def.hostname.source,
241
241
  input: payload.value,
242
242
  inst,
243
243
  continue: !def.abort,
@@ -327,18 +327,12 @@ exports.$ZodISODuration = core.$constructor("$ZodISODuration", (inst, def) => {
327
327
  exports.$ZodIPv4 = core.$constructor("$ZodIPv4", (inst, def) => {
328
328
  def.pattern ?? (def.pattern = regexes.ipv4);
329
329
  exports.$ZodStringFormat.init(inst, def);
330
- inst._zod.onattach.push((inst) => {
331
- const bag = inst._zod.bag;
332
- bag.format = `ipv4`;
333
- });
330
+ inst._zod.bag.format = `ipv4`;
334
331
  });
335
332
  exports.$ZodIPv6 = core.$constructor("$ZodIPv6", (inst, def) => {
336
333
  def.pattern ?? (def.pattern = regexes.ipv6);
337
334
  exports.$ZodStringFormat.init(inst, def);
338
- inst._zod.onattach.push((inst) => {
339
- const bag = inst._zod.bag;
340
- bag.format = `ipv6`;
341
- });
335
+ inst._zod.bag.format = `ipv6`;
342
336
  inst._zod.check = (payload) => {
343
337
  try {
344
338
  // @ts-ignore
@@ -408,9 +402,7 @@ function isValidBase64(data) {
408
402
  exports.$ZodBase64 = core.$constructor("$ZodBase64", (inst, def) => {
409
403
  def.pattern ?? (def.pattern = regexes.base64);
410
404
  exports.$ZodStringFormat.init(inst, def);
411
- inst._zod.onattach.push((inst) => {
412
- inst._zod.bag.contentEncoding = "base64";
413
- });
405
+ inst._zod.bag.contentEncoding = "base64";
414
406
  inst._zod.check = (payload) => {
415
407
  if (isValidBase64(payload.value))
416
408
  return;
@@ -434,9 +426,7 @@ function isValidBase64URL(data) {
434
426
  exports.$ZodBase64URL = core.$constructor("$ZodBase64URL", (inst, def) => {
435
427
  def.pattern ?? (def.pattern = regexes.base64url);
436
428
  exports.$ZodStringFormat.init(inst, def);
437
- inst._zod.onattach.push((inst) => {
438
- inst._zod.bag.contentEncoding = "base64url";
439
- });
429
+ inst._zod.bag.contentEncoding = "base64url";
440
430
  inst._zod.check = (payload) => {
441
431
  if (isValidBase64URL(payload.value))
442
432
  return;
@@ -534,9 +524,9 @@ exports.$ZodNumber = core.$constructor("$ZodNumber", (inst, def) => {
534
524
  return payload;
535
525
  };
536
526
  });
537
- exports.$ZodNumberFormat = core.$constructor("$ZodNumber", (inst, def) => {
527
+ exports.$ZodNumberFormat = core.$constructor("$ZodNumberFormat", (inst, def) => {
538
528
  checks.$ZodCheckNumberFormat.init(inst, def);
539
- exports.$ZodNumber.init(inst, def); // no format checksp
529
+ exports.$ZodNumber.init(inst, def); // no format checks
540
530
  });
541
531
  exports.$ZodBoolean = core.$constructor("$ZodBoolean", (inst, def) => {
542
532
  exports.$ZodType.init(inst, def);
@@ -579,7 +569,7 @@ exports.$ZodBigInt = core.$constructor("$ZodBigInt", (inst, def) => {
579
569
  return payload;
580
570
  };
581
571
  });
582
- exports.$ZodBigIntFormat = core.$constructor("$ZodBigInt", (inst, def) => {
572
+ exports.$ZodBigIntFormat = core.$constructor("$ZodBigIntFormat", (inst, def) => {
583
573
  checks.$ZodCheckBigIntFormat.init(inst, def);
584
574
  exports.$ZodBigInt.init(inst, def); // no format checks
585
575
  });
@@ -206,7 +206,7 @@ export const $ZodURL = /*@__PURE__*/ core.$constructor("$ZodURL", (inst, def) =>
206
206
  code: "invalid_format",
207
207
  format: "url",
208
208
  note: "Invalid hostname",
209
- pattern: regexes.hostname.source,
209
+ pattern: def.hostname.source,
210
210
  input: payload.value,
211
211
  inst,
212
212
  continue: !def.abort,
@@ -296,18 +296,12 @@ export const $ZodISODuration = /*@__PURE__*/ core.$constructor("$ZodISODuration"
296
296
  export const $ZodIPv4 = /*@__PURE__*/ core.$constructor("$ZodIPv4", (inst, def) => {
297
297
  def.pattern ?? (def.pattern = regexes.ipv4);
298
298
  $ZodStringFormat.init(inst, def);
299
- inst._zod.onattach.push((inst) => {
300
- const bag = inst._zod.bag;
301
- bag.format = `ipv4`;
302
- });
299
+ inst._zod.bag.format = `ipv4`;
303
300
  });
304
301
  export const $ZodIPv6 = /*@__PURE__*/ core.$constructor("$ZodIPv6", (inst, def) => {
305
302
  def.pattern ?? (def.pattern = regexes.ipv6);
306
303
  $ZodStringFormat.init(inst, def);
307
- inst._zod.onattach.push((inst) => {
308
- const bag = inst._zod.bag;
309
- bag.format = `ipv6`;
310
- });
304
+ inst._zod.bag.format = `ipv6`;
311
305
  inst._zod.check = (payload) => {
312
306
  try {
313
307
  // @ts-ignore
@@ -377,9 +371,7 @@ export function isValidBase64(data) {
377
371
  export const $ZodBase64 = /*@__PURE__*/ core.$constructor("$ZodBase64", (inst, def) => {
378
372
  def.pattern ?? (def.pattern = regexes.base64);
379
373
  $ZodStringFormat.init(inst, def);
380
- inst._zod.onattach.push((inst) => {
381
- inst._zod.bag.contentEncoding = "base64";
382
- });
374
+ inst._zod.bag.contentEncoding = "base64";
383
375
  inst._zod.check = (payload) => {
384
376
  if (isValidBase64(payload.value))
385
377
  return;
@@ -403,9 +395,7 @@ export function isValidBase64URL(data) {
403
395
  export const $ZodBase64URL = /*@__PURE__*/ core.$constructor("$ZodBase64URL", (inst, def) => {
404
396
  def.pattern ?? (def.pattern = regexes.base64url);
405
397
  $ZodStringFormat.init(inst, def);
406
- inst._zod.onattach.push((inst) => {
407
- inst._zod.bag.contentEncoding = "base64url";
408
- });
398
+ inst._zod.bag.contentEncoding = "base64url";
409
399
  inst._zod.check = (payload) => {
410
400
  if (isValidBase64URL(payload.value))
411
401
  return;
@@ -503,9 +493,9 @@ export const $ZodNumber = /*@__PURE__*/ core.$constructor("$ZodNumber", (inst, d
503
493
  return payload;
504
494
  };
505
495
  });
506
- export const $ZodNumberFormat = /*@__PURE__*/ core.$constructor("$ZodNumber", (inst, def) => {
496
+ export const $ZodNumberFormat = /*@__PURE__*/ core.$constructor("$ZodNumberFormat", (inst, def) => {
507
497
  checks.$ZodCheckNumberFormat.init(inst, def);
508
- $ZodNumber.init(inst, def); // no format checksp
498
+ $ZodNumber.init(inst, def); // no format checks
509
499
  });
510
500
  export const $ZodBoolean = /*@__PURE__*/ core.$constructor("$ZodBoolean", (inst, def) => {
511
501
  $ZodType.init(inst, def);
@@ -548,7 +538,7 @@ export const $ZodBigInt = /*@__PURE__*/ core.$constructor("$ZodBigInt", (inst, d
548
538
  return payload;
549
539
  };
550
540
  });
551
- export const $ZodBigIntFormat = /*@__PURE__*/ core.$constructor("$ZodBigInt", (inst, def) => {
541
+ export const $ZodBigIntFormat = /*@__PURE__*/ core.$constructor("$ZodBigIntFormat", (inst, def) => {
552
542
  checks.$ZodCheckBigIntFormat.init(inst, def);
553
543
  $ZodBigInt.init(inst, def); // no format checks
554
544
  });
@@ -4,5 +4,5 @@ exports.version = void 0;
4
4
  exports.version = {
5
5
  major: 4,
6
6
  minor: 1,
7
- patch: 11,
7
+ patch: 12,
8
8
  };
@@ -1,5 +1,5 @@
1
1
  export const version = {
2
2
  major: 4,
3
3
  minor: 1,
4
- patch: 11,
4
+ patch: 12,
5
5
  };
@@ -3,13 +3,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.yo = exports.zhTW = exports.zhCN = exports.vi = exports.ur = exports.uk = exports.ua = exports.tr = exports.th = exports.ta = exports.sv = exports.sl = exports.ru = exports.pt = exports.pl = exports.ps = exports.ota = exports.no = exports.nl = exports.ms = exports.mk = exports.lt = exports.ko = exports.km = exports.kh = exports.ka = exports.ja = exports.it = exports.is = exports.id = exports.hu = exports.he = exports.frCA = exports.fr = exports.fi = exports.fa = exports.es = exports.eo = exports.en = exports.de = exports.da = exports.cs = exports.ca = exports.be = exports.az = exports.ar = void 0;
6
+ exports.yo = exports.zhTW = exports.zhCN = exports.vi = exports.ur = exports.uk = exports.ua = exports.tr = exports.th = exports.ta = exports.sv = exports.sl = exports.ru = exports.pt = exports.pl = exports.ps = exports.ota = exports.no = exports.nl = exports.ms = exports.mk = exports.lt = exports.ko = exports.km = exports.kh = exports.ka = exports.ja = exports.it = exports.is = exports.id = exports.hu = exports.he = exports.frCA = exports.fr = exports.fi = exports.fa = exports.es = exports.eo = exports.en = exports.de = exports.da = exports.cs = exports.ca = exports.bg = exports.be = exports.az = exports.ar = void 0;
7
7
  var ar_js_1 = require("./ar.cjs");
8
8
  Object.defineProperty(exports, "ar", { enumerable: true, get: function () { return __importDefault(ar_js_1).default; } });
9
9
  var az_js_1 = require("./az.cjs");
10
10
  Object.defineProperty(exports, "az", { enumerable: true, get: function () { return __importDefault(az_js_1).default; } });
11
11
  var be_js_1 = require("./be.cjs");
12
12
  Object.defineProperty(exports, "be", { enumerable: true, get: function () { return __importDefault(be_js_1).default; } });
13
+ var bg_js_1 = require("./bg.cjs");
14
+ Object.defineProperty(exports, "bg", { enumerable: true, get: function () { return __importDefault(bg_js_1).default; } });
13
15
  var ca_js_1 = require("./ca.cjs");
14
16
  Object.defineProperty(exports, "ca", { enumerable: true, get: function () { return __importDefault(ca_js_1).default; } });
15
17
  var cs_js_1 = require("./cs.cjs");
@@ -1,6 +1,7 @@
1
1
  export { default as ar } from "./ar.cjs";
2
2
  export { default as az } from "./az.cjs";
3
3
  export { default as be } from "./be.cjs";
4
+ export { default as bg } from "./bg.cjs";
4
5
  export { default as ca } from "./ca.cjs";
5
6
  export { default as cs } from "./cs.cjs";
6
7
  export { default as da } from "./da.cjs";
@@ -1,6 +1,7 @@
1
1
  export { default as ar } from "./ar.js";
2
2
  export { default as az } from "./az.js";
3
3
  export { default as be } from "./be.js";
4
+ export { default as bg } from "./bg.js";
4
5
  export { default as ca } from "./ca.js";
5
6
  export { default as cs } from "./cs.js";
6
7
  export { default as da } from "./da.js";
@@ -1,6 +1,7 @@
1
1
  export { default as ar } from "./ar.js";
2
2
  export { default as az } from "./az.js";
3
3
  export { default as be } from "./be.js";
4
+ export { default as bg } from "./bg.js";
4
5
  export { default as ca } from "./ca.js";
5
6
  export { default as cs } from "./cs.js";
6
7
  export { default as da } from "./da.js";
package/v4/mini/iso.cjs CHANGED
@@ -30,28 +30,28 @@ exports.time = time;
30
30
  exports.duration = duration;
31
31
  const core = __importStar(require("../core/index.cjs"));
32
32
  const schemas = __importStar(require("./schemas.cjs"));
33
- exports.ZodMiniISODateTime = core.$constructor("$ZodISODateTime", (inst, def) => {
33
+ exports.ZodMiniISODateTime = core.$constructor("ZodMiniISODateTime", (inst, def) => {
34
34
  core.$ZodISODateTime.init(inst, def);
35
35
  schemas.ZodMiniStringFormat.init(inst, def);
36
36
  });
37
37
  function datetime(params) {
38
38
  return core._isoDateTime(exports.ZodMiniISODateTime, params);
39
39
  }
40
- exports.ZodMiniISODate = core.$constructor("$ZodISODate", (inst, def) => {
40
+ exports.ZodMiniISODate = core.$constructor("ZodMiniISODate", (inst, def) => {
41
41
  core.$ZodISODate.init(inst, def);
42
42
  schemas.ZodMiniStringFormat.init(inst, def);
43
43
  });
44
44
  function date(params) {
45
45
  return core._isoDate(exports.ZodMiniISODate, params);
46
46
  }
47
- exports.ZodMiniISOTime = core.$constructor("$ZodISOTime", (inst, def) => {
47
+ exports.ZodMiniISOTime = core.$constructor("ZodMiniISOTime", (inst, def) => {
48
48
  core.$ZodISOTime.init(inst, def);
49
49
  schemas.ZodMiniStringFormat.init(inst, def);
50
50
  });
51
51
  function time(params) {
52
52
  return core._isoTime(exports.ZodMiniISOTime, params);
53
53
  }
54
- exports.ZodMiniISODuration = core.$constructor("$ZodISODuration", (inst, def) => {
54
+ exports.ZodMiniISODuration = core.$constructor("ZodMiniISODuration", (inst, def) => {
55
55
  core.$ZodISODuration.init(inst, def);
56
56
  schemas.ZodMiniStringFormat.init(inst, def);
57
57
  });
package/v4/mini/iso.js CHANGED
@@ -1,27 +1,27 @@
1
1
  import * as core from "../core/index.js";
2
2
  import * as schemas from "./schemas.js";
3
- export const ZodMiniISODateTime = /*@__PURE__*/ core.$constructor("$ZodISODateTime", (inst, def) => {
3
+ export const ZodMiniISODateTime = /*@__PURE__*/ core.$constructor("ZodMiniISODateTime", (inst, def) => {
4
4
  core.$ZodISODateTime.init(inst, def);
5
5
  schemas.ZodMiniStringFormat.init(inst, def);
6
6
  });
7
7
  export function datetime(params) {
8
8
  return core._isoDateTime(ZodMiniISODateTime, params);
9
9
  }
10
- export const ZodMiniISODate = /*@__PURE__*/ core.$constructor("$ZodISODate", (inst, def) => {
10
+ export const ZodMiniISODate = /*@__PURE__*/ core.$constructor("ZodMiniISODate", (inst, def) => {
11
11
  core.$ZodISODate.init(inst, def);
12
12
  schemas.ZodMiniStringFormat.init(inst, def);
13
13
  });
14
14
  export function date(params) {
15
15
  return core._isoDate(ZodMiniISODate, params);
16
16
  }
17
- export const ZodMiniISOTime = /*@__PURE__*/ core.$constructor("$ZodISOTime", (inst, def) => {
17
+ export const ZodMiniISOTime = /*@__PURE__*/ core.$constructor("ZodMiniISOTime", (inst, def) => {
18
18
  core.$ZodISOTime.init(inst, def);
19
19
  schemas.ZodMiniStringFormat.init(inst, def);
20
20
  });
21
21
  export function time(params) {
22
22
  return core._isoTime(ZodMiniISOTime, params);
23
23
  }
24
- export const ZodMiniISODuration = /*@__PURE__*/ core.$constructor("$ZodISODuration", (inst, def) => {
24
+ export const ZodMiniISODuration = /*@__PURE__*/ core.$constructor("ZodMiniISODuration", (inst, def) => {
25
25
  core.$ZodISODuration.init(inst, def);
26
26
  schemas.ZodMiniStringFormat.init(inst, def);
27
27
  });