fix(deps): update dependency @cosmjs/stargate to ^0.38.1#298
Open
renovate[bot] wants to merge 1 commit intomainfrom
Open
fix(deps): update dependency @cosmjs/stargate to ^0.38.1#298renovate[bot] wants to merge 1 commit intomainfrom
renovate[bot] wants to merge 1 commit intomainfrom
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the Comment |
398f4e4 to
3e8404d
Compare
5824933 to
9cd31a6
Compare
6772e25 to
0b03348
Compare
9b59403 to
3b5b84e
Compare
ec2e92e to
7899a19
Compare
166a698 to
925b6f1
Compare
3b12a3d to
b30aeb1
Compare
b883823 to
509ad02
Compare
673a18c to
409873e
Compare
ae8a37c to
c849b1d
Compare
c849b1d to
74ae813
Compare
74ae813 to
0704062
Compare
af68669 to
f2b96c9
Compare
03fc412 to
9a94ccf
Compare
9a94ccf to
cd14115
Compare
80421b4 to
7522ed3
Compare
613bbe9 to
7a2fecc
Compare
7a2fecc to
18c20ea
Compare
18c20ea to
9a86b74
Compare
9a86b74 to
cd8371e
Compare
cd8371e to
b9b46af
Compare
b9b46af to
1e0f2ee
Compare
aa05e62 to
53a5350
Compare
53a5350 to
935f69c
Compare
935f69c to
a68de0e
Compare
a68de0e to
fefbda7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^0.32.4→^0.38.1Release Notes
cosmos/cosmjs (@cosmjs/stargate)
v0.38.1Compare Source
v0.38.0Compare Source
Added
fixUint8Arraywhich takes anUint8Array<ArrayBufferLike>and returnsUint8Array<ArrayBuffer>. This canbe used in cases where a data source returns an
Uint8Arraywithoutspecifying the buffer type but you need an
ArrayBuffer. Internally it mightperform a copy but in the vast majority of cases it will just change the type
after ensuring
ArrayBufferis used. (#1883)Decimal.adjustFractionalDigitswhich allows you to changethe fractional digits of a Decimal without changing its value. (#1916)
gas price in
SigningCosmWasmClientOptionsandSigningStargateClientOptionsusing the
DynamicGasPriceConfiginterface forgasPrice. This then usesOsmosis' EIP-1559 implementation or the Skip fee market module to get the gas
price from the chain. (#1926)
for
CosmWasmClient. (#1928)TsProto2GeneratedTypeinterface. As long as the existingTsProtoGeneratedTypeis not removed, ts-proto v1 remains supported.(#1613)
Changed
all: return
Uint8Array<ArrayBuffer>instead ofUint8Array = Uint8Array<ArrayBufferLike>whenever CosmJS creates binary datafor users. This allows users to stick it into APIs that require
ArrayBuffersuch as many APIs from Subtle crypto. You can still assign
Uint8Array<ArrayBuffer>to anyUint8Arrayin an existing codebase likethis:
That's the easy way and probably good for many use cases. However, this way
you lose information which buffer type is in use and you cannot trivially pass
it to an API requiring
Uint8Array<ArrayBuffer>later on.The other option is to preserve the information you are getting from CosmJS by
using
Uint8Array<ArrayBuffer>too:This change requires users to use TypeScript 5.7 or newer. (#1883)
all: Migrate from
readonly-datetoreadonly-date-esm^2 which is an ESMpackage but otherwise equal to the previous version. If you are using
ReadonlyDatein your codebase it is recommended to also update like this toavoid type mismatches:
@cosmjs/tendermint-rpc: Remove union type
TendermintClient. UseCometClientor justTendermint37Clientinstead. (#1866)@cosmjs/tendermint-rpc: Remove
isTendermint34Client. RemoveTendermint34ClientfromCometClientunion type. RemoveTendermint34Client. Remove moduletendermint34. (#1866)@cosmjs/tendermint-rpc: Remove top-level exports
broadcastTxCommitSuccess,broadcastTxSyncSuccess,AbciInfoRequest,AbciInfoResponse,AbciQueryParams,AbciQueryRequest,AbciQueryResponse,Attribute,Block,BlockchainRequest,BlockchainResponse,BlockGossipParams,BlockId,BlockMeta,BlockParams,BlockRequest,BlockResponse,BlockResultsRequest,BlockResultsResponse,BroadcastTxAsyncResponse,BroadcastTxCommitResponse,BroadcastTxParams,BroadcastTxRequest,BroadcastTxSyncResponse,Commit,CommitRequest,CommitResponse,ConsensusParams,Event,Evidence,EvidenceParams,GenesisRequest,GenesisResponse,Header,HealthRequest,HealthResponse,Method,NewBlockEvent,NewBlockHeaderEvent,NodeInfo,NumUnconfirmedTxsRequest,NumUnconfirmedTxsResponse,ProofOp,QueryProof,QueryTag,Request,Response,StatusRequest,StatusResponse,SubscriptionEventType,SyncInfo,TxData,TxEvent,TxParams,TxProof,TxRequest,TxResponse,TxSearchParams,TxSearchRequest,TxSearchResponse,TxSizeParams,Validator,ValidatorsParams,ValidatorsRequest,ValidatorsResponse,Version,Vote,VoteTypewhich all came fromtendermint34.If you need any of those you can import them from a version specific module,
such as
comet1.Versionorin case you want to support multiple versions. (#1866)
@cosmjs/crypto: Make
Secp256k1.verifySignature/.createSignature/.makeKeypairsynchronous andlet them not return a Promise.
@cosmjs/cosmwasm-stargate: Rename package to @cosmjs/cosmwasm. (#1903)
@cosmjs/math:
Decimal.fromAtomicsnow accepts atomics asstring | bigintsuch that you can pass in BigInts directly. This is more performant than going
through strings in cases where you have a BitInt already. Strings remain
supported for convenient usage with coins.
@cosmjs/math:
Decimalnow supports negative values. (#1930)@cosmjs/proto-signing: Remove
isTelescopeGeneratedType,isTsProtoGeneratedTypeandisPbjsGeneratedTypebecause they areunreliable. E.g. the
typeUrlin Telescope may or may not exist depending onthe configuration. The newly added
hasFromPartial/hasCreateallow you tocheck for
TelescopeGeneratedType | TsProtoGeneratedType/PbjsGeneratedTypesuch that you can create instanes through
MyMessage.fromPartial()/MyMessage.create().v0.37.1Compare Source
v0.37.0Compare Source
Added
Comet1Clientfor compatibility withCometBFT 1.x RPC. The module
comet1contains all CometBFT 1.x specifictypes.
connectCometnow uses this client automatically when connecting to a1.x RPC backend. Before CosmJS 0.37 the
Comet38Clientwas used for both 0.38and 1.0 backends. However it turned out that there are breaking API changes
between those versions. (#1787)
Changed
all: The
package.jsons now all use the modernexportsfield instead of theclassic
main/typesto define the entry points. This ensures only symbolsfrom the top level module can be imported (like
import { toBech32 } from "@​cosmjs/encoding"). Other import paths likeimport { toBech32 } from "@​cosmjs/encoding/src/bech32"are not allowedanymore. 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:
If you are using the TypeScript setting
moduleResolutionwith valuenode10/node/classicin your project, this will lead to errors. Pleaseconsider upgrading to a supported value like
node16ornodenext.moduleResolutionis implied bymoduleif unset. Seehttps://www.typescriptlang.org/tsconfig/#moduleResolution and
https://www.typescriptlang.org/docs/handbook/modules/reference.html#the-moduleresolution-compiler-option.
If this is not possible, please comment in
#1917.
(#1819)
Replace bech32 implementation by @scure/base. This changes a bunch of error
messages but is otherwise not breaking user code. (#1825)
Replace bip39 implementation by @scure/bip39. This changes a bunch of error
messages but is otherwise not breaking user code. (#1843)
@cosmjs/tendermint-rpc:
connectCometnow returns aComet1Clientwhen aCometBFT 1.x RPC is found.
CometClientnow includesComet1Client.(#1827)
@cosmjs/cosmwasm-stargate: use native compression APIs instead of pako for
gzip. (#1764)
Deprecated
The use of encrypted wallet storage is deprecated. In particular this means:
Secp256k1HdWallet.serialize/.serializeWithEncryptionKey(since 0.36.0)Secp256k1HdWallet.deserialize/.deserializeWithEncryptionKey(since0.36.0)
DirectSecp256k1HdWallet.serialize/.serializeWithEncryptionKey(since0.36.0)
DirectSecp256k1HdWallet.deserialize/.deserializeWithEncryptionKey(since0.36.0)
executeKdffrom @cosmjs/amino and @cosmjs/proto-signing (since0.36.0/0.37.0)
If you are using any of those methods, please comment at
#1796.
@cosmjs/tendermint-rpc: Deprecate the Tendermint/CometBFT 0.34 client
(
isTendermint34Client/Tendermint34Clientas well as all related types).This will be removed in the next version of CosmJS:
#1866
v0.36.2Compare Source
Fixed
@cosmjs/crypto: Set min version of @noble/hashes to 1.8.0 to avoid errors like
We use
@noble/hashes/legacyfor ripemd which is only available in ^1.8.0.v0.36.1Compare Source
Fixed
@cosmjs/crypto: Fix import path of @noble/hashes to avoid bundling issue
In @noble/hashes version >=1.0.0 <1.8.0 the import paths must not contain the
.js suffix. This issue was introduced in CosmJS 0.35.0 but only affects users
who have @noble/hashes lower than 1.8.0 in their lockfile. (#1817)
v0.36.0Compare Source
Changed
Migrate from libsodium to different implementation in order to reduce bundle
size and improve compatibility.
ed25519now uses @noble/curves(#1722)
Deprecated
The use of encrypted wallet storage is deprecated. In particular this means:
Secp256k1HdWallet.serialize/.serializeWithEncryptionKeySecp256k1HdWallet.deserialize/.deserializeWithEncryptionKeyDirectSecp256k1HdWallet.serialize/.serializeWithEncryptionKeyDirectSecp256k1HdWallet.deserialize/.deserializeWithEncryptionKeyIf you are using any of those methods, please comment at
#1796.
A scream test was established which slows down the key derivation function a
lot. This simulates the use of a pure-JS implementation of Argon2 which we
will use on one of the next releases. If this causes problems for your app,
switch back to
^0.35.0and comment in the issue.(#1797)
v0.35.2Compare Source
Fixed
@cosmjs/crypto: Set min version of @noble/hashes to 1.8.0 to avoid errors like
We use
@noble/hashes/legacy.jsfor ripemd which is only available in ^1.8.0.v0.35.1Compare Source
Deprecated
The use of encrypted wallet storage is deprecated. In particular this means:
Secp256k1HdWallet.serialize/.serializeWithEncryptionKeySecp256k1HdWallet.deserialize/.deserializeWithEncryptionKeyDirectSecp256k1HdWallet.serialize/.serializeWithEncryptionKeyDirectSecp256k1HdWallet.deserialize/.deserializeWithEncryptionKeyexecuteKdffrom @cosmjs/amino and @cosmjs/proto-signingIf you are using any of those methods, please comment at
#1796.
v0.35.0Compare Source
Added
HttpClientand
HttpBatchClient. (#1660)Changed
Tendermint34Client.create,Tendermint37Client.createandComet38Client.createnon-async. (#1597)Comet38Client,Tendermint37ClientorTendermint34Client. (#1772)interface ConsensusParamsare nowoptional as Tendermint RPC might omit them.
{Signing,}StargateClient.createand
SigningStargateClient.createWithSignernon-async. (#1597){Signing,}CosmWasmClient.createand
SigningCosmWasmClient.createWithSignernon-async. (#1597)GasPriceconstructor now enforces a non-empty denom.(#1761)
parseCoinsnow supports denoms with colons, periods,underscores and dashes (#1763)
import("crypto"). We can just use subtle crypto on all supported Nodeversions. (#1753)
v0.34.1Compare Source
Deprecated
The use of encrypted wallet storage is deprecated. In particular this means:
Secp256k1HdWallet.serialize/.serializeWithEncryptionKeySecp256k1HdWallet.deserialize/.deserializeWithEncryptionKeyDirectSecp256k1HdWallet.serialize/.serializeWithEncryptionKeyDirectSecp256k1HdWallet.deserialize/.deserializeWithEncryptionKeyexecuteKdffrom @cosmjs/amino and @cosmjs/proto-signingIf you are using any of those methods, please comment at
#1796.
v0.34.0Compare Source
Fixed
isValidAddressnow accepts addresses up to 128 bytes (e.g.for Penumbra). (#1674)
decodeCommitto allow decoding height 0 commitswith block hash set but empty signatures. (#1590)
Added
Comet38Clientis now used to connect to CometBFT0.38 and 1.x backends (#1679)
Changed
begin_block_events/end_block_events->
finalize_block_events) inRpcBlockResultsResponseandBlockResultsResponse(#1612)v0.33.1Compare Source
Fixed
GHSA-vjh7-7g9h-fjfh.
v0.33.0Compare Source
Changed
on a JavaScript implementation of ICS-23 but
@confio/ics23 is unmaintained
without replacement.
Configuration
📅 Schedule: Branch creation - "before 5am on friday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.