-
Notifications
You must be signed in to change notification settings - Fork 104
chore: remove deprecated items from ic-cdk #687
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The `api::stable` module was deprecated in v0.18.0. Users should use `ic_cdk::stable` instead. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The `api::management_canister` module was deprecated in v0.18.0. Users should use `ic_cdk::management_canister` and `ic_cdk::bitcoin_canister` instead. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Remove the following deprecated functions (deprecated since v0.18.0): - print() -> use debug_print instead - caller() -> use msg_caller instead - id() -> use canister_self instead - canister_balance() -> use canister_cycle_balance instead - canister_balance128() -> use canister_cycle_balance instead - set_certified_data() -> use certified_data_set instead - set_global_timer() -> use global_timer_set instead Also removes the deprecated re-exports from lib.rs (caller, id, print). Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The spawn() function was deprecated in v0.18.0. Users should use ic_cdk::futures::spawn_017_compat or migrate to ic_cdk::futures::spawn. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The api::call module was deprecated in v0.18.0. This removes: Types: - RejectionCode -> use ic_cdk::call::RejectCode - CallResult<R> -> use ic_cdk::call::CallResult - CallReplyWriter -> use ic_cdk::api::msg_reply - ArgDecoderConfig -> use candid::de::DecoderConfig - ManualReply<T> -> use std::marker::PhantomData with manual_reply Functions: - notify_with_payment128(), notify(), notify_raw() -> use ic_cdk::call::Call::unbounded_wait() - call_raw(), call_raw128(), call(), call_with_payment(), call_with_payment128(), call_with_config() -> use ic_cdk::call::Call::unbounded_wait() - result(), reject_code(), reject_message(), reject(), reply() -> use ic_cdk::api::msg_* functions - msg_cycles_available(), msg_cycles_available128(), msg_cycles_refunded(), msg_cycles_refunded128() -> use ic_cdk::api versions - msg_cycles_accept(), msg_cycles_accept128() -> use ic_cdk::api::msg_cycles_accept - arg_data_raw(), arg_data_raw_size(), reply_raw() -> use ic_cdk::api::msg_arg_data/msg_reply - arg_data() -> use ic_cdk::call::msg_arg_data - accept_message(), method_name(), performance_counter() -> use ic_cdk::api versions - is_recovering_from_trap() -> use ic_cdk::futures::is_recovering_from_trap Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Update documentation example to use certified_data_set instead of the deprecated set_certified_data function. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The plan has been executed and is no longer needed. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
adamspofford-dfinity
approved these changes
Jan 22, 2026
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Remove all deprecated items from
ic-cdkthat were marked deprecated in v0.18.0.How Has This Been Tested?
CI
Checklist: