@storm-software/git-tools 2.130.39 → 2.130.40

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.
Files changed (60) hide show
  1. package/README.md +1 -1
  2. package/bin/{chunk-LOG3DPPQ.cjs → chunk-27LFN4VQ.cjs} +4 -4
  3. package/bin/{chunk-LOG3DPPQ.cjs.map → chunk-27LFN4VQ.cjs.map} +1 -1
  4. package/bin/{chunk-WBM5EHOT.js → chunk-3RY4CGUX.js} +3 -3
  5. package/bin/{chunk-WBM5EHOT.js.map → chunk-3RY4CGUX.js.map} +1 -1
  6. package/bin/{chunk-CW2LOJGK.js → chunk-6V4HD3QJ.js} +3 -3
  7. package/bin/{chunk-CW2LOJGK.js.map → chunk-6V4HD3QJ.js.map} +1 -1
  8. package/bin/{chunk-5VMV7N3G.js → chunk-BHWWH5OI.js} +163 -73
  9. package/bin/chunk-BHWWH5OI.js.map +1 -0
  10. package/bin/{chunk-2RGP4ACE.js → chunk-DNLVUV64.js} +3 -3
  11. package/bin/{chunk-2RGP4ACE.js.map → chunk-DNLVUV64.js.map} +1 -1
  12. package/bin/{chunk-ZSLNAQQG.js → chunk-GU7L3IBA.js} +3 -3
  13. package/bin/{chunk-ZSLNAQQG.js.map → chunk-GU7L3IBA.js.map} +1 -1
  14. package/bin/{chunk-2QLTCKJS.js → chunk-IEGXPTOH.js} +3 -3
  15. package/bin/{chunk-2QLTCKJS.js.map → chunk-IEGXPTOH.js.map} +1 -1
  16. package/bin/{chunk-5Z6RONLO.cjs → chunk-LR2WNL25.cjs} +4 -4
  17. package/bin/{chunk-5Z6RONLO.cjs.map → chunk-LR2WNL25.cjs.map} +1 -1
  18. package/bin/{chunk-WYYIBLO2.cjs → chunk-MY767YV7.cjs} +6 -6
  19. package/bin/{chunk-WYYIBLO2.cjs.map → chunk-MY767YV7.cjs.map} +1 -1
  20. package/bin/{chunk-HVR76UIF.cjs → chunk-PTYTYIPG.cjs} +163 -73
  21. package/bin/chunk-PTYTYIPG.cjs.map +1 -0
  22. package/bin/{chunk-PRWPYXMH.cjs → chunk-ROM64JTJ.cjs} +4 -4
  23. package/bin/{chunk-PRWPYXMH.cjs.map → chunk-ROM64JTJ.cjs.map} +1 -1
  24. package/bin/{chunk-NZCON5HN.cjs → chunk-THX6DU6T.cjs} +4 -4
  25. package/bin/{chunk-NZCON5HN.cjs.map → chunk-THX6DU6T.cjs.map} +1 -1
  26. package/bin/{chunk-L5CIC5RM.cjs → chunk-UIGOGTUM.cjs} +4 -4
  27. package/bin/{chunk-L5CIC5RM.cjs.map → chunk-UIGOGTUM.cjs.map} +1 -1
  28. package/bin/{chunk-HIBBA263.cjs → chunk-USGU6ZVC.cjs} +5 -5
  29. package/bin/{chunk-HIBBA263.cjs.map → chunk-USGU6ZVC.cjs.map} +1 -1
  30. package/bin/{chunk-GULFJC7R.js → chunk-V6PBXXP5.js} +3 -3
  31. package/bin/{chunk-GULFJC7R.js.map → chunk-V6PBXXP5.js.map} +1 -1
  32. package/bin/{chunk-XY4WATTM.js → chunk-Y6YU46VF.js} +3 -3
  33. package/bin/{chunk-XY4WATTM.js.map → chunk-Y6YU46VF.js.map} +1 -1
  34. package/bin/git.cjs +118 -118
  35. package/bin/git.js +8 -8
  36. package/bin/post-checkout.cjs +7 -7
  37. package/bin/post-checkout.js +2 -2
  38. package/bin/post-commit.cjs +7 -7
  39. package/bin/post-commit.js +2 -2
  40. package/bin/post-merge.cjs +7 -7
  41. package/bin/post-merge.js +2 -2
  42. package/bin/pre-commit.cjs +7 -7
  43. package/bin/pre-commit.js +2 -2
  44. package/bin/pre-install.cjs +7 -7
  45. package/bin/pre-install.js +2 -2
  46. package/bin/pre-push.cjs +7 -7
  47. package/bin/pre-push.js +2 -2
  48. package/bin/prepare.cjs +7 -7
  49. package/bin/prepare.js +2 -2
  50. package/bin/version-warning.cjs +5 -5
  51. package/bin/version-warning.js +1 -1
  52. package/dist/{chunk-AH2722GG.cjs → chunk-GTHIKJY7.cjs} +162 -72
  53. package/dist/{chunk-LXOOPN74.js → chunk-VBTXRYZY.js} +162 -72
  54. package/dist/index.cjs +8 -8
  55. package/dist/index.js +1 -1
  56. package/dist/release/config.cjs +8 -8
  57. package/dist/release/config.js +1 -1
  58. package/package.json +9 -9
  59. package/bin/chunk-5VMV7N3G.js.map +0 -1
  60. package/bin/chunk-HVR76UIF.cjs.map +0 -1
@@ -255,6 +255,9 @@ var STORM_DEFAULT_LICENSING = "https://stormsoftware.com/license";
255
255
  var STORM_DEFAULT_LICENSE = "Apache-2.0";
256
256
  var STORM_DEFAULT_ERROR_CODES_FILE = "tools/errors/codes.json";
257
257
  var STORM_DEFAULT_BANNER_ALT = "The workspace's banner image";
258
+
259
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.js
260
+ var _a;
258
261
  // @__NO_SIDE_EFFECTS__
259
262
  function $constructor(name, initializer2, params) {
260
263
  function init(inst, def) {
@@ -287,10 +290,10 @@ function $constructor(name, initializer2, params) {
287
290
  }
288
291
  Object.defineProperty(Definition, "name", { value: name });
289
292
  function _(def) {
290
- var _a2;
293
+ var _a3;
291
294
  const inst = params?.Parent ? new Definition() : this;
292
295
  init(inst, def);
293
- (_a2 = inst._zod).deferred ?? (_a2.deferred = []);
296
+ (_a3 = inst._zod).deferred ?? (_a3.deferred = []);
294
297
  for (const fn of inst._zod.deferred) {
295
298
  fn();
296
299
  }
@@ -312,12 +315,13 @@ var $ZodAsyncError = class extends Error {
312
315
  super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);
313
316
  }
314
317
  };
315
- var globalConfig = {};
318
+ (_a = globalThis).__zod_globalConfig ?? (_a.__zod_globalConfig = {});
319
+ var globalConfig = globalThis.__zod_globalConfig;
316
320
  function config(newConfig) {
317
321
  return globalConfig;
318
322
  }
319
323
 
320
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/util.js
324
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/util.js
321
325
  function getEnumValues(entries) {
322
326
  const numericValues = Object.values(entries).filter((v) => typeof v === "number");
323
327
  const values = Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
@@ -347,7 +351,7 @@ function cleanRegex(source) {
347
351
  const end = source.endsWith("$") ? source.length - 1 : source.length;
348
352
  return source.slice(start, end);
349
353
  }
350
- var EVALUATING = Symbol("evaluating");
354
+ var EVALUATING = /* @__PURE__ */ Symbol("evaluating");
351
355
  function defineLazy(object2, key, getter) {
352
356
  let value = void 0;
353
357
  Object.defineProperty(object2, key, {
@@ -396,6 +400,10 @@ function shallowClone(o) {
396
400
  return { ...o };
397
401
  if (Array.isArray(o))
398
402
  return [...o];
403
+ if (o instanceof Map)
404
+ return new Map(o);
405
+ if (o instanceof Set)
406
+ return new Set(o);
399
407
  return o;
400
408
  }
401
409
  var propertyKeyTypes = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
@@ -409,7 +417,20 @@ function clone(inst, def, params) {
409
417
  return cl;
410
418
  }
411
419
  function normalizeParams(_params) {
412
- return {};
420
+ const params = _params;
421
+ if (!params)
422
+ return {};
423
+ if (typeof params === "string")
424
+ return { error: () => params };
425
+ if (params?.message !== void 0) {
426
+ if (params?.error !== void 0)
427
+ throw new Error("Cannot specify both `message` and `error` params");
428
+ params.error = params.message;
429
+ }
430
+ delete params.message;
431
+ if (typeof params.error === "string")
432
+ return { ...params, error: () => params.error };
433
+ return params;
413
434
  }
414
435
  function optionalKeys(shape) {
415
436
  return Object.keys(shape).filter((k) => {
@@ -426,10 +447,20 @@ function aborted(x, startIndex = 0) {
426
447
  }
427
448
  return false;
428
449
  }
450
+ function explicitlyAborted(x, startIndex = 0) {
451
+ if (x.aborted === true)
452
+ return true;
453
+ for (let i = startIndex; i < x.issues.length; i++) {
454
+ if (x.issues[i]?.continue === false) {
455
+ return true;
456
+ }
457
+ }
458
+ return false;
459
+ }
429
460
  function prefixIssues(path, issues) {
430
461
  return issues.map((iss) => {
431
- var _a2;
432
- (_a2 = iss).path ?? (_a2.path = []);
462
+ var _a3;
463
+ (_a3 = iss).path ?? (_a3.path = []);
433
464
  iss.path.unshift(path);
434
465
  return iss;
435
466
  });
@@ -438,17 +469,14 @@ function unwrapMessage(message) {
438
469
  return typeof message === "string" ? message : message?.message;
439
470
  }
440
471
  function finalizeIssue(iss, ctx, config2) {
441
- const full = { ...iss, path: iss.path ?? [] };
442
- if (!iss.message) {
443
- const message = unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config2.customError?.(iss)) ?? unwrapMessage(config2.localeError?.(iss)) ?? "Invalid input";
444
- full.message = message;
445
- }
446
- delete full.inst;
447
- delete full.continue;
448
- if (!ctx?.reportInput) {
449
- delete full.input;
450
- }
451
- return full;
472
+ const message = iss.message ? iss.message : unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config2.customError?.(iss)) ?? unwrapMessage(config2.localeError?.(iss)) ?? "Invalid input";
473
+ const { inst: _inst, continue: _continue, input: _input, ...rest } = iss;
474
+ rest.path ?? (rest.path = []);
475
+ rest.message = message;
476
+ if (ctx?.reportInput) {
477
+ rest.input = _input;
478
+ }
479
+ return rest;
452
480
  }
453
481
  function getLengthableOrigin(input) {
454
482
  if (Array.isArray(input))
@@ -458,7 +486,7 @@ function getLengthableOrigin(input) {
458
486
  return "unknown";
459
487
  }
460
488
 
461
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/errors.js
489
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/errors.js
462
490
  var initializer = (inst, def) => {
463
491
  inst.name = "$ZodError";
464
492
  Object.defineProperty(inst, "_zod", {
@@ -478,9 +506,9 @@ var initializer = (inst, def) => {
478
506
  var $ZodError = $constructor("$ZodError", initializer);
479
507
  var $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
480
508
 
481
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/parse.js
509
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/parse.js
482
510
  var _parse = (_Err) => (schema, value, _ctx, _params) => {
483
- const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
511
+ const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
484
512
  const result = schema._zod.run({ value, issues: [] }, ctx);
485
513
  if (result instanceof Promise) {
486
514
  throw new $ZodAsyncError();
@@ -494,7 +522,7 @@ var _parse = (_Err) => (schema, value, _ctx, _params) => {
494
522
  };
495
523
  var parse = /* @__PURE__ */ _parse($ZodRealError);
496
524
  var _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
497
- const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
525
+ const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
498
526
  let result = schema._zod.run({ value, issues: [] }, ctx);
499
527
  if (result instanceof Promise)
500
528
  result = await result;
@@ -519,7 +547,7 @@ var _safeParse = (_Err) => (schema, value, _ctx) => {
519
547
  };
520
548
  var safeParse = /* @__PURE__ */ _safeParse($ZodRealError);
521
549
  var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
522
- const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
550
+ const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
523
551
  let result = schema._zod.run({ value, issues: [] }, ctx);
524
552
  if (result instanceof Promise)
525
553
  result = await result;
@@ -529,6 +557,9 @@ var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
529
557
  } : { success: true, data: result.value };
530
558
  };
531
559
  var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
560
+
561
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/regexes.js
562
+ var httpProtocol = /^https?$/;
532
563
  var string = (params) => {
533
564
  const regex = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
534
565
  return new RegExp(`^${regex}$`);
@@ -536,17 +567,17 @@ var string = (params) => {
536
567
  var number = /^-?\d+(?:\.\d+)?$/;
537
568
  var boolean = /^(?:true|false)$/i;
538
569
 
539
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/checks.js
570
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/checks.js
540
571
  var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
541
- var _a2;
572
+ var _a3;
542
573
  inst._zod ?? (inst._zod = {});
543
574
  inst._zod.def = def;
544
- (_a2 = inst._zod).onattach ?? (_a2.onattach = []);
575
+ (_a3 = inst._zod).onattach ?? (_a3.onattach = []);
545
576
  });
546
577
  var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
547
- var _a2;
578
+ var _a3;
548
579
  $ZodCheck.init(inst, def);
549
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
580
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
550
581
  const val = payload.value;
551
582
  return !nullish(val) && val.length !== void 0;
552
583
  });
@@ -575,7 +606,7 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
575
606
  };
576
607
  });
577
608
  var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
578
- var _a2, _b;
609
+ var _a3, _b;
579
610
  $ZodCheck.init(inst, def);
580
611
  inst._zod.onattach.push((inst2) => {
581
612
  const bag = inst2._zod.bag;
@@ -586,7 +617,7 @@ var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat"
586
617
  }
587
618
  });
588
619
  if (def.pattern)
589
- (_a2 = inst._zod).check ?? (_a2.check = (payload) => {
620
+ (_a3 = inst._zod).check ?? (_a3.check = (payload) => {
590
621
  def.pattern.lastIndex = 0;
591
622
  if (def.pattern.test(payload.value))
592
623
  return;
@@ -628,16 +659,16 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
628
659
  };
629
660
  });
630
661
 
631
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/versions.js
662
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/versions.js
632
663
  var version = {
633
664
  major: 4,
634
- minor: 3,
635
- patch: 6
665
+ minor: 4,
666
+ patch: 3
636
667
  };
637
668
 
638
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.js
669
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/schemas.js
639
670
  var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
640
- var _a2;
671
+ var _a3;
641
672
  inst ?? (inst = {});
642
673
  inst._zod.def = def;
643
674
  inst._zod.bag = inst._zod.bag || {};
@@ -652,7 +683,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
652
683
  }
653
684
  }
654
685
  if (checks.length === 0) {
655
- (_a2 = inst._zod).deferred ?? (_a2.deferred = []);
686
+ (_a3 = inst._zod).deferred ?? (_a3.deferred = []);
656
687
  inst._zod.deferred?.push(() => {
657
688
  inst._zod.run = inst._zod.parse;
658
689
  });
@@ -662,6 +693,8 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
662
693
  let asyncResult;
663
694
  for (const ch of checks2) {
664
695
  if (ch._zod.def.when) {
696
+ if (explicitlyAborted(payload))
697
+ continue;
665
698
  const shouldRun = ch._zod.def.when(payload);
666
699
  if (!shouldRun)
667
700
  continue;
@@ -774,6 +807,19 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
774
807
  inst._zod.check = (payload) => {
775
808
  try {
776
809
  const trimmed = payload.value.trim();
810
+ if (!def.normalize && def.protocol?.source === httpProtocol.source) {
811
+ if (!/^https?:\/\//i.test(trimmed)) {
812
+ payload.issues.push({
813
+ code: "invalid_format",
814
+ format: "url",
815
+ note: "Invalid URL format",
816
+ input: payload.value,
817
+ inst,
818
+ continue: !def.abort
819
+ });
820
+ return;
821
+ }
822
+ }
777
823
  const url2 = new URL(trimmed);
778
824
  if (def.hostname) {
779
825
  def.hostname.lastIndex = 0;
@@ -884,15 +930,27 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
884
930
  return payload;
885
931
  };
886
932
  });
887
- function handlePropertyResult(result, final, key, input, isOptionalOut) {
933
+ function handlePropertyResult(result, final, key, input, isOptionalIn, isOptionalOut) {
934
+ const isPresent = key in input;
888
935
  if (result.issues.length) {
889
- if (isOptionalOut && !(key in input)) {
936
+ if (isOptionalIn && isOptionalOut && !isPresent) {
890
937
  return;
891
938
  }
892
939
  final.issues.push(...prefixIssues(key, result.issues));
893
940
  }
941
+ if (!isPresent && !isOptionalIn) {
942
+ if (!result.issues.length) {
943
+ final.issues.push({
944
+ code: "invalid_type",
945
+ expected: "nonoptional",
946
+ input: void 0,
947
+ path: [key]
948
+ });
949
+ }
950
+ return;
951
+ }
894
952
  if (result.value === void 0) {
895
- if (key in input) {
953
+ if (isPresent) {
896
954
  final.value[key] = void 0;
897
955
  }
898
956
  } else {
@@ -920,8 +978,11 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
920
978
  const keySet = def.keySet;
921
979
  const _catchall = def.catchall._zod;
922
980
  const t = _catchall.def.type;
981
+ const isOptionalIn = _catchall.optin === "optional";
923
982
  const isOptionalOut = _catchall.optout === "optional";
924
983
  for (const key in input) {
984
+ if (key === "__proto__")
985
+ continue;
925
986
  if (keySet.has(key))
926
987
  continue;
927
988
  if (t === "never") {
@@ -930,9 +991,9 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
930
991
  }
931
992
  const r = _catchall.run({ value: input[key], issues: [] }, ctx);
932
993
  if (r instanceof Promise) {
933
- proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
994
+ proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
934
995
  } else {
935
- handlePropertyResult(r, payload, key, input, isOptionalOut);
996
+ handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
936
997
  }
937
998
  }
938
999
  if (unrecognized.length) {
@@ -998,12 +1059,13 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
998
1059
  const shape = value.shape;
999
1060
  for (const key of value.keys) {
1000
1061
  const el = shape[key];
1062
+ const isOptionalIn = el._zod.optin === "optional";
1001
1063
  const isOptionalOut = el._zod.optout === "optional";
1002
1064
  const r = el._zod.run({ value: input[key], issues: [] }, ctx);
1003
1065
  if (r instanceof Promise) {
1004
- proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
1066
+ proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
1005
1067
  } else {
1006
- handlePropertyResult(r, payload, key, input, isOptionalOut);
1068
+ handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
1007
1069
  }
1008
1070
  }
1009
1071
  if (!catchall) {
@@ -1049,10 +1111,9 @@ var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
1049
1111
  }
1050
1112
  return void 0;
1051
1113
  });
1052
- const single = def.options.length === 1;
1053
- const first = def.options[0]._zod.run;
1114
+ const first = def.options.length === 1 ? def.options[0]._zod.run : null;
1054
1115
  inst._zod.parse = (payload, ctx) => {
1055
- if (single) {
1116
+ if (first) {
1056
1117
  return first(payload, ctx);
1057
1118
  }
1058
1119
  let async = false;
@@ -1099,19 +1160,35 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
1099
1160
  for (const key of values) {
1100
1161
  if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
1101
1162
  recordKeys.add(typeof key === "number" ? key.toString() : key);
1163
+ const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
1164
+ if (keyResult instanceof Promise) {
1165
+ throw new Error("Async schemas not supported in object keys currently");
1166
+ }
1167
+ if (keyResult.issues.length) {
1168
+ payload.issues.push({
1169
+ code: "invalid_key",
1170
+ origin: "record",
1171
+ issues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config())),
1172
+ input: key,
1173
+ path: [key],
1174
+ inst
1175
+ });
1176
+ continue;
1177
+ }
1178
+ const outKey = keyResult.value;
1102
1179
  const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
1103
1180
  if (result instanceof Promise) {
1104
1181
  proms.push(result.then((result2) => {
1105
1182
  if (result2.issues.length) {
1106
1183
  payload.issues.push(...prefixIssues(key, result2.issues));
1107
1184
  }
1108
- payload.value[key] = result2.value;
1185
+ payload.value[outKey] = result2.value;
1109
1186
  }));
1110
1187
  } else {
1111
1188
  if (result.issues.length) {
1112
1189
  payload.issues.push(...prefixIssues(key, result.issues));
1113
1190
  }
1114
- payload.value[key] = result.value;
1191
+ payload.value[outKey] = result.value;
1115
1192
  }
1116
1193
  }
1117
1194
  }
@@ -1135,6 +1212,8 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
1135
1212
  for (const key of Reflect.ownKeys(input)) {
1136
1213
  if (key === "__proto__")
1137
1214
  continue;
1215
+ if (!Object.prototype.propertyIsEnumerable.call(input, key))
1216
+ continue;
1138
1217
  let keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
1139
1218
  if (keyResult instanceof Promise) {
1140
1219
  throw new Error("Async schemas not supported in object keys currently");
@@ -1229,7 +1308,7 @@ var $ZodLiteral = /* @__PURE__ */ $constructor("$ZodLiteral", (inst, def) => {
1229
1308
  };
1230
1309
  });
1231
1310
  function handleOptionalResult(result, input) {
1232
- if (result.issues.length && input === void 0) {
1311
+ if (input === void 0 && (result.issues.length || result.fallback)) {
1233
1312
  return { issues: [], value: void 0 };
1234
1313
  }
1235
1314
  return result;
@@ -1247,10 +1326,11 @@ var $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) => {
1247
1326
  });
1248
1327
  inst._zod.parse = (payload, ctx) => {
1249
1328
  if (def.innerType._zod.optin === "optional") {
1329
+ const input = payload.value;
1250
1330
  const result = def.innerType._zod.run(payload, ctx);
1251
1331
  if (result instanceof Promise)
1252
- return result.then((r) => handleOptionalResult(r, payload.value));
1253
- return handleOptionalResult(result, payload.value);
1332
+ return result.then((r) => handleOptionalResult(r, input));
1333
+ return handleOptionalResult(result, input);
1254
1334
  }
1255
1335
  if (payload.value === void 0) {
1256
1336
  return payload;
@@ -1301,8 +1381,8 @@ function handleDefaultResult(payload, def) {
1301
1381
  return payload;
1302
1382
  }
1303
1383
 
1304
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/registries.js
1305
- var _a;
1384
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/registries.js
1385
+ var _a2;
1306
1386
  var $ZodRegistry = class {
1307
1387
  constructor() {
1308
1388
  this._map = /* @__PURE__ */ new WeakMap();
@@ -1346,14 +1426,14 @@ var $ZodRegistry = class {
1346
1426
  function registry() {
1347
1427
  return new $ZodRegistry();
1348
1428
  }
1349
- (_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
1429
+ (_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
1350
1430
 
1351
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/api.js
1431
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.js
1352
1432
  // @__NO_SIDE_EFFECTS__
1353
1433
  function _string(Class, params) {
1354
1434
  return new Class({
1355
1435
  type: "string",
1356
- ...normalizeParams()
1436
+ ...normalizeParams(params)
1357
1437
  });
1358
1438
  }
1359
1439
  // @__NO_SIDE_EFFECTS__
@@ -1363,14 +1443,14 @@ function _url(Class, params) {
1363
1443
  format: "url",
1364
1444
  check: "string_format",
1365
1445
  abort: false,
1366
- ...normalizeParams()
1446
+ ...normalizeParams(params)
1367
1447
  });
1368
1448
  }
1369
1449
  // @__NO_SIDE_EFFECTS__
1370
1450
  function _boolean(Class, params) {
1371
1451
  return new Class({
1372
1452
  type: "boolean",
1373
- ...normalizeParams()
1453
+ ...normalizeParams(params)
1374
1454
  });
1375
1455
  }
1376
1456
  // @__NO_SIDE_EFFECTS__
@@ -1383,7 +1463,7 @@ function _any(Class) {
1383
1463
  function _length(length, params) {
1384
1464
  return new $ZodCheckLengthEquals({
1385
1465
  check: "length_equals",
1386
- ...normalizeParams(),
1466
+ ...normalizeParams(params),
1387
1467
  length
1388
1468
  });
1389
1469
  }
@@ -1392,7 +1472,7 @@ function _regex(pattern, params) {
1392
1472
  return new $ZodCheckRegex({
1393
1473
  check: "string_format",
1394
1474
  format: "regex",
1395
- ...normalizeParams(),
1475
+ ...normalizeParams(params),
1396
1476
  pattern
1397
1477
  });
1398
1478
  }
@@ -1412,7 +1492,7 @@ function _toLowerCase() {
1412
1492
  return /* @__PURE__ */ _overwrite((input) => input.toLowerCase());
1413
1493
  }
1414
1494
 
1415
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/mini/schemas.js
1495
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/mini/schemas.js
1416
1496
  var ZodMiniType = /* @__PURE__ */ $constructor("ZodMiniType", (inst, def) => {
1417
1497
  if (!inst._zod)
1418
1498
  throw new Error("Uninitialized schema in ZodMiniType.");
@@ -1428,7 +1508,9 @@ var ZodMiniType = /* @__PURE__ */ $constructor("ZodMiniType", (inst, def) => {
1428
1508
  ...def,
1429
1509
  checks: [
1430
1510
  ...def.checks ?? [],
1431
- ...checks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
1511
+ ...checks.map((ch) => typeof ch === "function" ? {
1512
+ _zod: { check: ch, def: { check: "custom" }, onattach: [] }
1513
+ } : ch)
1432
1514
  ]
1433
1515
  }, { parent: true });
1434
1516
  };
@@ -1447,7 +1529,7 @@ var ZodMiniString = /* @__PURE__ */ $constructor("ZodMiniString", (inst, def) =>
1447
1529
  });
1448
1530
  // @__NO_SIDE_EFFECTS__
1449
1531
  function string2(params) {
1450
- return _string(ZodMiniString);
1532
+ return _string(ZodMiniString, params);
1451
1533
  }
1452
1534
  var ZodMiniStringFormat = /* @__PURE__ */ $constructor("ZodMiniStringFormat", (inst, def) => {
1453
1535
  $ZodStringFormat.init(inst, def);
@@ -1459,7 +1541,7 @@ var ZodMiniURL = /* @__PURE__ */ $constructor("ZodMiniURL", (inst, def) => {
1459
1541
  });
1460
1542
  // @__NO_SIDE_EFFECTS__
1461
1543
  function url(params) {
1462
- return _url(ZodMiniURL);
1544
+ return _url(ZodMiniURL, params);
1463
1545
  }
1464
1546
  var ZodMiniBoolean = /* @__PURE__ */ $constructor("ZodMiniBoolean", (inst, def) => {
1465
1547
  $ZodBoolean.init(inst, def);
@@ -1467,7 +1549,7 @@ var ZodMiniBoolean = /* @__PURE__ */ $constructor("ZodMiniBoolean", (inst, def)
1467
1549
  });
1468
1550
  // @__NO_SIDE_EFFECTS__
1469
1551
  function boolean2(params) {
1470
- return _boolean(ZodMiniBoolean);
1552
+ return _boolean(ZodMiniBoolean, params);
1471
1553
  }
1472
1554
  var ZodMiniAny = /* @__PURE__ */ $constructor("ZodMiniAny", (inst, def) => {
1473
1555
  $ZodAny.init(inst, def);
@@ -1486,7 +1568,7 @@ function array(element, params) {
1486
1568
  return new ZodMiniArray({
1487
1569
  type: "array",
1488
1570
  element,
1489
- ...normalizeParams()
1571
+ ...normalizeParams(params)
1490
1572
  });
1491
1573
  }
1492
1574
  var ZodMiniObject = /* @__PURE__ */ $constructor("ZodMiniObject", (inst, def) => {
@@ -1499,7 +1581,7 @@ function object(shape, params) {
1499
1581
  const def = {
1500
1582
  type: "object",
1501
1583
  shape: shape ?? {},
1502
- ...normalizeParams()
1584
+ ...normalizeParams(params)
1503
1585
  };
1504
1586
  return new ZodMiniObject(def);
1505
1587
  }
@@ -1512,7 +1594,7 @@ function union(options, params) {
1512
1594
  return new ZodMiniUnion({
1513
1595
  type: "union",
1514
1596
  options,
1515
- ...normalizeParams()
1597
+ ...normalizeParams(params)
1516
1598
  });
1517
1599
  }
1518
1600
  var ZodMiniRecord = /* @__PURE__ */ $constructor("ZodMiniRecord", (inst, def) => {
@@ -1521,11 +1603,19 @@ var ZodMiniRecord = /* @__PURE__ */ $constructor("ZodMiniRecord", (inst, def) =>
1521
1603
  });
1522
1604
  // @__NO_SIDE_EFFECTS__
1523
1605
  function record(keyType, valueType, params) {
1606
+ if (!valueType || !valueType._zod) {
1607
+ return new ZodMiniRecord({
1608
+ type: "record",
1609
+ keyType: /* @__PURE__ */ string2(),
1610
+ valueType: keyType,
1611
+ ...normalizeParams(valueType)
1612
+ });
1613
+ }
1524
1614
  return new ZodMiniRecord({
1525
1615
  type: "record",
1526
1616
  keyType,
1527
1617
  valueType,
1528
- ...normalizeParams()
1618
+ ...normalizeParams(params)
1529
1619
  });
1530
1620
  }
1531
1621
  var ZodMiniEnum = /* @__PURE__ */ $constructor("ZodMiniEnum", (inst, def) => {
@@ -1539,7 +1629,7 @@ function _enum(values, params) {
1539
1629
  return new ZodMiniEnum({
1540
1630
  type: "enum",
1541
1631
  entries,
1542
- ...normalizeParams()
1632
+ ...normalizeParams(params)
1543
1633
  });
1544
1634
  }
1545
1635
  var ZodMiniLiteral = /* @__PURE__ */ $constructor("ZodMiniLiteral", (inst, def) => {
@@ -1551,7 +1641,7 @@ function literal(value, params) {
1551
1641
  return new ZodMiniLiteral({
1552
1642
  type: "literal",
1553
1643
  values: Array.isArray(value) ? value : [value],
1554
- ...normalizeParams()
1644
+ ...normalizeParams(params)
1555
1645
  });
1556
1646
  }
1557
1647
  var ZodMiniOptional = /* @__PURE__ */ $constructor("ZodMiniOptional", (inst, def) => {
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkAH2722GG_cjs = require('./chunk-AH2722GG.cjs');
3
+ var chunkGTHIKJY7_cjs = require('./chunk-GTHIKJY7.cjs');
4
4
  var chunk7ZSL4J35_cjs = require('./chunk-7ZSL4J35.cjs');
5
5
  require('./chunk-CT6VGZZS.cjs');
6
6
  require('./chunk-4VPJA7YJ.cjs');
@@ -21,31 +21,31 @@ require('./chunk-OZEUXY3F.cjs');
21
21
 
22
22
  Object.defineProperty(exports, "DEFAULT_CONVENTIONAL_COMMITS_CONFIG", {
23
23
  enumerable: true,
24
- get: function () { return chunkAH2722GG_cjs.DEFAULT_CONVENTIONAL_COMMITS_CONFIG; }
24
+ get: function () { return chunkGTHIKJY7_cjs.DEFAULT_CONVENTIONAL_COMMITS_CONFIG; }
25
25
  });
26
26
  Object.defineProperty(exports, "DEFAULT_JS_RELEASE_GROUP_CONFIG", {
27
27
  enumerable: true,
28
- get: function () { return chunkAH2722GG_cjs.DEFAULT_JS_RELEASE_GROUP_CONFIG; }
28
+ get: function () { return chunkGTHIKJY7_cjs.DEFAULT_JS_RELEASE_GROUP_CONFIG; }
29
29
  });
30
30
  Object.defineProperty(exports, "DEFAULT_RELEASE_CONFIG", {
31
31
  enumerable: true,
32
- get: function () { return chunkAH2722GG_cjs.DEFAULT_RELEASE_CONFIG; }
32
+ get: function () { return chunkGTHIKJY7_cjs.DEFAULT_RELEASE_CONFIG; }
33
33
  });
34
34
  Object.defineProperty(exports, "DEFAULT_RELEASE_GROUP_CONFIG", {
35
35
  enumerable: true,
36
- get: function () { return chunkAH2722GG_cjs.DEFAULT_RELEASE_GROUP_CONFIG; }
36
+ get: function () { return chunkGTHIKJY7_cjs.DEFAULT_RELEASE_GROUP_CONFIG; }
37
37
  });
38
38
  Object.defineProperty(exports, "DEFAULT_RELEASE_TAG_PATTERN", {
39
39
  enumerable: true,
40
- get: function () { return chunkAH2722GG_cjs.DEFAULT_RELEASE_TAG_PATTERN; }
40
+ get: function () { return chunkGTHIKJY7_cjs.DEFAULT_RELEASE_TAG_PATTERN; }
41
41
  });
42
42
  Object.defineProperty(exports, "DEFAULT_RUST_RELEASE_GROUP_CONFIG", {
43
43
  enumerable: true,
44
- get: function () { return chunkAH2722GG_cjs.DEFAULT_RUST_RELEASE_GROUP_CONFIG; }
44
+ get: function () { return chunkGTHIKJY7_cjs.DEFAULT_RUST_RELEASE_GROUP_CONFIG; }
45
45
  });
46
46
  Object.defineProperty(exports, "getReleaseGroupConfig", {
47
47
  enumerable: true,
48
- get: function () { return chunkAH2722GG_cjs.getReleaseGroupConfig; }
48
+ get: function () { return chunkGTHIKJY7_cjs.getReleaseGroupConfig; }
49
49
  });
50
50
  Object.defineProperty(exports, "DEFAULT_MONOREPO_COMMIT_QUESTIONS", {
51
51
  enumerable: true,
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { DEFAULT_CONVENTIONAL_COMMITS_CONFIG, DEFAULT_JS_RELEASE_GROUP_CONFIG, DEFAULT_RELEASE_CONFIG, DEFAULT_RELEASE_GROUP_CONFIG, DEFAULT_RELEASE_TAG_PATTERN, DEFAULT_RUST_RELEASE_GROUP_CONFIG, getReleaseGroupConfig } from './chunk-LXOOPN74.js';
1
+ export { DEFAULT_CONVENTIONAL_COMMITS_CONFIG, DEFAULT_JS_RELEASE_GROUP_CONFIG, DEFAULT_RELEASE_CONFIG, DEFAULT_RELEASE_GROUP_CONFIG, DEFAULT_RELEASE_TAG_PATTERN, DEFAULT_RUST_RELEASE_GROUP_CONFIG, getReleaseGroupConfig } from './chunk-VBTXRYZY.js';
2
2
  export { DEFAULT_MONOREPO_COMMIT_QUESTIONS } from './chunk-USTER7R2.js';
3
3
  import './chunk-WCAKLYL2.js';
4
4
  import './chunk-3GGWHKRP.js';