azure_data_cosmos@0.33.0
Pre-release
Pre-release
0.33.0 (2026-04-24)
Features Added
- Added throughput control API: re-exported
ThroughputControlGroupOptionsandPriorityLevelfrom the driver. Users can register throughput control groups onCosmosClientBuilderviawith_throughput_control_group()to configure priority-based execution and throughput bucket server features. (#4078) - Added
ThroughputPollertype that implementsIntoFutureandStreamfor tracking asynchronous throughput replacement operations. - Added
FeedRangetype withContainerClient::read_feed_ranges()andContainerClient::feed_range_from_partition_key()- supports hierarchical partition keys (MultiHash) including prefix partition keys that return multiple feed ranges. (#4149) - Added
lsn()anditem_lsn()accessors onItemResponse<T>exposing thelsnandx-ms-item-lsnCosmos DB response headers. (#4176) - Added
partition_key_range_idandinternal_partition_idresponse headers to the driver bridge, making them accessible on SDK response types. (#4278) - Added
rustlsfeature flag (enabled by default) that configures reqwest with rustls as the TLS stack. (#4252) - Added
native_tlsfeature flag that configures reqwest with native-tls as the TLS stack. Disable default features and enablenative_tlsto use the platform TLS stack. (#4252) - The
allow_invalid_certificatesfeature now works with any TLS backend (rustlsornative_tls). (#4252) - Added
ContainerClient::get_latest_session_token(). (#4214)
Breaking Changes
ContainerClient::create_item()andContainerClient::upsert_item()now require anitem_id: &strparameter (same pattern asreplace_itemandread_item). The item id is passed to the driver viaItemReferenceso the body never needs to be parsed to extract the document id.- Renamed
replace_throughputtobegin_replace_throughputonContainerClientandDatabaseClient. The return type changed fromResourceResponse<ThroughputProperties>toThroughputPoller. (#4096) - Removed
CreateDatabaseOptions::with_throughput(). Database-level shared throughput provisioning is no longer supported through the SDK. Use container-level throughput instead. (#4147)
Other Changes
- Database and container CRUD operations (
create_database,read,create_container,delete) now route through the Cosmos driver pipeline. Throughput provisioning uses typed request headers via the driver. (#4147) - Query operations (
query_items,query_databases,query_containers) now route through the Cosmos driver pipeline, gaining driver-level transport, routing, and retry capabilities. (#4174)