Skip to content

Commit

Permalink
Merge branch 'main' into kloet/decimals-from-number
Browse files Browse the repository at this point in the history
  • Loading branch information
dskloetd committed May 16, 2024
2 parents 24a22d4 + 65e23d1 commit 7106699
Show file tree
Hide file tree
Showing 17 changed files with 70 additions and 47 deletions.
24 changes: 23 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,33 @@
# 2024.XX.YY-hhMMZ
# 2024.05.14-0630Z

## Overview

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

| Library | Version | Status |
| ------------------------ | ------- | ------------------- |
| `@dfinity/ckbtc` | v2.3.3 | Maintained ⚙️ |
| `@dfinity/cketh` | v3.0.1 | Maintained ⚙️ |
| `@dfinity/cmc` | v3.0.5 | Maintained ⚙️ |
| `@dfinity/ic-management` | v4.0.0 | Breaking Changes ⚠️ |
| `@dfinity/ledger-icp` | v2.2.4 | Maintained ⚙️ |
| `@dfinity/ledger-icrc` | v2.3.1 | Maintained ⚙️ |
| `@dfinity/nns` | v5.1.0 | Enhanced 🔧 |
| `@dfinity/nns-proto` | v2.0.0 | Breaking Changes ⚠️ |
| `@dfinity/sns` | v3.0.4 | Maintained ⚙️ |
| `@dfinity/utils` | v2.3.0 | Enhanced 🔧 |

## Breaking changes

- `@dfinity/ic-management` function `canisterInfo` removed because users cannot call this method (see [documentation](https://internetcomputer.org/docs/current/references/ic-interface-spec#ic-canister-info)).
- `@dfinity/nns-proto` was updated with the most recent proto types, some of which were not backwards compatible.
- The size of the nns-proto-js library has noticeably increased, as it now exposes all types instead of just a manually picked subset.

## Features

- Update Candid definition in ckBTC, ckETH, CMC, ICP and ICRC Ledgers, Nns and Sns.
- Add "Subnet Rental" to the list of `NnsFunction` and to topic support.

## Fix

- Fixed `TokenAmountV2.fromNumber` for tokens with fewer than 8 decimals.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Install any library of this repo in your project from [npm](https://www.npmjs.co
npm i @dfinity/utils
npm i @dfinity/ledger-icp
npm i @dfinity/ledger-icrc
npm i @dfinity/nns-proto @dfinity/nns
npm i @dfinity/nns
npm i @dfinity/sns
npm i @dfinity/cmc
npm i @dfinity/ckbtc
Expand Down
44 changes: 22 additions & 22 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dfinity/ic-js",
"version": "2024.04.29-0930Z",
"version": "2024.05.14-0630Z",
"description": "A collection of library for interfacing with the Internet Computer.",
"license": "Apache-2.0",
"workspaces": [
Expand Down
4 changes: 2 additions & 2 deletions packages/ckbtc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dfinity/ckbtc",
"version": "2.3.2",
"version": "2.3.3",
"description": "A library for interfacing with ckBTC.",
"license": "Apache-2.0",
"main": "dist/cjs/index.cjs.js",
Expand Down Expand Up @@ -41,7 +41,7 @@
"@dfinity/agent": "^1.3.0",
"@dfinity/candid": "^1.3.0",
"@dfinity/principal": "^1.3.0",
"@dfinity/utils": "^2.2.0"
"@dfinity/utils": "^2.3.0"
},
"dependencies": {
"@noble/hashes": "^1.3.2",
Expand Down
4 changes: 2 additions & 2 deletions packages/cketh/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dfinity/cketh",
"version": "3.0.0",
"version": "3.0.1",
"description": "A library for interfacing with ckETH.",
"license": "Apache-2.0",
"main": "dist/cjs/index.cjs.js",
Expand Down Expand Up @@ -41,6 +41,6 @@
"@dfinity/agent": "^1.3.0",
"@dfinity/candid": "^1.3.0",
"@dfinity/principal": "^1.3.0",
"@dfinity/utils": "^2.2.0"
"@dfinity/utils": "^2.3.0"
}
}
4 changes: 2 additions & 2 deletions packages/cmc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dfinity/cmc",
"version": "3.0.4",
"version": "3.0.5",
"description": "A library for interfacing with the cycle minting canister.",
"license": "Apache-2.0",
"main": "dist/cjs/index.cjs.js",
Expand Down Expand Up @@ -39,6 +39,6 @@
"@dfinity/agent": "^1.3.0",
"@dfinity/candid": "^1.3.0",
"@dfinity/principal": "^1.3.0",
"@dfinity/utils": "^2.2.0"
"@dfinity/utils": "^2.3.0"
}
}
4 changes: 2 additions & 2 deletions packages/ic-management/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dfinity/ic-management",
"version": "3.2.0",
"version": "4.0.0",
"description": "A library for interfacing with the IC management canister.",
"license": "Apache-2.0",
"main": "dist/cjs/index.cjs.js",
Expand Down Expand Up @@ -37,6 +37,6 @@
"@dfinity/agent": "^1.3.0",
"@dfinity/candid": "^1.3.0",
"@dfinity/principal": "^1.3.0",
"@dfinity/utils": "^2.2.0"
"@dfinity/utils": "^2.3.0"
}
}
2 changes: 1 addition & 1 deletion packages/ledger-icp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ npm i @dfinity/ledger-icp
The bundle needs peer dependencies, be sure that following resources are available in your project as well.

```bash
npm i @dfinity/agent @dfinity/candid @dfinity/principal @dfinity/utils @dfinity/nns-proto
npm i @dfinity/agent @dfinity/candid @dfinity/principal @dfinity/utils
```

## Usage
Expand Down
4 changes: 2 additions & 2 deletions packages/ledger-icp/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dfinity/ledger-icp",
"version": "2.2.3",
"version": "2.2.4",
"description": "A library for interfacing with the ICP ledger on the Internet Computer.",
"license": "Apache-2.0",
"main": "dist/cjs/index.cjs.js",
Expand Down Expand Up @@ -41,6 +41,6 @@
"@dfinity/agent": "^1.3.0",
"@dfinity/candid": "^1.3.0",
"@dfinity/principal": "^1.3.0",
"@dfinity/utils": "^2.2.0"
"@dfinity/utils": "^2.3.0"
}
}
4 changes: 2 additions & 2 deletions packages/ledger-icrc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dfinity/ledger-icrc",
"version": "2.3.0",
"version": "2.3.1",
"description": "A library for interfacing with ICRC ledgers on the Internet Computer.",
"license": "Apache-2.0",
"main": "dist/cjs/index.cjs.js",
Expand Down Expand Up @@ -40,6 +40,6 @@
"@dfinity/agent": "^1.3.0",
"@dfinity/candid": "^1.3.0",
"@dfinity/principal": "^1.3.0",
"@dfinity/utils": "^2.2.0"
"@dfinity/utils": "^2.3.0"
}
}
2 changes: 1 addition & 1 deletion packages/nns-proto/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dfinity/nns-proto",
"version": "1.0.2",
"version": "2.0.0",
"description": "The protobuf source used by nns-js to support hardware wallets.",
"license": "Apache-2.0",
"main": "dist/cjs/index.cjs.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/nns/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ npm i @dfinity/nns
The bundle needs peer dependencies, be sure that following resources are available in your project as well.

```bash
npm i @dfinity/agent @dfinity/candid @dfinity/principal @dfinity/utils @dfinity/nns-proto
npm i @dfinity/agent @dfinity/candid @dfinity/principal @dfinity/utils
```

## Usage
Expand Down
6 changes: 3 additions & 3 deletions packages/nns/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dfinity/nns",
"version": "5.0.0",
"version": "5.1.0",
"description": "A library for interfacing with the Internet Computer's Network Nervous System.",
"license": "Apache-2.0",
"main": "dist/cjs/index.cjs.js",
Expand Down Expand Up @@ -53,8 +53,8 @@
"peerDependencies": {
"@dfinity/agent": "^1.3.0",
"@dfinity/candid": "^1.3.0",
"@dfinity/ledger-icp": "^2.2.3",
"@dfinity/ledger-icp": "^2.2.4",
"@dfinity/principal": "^1.3.0",
"@dfinity/utils": "^2.2.0"
"@dfinity/utils": "^2.3.0"
}
}
1 change: 1 addition & 0 deletions packages/nns/src/enums/governance.enums.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export enum Topic {
ReplicaVersionManagement = 13,
SnsAndCommunityFund = 14,
ApiBoundaryNodeManagement = 15,
SubnetRental = 16,
}

// The proposal status, with respect to reward distribution.
Expand Down
6 changes: 3 additions & 3 deletions packages/sns/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dfinity/sns",
"version": "3.0.3",
"version": "3.0.4",
"description": "A library for interfacing with a Service Nervous System (SNS) project.",
"license": "Apache-2.0",
"main": "dist/cjs/index.cjs.js",
Expand Down Expand Up @@ -38,9 +38,9 @@
"peerDependencies": {
"@dfinity/agent": "^1.3.0",
"@dfinity/candid": "^1.3.0",
"@dfinity/ledger-icrc": "^2.3.0",
"@dfinity/ledger-icrc": "^2.3.1",
"@dfinity/principal": "^1.3.0",
"@dfinity/utils": "^2.2.0"
"@dfinity/utils": "^2.3.0"
},
"dependencies": {
"@noble/hashes": "^1.3.2"
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dfinity/utils",
"version": "2.2.0",
"version": "2.3.0",
"description": "A collection of utilities and constants for NNS/SNS projects.",
"license": "Apache-2.0",
"main": "dist/cjs/index.cjs.js",
Expand Down

0 comments on commit 7106699

Please sign in to comment.