Skip to content

Commit 59626f7

Browse files
authored
SDK 3.13.0: Adds change log and bumps the SDK version (#1858)
* Bump SDK to version 3.13.0
1 parent 5f7dd88 commit 59626f7

File tree

6 files changed

+1272
-2
lines changed

6 files changed

+1272
-2
lines changed

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<PropertyGroup>
4-
<ClientOfficialVersion>3.12.0</ClientOfficialVersion>
4+
<ClientOfficialVersion>3.13.0</ClientOfficialVersion>
55
<ClientPreviewVersion>3.13.0</ClientPreviewVersion>
66
<DirectVersion>3.13.2</DirectVersion>
77
<EncryptionVersion>1.0.0-preview6</EncryptionVersion>

Microsoft.Azure.Cosmos/contracts/API_3.13.0.txt

Lines changed: 1219 additions & 0 deletions
Large diffs are not rendered by default.

Microsoft.Azure.Cosmos/src/Headers/Headers.cs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public virtual string Session
115115
public virtual string ContentLength
116116
{
117117
get => this.GetString(HttpConstants.HttpHeaders.ContentLength);
118-
internal set => this.SetProperty(HttpConstants.HttpHeaders.ContentLength, value);
118+
set => this.SetProperty(HttpConstants.HttpHeaders.ContentLength, value);
119119
}
120120

121121
/// <summary>
@@ -220,6 +220,18 @@ public virtual string this[string headerName]
220220
set => this.CosmosMessageHeaders[headerName] = value;
221221
}
222222

223+
/// <summary>
224+
/// Enumerates all the HTTP headers names in the <see cref="Headers"/>.
225+
/// </summary>
226+
/// <returns>An enumator for all headers.</returns>
227+
public virtual IEnumerator<string> GetEnumerator()
228+
{
229+
foreach (string key in this.CosmosMessageHeaders.AllKeys())
230+
{
231+
yield return key;
232+
}
233+
}
234+
223235
/// <summary>
224236
/// Adds a header to the Header collection.
225237
/// </summary>

Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Tests/Contracts/DotNetSDKAPI.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3074,6 +3074,13 @@
30743074
"Attributes": [],
30753075
"MethodInfo": null
30763076
},
3077+
"System.Collections.Generic.IEnumerator`1[System.String] GetEnumerator()[System.Runtime.CompilerServices.IteratorStateMachineAttribute(typeof(Microsoft.Azure.Cosmos.Headers+<GetEnumerator>d__63))]": {
3078+
"Type": "Method",
3079+
"Attributes": [
3080+
"IteratorStateMachineAttribute"
3081+
],
3082+
"MethodInfo": "System.Collections.Generic.IEnumerator`1[System.String] GetEnumerator()"
3083+
},
30773084
"System.String ActivityId": {
30783085
"Type": "Property",
30793086
"Attributes": [],
@@ -3199,6 +3206,11 @@
31993206
"Attributes": [],
32003207
"MethodInfo": "Void Set(System.String, System.String)"
32013208
},
3209+
"Void set_ContentLength(System.String)": {
3210+
"Type": "Method",
3211+
"Attributes": [],
3212+
"MethodInfo": "Void set_ContentLength(System.String)"
3213+
},
32023214
"Void set_Item(System.String, System.String)": {
32033215
"Type": "Method",
32043216
"Attributes": [],

Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Tests/HeadersTests.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,12 @@ public void TestGetIEnumerableKeys()
9595
Assert.AreEqual(value, Headers[header]);
9696
return;
9797
}
98+
99+
IEnumerator<string> keys = Headers.GetEnumerator();
100+
Assert.IsNull(keys.Current);
101+
Assert.IsTrue(keys.MoveNext());
102+
Assert.AreEqual(Key, keys.Current);
103+
Assert.IsFalse(keys.MoveNext());
98104
}
99105

100106
[TestMethod]

changelog.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,27 @@ Preview features are treated as a separate branch and will not be included in th
33
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
44
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
55

6+
### <a name="3.13.0"/> [3.13.0](https://www.nuget.org/packages/Microsoft.Azure.Cosmos/3.13.0) - 2020-09-21
7+
8+
#### Added
9+
10+
- [#1743](https://github.com/Azure/azure-cosmos-dotnet-v3/pull/1743) Query Performance: Adds skipping getting query plan for non-aggregate single partition queries on non-Windows x64 systems when FeedOptions.PartitionKey is set
11+
- [#1768](https://github.com/Azure/azure-cosmos-dotnet-v3/pull/1768) Performance: Adds SessionToken optimization to reduce header size by removing session token for CRUD on stored procedure, triggers, and UDFs
12+
- [#1781](https://github.com/Azure/azure-cosmos-dotnet-v3/pull/1781) Performance: Adds headers optimization which can reduce response allocation by 10 KB per a request.
13+
- [#1825](https://github.com/Azure/azure-cosmos-dotnet-v3/pull/1825) RequestOptions.Properties: Adds the ability for applications to specify request context
14+
- [#1835](https://github.com/Azure/azure-cosmos-dotnet-v3/pull/1835) Performance: Add HttpClient optimization to avoid double buffering gateway responses
15+
- [#1837](https://github.com/Azure/azure-cosmos-dotnet-v3/pull/1837) Query SystemFunctions : Adds DateTime System Functions
16+
- [#1842](https://github.com/Azure/azure-cosmos-dotnet-v3/pull/1842) Query Performance: Adds Singleton QueryPartitionProvider. Helps when Container is getting recreated.
17+
- [#1857](https://github.com/Azure/azure-cosmos-dotnet-v3/pull/1857) Performance: Adds finalizer optimizations in a few places (Thanks to pentp)
18+
- [#1843](https://github.com/Azure/azure-cosmos-dotnet-v3/pull/1843) Performance: Adds Transport serialization, SessionTokenMismatchRetryPolicy, and store response dictionary optimizations
19+
20+
#### Fixed
21+
22+
- [#1757](https://github.com/Azure/azure-cosmos-dotnet-v3/pull/1757) Batch API: Fixes the size limit to reduce timeouts
23+
- [#1758](https://github.com/Azure/azure-cosmos-dotnet-v3/pull/1758) Connectivity: Fixes address resolution calls when using EnableTcpConnectionEndpointRediscovery
24+
- [#1788](https://github.com/Azure/azure-cosmos-dotnet-v3/pull/1788) Transient HTTP exceptions: Adds retry logic to all http requests
25+
- [#1863](https://github.com/Azure/azure-cosmos-dotnet-v3/pull/1863) HttpClientHandler: Fixes HttpClientHandler PlatformNotSupportedException
26+
627
### <a name="3.13.0-preview"/> [3.13.0-preview](https://www.nuget.org/packages/Microsoft.Azure.Cosmos/3.13.0-preview) - 2020-08-12
728

829
#### Added

0 commit comments

Comments
 (0)