Skip to content

Releases: dfinity/ic-js

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

v0.18.0

07 Aug 04:55
a9ab75c
Compare
Choose a tag to compare

Release

  • nns v0.16.3
  • sns v0.0.18
  • cmc v0.0.14
  • ledger v0.0.11
  • ckBTC v0.0.7
  • ic-management v0.0.4
  • utils v0.0.18
  • nns-proto v0.0.4

Breaking Changes

  • move convertStringToE8s and TokenAmount from Nns package to @dfinity/utils
  • retire TokenAmount.toProto()

Features

  • add a new utils function decodePayment to the @dfinity/ledger library. Useful to decode payment through QR code that contains target address and amount
  • add provisional create canister with cycles method
  • CreateServiceNervousSystem <-> RawCreateServiceNervousSystem transformations for Nns proposal
  • decode payment code (early support and not yet specified. see ICRC-22)

Build

  • bump semver

v0.17.2

21 Jun 10:15
057882a
Compare
Choose a tag to compare

Release

  • ic-management v0.0.3

Build

No particular changes. Resolve a version conflicts in npmjs.

v0.17.1

21 Jun 09:54
21089c0
Compare
Choose a tag to compare

0.17.1 (2023-06-21)

Release

  • nns v0.16.2
  • sns v0.0.17
  • cmc v0.0.13
  • ledger v0.0.10
  • ckBTC v0.0.6
  • ic-management v0.0.2
  • utils v0.0.17
  • nns-proto v0.0.3

Fix

  • redo global polyfill for the browser
  • expose more types in new library ic-management-js

Build

  • fix ic-management-js next dependencies and version

Docs

  • various improvements in READMEs

v0.17.0

20 Jun 14:01
3fd13d0
Compare
Choose a tag to compare

Release

  • nns v0.16.1
  • sns v0.0.16
  • cmc v0.0.12
  • ledger v0.0.9
  • ckBTC v0.0.5
  • ic-management v0.0.1
  • utils v0.0.16
  • nns-proto v0.0.2

Breaking Changes

  • ckBTC getDepositFee has been deprecated. Instead, use the new feature getMinterInfo

Features

  • introducing @dfinity/ic-management — a new library for interfacing with IC management canister
  • add getMinterInfo for ckBTC which returns internal minter parameters such as the minimal amount to retrieve BTC, minimal number of confirmations or KYT fee
  • add fee to nns stake neuron method
  • expose Sns index canister id in wrapper
  • add simulateMergeNeurons to Nns governance

Refactor

  • use isNullish and fromNullable utils in Nns governance.canister.ts

Build

  • remove global polyfill for the browser and add worker conditions to bundle
  • improve docs generation in the CI
  • update Candid types in Nns

Docs

  • improve Sns README
  • generate README docs for BTC utils

v0.16.0

24 May 07:12
3498d7b
Compare
Choose a tag to compare

Release

  • nns v0.16.0
  • sns v0.0.15
  • cmc v0.0.11
  • ledger v0.0.8
  • ckBTC v0.0.4
  • utils v0.0.15
  • nns-proto v0.0.1

Breaking Changes

  • the protobuf dependencies of @dfinity/nns have been extracted to a new peer dependency called @dfinity/nns-proto. In the NNS-dapp, we manually chunk the libraries. This change enables the dapp to load the required code of the hardware wallet only when necessary.

Features

  • update sns-js and nns-js candid definitions
  • add BitcoinSetConfig to enum NnsFunction
  • expose some more Sns types

Build

  • publish provenance to npm
  • do not run size checker on main branch

Docs

  • fix sample in nns-js README