This is an automated email from the ASF dual-hosted git repository.

asukaminato pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opendal.git


The following commit(s) were added to refs/heads/main by this push:
     new 58ef05b79 chore(types)!: remove deprecated `list_with_version` 
capability (#6781)
58ef05b79 is described below

commit 58ef05b794a3bcf266096f08025a6d3772b63c45
Author: Qinxuan Chen <[email protected]>
AuthorDate: Fri Nov 14 16:26:24 2025 +0800

    chore(types)!: remove deprecated `list_with_version` capability (#6781)
    
    chore: remove deprecated list_with_version
---
 core/src/raw/ops.rs          | 13 -------------
 core/src/types/capability.rs |  3 ---
 2 files changed, 16 deletions(-)

diff --git a/core/src/raw/ops.rs b/core/src/raw/ops.rs
index cc206fbd2..abd89be9e 100644
--- a/core/src/raw/ops.rs
+++ b/core/src/raw/ops.rs
@@ -181,25 +181,12 @@ impl OpList {
         0
     }
 
-    /// Change the version of this list operation
-    #[deprecated(since = "0.51.1", note = "use with_versions instead")]
-    pub fn with_version(mut self, version: bool) -> Self {
-        self.versions = version;
-        self
-    }
-
     /// Change the version of this list operation
     pub fn with_versions(mut self, versions: bool) -> Self {
         self.versions = versions;
         self
     }
 
-    /// Get the version of this list operation
-    #[deprecated(since = "0.51.1", note = "use versions instead")]
-    pub fn version(&self) -> bool {
-        self.versions
-    }
-
     /// Get the version of this list operation
     pub fn versions(&self) -> bool {
         self.versions
diff --git a/core/src/types/capability.rs b/core/src/types/capability.rs
index 4d582b6e8..89be64107 100644
--- a/core/src/types/capability.rs
+++ b/core/src/types/capability.rs
@@ -162,9 +162,6 @@ pub struct Capability {
     pub list_with_start_after: bool,
     /// Indicates if recursive listing is supported.
     pub list_with_recursive: bool,
-    /// Indicates if versions listing is supported.
-    #[deprecated(since = "0.51.1", note = "use with_versions instead")]
-    pub list_with_version: bool,
     /// Indicates if listing with versions included is supported.
     pub list_with_versions: bool,
     /// Indicates if listing with deleted files included is supported.

Reply via email to