v0.55.0 #6814
Xuanwo
started this conversation in
Announcements
v0.55.0
#6814
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Rust Core Upgrade to v0.55
Public API
Timestamp types now come from
jiffAll public metadata APIs that previously exposed
chrono::DateTime<Utc>now usejiff::Timestamp. For example,Metadata::last_modified()and related setters return/acceptTimestampvalues (core/src/types/metadata.rs). Update downstream crates to depend onjiffif they manipulate these timestamps or convert them to other formats.Scheme handling is string-based
OperatorInfo::scheme()now returns&'static strinstead ofScheme, andOperator::via_iteracceptsimpl AsRef<str>(typically theservices::*_SCHEMEconstants). Additionally, the deprecated constructorsOperator::from_mapandOperator::via_maphave been removed. Migrate any code that relied on the enum variants or the removed constructors to the new string-based constants andfrom_iter/via_iter.List APIs only support
versionsOpList::with_version()/version()andCapability::list_with_versionhave been removed after a long deprecation cycle. Usewith_versions()/versions()onOpListand readCapability::list_with_versionsinstead.S3Builder::security_tokenremovedS3Builderno longer exposes the deprecatedsecurity_token()helper. Usesession_token()exclusively when configuring temporary credentials.KV-style services no longer pretend to support
listServices that never returned meaningful results for
Operator::list(such as D1, FoundationDB, GridFS, Memcached, MongoDB, MySQL, Persy, PostgreSQL, Redb, Redis, SurrealDB, TiKV, etc.) now rely on the defaultUnsupportedimplementation. Those features will be implemented later.Raw API
Deprecated KV adapters removed
The legacy
opendal::raw::adapters::{kv, typed_kv}modules have been deleted. Services should directly implementAccessinstead of depending on the adapters. Remove the corresponding imports and shim layers from any out-of-tree services.Bindings Python Upgrade to v0.47
Breaking change: Module exports are explicit
opendal.__init__now only re-exports thecapability,exceptions,file,layers,services,types,Operator, andAsyncOperatorsymbols. Imports such as:no longer work. Update them to use the dedicated submodules:
The legacy helper module
opendal.__basehas also been removed together with_Base.Breaking change: Capability accessors renamed
Both
Operator.full_capability()andAsyncOperator.full_capability()have been renamed tocapability(). Adjust your code accordingly:Breaking change: Service identifiers now have typed enums
The constructors for
Operator/AsyncOperatorprovide overloads that acceptopendal.services.Schememembers. While plain strings are still accepted at runtime, type checkers (pyright/mypy) expect the new enum values. Migrate code bases that relied on importing the oldSchemeenum fromopendaltofrom opendal import servicesand useservices.Scheme.<NAME>.What's Changed
Added
connection_pool_max_sizeoption to memcached and redis builders by @trxcllnt in Addconnection_pool_max_sizeoption to memcached and redis builders #6759Changed
config.rsinstead by @Xuanwo in refactor: Move Config related back toconfig.rsinstead #6667Fixed
Docs
oli/ofsout; removeoay#6689) by @tao12345666333 in docs(apps): add migration guide, update links; remove bin/{oli,ofs} (#6689) #6705CI
oli/ofsout; removeoay#6689) by @tao12345666333 in ci: remove ofs behavior tests and planning (#6689) #6704Chore
BytesRange::newby @TheR1sing3un in chore(core): typo: update comments onBytesRange::new#6570oli/ofsout; removeoay#6689) by @tao12345666333 in chore: cleanup for moving oli/ofs and removing oay (#6689) #6700Operator::from_mapandOperator::via_mapby @koushiro in chore(types)!: remove deprecatedOperator::from_mapandOperator::via_map#6775list_with_versioncapability by @koushiro in chore(types)!: remove deprecatedlist_with_versioncapability #6781S3::security_tokenby @koushiro in chore(services/s3)!: remove deprecatedS3::security_token#6779New Contributors
BytesRange::new#6570connection_pool_max_sizeoption to memcached and redis builders #6759Full Changelog: v0.54.1...v0.55.0
This discussion was created from the release v0.55.0.
Mailing list thread: https://lists.apache.org/thread/p0crhc7goolgbt3nndjcdh25hd6lt4jm
Beta Was this translation helpful? Give feedback.
All reactions