@gearbox-protocol/deploy-tools 5.43.0 → 5.44.0

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 (2) hide show
  1. package/dist/index.mjs +17 -11
  2. package/package.json +4 -4
package/dist/index.mjs CHANGED
@@ -386584,6 +386584,7 @@ __export(util_exports, {
386584
386584
  propertyKeyTypes: () => propertyKeyTypes,
386585
386585
  randomString: () => randomString,
386586
386586
  required: () => required,
386587
+ shallowClone: () => shallowClone,
386587
386588
  stringifyPrimitive: () => stringifyPrimitive,
386588
386589
  unwrapMessage: () => unwrapMessage
386589
386590
  });
@@ -386752,6 +386753,11 @@ function isPlainObject(o) {
386752
386753
  }
386753
386754
  return true;
386754
386755
  }
386756
+ function shallowClone(o) {
386757
+ if (isPlainObject(o))
386758
+ return { ...o };
386759
+ return o;
386760
+ }
386755
386761
  function numKeys(data) {
386756
386762
  let keyCount = 0;
386757
386763
  for (const key in data) {
@@ -387979,7 +387985,7 @@ var Doc = class {
387979
387985
  var version4 = {
387980
387986
  major: 4,
387981
387987
  minor: 0,
387982
- patch: 15
387988
+ patch: 17
387983
387989
  };
387984
387990
 
387985
387991
  // ../../node_modules/zod/v4/core/schemas.js
@@ -388618,7 +388624,7 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
388618
388624
  const _normalized = cached(() => {
388619
388625
  const keys2 = Object.keys(def.shape);
388620
388626
  for (const k of keys2) {
388621
- if (!(def.shape[k] instanceof $ZodType)) {
388627
+ if (!def.shape[k]._zod.traits.has("$ZodType")) {
388622
388628
  throw new Error(`Invalid element at key "${k}": expected a Zod schema`);
388623
388629
  }
388624
388630
  }
@@ -389510,7 +389516,7 @@ var $ZodTemplateLiteral = /* @__PURE__ */ $constructor("$ZodTemplateLiteral", (i
389510
389516
  $ZodType.init(inst, def);
389511
389517
  const regexParts = [];
389512
389518
  for (const part of def.parts) {
389513
- if (part instanceof $ZodType) {
389519
+ if (typeof part === "object" && part !== null) {
389514
389520
  if (!part._zod.pattern) {
389515
389521
  throw new Error(`Invalid template literal part, no pattern found: ${[...part._zod.traits].shift()}`);
389516
389522
  }
@@ -395499,7 +395505,7 @@ function _default(Class2, innerType, defaultValue) {
395499
395505
  type: "default",
395500
395506
  innerType,
395501
395507
  get defaultValue() {
395502
- return typeof defaultValue === "function" ? defaultValue() : defaultValue;
395508
+ return typeof defaultValue === "function" ? defaultValue() : shallowClone(defaultValue);
395503
395509
  }
395504
395510
  });
395505
395511
  }
@@ -397068,7 +397074,7 @@ function array(element, params) {
397068
397074
  }
397069
397075
  function keyof(schema) {
397070
397076
  const shape = schema._zod.def.shape;
397071
- return literal(Object.keys(shape));
397077
+ return _enum2(Object.keys(shape));
397072
397078
  }
397073
397079
  var ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
397074
397080
  $ZodObject.init(inst, def);
@@ -397381,7 +397387,7 @@ function _default2(innerType, defaultValue) {
397381
397387
  type: "default",
397382
397388
  innerType,
397383
397389
  get defaultValue() {
397384
- return typeof defaultValue === "function" ? defaultValue() : defaultValue;
397390
+ return typeof defaultValue === "function" ? defaultValue() : util_exports.shallowClone(defaultValue);
397385
397391
  }
397386
397392
  });
397387
397393
  }
@@ -397395,7 +397401,7 @@ function prefault(innerType, defaultValue) {
397395
397401
  type: "prefault",
397396
397402
  innerType,
397397
397403
  get defaultValue() {
397398
- return typeof defaultValue === "function" ? defaultValue() : defaultValue;
397404
+ return typeof defaultValue === "function" ? defaultValue() : util_exports.shallowClone(defaultValue);
397399
397405
  }
397400
397406
  });
397401
397407
  }
@@ -451403,7 +451409,7 @@ function getRenderer(opts) {
451403
451409
  var package_default = {
451404
451410
  name: "@gearbox-protocol/deploy-tools",
451405
451411
  description: "Gearbox deploy tools",
451406
- version: "5.43.0",
451412
+ version: "5.44.0",
451407
451413
  homepage: "https://gearbox.fi",
451408
451414
  keywords: [
451409
451415
  "gearbox"
@@ -451437,7 +451443,7 @@ var package_default = {
451437
451443
  "@actions/core": "^1.11.1",
451438
451444
  "@chialab/esbuild-plugin-commonjs": "^0.18.0",
451439
451445
  "@commander-js/extra-typings": "^14.0.0",
451440
- "@ethereum-sourcify/bytecode-utils": "^1.3.10",
451446
+ "@ethereum-sourcify/bytecode-utils": "^1.3.11",
451441
451447
  "@ethereum-sourcify/lib-sourcify": "^1.12.1",
451442
451448
  "@gearbox-protocol/cli-utils": "0.0.0",
451443
451449
  "@gearbox-protocol/deploy-tools-node": "0.0.0",
@@ -451446,7 +451452,7 @@ var package_default = {
451446
451452
  "@gearbox-protocol/sdk": "8.19.0",
451447
451453
  "@gearbox-protocol/sdk-gov": "2.37.0",
451448
451454
  "@types/lodash-es": "^4.17.12",
451449
- "@types/node": "^24.2.0",
451455
+ "@types/node": "^24.2.1",
451450
451456
  "@types/react": "^19.1.9",
451451
451457
  "@types/react-dom": "^19.1.7",
451452
451458
  abitype: "^1.0.8",
@@ -451465,7 +451471,7 @@ var package_default = {
451465
451471
  tsx: "^4.20.2",
451466
451472
  viem: "^2.33.3",
451467
451473
  yaml: "^2.8.1",
451468
- zod: "^4.0.15"
451474
+ zod: "^4.0.17"
451469
451475
  }
451470
451476
  };
451471
451477
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/deploy-tools",
3
3
  "description": "Gearbox deploy tools",
4
- "version": "5.43.0",
4
+ "version": "5.44.0",
5
5
  "homepage": "https://gearbox.fi",
6
6
  "keywords": [
7
7
  "gearbox"
@@ -35,7 +35,7 @@
35
35
  "@actions/core": "^1.11.1",
36
36
  "@chialab/esbuild-plugin-commonjs": "^0.18.0",
37
37
  "@commander-js/extra-typings": "^14.0.0",
38
- "@ethereum-sourcify/bytecode-utils": "^1.3.10",
38
+ "@ethereum-sourcify/bytecode-utils": "^1.3.11",
39
39
  "@ethereum-sourcify/lib-sourcify": "^1.12.1",
40
40
  "@gearbox-protocol/cli-utils": "0.0.0",
41
41
  "@gearbox-protocol/deploy-tools-node": "0.0.0",
@@ -44,7 +44,7 @@
44
44
  "@gearbox-protocol/sdk": "8.19.0",
45
45
  "@gearbox-protocol/sdk-gov": "2.37.0",
46
46
  "@types/lodash-es": "^4.17.12",
47
- "@types/node": "^24.2.0",
47
+ "@types/node": "^24.2.1",
48
48
  "@types/react": "^19.1.9",
49
49
  "@types/react-dom": "^19.1.7",
50
50
  "abitype": "^1.0.8",
@@ -63,6 +63,6 @@
63
63
  "tsx": "^4.20.2",
64
64
  "viem": "^2.33.3",
65
65
  "yaml": "^2.8.1",
66
- "zod": "^4.0.15"
66
+ "zod": "^4.0.17"
67
67
  }
68
68
  }