Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,27 @@ and this project adheres to

## [Unreleased]

### Changed

- all: The `package.json`s now all use the modern `exports` field instead of the
classic `main`/`types` to define the entry points. This ensures only symbols
from the top level module can be imported (like
`import { toBech32 } from "@cosmjs/encoding"`). Other import paths like
`import { toBech32 } from "@cosmjs/encoding/src/bech32"` are not allowed
anymore. As all public interfaces used to be exported from the top level for a
long time, this should not affect most users. However, if you accidentally
imported a subpath before you will get an error now. This can typically be
resolved like this:

```diff
-import { toBech32 } from "@cosmjs/encoding/src/bech32"
+import { toBech32 } from "@cosmjs/encoding"
```

([#1819])

[#1819]: https://github.com/cosmos/cosmjs/pull/1819

## [0.36.1] - 2025-10-02

### Fixed
Expand Down
6 changes: 4 additions & 2 deletions packages/amino/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
"Simon Warta <[email protected]>"
],
"license": "Apache-2.0",
"main": "build/index.js",
"types": "build/index.d.ts",
"exports": {
"types": "./build/index.d.ts",
"default": "./build/index.js"
},
"files": [
"build/",
"*.md",
Expand Down
6 changes: 4 additions & 2 deletions packages/cosmwasm-stargate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
"Will Clark <[email protected]>"
],
"license": "Apache-2.0",
"main": "build/index.js",
"types": "build/index.d.ts",
"exports": {
"types": "./build/index.d.ts",
"default": "./build/index.js"
},
"files": [
"build/",
"*.md",
Expand Down
6 changes: 4 additions & 2 deletions packages/crypto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
"Simon Warta"
],
"license": "Apache-2.0",
"main": "build/index.js",
"types": "build/index.d.ts",
"exports": {
"types": "./build/index.d.ts",
"default": "./build/index.js"
},
"files": [
"build/",
"*.md",
Expand Down
6 changes: 4 additions & 2 deletions packages/encoding/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
"IOV SAS <[email protected]>"
],
"license": "Apache-2.0",
"main": "build/index.js",
"types": "build/index.d.ts",
"exports": {
"types": "./build/index.d.ts",
"default": "./build/index.js"
},
"files": [
"build/",
"*.md",
Expand Down
6 changes: 4 additions & 2 deletions packages/faucet-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
"Will Clark <[email protected]>"
],
"license": "Apache-2.0",
"main": "build/index.js",
"types": "build/index.d.ts",
"exports": {
"types": "./build/index.d.ts",
"default": "./build/index.js"
},
"files": [
"build/",
"*.md",
Expand Down
6 changes: 4 additions & 2 deletions packages/json-rpc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
"Will Clark <[email protected]>"
],
"license": "Apache-2.0",
"main": "build/index.js",
"types": "build/index.d.ts",
"exports": {
"types": "./build/index.d.ts",
"default": "./build/index.js"
},
"files": [
"build/",
"*.md",
Expand Down
6 changes: 4 additions & 2 deletions packages/ledger-amino/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
"Will Clark <[email protected]>"
],
"license": "Apache-2.0",
"main": "build/index.js",
"types": "build/index.d.ts",
"exports": {
"types": "./build/index.d.ts",
"default": "./build/index.js"
},
"files": [
"build/",
"*.md",
Expand Down
6 changes: 4 additions & 2 deletions packages/math/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
"IOV SAS <[email protected]>"
],
"license": "Apache-2.0",
"main": "build/index.js",
"types": "build/index.d.ts",
"exports": {
"types": "./build/index.d.ts",
"default": "./build/index.js"
},
"files": [
"build/",
"*.md",
Expand Down
6 changes: 4 additions & 2 deletions packages/proto-signing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
"Simon Warta <[email protected]>"
],
"license": "Apache-2.0",
"main": "build/index.js",
"types": "build/index.d.ts",
"exports": {
"types": "./build/index.d.ts",
"default": "./build/index.js"
},
"files": [
"build/",
"*.md",
Expand Down
6 changes: 4 additions & 2 deletions packages/socket/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
"Will Clark <[email protected]>"
],
"license": "Apache-2.0",
"main": "build/index.js",
"types": "build/index.d.ts",
"exports": {
"types": "./build/index.d.ts",
"default": "./build/index.js"
},
"files": [
"build/",
"*.md",
Expand Down
6 changes: 4 additions & 2 deletions packages/stargate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
"Simon Warta <[email protected]>"
],
"license": "Apache-2.0",
"main": "build/index.js",
"types": "build/index.d.ts",
"exports": {
"types": "./build/index.d.ts",
"default": "./build/index.js"
},
"files": [
"build/",
"*.md",
Expand Down
6 changes: 4 additions & 2 deletions packages/stream/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
"Will Clark <[email protected]>"
],
"license": "Apache-2.0",
"main": "build/index.js",
"types": "build/index.d.ts",
"exports": {
"types": "./build/index.d.ts",
"default": "./build/index.js"
},
"files": [
"build/",
"*.md",
Expand Down
6 changes: 4 additions & 2 deletions packages/tendermint-rpc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
"Will Clark <[email protected]>"
],
"license": "Apache-2.0",
"main": "build/index.js",
"types": "build/index.d.ts",
"exports": {
"types": "./build/index.d.ts",
"default": "./build/index.js"
},
"files": [
"build/",
"*.md",
Expand Down
6 changes: 4 additions & 2 deletions packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
"IOV SAS <[email protected]>"
],
"license": "Apache-2.0",
"main": "build/index.js",
"types": "build/index.d.ts",
"exports": {
"types": "./build/index.d.ts",
"default": "./build/index.js"
},
"files": [
"build/",
"*.md",
Expand Down
Loading