diff --git a/CHANGELOG.md b/CHANGELOG.md index f8c69434f9..4eb5d72f07 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -88,31 +88,6 @@ This update brings the following changes since [7.0.0-preview1.25257.1] - Updated `System.Security.Cryptography.Pkcs` to v9.0.9 (net9) - Updated `System.Text.Json` to v8.0.6 (net8), v9.0.9 (net9) -## [Stable Release 6.1.2] - 2025-10-07 - -This update brings the below changes over the previous stable release: - -### Fixed - -- Fixed an issue where initializing PerformanceCounters would throw `System.InvalidOperationException` [#3629](https://github.com/dotnet/sqlclient/pull/3629) -- Fixed an issue where a Custom SqlClientAuthenticationProvider was being overwritten by default implementation. [#3651](https://github.com/dotnet/SqlClient/pull/3651) -- Fixed a concurrency issue in connection pooling where the number of active connections could be lower than the configured maximum pool size. [#3653](https://github.com/dotnet/SqlClient/pull/3653) - -## [Stable release 6.0.3] - 2025-10-07 - -This update brings the below changes over the previous stable release: - -### Fixed - -- Fixed an issue where a Custom SqlClientAuthenticationProvider was being overwritten by default implementation. [#3652](https://github.com/dotnet/SqlClient/pull/3652) -- Fixed a concurrency issue in connection pooling where the number of active connections could be lower than the configured maximum pool size. [#3654](https://github.com/dotnet/SqlClient/pull/3654) - -### Changed - -- Updated MSAL usage as per code compliance requirements [#3360](https://github.com/dotnet/SqlClient/pull/3360) -- Updated `SqlDecimal` implementation to improve code compliance [#3466](https://github.com/dotnet/SqlClient/pull/3466) -- Updated Azure.Identity and related dependencies [#3553](https://github.com/dotnet/SqlClient/pull/3553) - ## [Preview Release 7.0.0-preview1.25257.1] - 2025-09-12 This update brings the following changes since the [6.1.0](release-notes/6.1/6.1.0.md) @@ -175,9 +150,53 @@ release: - Updated `Azure.Identity` dependency to v1.14.2. ([#3538](https://github.com/dotnet/SqlClient/pull/3538)) +## [Stable Release 6.1.3] - 2025-11-12 + +This update includes the following changes since the [6.1.2](release-notes/6.1/6.1.2.md) release: + +### Added + +#### App Context Switch for Ignoring Server-Provided Failover Partner + +*What Changed:* + +- A new app context switch `Switch.Microsoft.Data.SqlClient.IgnoreServerProvidedFailoverPartner` was introduced to let the client ignore server-provided failover partner info in Basic Availability Groups (BAGs). When the switch is enabled, only the failover partner specified in the connection string is used; server-supplied partner values are skipped. This context switch was introduced in PR [#3702](https://github.com/dotnet/SqlClient/pull/3702). + +*Who Benefits:* + +- Applications connecting to SQL Server BAGs using TCP and custom ports, especially where the server's provided partner name lacks the protocol, host, or port. This avoids connection failures when the server-provided partner is incompatible or incomplete. +- Teams who manage availability groups and rely on client-side control of failover behavior in heterogeneous networking environments. + +*Impact:* + +- If your environment might be affected (i.e., you operate a BAG with custom ports, or have experienced failures after failover), you can enable the new switch in your application: + +```c# +AppContext.SetSwitch("Switch.Microsoft.Data.SqlClient.IgnoreServerProvidedFailoverPartner", true); +``` + +- Then, ensure your connection string includes your preferred failover partner (with correct `tcp:host,port`) so that the client uses that instead of the server's suggestion. +- Without enabling this, by default, the client continues to prefer the server-provided partner, maintaining backwards compatibility. + +### Fixed + +- Fixed an issue to ensure reliable metrics initialization during startup, + preventing missed telemetry when EventSource is enabled early. + ([#3718](https://github.com/dotnet/SqlClient/pull/3718)) + +## [Stable Release 6.1.2] - 2025-10-07 + +This update includes the following changes since the [6.1.1](release-notes/6.1/6.1.1.md) release: + +### Fixed + +- Fixed an issue where initializing PerformanceCounters would throw `System.InvalidOperationException` [#3629](https://github.com/dotnet/sqlclient/pull/3629) +- Fixed an issue where a Custom SqlClientAuthenticationProvider was being overwritten by default implementation. [#3651](https://github.com/dotnet/SqlClient/pull/3651) +- Fixed a concurrency issue in connection pooling where the number of active connections could be lower than the configured maximum pool size. [#3653](https://github.com/dotnet/SqlClient/pull/3653) + ## [Stable Release 6.1.1] - 2025-08-14 -This update includes the following changes since the [6.1.0](6.1.0.md) release: +This update includes the following changes since the [6.1.0](release-notes/6.1/6.1.0.md) release: ### Fixed @@ -440,6 +459,21 @@ This update brings the following changes over the previous release: - Code merge towards a unified SqlClient project, aligning .NET Framework and .NET Core implementations. ([#2957](https://github.com/dotnet/sqlclient/pull/2957), [#2963](https://github.com/dotnet/sqlclient/pull/2963), [#2984](https://github.com/dotnet/sqlclient/pull/2984), [#2982](https://github.com/dotnet/sqlclient/pull/2982), [#3023](https://github.com/dotnet/sqlclient/pull/3023), [#3015](https://github.com/dotnet/sqlclient/pull/3015), [#2967](https://github.com/dotnet/sqlclient/pull/2967), [#3164](https://github.com/dotnet/sqlclient/pull/3164), [#3163](https://github.com/dotnet/sqlclient/pull/3163), [#3171](https://github.com/dotnet/sqlclient/pull/3171), [#3182](https://github.com/dotnet/sqlclient/pull/3182), [#3179](https://github.com/dotnet/sqlclient/pull/3179), [#3156](https://github.com/dotnet/sqlclient/pull/3156), [#3213](https://github.com/dotnet/sqlclient/pull/3213), [#3232](https://github.com/dotnet/sqlclient/pull/3232), [#3236](https://github.com/dotnet/sqlclient/pull/3236), [#3231](https://github.com/dotnet/sqlclient/pull/3231), [#3241](https://github.com/dotnet/sqlclient/pull/3241), [#3246](https://github.com/dotnet/sqlclient/pull/3246), [#3247](https://github.com/dotnet/sqlclient/pull/3247), [#3222](https://github.com/dotnet/sqlclient/pull/3222), [#3255](https://github.com/dotnet/sqlclient/pull/3255), [#3254](https://github.com/dotnet/sqlclient/pull/3254), [#3259](https://github.com/dotnet/sqlclient/pull/3259), [#3264](https://github.com/dotnet/sqlclient/pull/3264), [#3256](https://github.com/dotnet/sqlclient/pull/3256), [#3251](https://github.com/dotnet/sqlclient/pull/3251), [#3275](https://github.com/dotnet/sqlclient/pull/3275), [#3277](https://github.com/dotnet/sqlclient/pull/3277), [#3263](https://github.com/dotnet/sqlclient/pull/3263), [#3292](https://github.com/dotnet/sqlclient/pull/3292), [#3208](https://github.com/dotnet/sqlclient/pull/3208)). - Test improvements include updates to test references, removal of hardcoded certificates, improved stability, and better coverage ([#3041](https://github.com/dotnet/sqlclient/pull/3041), [#3034](https://github.com/dotnet/sqlclient/pull/3034), [#3130](https://github.com/dotnet/sqlclient/pull/3130), [#3128](https://github.com/dotnet/sqlclient/pull/3128), [#3181](https://github.com/dotnet/sqlclient/pull/3181), [#3060](https://github.com/dotnet/sqlclient/pull/3060), [#3184](https://github.com/dotnet/sqlclient/pull/3184), [#3033](https://github.com/dotnet/sqlclient/pull/3033), [#3186](https://github.com/dotnet/sqlclient/pull/3186), [#3025](https://github.com/dotnet/sqlclient/pull/3025), [#3230](https://github.com/dotnet/sqlclient/pull/3230), [#3237](https://github.com/dotnet/sqlclient/pull/3237), [#3059](https://github.com/dotnet/sqlclient/pull/3059), [#3061](https://github.com/dotnet/sqlclient/pull/3061)). +## [Stable release 6.0.3] - 2025-10-07 + +This update brings the below changes over the previous stable release: + +### Fixed + +- Fixed an issue where a Custom SqlClientAuthenticationProvider was being overwritten by default implementation. [#3652](https://github.com/dotnet/SqlClient/pull/3652) +- Fixed a concurrency issue in connection pooling where the number of active connections could be lower than the configured maximum pool size. [#3654](https://github.com/dotnet/SqlClient/pull/3654) + +### Changed + +- Updated MSAL usage as per code compliance requirements [#3360](https://github.com/dotnet/SqlClient/pull/3360) +- Updated `SqlDecimal` implementation to improve code compliance [#3466](https://github.com/dotnet/SqlClient/pull/3466) +- Updated Azure.Identity and related dependencies [#3553](https://github.com/dotnet/SqlClient/pull/3553) + ## [Stable release 6.0.2] - 2025-04-25 This update brings the below changes over the previous release: diff --git a/release-notes/6.1/6.1.2.md b/release-notes/6.1/6.1.2.md index 152fa2e5b7..4ffade662a 100644 --- a/release-notes/6.1/6.1.2.md +++ b/release-notes/6.1/6.1.2.md @@ -50,26 +50,26 @@ This update includes the following changes since the [6.1.1](6.1.1.md) release: - Azure.Core 1.47.1 - Azure.Identity 1.14.2 -- Microsoft.Bcl.Cryptography 9.0.4 +- Microsoft.Bcl.Cryptography 9.0.5 - Microsoft.Data.SqlClient.SNI.runtime 6.0.2 -- Microsoft.Extensions.Caching.Memory 9.0.4 +- Microsoft.Extensions.Caching.Memory 9.0.5 - Microsoft.IdentityModel.JsonWebTokens 7.7.1 - Microsoft.IdentityModel.Protocols.OpenIdConnect 7.7.1 - Microsoft.SqlServer.Server 1.0.0 -- System.Configuration.ConfigurationManager 9.0.4 -- System.Security.Cryptography.Pkcs 9.0.4 +- System.Configuration.ConfigurationManager 9.0.5 +- System.Security.Cryptography.Pkcs 9.0.5 - System.Text.Json 9.0.5 #### .NET Standard 2.0 - Azure.Core 1.47.1 - Azure.Identity 1.14.2 -- Microsoft.Bcl.Cryptography 9.0.4 +- Microsoft.Bcl.Cryptography 8.0.0 - Microsoft.Data.SqlClient.SNI.runtime 6.0.2 -- Microsoft.Extensions.Caching.Memory 9.0.4 +- Microsoft.Extensions.Caching.Memory 8.0.1 - Microsoft.IdentityModel.JsonWebTokens 7.7.1 - Microsoft.IdentityModel.Protocols.OpenIdConnect 7.7.1 - Microsoft.SqlServer.Server 1.0.0 -- System.Configuration.ConfigurationManager 9.0.4 -- System.Security.Cryptography.Pkcs 9.0.4 -- System.Text.Json 9.0.5 +- System.Configuration.ConfigurationManager 8.0.1 +- System.Security.Cryptography.Pkcs 8.0.1 +- System.Text.Json 8.0.5 diff --git a/release-notes/6.1/6.1.3.md b/release-notes/6.1/6.1.3.md new file mode 100644 index 0000000000..2d13415cca --- /dev/null +++ b/release-notes/6.1/6.1.3.md @@ -0,0 +1,99 @@ +# Release Notes + +## Stable Release 6.1.3 - 2025-11-12 + +This update includes the following changes since the [6.1.2](6.1.2.md) release: + +### Added + +#### App Context Switch for Ignoring Server-Provided Failover Partner + +*What Changed:* + +- A new app context switch `Switch.Microsoft.Data.SqlClient.IgnoreServerProvidedFailoverPartner` was introduced to let the client ignore server-provided failover partner info in Basic Availability Groups (BAGs). When the switch is enabled, only the failover partner specified in the connection string is used; server-supplied partner values are skipped. This context switch was introduced in PR [#3702](https://github.com/dotnet/SqlClient/pull/3702). + +*Who Benefits:* + +- Applications connecting to SQL Server BAGs using TCP and custom ports, especially where the server's provided partner name lacks the protocol, host, or port. This avoids connection failures when the server-provided partner is incompatible or incomplete. +- Teams who manage availability groups and rely on client-side control of failover behavior in heterogeneous networking environments. + +*Impact:* + +- If your environment might be affected (i.e., you operate a BAG with custom ports, or have experienced failures after failover), you can enable the new switch in your application: + +```c# +AppContext.SetSwitch("Switch.Microsoft.Data.SqlClient.IgnoreServerProvidedFailoverPartner", true); +``` + +- Then, ensure your connection string includes your preferred failover partner (with correct `tcp:host,port`) so that the client uses that instead of the server's suggestion. +- Without enabling this, by default, the client continues to prefer the server-provided partner, maintaining backwards compatibility. + +### Fixed + +- Fixed an issue to ensure reliable metrics initialization during startup, + preventing missed telemetry when EventSource is enabled early. + ([#3718](https://github.com/dotnet/SqlClient/pull/3718)) + +## Target Platform Support + +- .NET Framework 4.6.2+ (Windows ARM64, Windows x86, Windows x64) +- .NET 8.0+ (Windows x86, Windows x64, Windows ARM64, Windows ARM, Linux, macOS) + +### Dependencies + +#### .NET Framework 4.6.2+ + +- Azure.Core 1.47.1 +- Azure.Identity 1.14.2 +- Microsoft.Bcl.Cryptography 8.0.0 +- Microsoft.Data.SqlClient.SNI 6.0.2 +- Microsoft.Extensions.Caching.Memory 8.0.1 +- Microsoft.IdentityModel.JsonWebTokens 7.7.1 +- Microsoft.IdentityModel.Protocols.OpenIdConnect 7.7.1 +- System.Buffers 4.5.1 +- System.Data.Common 4.3.0 +- System.Security.Cryptography.Pkcs 8.0.1 +- System.Text.Encodings.Web 8.0.0 +- System.Text.Json 8.0.5 + +#### .NET 8.0 + +- Azure.Core 1.47.1 +- Azure.Identity 1.14.2 +- Microsoft.Bcl.Cryptography 8.0.0 +- Microsoft.Data.SqlClient.SNI.runtime 6.0.2 +- Microsoft.Extensions.Caching.Memory 8.0.1 +- Microsoft.IdentityModel.JsonWebTokens 7.7.1 +- Microsoft.IdentityModel.Protocols.OpenIdConnect 7.7.1 +- Microsoft.SqlServer.Server 1.0.0 +- System.Configuration.ConfigurationManager 8.0.1 +- System.Security.Cryptography.Pkcs 8.0.1 +- System.Text.Json 8.0.5 + +#### .NET 9.0 + +- Azure.Core 1.47.1 +- Azure.Identity 1.14.2 +- Microsoft.Bcl.Cryptography 9.0.5 +- Microsoft.Data.SqlClient.SNI.runtime 6.0.2 +- Microsoft.Extensions.Caching.Memory 9.0.5 +- Microsoft.IdentityModel.JsonWebTokens 7.7.1 +- Microsoft.IdentityModel.Protocols.OpenIdConnect 7.7.1 +- Microsoft.SqlServer.Server 1.0.0 +- System.Configuration.ConfigurationManager 9.0.5 +- System.Security.Cryptography.Pkcs 9.0.5 +- System.Text.Json 9.0.5 + +#### .NET Standard 2.0 + +- Azure.Core 1.47.1 +- Azure.Identity 1.14.2 +- Microsoft.Bcl.Cryptography 8.0.0 +- Microsoft.Data.SqlClient.SNI.runtime 6.0.2 +- Microsoft.Extensions.Caching.Memory 8.0.1 +- Microsoft.IdentityModel.JsonWebTokens 7.7.1 +- Microsoft.IdentityModel.Protocols.OpenIdConnect 7.7.1 +- Microsoft.SqlServer.Server 1.0.0 +- System.Configuration.ConfigurationManager 8.0.1 +- System.Security.Cryptography.Pkcs 8.0.1 +- System.Text.Json 8.0.5 diff --git a/release-notes/6.1/README.md b/release-notes/6.1/README.md index 0eceb46418..2fa5b2ef6e 100644 --- a/release-notes/6.1/README.md +++ b/release-notes/6.1/README.md @@ -4,6 +4,7 @@ The following Microsoft.Data.SqlClient 6.1 stable releases have been shipped: | Release Date | Version | Notes | | :-- | :-- | :--: | +| 2025-11-12 | 6.1.3 | [Release Notes](6.1.3.md) | | 2025-10-07 | 6.1.2 | [Release Notes](6.1.2.md) | | 2025-08-14 | 6.1.1 | [Release Notes](6.1.1.md) | | 2025-07-25 | 6.1.0 | [Release Notes](6.1.0.md) |