Skip to content

Releases: dfinity/ic-js

v0.15.1

18 Apr 07:54
303ebe5
Compare
Choose a tag to compare

Release

  • nns v0.15.1
  • sns v0.0.14
  • cmc v0.0.10
  • ledger v0.0.7
  • ckBTC v0.0.3
  • utils v0.0.14

Fix

  • correct absolute utils import in ledger library

v0.15.0

18 Apr 06:50
16dafe0
Compare
Choose a tag to compare

Release

  • nns v0.15.0
  • sns v0.0.13
  • cmc v0.0.9
  • ledger v0.0.6
  • ckBTC v0.0.2
  • utils v0.0.13

Features

  • new utils moved from NNS-dapp: isNullish, nonNullish, notEmptyString and debounce
  • added ckBTC updateBalance, getWithdrawalAccount, retrieveBtc, estimateWithdrawalFee and getDepositFee functions
  • parse and validate bitcoin address
  • review textual encoding for ICRC-1 account as in dfinity/ICRC-1#98
  • add SNS action converters
  • get latest reward event NNS Governance
  • extend nnsFuncton enum with UpdateElectedReplicaVersions
  • add total tokens supply endpoint
  • new utils to convert hex to/from uint8array, crc and base32

Build

  • bump agent-js v0.15.4
  • bump all dev dependencies
  • hook size limit plugin to check the size of the libraries with the CI

v0.14.0

07 Feb 08:44
6adc46b
Compare
Choose a tag to compare

Release

  • nns v0.14.0
  • sns v0.0.12
  • cmc v0.0.8
  • ledger v0.0.5
  • ckBTC v0.0.1
  • utils v0.0.12

Breaking changes

  • index canister moved from @dfinity/sns to @dfinity/ledger
  • related classes and types renamed from Sns... to Icrc...

Features

  • new @dfinity/ckbtc library for interfacing with ckBTC on the Internet Computer
  • export a constant for the Icrc1 metadata logo
  • move and expose assertPercentageNumber to lib @dfinity/utils
  • register Sns vote

Build

  • fix utils as peer dependency for cmc
  • fix sns using nns dependencies
  • bump all dev dependencies
  • bump Nns dependencies
  • dependabot patch for json5 v1.0.2

v0.13.0

28 Jan 09:36
3205ae6
Compare
Choose a tag to compare

0.13.0 (2023-01-28)

Release

  • nns v0.13.0
  • sns v0.0.11
  • cmc v0.0.7
  • ledger v0.0.4
  • utils v0.0.11

Features

  • add fee as param in SNS Stake neuron
  • extend NnsFunction enum with InsertSnsWasmUpgradePathEntries

Fix

  • encode ICRC-1 accounts

v0.12.1

24 Jan 14:59
69c4231
Compare
Choose a tag to compare

Release

  • nns v0.12.1
  • sns v0.0.10
  • cmc v0.0.6
  • ledger v0.0.3
  • utils v0.0.10

Fix

  • utils was wrongly referenced as a dependency instead of peer-dependency in last release of cmc

v0.12.0

24 Jan 13:54
0b74517
Compare
Choose a tag to compare

Release

  • nns v0.12.0
  • sns v0.0.9
  • cmc v0.0.5
  • ledger v0.0.1
  • utils v0.0.8

Breaking Changes

Introducing @dfinity/ledger — A library for interfacing with ICRC ledgers on the Internet Computer.

An ICRC-1 ledger is not only used in Sns projects but, in ckBTC too. It can also be integrated in various other scenario need by developers on the IC.

That's why we are launching this new library and why we refactored Sns ledger related features to create this new library.

De facto, @dfinity/ledger becomes a peer dependency of @dfinity/sns.

Features

  • enable merge neurons for HW controlled neurons

v0.11.0

23 Jan 09:22
65a8c62
Compare
Choose a tag to compare

Release

  • nns v0.11.0
  • sns v0.0.8
  • cmc v0.0.4
  • utils v0.0.7

Features

  • new Sns features: increase stake neuron, split neuron, list and get proposals
  • add support for the param to_account when disbursing Sns neuron
  • add createAt param for Nns ledger transfers
  • more Sns voting permissions

Build

  • bump agent-js peer dependencies to v0.15.1
  • bump Nns (crc and google-protobuf) dependencies
  • bump dev dependencies

v0.10.0

06 Dec 10:58
6f61201
Compare
Choose a tag to compare

Release

  • nns v0.10.0
  • sns v0.0.7
  • cmc v0.0.3
  • utils v0.0.6

Features

  • various neuron features for Sns - e.g. stake neuron, list and set followees, set dissolve delay, stake maturity etc.
  • array utilities bigIntToUint8Array and numberToUint8Array
  • semantic version comparator smallerVersion

Fix

  • rounding conversion from number to Token

v0.9.0

31 Oct 09:52
45f603d
Compare
Choose a tag to compare

0.9.0 (2022-10-31)

Release

  • nns v0.9.0
  • sns v0.0.6
  • cmc v0.0.2
  • utils v0.0.5

Breaking changes

  • token param in TokenAmount factory methods is mandatory instead of using ICPToken as default.
  • TokenAmount.fromNumber does not return FromStringToTokenError, only TokenAmount.

Features

  • new NNS governance features: stakeMaturity and autoStakeMaturity
  • various additional new NNS functions and proposal types
  • new SNS index canister
  • new SNS ledger and wrapper feature: transfer and transactionFee
  • SNS did files updated with most recent commit in IC repo
  • support join community fund for neurons controlled by Hardware Wallet.

Build

  • bump dev dependencies
  • bump agent-js peer dependencies v0.14.0

Docs

v0.8.0

26 Sep 15:28
d3cb8fe
Compare
Choose a tag to compare

Release

  • nns v0.8.1
  • sns v0.0.5
  • cmc v0.0.1
  • utils v0.0.4

Breaking changes

  • the development dependency didc has been bumped which leads to some types having to be converted from number[] to Uint8Array
  • new fields stakedMaturityE8sEquivalent and autoStakeMaturity in Neuron

Features

  • new library @dfinity/cmc
  • new nns governance commands and actions: ChangeAutoStakeMaturity, SetSnsTokenSwapOpenTimeWindow and OpenSnsTokenSwap
  • some new utilities added to transform arrays from various format to Uint8Array
  • new Sns utilities to encode and decode accounts to and from strings
  • disburse Sns neurons
  • createAgent and principalToSubAccount added to utils