Update dependency @azure/cosmos to v4.9.0 #26
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
4.2.0->4.9.0Release Notes
Azure/azure-sdk-for-js (@azure/cosmos)
v4.9.0Compare Source
v4.8.0Compare Source
v4.7.0Compare Source
v4.6.0Compare Source
v4.5.1Compare Source
v4.5.0Compare Source
v4.4.1Compare Source
v4.4.0Compare Source
v4.3.0Compare Source
4.3.0 (2025-03-18)
Features Added
Client-side Encryption (Preview) #28760
Add support for Client-Side Encryption. Read more here: docs
Example of using Client-Side Encryption:
New Query Pipeline
Introduced
enableQueryControlflag to enhance query pipeline, giving users more control over their query execution.By default, value of
enableQueryControlis set asfalsekeeping query pipeline older behavior as default, as explained below:Previously, the SDK guaranteed that each fetchNext call would return
maxItemCountnumber of results, provided those many results existed in the backend. While this behavior ensured a predictable output, the SDK may query backend partitions multiple times in a singlefetchNextiteration. This can sometimes lead to higher RU consumption with no user control, especially when results are scattered across partitions. Also queries could run for extended periods as the SDK worked to fulfil themaxItemCountguarantee.When
enableQueryControlis set totrue, EachfetchNextcall will now query up tomaxDegreeOfParallelismphysical partitions. If no results are found, the SDK will return empty pages instead of continuing to search all partitions. Returning fewer or empty results in each iteration consumes less RUs and hands control back to the users, allowing them to decide whether to continue fetching more data. This approach provides more granular control over RU consumption.Eg. usage of this flag to enable new query pipeline:
Partition merge support
This feature adds support for Partition merge (preview) feature. Requests from SDK will not be blocked, when the feature is enabled on the CosmosDB account.
Read more about merge here: docs
RU Bucketing (Preview)
Read more about RU Bucketing here: https://aka.ms/cosmsodb-bucketing
Partial hierarchical partition key support in Change Feed #27059
This feature adds support for partial hierarchical partition key in Change Feed allowing the SDK to work seamlessly with partial Hierarchical partition keys, returning accurate change feed results regardless of which partition key components are provided in the iterator.
Eg. Container has partition key ["/name", "/zip", "/state"], change feed will work if, only value of name and zip is provided eg: ["john", "11011"]
Index Metrics V2 support
This feature adds support for V2 version of index metrics that returns the response in JSON format.
Example output of older version
Example output of version V2
Add
connectionStringin CosmosClientOptionsConnectionString can now be configured in CosmosClientOptions along with other configurations for client initialization.
Eg. usage:
Bugs Fixed
ParallelizeCrossPartitionQueryheader value. It was set to true ifmaxDegreeOfParallelismwas set to 0 or 1 inFeedOptionswhile executing a query. #31232Other Changes
changeFeediterator in favor of the newergetChangeFeedIterator()method. #32650Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.