Skip to content

Releases: dfinity/ic-js

2024.11.27-1230Z

27 Nov 12:29
3f203cf
Compare
Choose a tag to compare

Overview

The current status of the libraries at the time of the release is as follows:

Library Version Status
@dfinity/ckbtc v3.1.4 Maintained ⚙️
@dfinity/cketh v3.4.1 Maintained ⚙️
@dfinity/cmc v4.0.2 Maintained ⚙️
@dfinity/ic-management v6.0.1 Patched 🩹
@dfinity/ledger-icp v2.6.3 Maintained ⚙️
@dfinity/ledger-icrc v2.6.3 Unchanged️
@dfinity/nns v8.0.1 Maintained ⚙️
@dfinity/nns-proto v2.0.1 Unchanged️
@dfinity/sns v3.2.5 Maintained ⚙️
@dfinity/utils v2.7.1 Maintained ⚙️

Features

  • Added definition for AdvanceSnsTargetVersion to the SNS governance DID Action declarations.

Fix

  • The IC management function install_chunked_code failed on mainnet because the target_canister was not mapped as effective_canister_id, as defined by the IC specification.

Chore

  • Enable eslint for tests.
  • Allow linter to permit underscore prefixes.

2024.11.22-1600Z

22 Nov 15:58
e661fbe
Compare
Choose a tag to compare

Overview

The current status of the libraries at the time of the release is as follows:

Library Version Status
@dfinity/ckbtc v3.1.3 Unchanged️
@dfinity/cketh v3.4.0 Unchanged️
@dfinity/cmc v4.0.1 Unchanged️
@dfinity/ic-management v6.0.0 Breaking Changes ⚠️
@dfinity/ledger-icp v2.6.3 Unchanged️
@dfinity/ledger-icrc v2.6.3 Unchanged️
@dfinity/nns v8.0.0 Unchanged️
@dfinity/nns-proto v2.0.1 Unchanged️
@dfinity/sns v3.2.4 Unchanged️
@dfinity/utils v2.7.0 Unchanged️

Breaking changes

  • Inherits canister installation code arguments from Candid.

2024.11.21-1600Z

21 Nov 15:57
ceb11ea
Compare
Choose a tag to compare

Overview

The current status of the libraries at the time of the release is as follows:

Library Version Status
@dfinity/ckbtc v3.1.3 Maintained ⚙️
@dfinity/cketh v3.4.0 Enhanced 🔧️
@dfinity/cmc v4.0.1 Maintained ⚙️
@dfinity/ic-management v5.3.0 Enhanced 🔧️
@dfinity/ledger-icp v2.6.3 Maintained ⚙️
@dfinity/ledger-icrc v2.6.3 Maintained ⚙️
@dfinity/nns v8.0.0 Breaking Changes ⚠️
@dfinity/nns-proto v2.0.1 Unchanged️
@dfinity/sns v3.2.4 Maintained ⚙️
@dfinity/utils v2.7.0 Enhanced 🔧️

Breaking changes

  • Remove stakeNeuronIcrc1.

Features

  • Added memoToNeuronSubaccount and memoToNeuronAccountIdentifier.
  • Support new neuron field voting_power_refreshed_timestamp_seconds.
  • Add support for fetching the canister logs in @dfinity@ic-management.
  • Add support for snapshot features in @dfinity@ic-management.
  • Add nowInBigIntNanoSeconds to @dfinity/utils, a trivial function that is actually used across all our dapps.

Build

  • Update the dev dependencies of the ic-js workspace.

2024.10.29-1130Z

29 Oct 11:34
038841e
Compare
Choose a tag to compare

Overview

The current status of the libraries at the time of the release is as follows:

Library Version Status
@dfinity/ckbtc v3.1.2 Maintained ⚙️
@dfinity/cketh v3.3.3 Maintained ⚙️
@dfinity/cmc v4.0.0 Breaking Changes ⚠️
@dfinity/ic-management v5.2.3 Maintained ⚙️
@dfinity/ledger-icp v2.6.2 Maintained ⚙️
@dfinity/ledger-icrc v2.6.2 Maintained ⚙️
@dfinity/nns v7.0.2 Maintained ⚙️
@dfinity/nns-proto v2.0.1 Unchanged️
@dfinity/sns v3.2.3 Maintained ⚙️
@dfinity/utils v2.6.0 Enhanced 🔧️

Breaking Changes

  • For consistency, the CMCCanister.create function now requires the canisterId option to be provided exclusively as
    a Principal.

Features

  • Add support for get_default_subnets to @dfinity/cmc.
  • Add class AgentManager in @dfinity/utils which caches HttpAgent instances for different identities.

Docs

  • Rename DFINITY LLC to DFINITY Stiftung in licences.

2024.10.09-1140Z

09 Oct 11:42
1db2d72
Compare
Choose a tag to compare

Overview

The current status of the libraries at the time of the release is as follows:

Library Version Status
@dfinity/ckbtc v3.1.1 Maintained ⚙️
@dfinity/cketh v3.3.2 Maintained ⚙️
@dfinity/cmc v3.2.2 Maintained ⚙️
@dfinity/ic-management v5.2.2 Maintained ⚙️
@dfinity/ledger-icp v2.6.1 Maintained ⚙️
@dfinity/ledger-icrc v2.6.1 Maintained ⚙️
@dfinity/nns v7.0.1 Maintained ⚙️
@dfinity/nns-proto v2.0.1 Unchanged️
@dfinity/sns v3.2.2 Maintained ⚙️
@dfinity/utils v2.5.2 Maintained ⚙️

Build

  • Downgrade Agent-js to ^2.0.0 to let consumers pick the compatible version they wish to use.

2024.09.30-1100Z

30 Sep 11:00
b273a69
Compare
Choose a tag to compare

Overview

The current status of the libraries at the time of the release is as follows:

Library Version Status
@dfinity/ckbtc v3.1.0 Enhanced 🔧️
@dfinity/cketh v3.3.1 Maintained ⚙️
@dfinity/cmc v3.2.1 Maintained ⚙️
@dfinity/ic-management v5.2.1 Maintained ⚙️
@dfinity/ledger-icp v2.6.0 Enhanced 🔧️
@dfinity/ledger-icrc v2.6.0 Enhanced 🔧️
@dfinity/nns v7.0.0 Breaking Changes ⚠️
@dfinity/nns-proto v2.0.1 Unchanged️
@dfinity/sns v3.2.1 Maintained ⚙️
@dfinity/utils v2.5.0 Maintained ⚙️

Breaking changes

  • Removed deprecated OpenSnsTokenSwap, SetSnsTokenSwapOpenTimeWindow, and SetDefaultFollowees from ProposalActionRequest.

Features

  • Add support for icrc21_canister_call_consent_message to @dfinity/ledger-icp and @dfinity/ledger-icrc.
  • Add support for "regtest" in BitcoinNetwork.
  • Expose ledger-converters utility modules in @dfinity/ledger-icp and @dfinity/ledger-icrc.

Build

  • Incorporate Agent-js patch v2.1.2.

2024.09.02-0830Z

02 Sep 08:28
c74b166
Compare
Choose a tag to compare

Overview

The current status of the libraries at the time of the release is as follows:

Library Version Status
@dfinity/ckbtc v3.0.0 Breaking Changes ⚠️
@dfinity/cketh v3.3.0 Maintained ⚙️
@dfinity/cmc v3.2.0 Maintained ⚙️
@dfinity/ic-management v5.2.0 Maintained ⚙️
@dfinity/ledger-icp v2.5.0 Maintained ⚙️
@dfinity/ledger-icrc v2.5.0 Maintained ⚙️
@dfinity/nns v6.0.0 Breaking Changes ⚠️
@dfinity/nns-proto v2.0.1 Maintained ⚙️️
@dfinity/sns v3.2.0 Maintained ⚙️
@dfinity/utils v2.5.0 Maintained ⚙️

Breaking changes

  • Rename values of enum Topic and NnsFunction to match the backend values.
  • Use different request/response types for NNS Governance proposals, and different fields for InstallCode proposals.
  • The getUtxos parameter filter.min_confirmations has been renamed to filter.minConfirmations for consistency with the general naming conventions used in @dfinity/ckbtc.
  • Only queries to getUtxos of the Bitcoin canister can be executed by external users — i.e., update calls can only be performed by the canister. This is why getUtxos now only supports non-certified calls and has been renamed to getUtxosQuery.

Features

  • Provide a new utility to convert Candid Nat to BigInt. This utility is useful for interpreting the fees provided by the SNS Aggregator.
  • Support conversion of InstallCode, StopOrStartCanister and UpdateCanisterSettings actions, SetVisibility neuron operation, and Neuron::visibility attribute.
  • Add function getBalanceQuery to BitcoinCanister object of package @dfinity/ckbtc, that implements the bitcoin_get_balance_query method of the IC Bitcoin API.

Build

  • Upgrade agent-js dependencies to v2.0.0.

2024.07.22-0645Z

22 Jul 06:41
dae8474
Compare
Choose a tag to compare

Overview

The current status of the libraries at the time of the release is as follows:

Library Version Status
@dfinity/ckbtc v2.5.0 Maintained ⚙️
@dfinity/cketh v3.2.0 Enhanced 🔧️
@dfinity/cmc v3.1.0 Maintained ⚙️
@dfinity/ic-management v5.1.0 Enhanced 🔧️
@dfinity/ledger-icp v2.4.0 Maintained ⚙️
@dfinity/ledger-icrc v2.4.0 Maintained ⚙️
@dfinity/nns v5.2.0 Enhanced 🔧️
@dfinity/nns-proto v2.0.1 Maintained ⚙️️
@dfinity/sns v3.1.0 Maintained ⚙️
@dfinity/utils v2.4.0 Maintained ⚙️

Features

  • Add support for wasm_memory_limit in the canister settings.
  • Add optional includeEmptyNeurons parameter to listNeurons.
  • Extend eip1559TransactionPrice for Erc20.
  • Add "Protocol Canister Management" and "Service Nervous System Management" topics support.
  • Add asNonNullish function, like assertNonNullish but returns the value.

Fix

  • updateNeuron to not change the neuron subaccount.
  • list_neurons to use old ListNeurons type for hardware wallet compatibility.

Build

  • Upgrade agent-js dependencies to v1.4.0.

2024.06.11-1630Z

11 Jun 16:28
733ffb8
Compare
Choose a tag to compare

Overview

The current status of the libraries at the time of the release is as follows:

Library Version Status
@dfinity/ckbtc v2.4.1 Maintained ⚙️
@dfinity/cketh v3.1.1 Maintained ⚙️
@dfinity/cmc v3.0.7 Maintained ⚙️
@dfinity/ic-management v5.0.1 Maintained ⚙️
@dfinity/ledger-icp v2.3.1 Maintained ⚙️
@dfinity/ledger-icrc v2.3.3 Maintained ⚙️
@dfinity/nns v5.1.2 Maintained ⚙️
@dfinity/nns-proto v2.0.1 Maintained ⚙️️
@dfinity/sns v3.0.6 Maintained ⚙️
@dfinity/utils v2.3.1 Maintained ⚙️

Features

  • Update ckETH Candid definition.

Build

  • Bump braces.

2024.06.05-0835Z

05 Jun 08:33
9c90027
Compare
Choose a tag to compare

Overview

The current status of the libraries at the time of the release is as follows:

Library Version Status
@dfinity/ckbtc v2.4.0 Enhanced 🔧
@dfinity/cketh v3.1.0 Enhanced 🔧
@dfinity/cmc v3.0.6 Maintained ⚙️
@dfinity/ic-management v5.0.0 Breaking Changes ⚠️
@dfinity/ledger-icp v2.3.0 Enhanced 🔧
@dfinity/ledger-icrc v2.3.2 Maintained ⚙️
@dfinity/nns v5.1.1 Maintained ⚙️
@dfinity/nns-proto v2.0.0 Unchanged️
@dfinity/sns v3.0.5 Maintained ⚙️
@dfinity/utils v2.3.0 Enhanced 🔧

Breaking changes

  • bitcoinGetUtxos and bitcoinGetUtxosQuery have been removed from the @dfinity/ic-management library. Instead, use getUtxos from the new Bitcoin canister exposed in @dfinity/ckbtc to access similar data.

Features

  • Support for getUtxos endpoint in the new Bitcoin canister from @dfinity/ckbtc.
  • Canister status response extended with query statistics.
  • Add metadata function to ledger ICP.
  • Add optional parameters to ICP ledger transactionFee.
  • Add support for icrc2_approve on the ICP ledger canister in @dfinity/ledger-icp.