Skip to content

Conversation

@lwshang
Copy link
Contributor

@lwshang lwshang commented Jan 22, 2026

Description

Remove all deprecated items from ic-cdk that were marked deprecated in v0.18.0.

How Has This Been Tested?

CI

Checklist:

  • The title of this PR complies with Conventional Commits.
  • I have edited the CHANGELOG accordingly.
  • I have made corresponding changes to the documentation.

lwshang and others added 9 commits January 21, 2026 20:35
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>
@lwshang lwshang marked this pull request as ready for review January 22, 2026 02:25
@lwshang lwshang requested a review from a team as a code owner January 22, 2026 02:25
@lwshang lwshang merged commit e3701fd into next-major Jan 22, 2026
13 of 15 checks passed
@lwshang lwshang deleted the lwshang/remove_deprecated branch January 22, 2026 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants