Skip to content

Releases: dfinity/ic-js

2024.01.03-1115Z

03 Jan 11:20
9009305
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.1.0 Unchanged
@dfinity/cketh v0.0.1 New 🚀
@dfinity/cmc v2.1.0 Unchanged
@dfinity/ic-management v2.1.0 Unchanged
@dfinity/ledger-icp v2.1.0 Unchanged
@dfinity/ledger-icrc v2.1.0 Unchanged
@dfinity/nns v3.1.0 Unchanged
@dfinity/nns-proto v1.0.0 Unchanged
@dfinity/sns v2.1.0 Unchanged
@dfinity/utils v2.0.0 Unchanged️

Features

  • Introduces an early first version of @dfinity/cketh, which is meant to provide functions for interfacing with ckETH. The library doesn't do much at the moment, but we're releasing it to integrate it into our pipelines, and features will be added iteratively as required.

2023.12.20-1000Z

20 Dec 10:05
6b3d048
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.1.0 Enhanced 🔧
@dfinity/cmc v2.1.0 Enhanced 🔧
@dfinity/ic-management v2.1.0 Enhanced 🔧
@dfinity/ledger-icp v2.1.0 Enhanced 🔧
@dfinity/ledger-icrc v2.1.0 Enhanced 🔧
@dfinity/nns v3.1.0 Enhanced 🔧
@dfinity/nns-proto v1.0.0 Unchanged
@dfinity/sns v2.1.0 Enhanced 🔧
@dfinity/utils v2.0.0 Breaking Changes ⚠️

Breaking changes

  • decimals mandatory field in Token.
  • TokenAmount rejects tokens with decimals !== 8.

Features

  • Substitute ? fields with Option fields in the converters related to NNS proposals.
  • Add retrieveBtcStatus to ckbtc minter canister.
  • Add retrieveBtcStatusV2ByAccount to ckbtc minter canister.
  • Make uint8ArrayToHexString also accept number[] as input.
  • Add a new type TokenAmountV2 which supports decimals !== 8.
  • Fix issue when converting token amount from small numbers with TokenAmountV2.
  • Bump agent-js to v0.20.2 in a non-breaking manner by introducing verifyQuerySignatures as an opt-in feature (for the time being).
  • Replace https://ic0.app by https://icp-api.io as the default host for the default anonymous agent provided by defaultAgent.

Fix

  • Utilize ICP Index accountBalance and getTransactions with account identifier hex directly, eliminating the need for conversion with Buffer and resolving usage in non-polyfilled environments.

Operations

  • Add a cron job to periodically update IC candid files and typescript bindings.

2023.11.21-1400Z

21 Nov 16:25
cf6314e
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.0.0 Enhanced 🔧
@dfinity/cmc v2.0.0 Enhanced 🔧
@dfinity/ic-management v2.0.0 Enhanced 🔧
@dfinity/ledger-icp v2.0.0 Enhanced 🔧
@dfinity/ledger-icrc v2.0.0 Enhanced 🔧
@dfinity/nns v3.0.0 Enhanced 🔧
@dfinity/nns-proto v1.0.0 Unchanged
@dfinity/sns v2.0.0 Enhanced 🔧
@dfinity/utils v1.1.0 Unchanged

Features

  • Include timestamp and tags in the candid provenance record.
  • Update ckbtc candid to ic commit 4de99bc27be74048f80d13200f3c75cf2a43438c.
  • Include pending UTXOs in MinterNoNewUtxosError.
  • Upgrade didc to 0.3.5 that converts candid files into JS and TS.

2023.10.15-0600Z

15 Nov 07:34
7b2513f
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 v1.1.0 Enhanced 🔧
@dfinity/cmc v1.0.0 Unchanged
@dfinity/ic-management v1.0.0 Unchanged
@dfinity/ledger-icp v1.1.0 Enhanced 🔧
@dfinity/ledger-icrc v1.0.1 Patched 🩹
@dfinity/nns v2.1.0 Enhanced 🔧
@dfinity/nns-proto v1.0.0 Unchanged
@dfinity/sns v1.0.2 Patched 🩹
@dfinity/utils v1.1.0 Enhanced 🔧

Features

  • add support for ICP Index canister to library @dfinity/ledger-icp. New IndexCanister functions: accountBalance and getTransactions
  • expose few types - notably BlockHeight - for library @dfinity/ledger-icp
  • support new fields from swap canister response types: min_direct_participation_icp_e8s, max_direct_participation_icp_e8s and neurons_fund_participation
  • support new fields in the CreateServiceNervousSystem proposal action: maximum_direct_participation_icp, minimum_direct_participation_icp and neurons_fund_participation
  • support new filter field omit_large_fields in list_proposals
  • add support for retrieve_btc_with_approval in @dfinity/ckbtc
  • new utility to convert seconds to a human-readable duration
  • update @dfinity/ledger-icrc did files
  • update @dfinity/sns did files

2023.10.02-1515Z

02 Oct 18:59
90a4167
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 v1.0.1 Patched
@dfinity/cmc v1.0.0 Unchanged
@dfinity/ic-management v1.0.0 Unchanged
@dfinity/ledger v1.0.0 Deprecated ❌
@dfinity/ledger-icp v1.0.0 New 🚀
@dfinity/ledger-icrc v1.0.0 New 🚀
@dfinity/nns v2.0.0 Breaking Changes ⚠️
@dfinity/nns-proto v1.0.0 Unchanged
@dfinity/sns v1.0.0 Patched
@dfinity/utils v1.0.0 Unchanged

Release

  • ckbtc v1.0.1
  • ledger-icp v1.0.0
  • ledger-icrc v1.0.0
  • nns v2.0.0
  • sns v1.0.1

Breaking Changes ⚠️

  • ICP ledger-related features have been relocated from @dfinity/nns to a new dedicated library called @dfinity/ledger-icp
  • ICRC ledger-related features have been moved as well. The library @dfinity/ledger has been deprecated, renamed, and replaced by @dfinity/ledger-icrc
  • remove the ICP class, which was deprecated a long time ago, from @dfinity/nns. Instead, utilize the token parsers from @dfinity/utils

Build

  • @dfinity/sns inherits the changes and now requires @dfinity/ledger-icrc as a peer dependency
  • @dfinity/nns inherits the changes and now requires @dfinity/ledger-icp as a peer dependency

Chore

  • minter params Subaccount declared as Uint8Array instead of inheriting a type

v1.0.0

02 Oct 09:45
21a73b7
Compare
Choose a tag to compare

Release

  • nns v1.0.0
  • sns v1.0.0
  • cmc v1.0.0
  • ledger v1.0.0
  • ckBTC v1.0.0
  • ic-management v1.0.0
  • utils v1.0.0
  • nns-proto v1.0.0

Features

  • add support for icrc2_transfer_from, icrc2_approve and icrc2_allowance in @dfinity/ledger
  • update index did definitions in ledger which provides more information in the transactions
  • add support for icrc1_transfer on the ICP ledger canister in @dfinity/nns

Build

  • bump did files in Cmc
  • starting from this version, we commit to adhering to semantic versioning for any libraries published in ic-js

v0.18.4

05 Sep 07:23
15f5970
Compare
Choose a tag to compare

Release

  • nns v0.16.7
  • sns v0.0.22
  • cmc v0.0.18
  • ledger v0.0.15
  • ckBTC v0.0.11
  • ic-management v0.0.8
  • utils v0.0.22
  • nns-proto v0.0.8

Features

  • replaces the js-sha256 library with @noble/hashes

v0.18.3

04 Sep 05:00
802fc9c
Compare
Choose a tag to compare

Release

  • nns v0.16.6
  • sns v0.0.21
  • cmc v0.0.17
  • ledger v0.0.14
  • ckBTC v0.0.10
  • ic-management v0.0.7
  • utils v0.0.21
  • nns-proto v0.0.7

Fix

  • bump agent-js v0.19.2 to fix evaluation of subdomain when host is not specified

Build

  • remove unused dependencies in @dfinity/ic-management

v0.18.2

24 Aug 15:59
2fd7c86
Compare
Choose a tag to compare

Release

  • nns v0.16.5
  • sns v0.0.20
  • cmc v0.0.16
  • ledger v0.0.13
  • ckBTC v0.0.9
  • ic-management v0.0.6
  • utils v0.0.20
  • nns-proto v0.0.6

Features

  • Reviver and replacer to interpret BigInt, Principal, and Uint8Array in JSON.stringify|parse
  • Add Sns disburse maturity function

Build

  • bump agent-js v0.19.1

v0.18.1

07 Aug 06:08
52769a7
Compare
Choose a tag to compare

Release

  • nns v0.16.4
  • sns v0.0.19
  • cmc v0.0.15
  • ledger v0.0.12
  • ckBTC v0.0.8
  • ic-management v0.0.5
  • utils v0.0.19
  • nns-proto v0.0.5

Features

  • update nns/governance.did and sns_wasm.did for 1-proposal
  • update ic.did for @dfinity/ic-management
  • update icrc1_ledger.did

Build

  • bump agent-js v0.18.1

Docs

  • add mention that ICRC-22 is currently a draft