Skip to content

chore(core): deprecate the OperatorFactory type alias - #9622

Merged
Xuanwo merged 2 commits into
mainfrom
xuanwo/deprecate-operator-factory
Dec 3, 2026
Merged

Xuanwo merged 2 commits into
mainfrom
xuanwo/deprecate-operator-factory

Conversation

@Xuanwo

@Xuanwo Xuanwo commented Dec 3, 2026

Copy link
Copy Markdown
Member

Which issue does this PR close?

Closes #9571.

Rationale for this change

Give users of the public function-pointer alias time to migrate after the operator registry switched to service factories.

What changes are included in this PR?

Deprecate OperatorFactory in 0.60.0 and retain both public import paths during the migration.

Are there any user-facing changes?

Replace opendal::OperatorFactory or opendal_core::OperatorFactory with fn(&OperatorUri) -> Result<Operator> to clear the deprecation warning. The Rust upgrade guide documents the migration.

Breaking changes

AI Usage Statement

  • Pi, magpie/codex/gpt-6.2-astra, xhigh. Coordinated the implementation scope and handoff.
  • Pi, magpie/codex/gpt-6.2-astra, high. Checked the published API and defined the caller migration.
  • Pi, magpie/codex/gpt-6.2-sol, max. Implemented the deprecation, migration guidance, and caller verification.
  • Pi, magpie/devin/swe-2-1, high. Independently verified the deprecation notices and caller migration, then reviewed the upgrade guide merge and its verification evidence.

@Xuanwo
Xuanwo requested a review from PsiACE December 3, 2026 22:19
@Xuanwo
Xuanwo merged commit fdfd45c into main Dec 3, 2026
68 checks passed
@Xuanwo
Xuanwo deleted the xuanwo/deprecate-operator-factory branch December 3, 2026 22:34
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.

chore(core): deprecate unused OperatorFactory type alias in v0.60.0

2 participants