Skip to content

Commit be66523

Browse files
committed
Add CHANGELOG entry for exports change
1 parent 26c2652 commit be66523

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)