Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/fix-cli-post-bundle-error-handler.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hyperlane-xyz/cli': patch
---

Fixed broken error handler in ncc.post-bundle.mjs that referenced undefined variables in the catch block.
7 changes: 7 additions & 0 deletions .changeset/suppress-cli-warnings.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@hyperlane-xyz/cli': patch
'@hyperlane-xyz/rebalancer': patch
'@hyperlane-xyz/warp-monitor': patch
---

Suppressed harmless startup warnings via pnpm patches instead of runtime suppression. The bigint-buffer native bindings warning and node-fetch .data deprecation warning are now patched at the source, avoiding the need for --no-warnings flags or console.warn overrides.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@
"patchedDependencies": {
"typechain@8.3.2": "patches/typechain@8.3.2.patch",
"node-fetch@2.7.0": "patches/node-fetch@2.7.0.patch",
"@provablehq/sdk@0.9.14": "patches/@provablehq__sdk@0.9.14.patch"
"@provablehq/sdk@0.9.14": "patches/@provablehq__sdk@0.9.14.patch",
"bigint-buffer@1.1.5": "patches/bigint-buffer@1.1.5.patch",
"node-fetch@3.3.2": "patches/node-fetch@3.3.2.patch"
}
}
}
13 changes: 13 additions & 0 deletions patches/bigint-buffer@1.1.5.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/dist/node.js b/dist/node.js
index 513168c89e387668a79b6beb109587b3eb41a7d0..613db0461be415b8256e5ada06701da887dd5b5c 100644
--- a/dist/node.js
+++ b/dist/node.js
@@ -7,7 +7,7 @@ let converter;
converter = require('bindings')('bigint_buffer');
}
catch (e) {
- console.warn('bigint: Failed to load bindings, pure JS will be used (try npm run rebuild?)');
+ // Silently fall back to pure JS implementation
}
}
/**
24 changes: 24 additions & 0 deletions patches/node-fetch@3.3.2.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
diff --git a/src/request.js b/src/request.js
index af2ebc8e9b6f11783435d3c951eaef500fabbfdc..1872aaa6736392db85ce4d631fcb22ee89153f4d 100644
--- a/src/request.js
+++ b/src/request.js
@@ -7,7 +7,6 @@
*/

import {format as formatUrl} from 'node:url';
-import {deprecate} from 'node:util';
import Headers from './headers.js';
import Body, {clone, extractContentType, getTotalBytes} from './body.js';
import {isAbortSignal} from './utils/is.js';
@@ -31,9 +30,8 @@ const isRequest = object => {
);
};

-const doBadDataWarn = deprecate(() => {},
- '.data is not a valid RequestInit property, use .body instead',
- 'https://github.com/node-fetch/node-fetch/issues/1000 (request)');
+// Silenced: .data deprecation warning (gaxios compatibility)
+const doBadDataWarn = () => {};

/**
* Request class
14 changes: 10 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion typescript/cli/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import yargs from 'yargs';

import type { LogFormat, LogLevel } from '@hyperlane-xyz/utils';

import './env.js';
import { avsCommand } from './src/commands/avs.js';
import { configCommand } from './src/commands/config.js';
import { coreCommand } from './src/commands/core.js';
Expand Down
15 changes: 0 additions & 15 deletions typescript/cli/env.ts

This file was deleted.

7 changes: 1 addition & 6 deletions typescript/cli/scripts/ncc.post-bundle.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,7 @@ async function patchCliExecutable() {
);
} catch (error) {
console.error('✖ Failed to patch CLI executable:', error);
if (!content.includes(dirnameDef)) {
const [, executable] = content.split(shebang);
const newContent = `${shebang}\n${dirnameDef}\n${executable}`;
await writeFile(outputFile, newContent, 'utf8');
console.log('Adding missing __dirname definition to cli executable');
}
process.exit(1);
}
}

Expand Down
Loading