From 84b5b3908f6462f89041bc054c4c5bb0d065a939 Mon Sep 17 00:00:00 2001 From: Linwei Shang Date: Mon, 1 Jul 2024 12:55:28 -0400 Subject: [PATCH 1/3] bump ic-cdk to 0.15.0 --- Cargo.lock | 14 +++++++------- Cargo.toml | 2 +- src/ic-cdk-macros/Cargo.toml | 2 +- src/ic-cdk/CHANGELOG.md | 13 +++++++++---- src/ic-cdk/Cargo.toml | 4 ++-- 5 files changed, 20 insertions(+), 15 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index fcd8d63b1..809be572c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1118,11 +1118,11 @@ dependencies = [ [[package]] name = "ic-cdk" -version = "0.14.0" +version = "0.15.0" dependencies = [ "anyhow", "candid", - "ic-cdk-macros 0.14.0", + "ic-cdk-macros 0.15.0", "ic0 0.23.0", "rstest", "serde", @@ -1150,7 +1150,7 @@ dependencies = [ "escargot", "futures", "hex", - "ic-cdk 0.14.0", + "ic-cdk 0.15.0", "ic-cdk-timers", "lazy_static", "pocket-ic", @@ -1174,7 +1174,7 @@ dependencies = [ [[package]] name = "ic-cdk-macros" -version = "0.14.0" +version = "0.15.0" dependencies = [ "candid", "proc-macro2", @@ -1189,7 +1189,7 @@ name = "ic-cdk-timers" version = "0.8.0" dependencies = [ "futures", - "ic-cdk 0.14.0", + "ic-cdk 0.15.0", "ic0 0.23.0", "serde", "serde_bytes", @@ -1203,7 +1203,7 @@ dependencies = [ "bincode", "candid", "hex", - "ic-cdk 0.14.0", + "ic-cdk 0.15.0", "serde", "serde_bytes", "serde_cbor", @@ -1217,7 +1217,7 @@ dependencies = [ "candid", "crc32fast", "hex", - "ic-cdk 0.14.0", + "ic-cdk 0.15.0", "serde", "serde_bytes", "sha2", diff --git a/Cargo.toml b/Cargo.toml index 14f536c9e..815a664db 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,7 +21,7 @@ opt-level = 'z' [workspace.dependencies] ic0 = { path = "src/ic0", version = "0.23.0" } -ic-cdk = { path = "src/ic-cdk", version = "0.14.0"} +ic-cdk = { path = "src/ic-cdk", version = "0.15.0"} ic-cdk-timers = { path = "src/ic-cdk-timers", version = "0.8.0" } candid = "0.10.4" diff --git a/src/ic-cdk-macros/Cargo.toml b/src/ic-cdk-macros/Cargo.toml index 22f66b642..7be3dc13e 100644 --- a/src/ic-cdk-macros/Cargo.toml +++ b/src/ic-cdk-macros/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ic-cdk-macros" -version = "0.14.0" # sync with ic-cdk +version = "0.15.0" # sync with ic-cdk authors.workspace = true edition.workspace = true license.workspace = true diff --git a/src/ic-cdk/CHANGELOG.md b/src/ic-cdk/CHANGELOG.md index ab4bda0b7..21850b17d 100644 --- a/src/ic-cdk/CHANGELOG.md +++ b/src/ic-cdk/CHANGELOG.md @@ -6,23 +6,28 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [unreleased] +## [0.15.0] - 2024-07-01 + ### Changed -- BREAKING: Stable Memory always use 64-bit addresses and `stable64_*` system API. +- BREAKING: Stable Memory always use 64-bit addresses and `stable64_*` system API. (#498) +- BREAKING: Add `log_visibility` to the management canister API types: (#497) + - `CanisterSettings` + - `DefiniteCanisterSettings`. ## [0.14.0] - 2024-05-17 ## [0.13.3] - 2024-05-10 (yanked) ### Added -- Add `wasm_memory_limit` to the management canister API types: (#483) - * `CanisterSettings` - * `DefiniteCanisterSettings`. - Provide safe wrapper of `in_replicated_execution` in ic-cdk. (#489) ### Changed - Upgrade `ic0` to v0.23.0. (#489) +- BREAKING: Add `wasm_memory_limit` to the management canister API types: (#483) + - `CanisterSettings` + - `DefiniteCanisterSettings`. ## [0.13.2] - 2024-04-08 diff --git a/src/ic-cdk/Cargo.toml b/src/ic-cdk/Cargo.toml index 0ed5cbf69..bbda394fd 100644 --- a/src/ic-cdk/Cargo.toml +++ b/src/ic-cdk/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ic-cdk" -version = "0.14.0" # sync with ic-cdk-macros +version = "0.15.0" # sync with ic-cdk-macros authors.workspace = true edition.workspace = true license.workspace = true @@ -27,7 +27,7 @@ ic0.workspace = true # Dependents won't accidentaly upgrading ic-cdk-macros only but not ic-cdk. # ic-cdk-macros is a hidden dependency, re-exported by ic-cdk. # It should not be included by users direcly. -ic-cdk-macros = { path = "../ic-cdk-macros", version = "=0.14.0" } +ic-cdk-macros = { path = "../ic-cdk-macros", version = "=0.15.0" } serde.workspace = true serde_bytes.workspace = true slotmap = { workspace = true, optional = true } From 966d7dd5c70e6825f84e91e5c166aaeee55b6980 Mon Sep 17 00:00:00 2001 From: Linwei Shang Date: Mon, 1 Jul 2024 12:59:44 -0400 Subject: [PATCH 2/3] bump timers and ledger-types --- Cargo.lock | 4 ++-- Cargo.toml | 4 ++-- library/ic-ledger-types/CHANGELOG.md | 6 ++++++ library/ic-ledger-types/Cargo.toml | 2 +- src/ic-cdk-timers/CHANGELOG.md | 6 ++++++ src/ic-cdk-timers/Cargo.toml | 2 +- 6 files changed, 18 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 809be572c..e3d3e46d0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1186,7 +1186,7 @@ dependencies = [ [[package]] name = "ic-cdk-timers" -version = "0.8.0" +version = "0.9.0" dependencies = [ "futures", "ic-cdk 0.15.0", @@ -1212,7 +1212,7 @@ dependencies = [ [[package]] name = "ic-ledger-types" -version = "0.11.0" +version = "0.12.0" dependencies = [ "candid", "crc32fast", diff --git a/Cargo.toml b/Cargo.toml index 815a664db..f17419d37 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,8 +21,8 @@ opt-level = 'z' [workspace.dependencies] ic0 = { path = "src/ic0", version = "0.23.0" } -ic-cdk = { path = "src/ic-cdk", version = "0.15.0"} -ic-cdk-timers = { path = "src/ic-cdk-timers", version = "0.8.0" } +ic-cdk = { path = "src/ic-cdk", version = "0.15.0" } +ic-cdk-timers = { path = "src/ic-cdk-timers", version = "0.9.0" } candid = "0.10.4" candid_parser = "0.1.4" diff --git a/library/ic-ledger-types/CHANGELOG.md b/library/ic-ledger-types/CHANGELOG.md index 4f577b031..1a0d69ad9 100644 --- a/library/ic-ledger-types/CHANGELOG.md +++ b/library/ic-ledger-types/CHANGELOG.md @@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [unreleased] +## [0.12.0] - 2024-07-01 + +### Changed + +- Upgrade `ic-cdk` to v0.15. + ## [0.11.0] - 2024-05-17 ### Changed diff --git a/library/ic-ledger-types/Cargo.toml b/library/ic-ledger-types/Cargo.toml index 0598de229..2e051ff20 100644 --- a/library/ic-ledger-types/Cargo.toml +++ b/library/ic-ledger-types/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ic-ledger-types" -version = "0.11.0" +version = "0.12.0" authors.workspace = true edition.workspace = true license.workspace = true diff --git a/src/ic-cdk-timers/CHANGELOG.md b/src/ic-cdk-timers/CHANGELOG.md index 76daa57d0..743d4fd47 100644 --- a/src/ic-cdk-timers/CHANGELOG.md +++ b/src/ic-cdk-timers/CHANGELOG.md @@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [unreleased] +## [0.9.0] - 2024-07-01 + +### Changed + +- Upgrade `ic-cdk` to v0.15. + ## [0.8.0] - 2024-05-17 ### Changed diff --git a/src/ic-cdk-timers/Cargo.toml b/src/ic-cdk-timers/Cargo.toml index 02262bf77..1e0b95336 100644 --- a/src/ic-cdk-timers/Cargo.toml +++ b/src/ic-cdk-timers/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ic-cdk-timers" -version = "0.8.0" +version = "0.9.0" authors.workspace = true edition.workspace = true license.workspace = true From 3721bcc181f78c64a1cfeae3d93da2946ec95222 Mon Sep 17 00:00:00 2001 From: Linwei Shang Date: Mon, 1 Jul 2024 13:02:09 -0400 Subject: [PATCH 3/3] update README --- README.md | 2 +- src/ic-cdk-timers/README.md | 2 +- src/ic-cdk/README.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index cff587ef6..6aff8e388 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ In Cargo.toml: crate-type = ["cdylib"] [dependencies] -ic-cdk = "0.12" +ic-cdk = "0.15" # Only necessary if you want to define Candid data types candid = "0.10" ``` diff --git a/src/ic-cdk-timers/README.md b/src/ic-cdk-timers/README.md index bf0cdb021..4539793ef 100644 --- a/src/ic-cdk-timers/README.md +++ b/src/ic-cdk-timers/README.md @@ -16,7 +16,7 @@ In `Cargo.toml`: ```toml [dependencies] -ic-cdk-timers = "0.4.0" +ic-cdk-timers = "0.9.0" ``` To schedule a one-shot task to be executed 1s later: diff --git a/src/ic-cdk/README.md b/src/ic-cdk/README.md index 4608337d6..5fa3244e1 100644 --- a/src/ic-cdk/README.md +++ b/src/ic-cdk/README.md @@ -25,7 +25,7 @@ In Cargo.toml: crate-type = ["cdylib"] [dependencies] -ic-cdk = "0.12" +ic-cdk = "0.15" # Only necessary if you want to define Candid data types candid = "0.10" ```