Skip to content

fix(deps): update dependency @cosmjs/stargate to ^0.38.1#298

Open
renovate[bot] wants to merge 1 commit intomainfrom
renovate/cosmjs-stargate-0.x
Open

fix(deps): update dependency @cosmjs/stargate to ^0.38.1#298
renovate[bot] wants to merge 1 commit intomainfrom
renovate/cosmjs-stargate-0.x

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Jan 17, 2025

This PR contains the following updates:

Package Change Age Confidence
@cosmjs/stargate (source) ^0.32.4^0.38.1 age confidence

Release Notes

cosmos/cosmjs (@​cosmjs/stargate)

v0.38.1

Compare Source

v0.38.0

Compare Source

Added
  • @​cosmjs/encoding: Add fixUint8Array which takes an
    Uint8Array<ArrayBufferLike> and returns Uint8Array<ArrayBuffer>. This can
    be used in cases where a data source returns an Uint8Array without
    specifying the buffer type but you need an ArrayBuffer. Internally it might
    perform a copy but in the vast majority of cases it will just change the type
    after ensuring ArrayBuffer is used. (#​1883)
  • @​cosmjs/math: Add Decimal.adjustFractionalDigits which allows you to change
    the fractional digits of a Decimal without changing its value. (#​1916)
  • @​cosmjs/stargate, @​cosmjs/cosmwasm-stargate: Add option to configure dynamic
    gas price in SigningCosmWasmClientOptions and SigningStargateClientOptions
    using the DynamicGasPriceConfig interface for gasPrice. This then uses
    Osmosis' EIP-1559 implementation or the Skip fee market module to get the gas
    price from the chain. (#​1926)
  • @​cosmjs/cosmwasm-stargate: Add the ability to specify a custom account parser
    for CosmWasmClient. (#​1928)
  • Add support for Cosmos EVM key handling and signing. (#​1932)
  • @​cosmjs/proto-signing: Add support for ts-proto v2 through the newly added
    TsProto2GeneratedType interface. As long as the existing
    TsProtoGeneratedType is not removed, ts-proto v1 remains supported.
    (#​1613)
Changed
  • all: return Uint8Array<ArrayBuffer> instead of
    Uint8Array = Uint8Array<ArrayBufferLike> whenever CosmJS creates binary data
    for users. This allows users to stick it into APIs that require ArrayBuffer
    such as many APIs from Subtle crypto. You can still assign
    Uint8Array<ArrayBuffer> to any Uint8Array in an existing codebase like
    this:

    const myVar: Uint8Array = fromHex("aabb");

    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:

    const myVar: Uint8Array<ArrayBuffer> = fromHex("aabb");
    
    // or inferred
    const myVar = fromHex("aabb"); // Uint8Array<ArrayBuffer>

    This change requires users to use TypeScript 5.7 or newer. (#​1883)

  • all: Migrate from readonly-date to readonly-date-esm ^2 which is an ESM
    package but otherwise equal to the previous version. If you are using
    ReadonlyDate in your codebase it is recommended to also update like this to
    avoid type mismatches:

    -import { ReadonlyDate } from "readonly-date";
    +import { ReadonlyDate } from "readonly-date-esm";
  • @​cosmjs/tendermint-rpc: Remove union type TendermintClient. Use
    CometClient or just Tendermint37Client instead. (#​1866)

  • @​cosmjs/tendermint-rpc: Remove isTendermint34Client. Remove
    Tendermint34Client from CometClient union type. Remove
    Tendermint34Client. Remove module tendermint34. (#​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, VoteType which all came from tendermint34.

    If you need any of those you can import them from a version specific module,
    such as comet1.Version or

    import { comet1, comet38, tendermint37 } from "@&#8203;cosmjs/tendermint-rpc";
    
    function convertEvent(e: tendermint37.Event | comet38.Event | comet1.Event);

    in case you want to support multiple versions. (#​1866)

  • @​cosmjs/crypto: Make
    Secp256k1.verifySignature/.createSignature/.makeKeypair synchronous and
    let them not return a Promise.

  • @​cosmjs/cosmwasm-stargate: Rename package to @​cosmjs/cosmwasm. (#​1903)

  • @​cosmjs/math: Decimal.fromAtomics now accepts atomics as string | bigint
    such 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: Decimal now supports negative values. (#​1930)

  • @​cosmjs/proto-signing: Remove isTelescopeGeneratedType,
    isTsProtoGeneratedType and isPbjsGeneratedType because they are
    unreliable. E.g. the typeUrl in Telescope may or may not exist depending on
    the configuration. The newly added hasFromPartial/hasCreate allow you to
    check for TelescopeGeneratedType | TsProtoGeneratedType/PbjsGeneratedType
    such that you can create instanes through
    MyMessage.fromPartial()/MyMessage.create().

v0.37.1

Compare Source

v0.37.0

Compare Source

Added
  • @​cosmjs/tendermint-rpc: Add dedicated Comet1Client for compatibility with
    CometBFT 1.x RPC. The module comet1 contains all CometBFT 1.x specific
    types. connectComet now uses this client automatically when connecting to a
    1.x RPC backend. Before CosmJS 0.37 the Comet38Client was used for both 0.38
    and 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 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 "@&#8203;cosmjs/encoding"). Other import paths like
    import { toBech32 } from "@&#8203;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:

    -import { toBech32 } from "@&#8203;cosmjs/encoding/src/bech32"
    +import { toBech32 } from "@&#8203;cosmjs/encoding"

    If you are using the TypeScript setting moduleResolution with value
    node10/node/classic in your project, this will lead to errors. Please
    consider upgrading to a supported value like node16 or nodenext.
    moduleResolution is implied by module if unset. See
    https://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: connectComet now returns a Comet1Client when a
    CometBFT 1.x RPC is found. CometClient now includes Comet1Client.
    (#​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 (since
      0.36.0)
    • DirectSecp256k1HdWallet.serialize/.serializeWithEncryptionKey (since
      0.36.0)
    • DirectSecp256k1HdWallet.deserialize/.deserializeWithEncryptionKey (since
      0.36.0)
    • executeKdf from @​cosmjs/amino and @​cosmjs/proto-signing (since
      0.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/Tendermint34Client as well as all related types).
    This will be removed in the next version of CosmJS:
    #​1866

v0.36.2

Compare Source

Fixed
  • @​cosmjs/crypto: Set min version of @​noble/hashes to 1.8.0 to avoid errors like

    Cannot find module '@​noble/hashes/legacy' from
    '../../node_modules/@​cosmjs/crypto/build/ripemd.js'

    We use @noble/hashes/legacy for ripemd which is only available in ^1.8.0.

v0.36.1

Compare Source

Fixed
  • @​cosmjs/crypto: Fix import path of @​noble/hashes to avoid bundling issue

    Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './sha2.js' is not
    defined by "exports" in …

    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.0

Compare Source

Changed
Deprecated
  • The use of encrypted wallet storage is deprecated. In particular this means:

    • Secp256k1HdWallet.serialize/.serializeWithEncryptionKey
    • Secp256k1HdWallet.deserialize/.deserializeWithEncryptionKey
    • DirectSecp256k1HdWallet.serialize/.serializeWithEncryptionKey
    • DirectSecp256k1HdWallet.deserialize/.deserializeWithEncryptionKey

    If 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.0 and comment in the issue.

    (#​1797)

v0.35.2

Compare Source

Fixed
  • @​cosmjs/crypto: Set min version of @​noble/hashes to 1.8.0 to avoid errors like

    Cannot find module '@​noble/hashes/legacy.js' from
    '../../node_modules/@​cosmjs/crypto/build/ripemd.js'

    We use @noble/hashes/legacy.js for ripemd which is only available in ^1.8.0.

v0.35.1

Compare Source

Deprecated
  • The use of encrypted wallet storage is deprecated. In particular this means:

    • Secp256k1HdWallet.serialize/.serializeWithEncryptionKey
    • Secp256k1HdWallet.deserialize/.deserializeWithEncryptionKey
    • DirectSecp256k1HdWallet.serialize/.serializeWithEncryptionKey
    • DirectSecp256k1HdWallet.deserialize/.deserializeWithEncryptionKey
    • executeKdf from @​cosmjs/amino and @​cosmjs/proto-signing

    If you are using any of those methods, please comment at
    #​1796.

v0.35.0

Compare Source

Added
Changed

v0.34.1

Compare Source

Deprecated
  • The use of encrypted wallet storage is deprecated. In particular this means:

    • Secp256k1HdWallet.serialize/.serializeWithEncryptionKey
    • Secp256k1HdWallet.deserialize/.deserializeWithEncryptionKey
    • DirectSecp256k1HdWallet.serialize/.serializeWithEncryptionKey
    • DirectSecp256k1HdWallet.deserialize/.deserializeWithEncryptionKey
    • executeKdf from @​cosmjs/amino and @​cosmjs/proto-signing

    If you are using any of those methods, please comment at
    #​1796.

v0.34.0

Compare Source

Fixed
Added
Changed
  • Replace axios with cross-fetch (#​1645)
  • Fix block events in CometBFT 0.38 API (begin_block_events/end_block_events
    -> finalize_block_events) in RpcBlockResultsResponse and
    BlockResultsResponse (#​1612)
  • @​cosmjs/crypto: Migrate from elliptic to noble-curves (#​1272).

v0.33.1

Compare Source

Fixed

v0.33.0

Compare Source

Changed

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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@coderabbitai
Copy link

coderabbitai bot commented Jan 17, 2025

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

@renovate renovate bot force-pushed the renovate/cosmjs-stargate-0.x branch 2 times, most recently from 398f4e4 to 3e8404d Compare January 31, 2025 09:53
@renovate renovate bot force-pushed the renovate/cosmjs-stargate-0.x branch 2 times, most recently from 5824933 to 9cd31a6 Compare February 14, 2025 11:33
@renovate renovate bot force-pushed the renovate/cosmjs-stargate-0.x branch 2 times, most recently from 6772e25 to 0b03348 Compare February 21, 2025 11:07
@renovate renovate bot force-pushed the renovate/cosmjs-stargate-0.x branch 3 times, most recently from 9b59403 to 3b5b84e Compare March 7, 2025 05:37
@renovate renovate bot force-pushed the renovate/cosmjs-stargate-0.x branch 2 times, most recently from ec2e92e to 7899a19 Compare March 13, 2025 20:08
@renovate renovate bot changed the title fix(deps): update dependency @cosmjs/stargate to ^0.33.0 fix(deps): update dependency @cosmjs/stargate to ^0.33.1 Mar 13, 2025
@renovate renovate bot force-pushed the renovate/cosmjs-stargate-0.x branch 3 times, most recently from 166a698 to 925b6f1 Compare March 21, 2025 05:43
@renovate renovate bot force-pushed the renovate/cosmjs-stargate-0.x branch 2 times, most recently from 3b12a3d to b30aeb1 Compare March 28, 2025 07:12
@renovate renovate bot force-pushed the renovate/cosmjs-stargate-0.x branch 3 times, most recently from b883823 to 509ad02 Compare April 11, 2025 06:26
@renovate renovate bot force-pushed the renovate/cosmjs-stargate-0.x branch 2 times, most recently from 673a18c to 409873e Compare April 18, 2025 11:00
@renovate renovate bot force-pushed the renovate/cosmjs-stargate-0.x branch 3 times, most recently from ae8a37c to c849b1d Compare May 2, 2025 05:57
@renovate renovate bot force-pushed the renovate/cosmjs-stargate-0.x branch from c849b1d to 74ae813 Compare May 9, 2025 06:59
@renovate renovate bot force-pushed the renovate/cosmjs-stargate-0.x branch from 74ae813 to 0704062 Compare May 16, 2025 07:35
@renovate renovate bot force-pushed the renovate/cosmjs-stargate-0.x branch from af68669 to f2b96c9 Compare July 25, 2025 06:09
@renovate renovate bot force-pushed the renovate/cosmjs-stargate-0.x branch 3 times, most recently from 03fc412 to 9a94ccf Compare August 13, 2025 11:38
@renovate renovate bot changed the title fix(deps): update dependency @cosmjs/stargate to ^0.34.0 fix(deps): update dependency @cosmjs/stargate to ^0.35.0 Aug 13, 2025
@renovate renovate bot force-pushed the renovate/cosmjs-stargate-0.x branch from 9a94ccf to cd14115 Compare August 14, 2025 14:37
@renovate renovate bot changed the title fix(deps): update dependency @cosmjs/stargate to ^0.35.0 fix(deps): update dependency @cosmjs/stargate to ^0.36.0 Aug 14, 2025
@renovate renovate bot force-pushed the renovate/cosmjs-stargate-0.x branch 3 times, most recently from 80421b4 to 7522ed3 Compare August 19, 2025 18:09
@renovate renovate bot force-pushed the renovate/cosmjs-stargate-0.x branch 4 times, most recently from 613bbe9 to 7a2fecc Compare September 26, 2025 05:09
@renovate renovate bot force-pushed the renovate/cosmjs-stargate-0.x branch from 7a2fecc to 18c20ea Compare October 2, 2025 18:54
@renovate renovate bot changed the title fix(deps): update dependency @cosmjs/stargate to ^0.36.0 fix(deps): update dependency @cosmjs/stargate to ^0.36.1 Oct 2, 2025
@renovate renovate bot force-pushed the renovate/cosmjs-stargate-0.x branch from 18c20ea to 9a86b74 Compare October 3, 2025 05:09
@renovate renovate bot force-pushed the renovate/cosmjs-stargate-0.x branch from 9a86b74 to cd8371e Compare October 17, 2025 06:11
@renovate renovate bot force-pushed the renovate/cosmjs-stargate-0.x branch from cd8371e to b9b46af Compare October 24, 2025 08:41
@renovate renovate bot changed the title fix(deps): update dependency @cosmjs/stargate to ^0.36.1 fix(deps): update dependency @cosmjs/stargate to ^0.36.2 Oct 24, 2025
@renovate renovate bot force-pushed the renovate/cosmjs-stargate-0.x branch from b9b46af to 1e0f2ee Compare October 29, 2025 16:51
@renovate renovate bot changed the title fix(deps): update dependency @cosmjs/stargate to ^0.36.2 fix(deps): update dependency @cosmjs/stargate to ^0.37.0 Oct 29, 2025
@renovate renovate bot force-pushed the renovate/cosmjs-stargate-0.x branch 2 times, most recently from aa05e62 to 53a5350 Compare November 7, 2025 05:38
@renovate renovate bot force-pushed the renovate/cosmjs-stargate-0.x branch from 53a5350 to 935f69c Compare December 30, 2025 14:08
@renovate renovate bot changed the title fix(deps): update dependency @cosmjs/stargate to ^0.37.0 fix(deps): update dependency @cosmjs/stargate to ^0.38.0 Dec 30, 2025
@renovate renovate bot force-pushed the renovate/cosmjs-stargate-0.x branch from 935f69c to a68de0e Compare December 31, 2025 14:09
@renovate renovate bot changed the title fix(deps): update dependency @cosmjs/stargate to ^0.38.0 fix(deps): update dependency @cosmjs/stargate to ^0.38.1 Dec 31, 2025
@renovate renovate bot force-pushed the renovate/cosmjs-stargate-0.x branch from a68de0e to fefbda7 Compare February 12, 2026 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants