Skip to content

Conversation

dynst
Copy link
Contributor

@dynst dynst commented Oct 8, 2025

Prerequisite for #1816

In @noble/hashes version 1.x the import paths must not contain the .js suffix.

This line in the 0.36.1 changelog isn't exactly true (also, there's a release on npm but no 0.36.1 in github releases?). It was only true of versions < 1.8.0.

Extensionless imports are removed in 2.0, so they were marked deprecated in 1.8.0 and .js exports were added for a smooth v2 upgrade.

https://github.com/paulmillr/noble-hashes/releases/tag/1.8.0
https://github.com/paulmillr/noble-hashes/releases/tag/2.0.0

Undoes #1817

Fix on #1767 7f2f8a8 (this introduced a bug in codebases who hadn't updated to 1.8.0+ on their own already. All tests continued to pass because 1.8.0 is already in the yarn.lock file ever since the big update from 1.0 to 1.8 in #1672)

dynst added 2 commits October 8, 2025 04:08
This dependency should have been raised back in
commit 4bcbbfd
which added .js extension imports (because all
extensionless imports are deprecated).
@webmaster128
Copy link
Member

Looks good to me, thanks. But could you check git grep 'from "@noble/hashes' and change all of them for consistency?

webmaster128 added a commit that referenced this pull request Oct 8, 2025
webmaster128 added a commit that referenced this pull request Oct 8, 2025
and elaborate on affected users as pointed out in
#1821
webmaster128 added a commit that referenced this pull request Oct 8, 2025
and elaborate on affected users as pointed out in
#1821
extensionless imports are deprecated in 1.8 and removed in 2.0.
Missed these two in the earlier deprecation warnings fixes cosmos#1767.
@webmaster128 webmaster128 merged commit c64847d into cosmos:main Oct 9, 2025
18 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants