Skip to content

Releases: dfinity/icp-js-canisters

@dfinity/utils v4.0.3

Choose a tag to compare

@AntonioVentilii AntonioVentilii released this 25 Mar 09:41
fe1c479

What's changed

Patch release for @dfinity/utils@4.0.3 — backports the toBase64 chunk-loss fix and performance improvement from v96 to the v4.0.x line.

  • fix(utils): uint8ArrayToBase64 loses data on large Uint8Array inputs (#1485)
  • feat(utils): chunked conversion for better performance (#1487)

Details

See tracking PR #1495 and branch release/v89/patch-1.

npm: npm install @dfinity/utils@4.0.3

v96

Choose a tag to compare

@AntonioVentilii AntonioVentilii released this 24 Mar 14:48
f63af14

Overview

Library Version Status
@dfinity/utils v4.2.1 Maintained ⚙

Fix

  • Avoid loss of chunks in util toBase64 of @dfinity/utils when the input is a large Uint8Array.

v95

v95

Choose a tag to compare

@peterpeterparker peterpeterparker released this 17 Mar 14:03
21b8ab4

Overview

Library Version Status
@icp-sdk/canisters v3.5.2 Maintained ⚙
@dfinity/zod-schemas v3.2.0 Enhanced 🔧️

Features

  • Add Option, Nullable and Nullish types to Zod library.
  • Add Result schema and type to Zod library which allows for representing type with a success or error state.
  • Update latest Candid files.

Chore

  • Bump Node version to v25 to use npm@11.10.
  • Update actions/checkout@6.0.2.
  • Update weekly IC workflow ref.

v94

v94

Choose a tag to compare

@peterpeterparker peterpeterparker released this 01 Mar 14:09
bb12362

Overview

Library Version Status
@icp-sdk/canisters v3.5.1 Maintained ⚙
@dfinity/utils v4.2.0 Enhanced 🔧️
@dfinity/zod-schemas v3.1.0 Enhanced 🔧️

Features

  • Add PrincipalSchema and Uint8ArraySchema to Zod custom schemas.
  • Identify schemas with a metadata id corresponding to the enum ZodSchemaId.
  • Update latest Candid files.
  • Service queryAndUpdate will print the update error to console only when onUpdateError callback is nullish.

v93

v93

Choose a tag to compare

@yhabib yhabib released this 18 Feb 04:35
0536d7b

Overview

Library Version Status
@icp-sdk/canisters v3.5.0 Enhanced 🔧️

Features

  • Update to the latest Candid file for the nns package to introduce support for the new proposal types TakeCanisterSnapshot and LoadCanisterSnapshot.
  • Support selfDescribingAction field in Governance proposals.

v92

v92

Choose a tag to compare

@peterpeterparker peterpeterparker released this 09 Jan 12:43
eb9ab89

Overview

Library Version Status
@icp-sdk/canisters v3.4.0 Enhanced 🔧️

Features

  • Add support for notifyMintCycles to mint cycles and deposit them to a cycles ledger account via the CMC.
  • Update to the latest Candid file for the nns package to introduce support for the new proposal type BlessAlternativeGuestOsVersion.

v91

v91

Choose a tag to compare

@peterpeterparker peterpeterparker released this 05 Jan 09:42
2a1f5c1

Overview

Library Version Status
@icp-sdk/canisters v3.3.0 Enhanced 🔧️
@dfinity/ckbtc v7.1.0 Unchanged️
@dfinity/cketh v7.1.0 Unchanged️
@dfinity/cmc v9.1.0 Unchanged️
@dfinity/ic-management v10.1.0 Unchanged️
@dfinity/ledger-icp v9.1.0 Unchanged️
@dfinity/ledger-icrc v7.1.0 Unchanged️
@dfinity/nns v12.1.0 Unchanged️
@dfinity/nns-proto v2.0.4 Unchanged️
@dfinity/sns v7.1.0 Unchanged️
@dfinity/utils v4.1.0 Unchanged️
@dfinity/zod-schemas v3.0.2 Unchanged️

Features

  • Add new CyclesLedgerCanister to @icp-sdk/canisters with withdraw method to transfer cycles from the ledger to a target canister.
  • Update to the latest Candid files.

v90

v90

Choose a tag to compare

@peterpeterparker peterpeterparker released this 19 Dec 08:15
70d5322

Overview

Library Version Status
@icp-sdk/canisters v3.2.0 Maintained ⚙
@dfinity/ckbtc v7.1.0 Maintained ⚙
@dfinity/cketh v7.1.0 Maintained ⚙
@dfinity/cmc v9.1.0 Maintained ⚙
@dfinity/ic-management v10.1.0 Enhanced 🔧️
@dfinity/ledger-icp v9.1.0 Maintained ⚙
@dfinity/ledger-icrc v7.1.0 Maintained ⚙
@dfinity/nns v12.1.0 Maintained ⚙
@dfinity/nns-proto v2.0.4 Unchanged️
@dfinity/sns v7.1.0 Maintained ⚙
@dfinity/utils v4.1.0 Maintained ⚙
@dfinity/zod-schemas v3.0.2 Unchanged️

Features

  • Add new optional parameters uninstallCode and senderCanisterVersion to takeCanisterSnapshot.
  • Update to the latest Candid files.

Build

Chore

  • Bump @icp-sdk/bindgen for generating IDL files.
  • Set the workspace to ignore-scripts=true to disallow npm from running scripts.
  • Remove explicit dependencies from integration tests and run those only on asset changes.

v89

v89

Choose a tag to compare

@peterpeterparker peterpeterparker released this 16 Dec 05:05
e78c094

Overview

Library Version Status
@icp-sdk/canisters v3.1.0 Enhanced 🔧️
@dfinity/ckbtc v7.0.0 Unchanged️
@dfinity/cketh v7.0.0 Unchanged️
@dfinity/cmc v9.0.0 Unchanged️
@dfinity/ic-management v10.0.0 Unchanged️
@dfinity/ledger-icp v9.0.0 Unchanged️
@dfinity/ledger-icrc v7.0.0 Unchanged️
@dfinity/nns v12.0.0 Unchanged️
@dfinity/nns-proto v2.0.4 Unchanged️
@dfinity/sns v7.0.0 Unchanged️
@dfinity/utils v4.0.2 Unchanged️
@dfinity/zod-schemas v3.0.2 Unchanged️

Features

  • The @dfinity/assets library has been deprecated. Its functionality has been integrated into @icp-sdk/canisters.

v88

v88

Choose a tag to compare

@peterpeterparker peterpeterparker released this 11 Dec 07:12
c12fa5e

Overview

Library Version Status
@icp-sdk/canisters v3.0.0 Breaking Changes ⚠️
@dfinity/ckbtc v7.0.0 Enhanced 🔧️
@dfinity/cketh v7.0.0 Enhanced 🔧️
@dfinity/cmc v9.0.0 Enhanced 🔧️
@dfinity/ic-management v10.0.0 Enhanced 🔧️
@dfinity/ledger-icp v9.0.0 Enhanced 🔧️
@dfinity/ledger-icrc v7.0.0 Breaking Changes ⚠️
@dfinity/nns v12.0.0 Enhanced 🔧️
@dfinity/nns-proto v2.0.4 Unchanged️
@dfinity/sns v7.0.0 Enhanced 🔧️
@dfinity/utils v4.0.2 Maintained ⚙
@dfinity/zod-schemas v3.0.2 Maintained ⚙

Breaking Changes

  • The types for declarations of the canisters generated to describe the interfaces on the Internet Computer (Candid) are now re-exported through namespaces.

For example, the Tokens type of the IcrcLedgerCanister is available within the related namespace IcrcLedgerDid.

import {
  type IcrcLedgerDid,
  IcrcLedgerCanister,
} from "@icp-sdk/canisters/ledger/icrc";

const { balance } = IcrcLedgerCanister.create({
  agent,
  canisterId,
});

const data: IcrcLedgerDid.Tokens = await balance({ owner });
  • The following canisters have been renamed for consistency and readability:
Old New 🆕
CkBTCMinterCanister CkBtcMinterCanister
CkETHMinterCanister CkEthMinterCanister
CkETHOrchestratorCanister CkEthOrchestratorCanister
CMCCanister CmcCanister
ICManagementCanister IcManagementCanister
LedgerCanister IcpLedgerCanister
IndexCanister IcpIndexCanister
GenesisTokenCanister NnsGenesisTokenCanister
GovernanceCanister NnsGovernanceCanister
GovernanceTestCanister NnsGovernanceTestCanister
  • The deprecated implementation of the ICRC Index canister has been deleted, and its common implementation becomes the new standard.

In other words, IcrcIndexNgCanister becomes IcrcIndexCanister.

Old New 🆕
IcrcIndexCanister ---
IcrcIndexNgCanister IcrcIndexCanister

Features

  • New class IcrcNftLedgerCanister to interface with ICRC-7 standards.
  • Add method collectionMetadata in class IcrcNftLedgerCanister to fetch a collection's metadata.