File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,27 @@ and this project adheres to
66
77## [ Unreleased]
88
9+ ### Changed
10+
11+ - all: The ` package.json ` s now all use the modern ` exports ` field instead of the
12+ classic ` main ` /` types ` to define the entry points. This ensures only symbols
13+ from the top level module can be imported (like
14+ ` import { toBech32 } from "@cosmjs/encoding" ` ). Other import paths like
15+ ` import { toBech32 } from "@cosmjs/encoding/src/bech32" ` are not allowed
16+ anymore. As all public interfaces used to be exported from the top level for a
17+ long time, this should not affect most users. However, if you accidentally
18+ imported a subpath before you will get an error now. This can typically be
19+ resolved like this:
20+
21+ ``` diff
22+ -import { toBech32 } from "@cosmjs/encoding/src/bech32"
23+ +import { toBech32 } from "@cosmjs/encoding"
24+ ```
25+
26+ ([ #1819 ] )
27+
28+ [ #1819 ] : https://github.com/cosmos/cosmjs/pull/1819
29+
930## [ 0.36.1] - 2025-10-02
1031
1132### Fixed
You can’t perform that action at this time.
0 commit comments