Skip to content

Commit 773ec77

Browse files
authored
Merge pull request #1886 from dynst/noble-js-extensions-035
fix @noble/hashes dependency requirement for 0.35.x
2 parents 410f92a + 8a06c67 commit 773ec77

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@ and this project adheres to
66

77
## [Unreleased]
88

9+
### Fixed
10+
11+
- @cosmjs/crypto: Set min version of @noble/hashes to 1.8.0 to avoid errors like
12+
13+
> Cannot find module '@noble/hashes/legacy.js' from
14+
> '../../node_modules/@cosmjs/crypto/build/ripemd.js'
15+
16+
We use `@noble/hashes/legacy.js` for ripemd which is only available in ^1.8.0.
17+
918
## [0.35.1] - 2025-10-22
1019

1120
### Deprecated

packages/crypto/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"@cosmjs/math": "workspace:^",
4242
"@cosmjs/utils": "workspace:^",
4343
"@noble/curves": "^1.9.2",
44-
"@noble/hashes": "^1",
44+
"@noble/hashes": "^1.8.0",
4545
"libsodium-wrappers-sumo": "^0.7.11"
4646
},
4747
"devDependencies": {

yarn.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ __metadata:
323323
"@cosmjs/utils": "workspace:^"
324324
"@istanbuljs/nyc-config-typescript": "npm:^1.0.1"
325325
"@noble/curves": "npm:^1.9.2"
326-
"@noble/hashes": "npm:^1"
326+
"@noble/hashes": "npm:^1.8.0"
327327
"@types/jasmine": "npm:^4"
328328
"@types/karma-firefox-launcher": "npm:^2"
329329
"@types/karma-jasmine": "npm:^4"
@@ -1177,7 +1177,7 @@ __metadata:
11771177
languageName: node
11781178
linkType: hard
11791179

1180-
"@noble/hashes@npm:1.8.0, @noble/hashes@npm:^1, @noble/hashes@npm:^1.7.1":
1180+
"@noble/hashes@npm:1.8.0, @noble/hashes@npm:^1.7.1, @noble/hashes@npm:^1.8.0":
11811181
version: 1.8.0
11821182
resolution: "@noble/hashes@npm:1.8.0"
11831183
checksum: 10c0/06a0b52c81a6fa7f04d67762e08b2c476a00285858150caeaaff4037356dd5e119f45b2a530f638b77a5eeca013168ec1b655db41bae3236cb2e9d511484fc77

0 commit comments

Comments
 (0)