Skip to content

Commit d5dbcb2

Browse files
[@azure/cosmos] Update CHANGELOG and Version bump v4.5.0 (Azure#35228)
### Packages impacted by this PR @azure/cosmos ### Issues associated with this PR ### Describe the problem that is addressed by this PR This PR updates the CHANGELOG and version bump for v4.5.0 ### What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen? ### Are there test cases added in this PR? _(If not, why?)_ ### Provide a list of related PRs _(if any)_ ### Command used to generate this PR:**_(Applicable only to SDK release request PRs)_ ### Checklists - [ ] Added impacted package name to the issue description - [ ] Does this PR needs any fixes in the SDK Generator?** _(If so, create an Issue in the [Autorest/typescript](https://github.com/Azure/autorest.typescript) repository and link it here)_ - [ ] Added a changelog (if necessary)
1 parent 93ee4eb commit d5dbcb2

File tree

3 files changed

+31
-2
lines changed

3 files changed

+31
-2
lines changed

sdk/cosmosdb/cosmos/CHANGELOG.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,34 @@
11
# Release History
22

3+
## 4.5.0 (2025-07-21)
4+
5+
### Features Added
6+
7+
- PPAF (Per Partition Automatic Failover) Support: This feature adds support for Per Partition Automatic Failover (PPAF) and Per Partition Circuit Breaker (PPCB) allowing failover to different regions on a per partition basis instead of account level failovers increasing the availability and reducing the operation latencies on the client side. [docs](https://learn.microsoft.com/azure/cosmos-db/how-to-configure-per-partition-automatic-failover)
8+
9+
The following sample shows how to enable PPAF and PPCB. If `enablePartitionLevelFailover` is set to `true`, by default `enablePartitionLevelCircuitBreaker` will also be set to `true`.
10+
11+
```js
12+
const client = new CosmosClient({
13+
endpoint,
14+
key: masterKey,
15+
connectionPolicy: {
16+
...defaultConnectionPolicy,
17+
enablePartitionLevelFailover: true,
18+
enablePartitionLevelCircuitBreaker: true,
19+
},
20+
});
21+
```
22+
23+
### Bugs Fixed
24+
25+
- [#35054](https://github.com/Azure/azure-sdk-for-js/pull/35054) Fixed an issue with COUNTIF aggregation which ensures that partial results from multiple partitions or batches are correctly summed, producing accurate results for COUNTIF queries.
26+
- [#35049](https://github.com/Azure/azure-sdk-for-js/pull/35049) Moved `@azure/logger` from the devDependencies to the runtime dependencies in the Cosmos DB client package, ensuring that client loggers can be created at runtime.
27+
- [#35189](https://github.com/Azure/azure-sdk-for-js/pull/35189) Fixed the RU calculation bug where RU (Request Unit) charges were not aggregated when document producer returned empty responses.
28+
- [#34765](https://github.com/Azure/azure-sdk-for-js/pull/34765) Fixed partition key extraction bug enhancing the partition key extraction logic to correctly handle migrated containers using the systemKey flag.
29+
- [#32044](https://github.com/Azure/azure-sdk-for-js/pull/32044) Fixed an issue of Client retrying 120*120 times on an inaccessible endpoint.
30+
- [#34933](https://github.com/Azure/azure-sdk-for-js/pull/34933) Fixed an issue of SDK throwing an error on executing parameterized RRF queries.
31+
332
## 4.4.1 (2025-05-15)
433

534
### Bugs Fixed

sdk/cosmosdb/cosmos/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@azure/cosmos",
3-
"version": "4.4.1",
3+
"version": "4.5.0",
44
"description": "Microsoft Azure Cosmos DB Service Node.js SDK for NOSQL API",
55
"sdk-type": "client",
66
"keywords": [

sdk/cosmosdb/cosmos/src/common/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ export const Constants = {
223223
AzureNamespace: "Azure.Cosmos",
224224
AzurePackageName: "@azure/cosmos",
225225
SDKName: "azure-cosmos-js",
226-
SDKVersion: "4.4.1",
226+
SDKVersion: "4.5.0",
227227

228228
// Diagnostics
229229
CosmosDbDiagnosticLevelEnvVarName: "AZURE_COSMOSDB_DIAGNOSTICS_LEVEL",

0 commit comments

Comments
 (0)