From f62619416c2278e78b2f542a47ab411dc6493093 Mon Sep 17 00:00:00 2001 From: David Dal Busco Date: Mon, 2 Oct 2023 07:32:50 +0200 Subject: [PATCH 1/2] build: v1 and semantic versioning --- CHANGELOG.md | 19 ++++++------ package-lock.json | 45 +++++++++++++++++------------ packages/ckbtc/package.json | 4 +-- packages/cmc/package.json | 4 +-- packages/ic-management/package.json | 4 +-- packages/ledger-icp/package.json | 4 +-- packages/ledger/package.json | 4 +-- packages/nns-proto/package.json | 2 +- packages/nns/package.json | 6 ++-- packages/sns/package.json | 6 ++-- packages/utils/package.json | 2 +- 11 files changed, 54 insertions(+), 46 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cb4cd47d..206066c6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,15 +1,15 @@ -# 0.18.5 (wip) +# 1.0.0 (2023-10-02) ## Release -- nns `v0.16.8` -- sns `v0.0.23` -- cmc `v0.0.19` -- ledger `v0.0.16` -- ckBTC `v0.0.12` -- ic-management `v0.0.9` -- utils `v0.0.23` -- nns-proto `v0.0.9` +- 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 @@ -20,6 +20,7 @@ ## Build - bump did files in Cmc +- starting from this version, we commit to adhering to [semantic versioning](https://semver.org/) for any libraries published in ic-js # 0.18.4 (2023-09-05) diff --git a/package-lock.json b/package-lock.json index 38664020..23cea790 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7023,7 +7023,7 @@ }, "packages/ckbtc": { "name": "@dfinity/ckbtc", - "version": "0.0.12", + "version": "1.0.0", "license": "Apache-2.0", "dependencies": { "@noble/hashes": "^1.3.2", @@ -7034,50 +7034,56 @@ "@dfinity/agent": "^0.19.2", "@dfinity/candid": "^0.19.2", "@dfinity/principal": "^0.19.2", - "@dfinity/utils": "^0.0.23" + "@dfinity/utils": "^1.0.0" } }, "packages/cmc": { "name": "@dfinity/cmc", - "version": "0.0.19", + "version": "1.0.0", "license": "Apache-2.0", "peerDependencies": { "@dfinity/agent": "^0.19.2", "@dfinity/candid": "^0.19.2", "@dfinity/principal": "^0.19.2", - "@dfinity/utils": "^0.0.23" + "@dfinity/utils": "^1.0.0" } }, "packages/ic-management": { "name": "@dfinity/ic-management", - "version": "0.0.9", + "version": "1.0.0", "license": "Apache-2.0", "peerDependencies": { "@dfinity/agent": "^0.19.2", "@dfinity/candid": "^0.19.2", "@dfinity/principal": "^0.19.2", - "@dfinity/utils": "^0.0.23" + "@dfinity/utils": "^1.0.0" } }, "packages/ledger": { "name": "@dfinity/ledger", - "version": "0.0.16", + "version": "1.0.0", "license": "Apache-2.0", "peerDependencies": { "@dfinity/agent": "^0.19.2", "@dfinity/candid": "^0.19.2", "@dfinity/principal": "^0.19.2", - "@dfinity/utils": "^0.0.23" + "@dfinity/utils": "^1.0.0" } }, "packages/ledger-icp": { - "version": "0.0.1", + "name": "@dfinity/ledger-icp", + "version": "1.0.0", "license": "Apache-2.0", - "devDependencies": {} + "peerDependencies": { + "@dfinity/agent": "^0.19.2", + "@dfinity/candid": "^0.19.2", + "@dfinity/principal": "^0.19.2", + "@dfinity/utils": "^1.0.0" + } }, "packages/nns": { "name": "@dfinity/nns", - "version": "0.16.8", + "version": "1.0.0", "license": "Apache-2.0", "dependencies": { "@noble/hashes": "^1.3.2", @@ -7089,14 +7095,14 @@ "peerDependencies": { "@dfinity/agent": "^0.19.2", "@dfinity/candid": "^0.19.2", - "@dfinity/nns-proto": "^0.0.9", + "@dfinity/nns-proto": "^1.0.0", "@dfinity/principal": "^0.19.2", - "@dfinity/utils": "^0.0.23" + "@dfinity/utils": "^1.0.0" } }, "packages/nns-proto": { "name": "@dfinity/nns-proto", - "version": "0.0.9", + "version": "1.0.0", "license": "Apache-2.0", "dependencies": { "google-protobuf": "^3.21.2" @@ -7107,7 +7113,7 @@ }, "packages/sns": { "name": "@dfinity/sns", - "version": "0.0.23", + "version": "1.0.0", "license": "Apache-2.0", "dependencies": { "@noble/hashes": "^1.3.2" @@ -7115,14 +7121,14 @@ "peerDependencies": { "@dfinity/agent": "^0.19.2", "@dfinity/candid": "^0.19.2", - "@dfinity/ledger": "^0.0.16", + "@dfinity/ledger": "^1.0.0", "@dfinity/principal": "^0.19.2", - "@dfinity/utils": "^0.0.23" + "@dfinity/utils": "^1.0.0" } }, "packages/utils": { "name": "@dfinity/utils", - "version": "0.0.23", + "version": "1.0.0", "license": "Apache-2.0", "peerDependencies": { "@dfinity/agent": "^0.19.2", @@ -7620,7 +7626,8 @@ "requires": {} }, "@dfinity/ledger-icp": { - "version": "file:packages/ledger-icp" + "version": "file:packages/ledger-icp", + "requires": {} }, "@dfinity/nns": { "version": "file:packages/nns", diff --git a/packages/ckbtc/package.json b/packages/ckbtc/package.json index 01b573b2..d24bf28d 100644 --- a/packages/ckbtc/package.json +++ b/packages/ckbtc/package.json @@ -1,6 +1,6 @@ { "name": "@dfinity/ckbtc", - "version": "0.0.12", + "version": "1.0.0", "description": "A library for interfacing with ckBTC.", "license": "Apache-2.0", "main": "dist/cjs/index.cjs.js", @@ -41,7 +41,7 @@ "@dfinity/agent": "^0.19.2", "@dfinity/candid": "^0.19.2", "@dfinity/principal": "^0.19.2", - "@dfinity/utils": "^0.0.23" + "@dfinity/utils": "^1.0.0" }, "dependencies": { "@noble/hashes": "^1.3.2", diff --git a/packages/cmc/package.json b/packages/cmc/package.json index 7545021f..9f719fa0 100644 --- a/packages/cmc/package.json +++ b/packages/cmc/package.json @@ -1,6 +1,6 @@ { "name": "@dfinity/cmc", - "version": "0.0.19", + "version": "1.0.0", "description": "A library for interfacing with the cycle minting canister.", "license": "Apache-2.0", "main": "dist/cjs/index.cjs.js", @@ -39,6 +39,6 @@ "@dfinity/agent": "^0.19.2", "@dfinity/candid": "^0.19.2", "@dfinity/principal": "^0.19.2", - "@dfinity/utils": "^0.0.23" + "@dfinity/utils": "^1.0.0" } } diff --git a/packages/ic-management/package.json b/packages/ic-management/package.json index c02d6d38..4b814e46 100644 --- a/packages/ic-management/package.json +++ b/packages/ic-management/package.json @@ -1,6 +1,6 @@ { "name": "@dfinity/ic-management", - "version": "0.0.9", + "version": "1.0.0", "description": "A library for interfacing with the IC management canister.", "license": "Apache-2.0", "main": "dist/cjs/index.cjs.js", @@ -37,6 +37,6 @@ "@dfinity/agent": "^0.19.2", "@dfinity/candid": "^0.19.2", "@dfinity/principal": "^0.19.2", - "@dfinity/utils": "^0.0.23" + "@dfinity/utils": "^1.0.0" } } diff --git a/packages/ledger-icp/package.json b/packages/ledger-icp/package.json index 7b863b19..05ba8b1c 100644 --- a/packages/ledger-icp/package.json +++ b/packages/ledger-icp/package.json @@ -1,6 +1,6 @@ { "name": "@dfinity/ledger-icp", - "version": "0.0.1", + "version": "1.0.0", "description": "A library for interfacing with the ICP ledger on the Internet Computer.", "license": "Apache-2.0", "main": "dist/cjs/index.cjs.js", @@ -41,6 +41,6 @@ "@dfinity/agent": "^0.19.2", "@dfinity/candid": "^0.19.2", "@dfinity/principal": "^0.19.2", - "@dfinity/utils": "^0.0.23" + "@dfinity/utils": "^1.0.0" } } diff --git a/packages/ledger/package.json b/packages/ledger/package.json index bef4c080..c3c37f32 100644 --- a/packages/ledger/package.json +++ b/packages/ledger/package.json @@ -1,6 +1,6 @@ { "name": "@dfinity/ledger", - "version": "0.0.16", + "version": "1.0.0", "description": "A library for interfacing with ICRC ledgers on the Internet Computer.", "license": "Apache-2.0", "main": "dist/cjs/index.cjs.js", @@ -40,6 +40,6 @@ "@dfinity/agent": "^0.19.2", "@dfinity/candid": "^0.19.2", "@dfinity/principal": "^0.19.2", - "@dfinity/utils": "^0.0.23" + "@dfinity/utils": "^1.0.0" } } diff --git a/packages/nns-proto/package.json b/packages/nns-proto/package.json index 69504538..04066616 100644 --- a/packages/nns-proto/package.json +++ b/packages/nns-proto/package.json @@ -1,6 +1,6 @@ { "name": "@dfinity/nns-proto", - "version": "0.0.9", + "version": "1.0.0", "description": "The protobuf source used by nns-js to support hardware wallets.", "license": "Apache-2.0", "main": "dist/cjs/index.cjs.js", diff --git a/packages/nns/package.json b/packages/nns/package.json index c0dfb2c3..3cefd4f0 100644 --- a/packages/nns/package.json +++ b/packages/nns/package.json @@ -1,6 +1,6 @@ { "name": "@dfinity/nns", - "version": "0.16.8", + "version": "1.0.0", "description": "A library for interfacing with the Internet Computer's Network Nervous System.", "license": "Apache-2.0", "main": "dist/cjs/index.cjs.js", @@ -53,8 +53,8 @@ "peerDependencies": { "@dfinity/agent": "^0.19.2", "@dfinity/candid": "^0.19.2", - "@dfinity/nns-proto": "^0.0.9", + "@dfinity/nns-proto": "^1.0.0", "@dfinity/principal": "^0.19.2", - "@dfinity/utils": "^0.0.23" + "@dfinity/utils": "^1.0.0" } } diff --git a/packages/sns/package.json b/packages/sns/package.json index 1d0ebaa1..13661e19 100644 --- a/packages/sns/package.json +++ b/packages/sns/package.json @@ -1,6 +1,6 @@ { "name": "@dfinity/sns", - "version": "0.0.23", + "version": "1.0.0", "description": "A library for interfacing with a Service Nervous System (SNS) project.", "license": "Apache-2.0", "main": "dist/cjs/index.cjs.js", @@ -38,9 +38,9 @@ "peerDependencies": { "@dfinity/agent": "^0.19.2", "@dfinity/candid": "^0.19.2", - "@dfinity/ledger": "^0.0.16", + "@dfinity/ledger": "^1.0.0", "@dfinity/principal": "^0.19.2", - "@dfinity/utils": "^0.0.23" + "@dfinity/utils": "^1.0.0" }, "dependencies": { "@noble/hashes": "^1.3.2" diff --git a/packages/utils/package.json b/packages/utils/package.json index 627dd1b4..50e6146f 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,6 +1,6 @@ { "name": "@dfinity/utils", - "version": "0.0.23", + "version": "1.0.0", "description": "A collection of utilities and constants for NNS/SNS projects.", "license": "Apache-2.0", "main": "dist/cjs/index.cjs.js", From 46682a3a330c709596277f57f9ac00eab634f1f0 Mon Sep 17 00:00:00 2001 From: David Dal Busco Date: Mon, 2 Oct 2023 11:30:57 +0200 Subject: [PATCH 2/2] chore: remove ledger-icp comparison as we aim to merge v1 and display only those --- package.json | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/package.json b/package.json index 5d39da3a..fab5fe18 100644 --- a/package.json +++ b/package.json @@ -95,17 +95,6 @@ "@dfinity/utils" ] }, - { - "name": "@dfinity/ledger-icp", - "path": "./packages/ledger-icp/dist/index.js", - "limit": "4 kB", - "ignore": [ - "@dfinity/agent", - "@dfinity/candid", - "@dfinity/principal", - "@dfinity/utils" - ] - }, { "name": "@dfinity/nns", "path": "./packages/nns/dist/index.js",