-
Notifications
You must be signed in to change notification settings - Fork 316
Release notes v5.1.0 #1893
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Release notes v5.1.0 #1893
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
76549ab
Add release notes for 5.1 GA Release
lcheunglci 0a187ae
Revise release note to address comments
lcheunglci bc492f8
Apply suggestions from code review
lcheunglci af852d3
Add missed code improvement PR
lcheunglci 020f073
Apply suggestions from code review
lcheunglci 7073fec
Update the add section and fix server cert link
lcheunglci File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,103 @@ | ||
| # Release Notes | ||
|
|
||
| ## Microsoft.Data.SqlClient 5.1.0 released 19 January 2023 | ||
|
|
||
| This update includes the following changes over the 5.0 release: | ||
|
|
||
| ### Breaking changes | ||
|
|
||
| - Dropped support for .NET Core 3.1. [#1704](https://github.com/dotnet/SqlClient/pull/1704) [#1823](https://github.com/dotnet/SqlClient/pull/1823) | ||
|
|
||
| ### Added | ||
|
|
||
| - Added support for .NET 6.0. [#1704](https://github.com/dotnet/SqlClient/pull/1704) | ||
| - Added support for `DateOnly` and `TimeOnly` for `SqlParameter` value and `GetFieldValue`. [#1813](https://github.com/dotnet/SqlClient/pull/1813) | ||
| - Added support for TLS 1.3 on .NET Core and native SNI. [#1821](https://github.com/dotnet/SqlClient/pull/1821) | ||
| - Added `ServerCertificate` setting for `Encrypt=Mandatory` or `Encrypt=Strict`. [#1822](https://github.com/dotnet/SqlClient/pull/1822) [Read more](#server-certificate) | ||
| - Added Windows ARM64 support when targeting .NET Framework. [#1828](https://github.com/dotnet/SqlClient/pull/1828) | ||
|
|
||
| ### Fixed | ||
|
|
||
| - Fixed thread safety of transient error list in configurable retry logic. [#1882](https://github.com/dotnet/SqlClient/pull/1882) | ||
| - Fixed deadlock when using SinglePhaseCommit with distributed transactions. [#1801](https://github.com/dotnet/SqlClient/pull/1801) | ||
| - Fixed Dedicated Admin Connections (DAC) to localhost in managed SNI [#1865](https://github.com/dotnet/SqlClient/pull/1865) | ||
| - Fixed memory leak regression from [#1781](https://github.com/dotnet/SqlClient/pull/1781) using a `DisposableTemporaryOnStack` struct. [#1818](https://github.com/dotnet/SqlClient/pull/1818) | ||
| - Fixed `ReadAsync()` behavior to register Cancellation token action before streaming results. [#1781](https://github.com/dotnet/SqlClient/pull/1781) | ||
| - Fixed `NullReferenceException` when assigning `null` to `SqlConnectionStringBuilder.Encrypt`. [#1778](https://github.com/dotnet/SqlClient/pull/1778) | ||
| - Fixed missing `HostNameInCertificate` property in .NET Framework Reference Project. [#1776](https://github.com/dotnet/SqlClient/pull/1776) | ||
| - Fixed async deadlock issue when sending attention fails due to network failure. [#1766](https://github.com/dotnet/SqlClient/pull/1766) | ||
| - Fixed failed connection requests in ConnectionPool in case of PoolBlock. [#1768](https://github.com/dotnet/SqlClient/pull/1768) | ||
| - Fixed hang on infinite timeout and managed SNI. [#1742](https://github.com/dotnet/SqlClient/pull/1742) | ||
| - Fixed Default UTF8 collation conflict. [#1739](https://github.com/dotnet/SqlClient/pull/1739) | ||
|
|
||
| ### Changed | ||
|
|
||
| - Updated `Microsoft.Data.SqlClient.SNI` (.NET Framework dependency) and `Microsoft.Data.SqlClient.SNI.runtime` (.NET Core/Standard dependency) version to `5.1.0`. [#1889](https://github.com/dotnet/SqlClient/pull/1889) which includes fix for AppDomain crash in issue [#1418](https://github.com/dotnet/SqlClient/issues/1418), TLS 1.3 Support, removal of ARM32 binaries, and support for the `ServerCertificate` option. [#1822](https://github.com/dotnet/SqlClient/issues/1822) [Read more](#server-certificate) | ||
| - Reverted "Excluding unsupported TLS protocols" for issue [#1151](https://github.com/dotnet/SqlClient/issues/1151) (i.e. removed `Switch.Microsoft.Data.SqlClient.EnableSecureProtocolsByOS`) by adding support for TLS 1.3. [#1824](https://github.com/dotnet/SqlClient/issues/1824) | ||
| - Changed the `SqlConnectionEncryptOption` string parser to public. [#1771](https://github.com/dotnet/SqlClient/pull/1771) | ||
| - Converted `ExecuteNonQueryAsync` to use async context object. [#1692](https://github.com/dotnet/SqlClient/pull/1692) | ||
| - Code health improvements [#1867](https://github.com/dotnet/SqlClient/pull/1867) [#1849](https://github.com/dotnet/SqlClient/pull/1849) [#1812](https://github.com/dotnet/SqlClient/pull/1812) [#1520](https://github.com/dotnet/SqlClient/pull/1520) [#1604](https://github.com/dotnet/SqlClient/pull/1604) [#1598](https://github.com/dotnet/SqlClient/pull/1598) [#1595](https://github.com/dotnet/SqlClient/pull/1595) [#1443](https://github.com/dotnet/SqlClient/pull/1443) | ||
|
|
||
| ## New features | ||
|
|
||
| ### Server Certificate | ||
|
|
||
| The default value of the `ServerCertificate` connection setting is an empty string. When `Encrypt` is set to `Mandatory` or `Strict`, `ServerCertificate` can be used to specify a path on the file system to a certificate file to match against the SQL Server's TLS/SSL certificate. For this to be valid, the certificate specified must be an exact match. The accepted certificate formats are `PEM`, `DER`, and `CER`. Here is an example: | ||
|
|
||
| ```cs | ||
| "Data Source=...;Encrypt=Strict;ServerCertificate=C:\\certificates\\server.cer" | ||
| ``` | ||
|
|
||
| ## Target Platform Support | ||
|
|
||
| - .NET Framework 4.6.2+ (Windows x86, Windows x64) | ||
| - .NET 6.0+ (Windows x86, Windows x64, Windows ARM64, Windows ARM, Linux, macOS) | ||
| - .NET Standard 2.0+ (Windows x86, Windows x64, Windows ARM64, Windows ARM, Linux, macOS) | ||
|
|
||
| ### Dependencies | ||
|
|
||
| #### .NET Framework | ||
|
|
||
| - Microsoft.Data.SqlClient.SNI 5.1.0 | ||
| - Azure.Identity 1.7.0 | ||
| - Microsoft.Identity.Client 4.47.2 | ||
| - Microsoft.IdentityModel.JsonWebTokens 6.24.0 | ||
| - Microsoft.IdentityModel.Protocols.OpenIdConnect 6.24.0 | ||
| - System.Buffers 4.5.1 | ||
| - System.Configuration.ConfigurationManager 6.0.1 | ||
| - System.Runtime.InteropServices.RuntimeInformation 4.3.0 | ||
| - System.Text.Encoding.Web 6.0.0 | ||
|
|
||
| #### .NET | ||
|
|
||
| - Microsoft.Data.SqlClient.SNI 5.1.0 | ||
| - Azure.Identity 1.7.0 | ||
| - Microsoft.Identity.Client 4.47.2 | ||
| - Microsoft.IdentityModel.JsonWebTokens 6.24.0 | ||
| - Microsoft.IdentityModel.Protocols.OpenIdConnect 6.24.0 | ||
| - Microsoft.SqlServer.Server 1.0.0 | ||
| - System.Configuration.ConfigurationManager 6.0.1 | ||
| - System.Diagnostics.DiagnosticSource 6.0.0 | ||
| - System.Runtime.Caching 6.0.0 | ||
| - System.Text.Encoding.CodePages 6.0.0 | ||
| - System.Text.Encodings.Web 6.0.0 | ||
| - System.Security.Cryptography.Cng 5.0.0 | ||
| - System.Security.Principal.Windows 5.0.0 | ||
|
|
||
| #### .NET Standard | ||
|
|
||
| - Microsoft.Data.SqlClient.SNI 5.1.0 | ||
| - Azure.Identity 1.7.0 | ||
| - Microsoft.Identity.Client 4.47.2 | ||
| - Microsoft.IdentityModel.Protocols.OpenIdConnect 6.24.0 | ||
| - Microsoft.IdentityModel.JsonWebTokens 6.24.0 | ||
| - Microsoft.SqlServer.Server 1.0.0 | ||
| - Microsoft.Win32.Registry 5.0.0 | ||
| - System.Buffers 4.5.1 | ||
| - System.Configuration.ConfigurationManager 6.0.1 | ||
| - System.Runtime.Caching 6.0.0 | ||
| - System.Text.Encoding.CodePages 6.0.0 | ||
| - System.Text.Encodings.Web 6.0.0 | ||
| - System.Runtime.Loader 4.3.0 | ||
| - System.Security.Cryptography.Cng 5.0.0 | ||
| - System.Security.Principal.Windows 5.0.0 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,14 @@ | ||
| # Microsoft.Data.SqlClient 5.1 Releases | ||
|
|
||
| The following Microsoft.Data.SqlClient 5.1 stable releases have been shipped: | ||
|
|
||
| | Release Date | Version | Notes | | ||
| | :-- | :-- | :--: | | ||
| | 2023/01/19 | 5.1.0 | [release notes](5.1.0.md) | | ||
|
|
||
| The following Microsoft.Data.SqlClient 5.1 preview releases have been shipped: | ||
|
|
||
| | Release Date | Version | Notes | | ||
| | :-- | :-- | :--: | | ||
| | 2022/11/10 | 5.1.0-preview1.22314.2 | [release notes](5.1.0-preview2.md) | | ||
| | 2022/11/10 | 5.1.0-preview2.22314.2 | [release notes](5.1.0-preview2.md) | | ||
| | 2022/10/19 | 5.1.0-preview1.22279.3 | [release notes](5.1.0-preview1.md) | | ||
|
|
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.
Uh oh!
There was an error while loading. Please reload this page.