From cda9ca768a66b530d73cc7bfa13f91fca12ed372 Mon Sep 17 00:00:00 2001 From: Yorke Rhodes IV Date: Thu, 15 Jan 2026 15:34:22 -0500 Subject: [PATCH] refactor: move @hyperlane-xyz/utils to devDependencies in core Utils is only used in test files (addressToBytes32, messageId, parseMessage), not in the published Solidity contracts or build artifacts. Note: Previously, utils changes implied transitive patch bumps to core, which could affect onchain bytecode versioning. This change breaks that dependency chain, requiring explicit changesets for core when contracts change. --- pnpm-lock.yaml | 6 +++--- solidity/package.json | 4 +--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 386c60794c6..78cfd799aad 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -362,9 +362,6 @@ importers: solidity: dependencies: - '@hyperlane-xyz/utils': - specifier: workspace:* - version: link:../typescript/utils '@types/sinon-chai': specifier: '*' version: 3.2.12 @@ -378,6 +375,9 @@ importers: '@hyperlane-xyz/tsconfig': specifier: workspace:^ version: link:../typescript/tsconfig + '@hyperlane-xyz/utils': + specifier: workspace:* + version: link:../typescript/utils '@matterlabs/hardhat-zksync-solc': specifier: 1.2.5 version: 1.2.5(hardhat@2.27.0(bufferutil@4.0.9)(ts-node@10.9.2(@types/node@20.19.25)(typescript@5.8.3))(typescript@5.8.3)(utf-8-validate@5.0.10)) diff --git a/solidity/package.json b/solidity/package.json index fc869c06002..02b85fe05ee 100644 --- a/solidity/package.json +++ b/solidity/package.json @@ -2,11 +2,9 @@ "name": "@hyperlane-xyz/core", "description": "Core solidity contracts for Hyperlane", "version": "10.1.5", - "dependencies": { - "@hyperlane-xyz/utils": "workspace:*" - }, "devDependencies": { "@ethersproject/abi": "*", + "@hyperlane-xyz/utils": "workspace:*", "@ethersproject/providers": "*", "@hyperlane-xyz/tsconfig": "workspace:^", "@matterlabs/hardhat-zksync-solc": "1.2.5",