From 7a4155ffcc400450082638d7c2d4fd004cbd37ae Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Fri, 24 Oct 2025 00:00:00 +0000 Subject: [PATCH 1/2] Fix min @noble/hashes version in @cosmjs/crypto --- CHANGELOG.md | 9 +++++++++ packages/crypto/package.json | 2 +- yarn.lock | 4 ++-- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e5118f81fb..4d2c79ddbc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,15 @@ and this project adheres to ## [Unreleased] +### Fixed + +- @cosmjs/crypto: Set min version of @noble/hashes to 1.8.0 to avoid errors like + + > Cannot find module '@noble/hashes/legacy' from + > '../../node_modules/@cosmjs/crypto/build/ripemd.js' + + We use `@noble/hashes/legacy` for ripemd which is only available in ^1.8.0. + ## [0.35.1] - 2025-10-22 ### Deprecated diff --git a/packages/crypto/package.json b/packages/crypto/package.json index 52e437ae7b..7626b6d63a 100644 --- a/packages/crypto/package.json +++ b/packages/crypto/package.json @@ -41,7 +41,7 @@ "@cosmjs/math": "workspace:^", "@cosmjs/utils": "workspace:^", "@noble/curves": "^1.9.2", - "@noble/hashes": "^1", + "@noble/hashes": "^1.8.0", "libsodium-wrappers-sumo": "^0.7.11" }, "devDependencies": { diff --git a/yarn.lock b/yarn.lock index 4db3b6b546..4cddc94094 100644 --- a/yarn.lock +++ b/yarn.lock @@ -323,7 +323,7 @@ __metadata: "@cosmjs/utils": "workspace:^" "@istanbuljs/nyc-config-typescript": "npm:^1.0.1" "@noble/curves": "npm:^1.9.2" - "@noble/hashes": "npm:^1" + "@noble/hashes": "npm:^1.8.0" "@types/jasmine": "npm:^4" "@types/karma-firefox-launcher": "npm:^2" "@types/karma-jasmine": "npm:^4" @@ -1177,7 +1177,7 @@ __metadata: languageName: node linkType: hard -"@noble/hashes@npm:1.8.0, @noble/hashes@npm:^1, @noble/hashes@npm:^1.7.1": +"@noble/hashes@npm:1.8.0, @noble/hashes@npm:^1.7.1, @noble/hashes@npm:^1.8.0": version: 1.8.0 resolution: "@noble/hashes@npm:1.8.0" checksum: 10c0/06a0b52c81a6fa7f04d67762e08b2c476a00285858150caeaaff4037356dd5e119f45b2a530f638b77a5eeca013168ec1b655db41bae3236cb2e9d511484fc77 From 8a06c675dd7b1868d534f105dbf7a1e7b25c3c96 Mon Sep 17 00:00:00 2001 From: dynst <148708712+dynst@users.noreply.github.com> Date: Sat, 25 Oct 2025 00:00:00 +0000 Subject: [PATCH 2/2] update changelog for 0.35's code --- CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d2c79ddbc..1678e555a2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,10 +10,10 @@ and this project adheres to - @cosmjs/crypto: Set min version of @noble/hashes to 1.8.0 to avoid errors like - > Cannot find module '@noble/hashes/legacy' from + > Cannot find module '@noble/hashes/legacy.js' from > '../../node_modules/@cosmjs/crypto/build/ripemd.js' - We use `@noble/hashes/legacy` for ripemd which is only available in ^1.8.0. + We use `@noble/hashes/legacy.js` for ripemd which is only available in ^1.8.0. ## [0.35.1] - 2025-10-22