-
Notifications
You must be signed in to change notification settings - Fork 317
[5.1] Dependency Cleanup #3838
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
base: release/5.1
Are you sure you want to change the base?
[5.1] Dependency Cleanup #3838
Conversation
- Updated some dependencies to avoid transitive vulnerabilities.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR removes unused dependencies and updates some dependency versions across the Microsoft.Data.SqlClient driver and test projects to eliminate transitive vulnerabilities without introducing breaking changes.
Key Changes:
- Removed unused dependencies (
System.Text.Encodings.Web,System.Text.Json,System.Diagnostics.DiagnosticSource,System.Private.Uri,Microsoft.Win32.Registry) - Updated test and common dependency versions (e.g.,
Microsoft.NET.Test.Sdk,Newtonsoft.Json,System.Buffers,Microsoft.Extensions.Hosting) - Reorganized and improved comments in
Versions.propsfor better clarity
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| tools/specs/add-ons/Microsoft.Data.SqlClient.AlwaysEncrypted.AzureKeyVaultProvider.nuspec | Removed System.Text.Encodings.Web dependency from all target frameworks |
| tools/specs/Microsoft.Data.SqlClient.nuspec | Removed multiple unused dependencies across all target frameworks |
| tools/props/Versions.props | Updated dependency versions, removed obsolete version properties, and reorganized comments for clarity |
| src/Microsoft.Data.SqlClient/tests/ManualTests/Microsoft.Data.SqlClient.ManualTesting.Tests.csproj | Removed unused package references |
| src/Microsoft.Data.SqlClient/tests/FunctionalTests/Microsoft.Data.SqlClient.Tests.csproj | Removed unused package references |
| src/Microsoft.Data.SqlClient/netfx/src/Microsoft.Data.SqlClient.csproj | Removed unused package references |
| src/Microsoft.Data.SqlClient/netfx/ref/Microsoft.Data.SqlClient.csproj | Removed unused package references |
| src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj | Removed unused package references |
| src/Microsoft.Data.SqlClient/netcore/ref/Microsoft.Data.SqlClient.csproj | Removed unused package references and conditional ItemGroup |
| src/Microsoft.Data.SqlClient/add-ons/AzureKeyVaultProvider/Microsoft.Data.SqlClient.AlwaysEncrypted.AzureKeyVaultProvider.csproj | Removed unused package reference |
paulmedynski
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commentary for reviewers.
| <SystemTextEncodingsWebVersion>6.0.1</SystemTextEncodingsWebVersion> | ||
| <SystemTextJsonVersion>6.0.11</SystemTextJsonVersion> | ||
| <MicrosoftIdentityModelProtocolsOpenIdConnectVersion>6.35.0</MicrosoftIdentityModelProtocolsOpenIdConnectVersion> | ||
| <SystemBuffersVersion>4.6.1</SystemBuffersVersion> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated from 4.5.1 -> 4.6.1
|
|
||
| <!-- MDS NetFx project dependencies --> | ||
| <PropertyGroup> | ||
| <MicrosoftDataSqlClientSniVersion>5.1.2</MicrosoftDataSqlClientSniVersion> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved from line 26 unchanged.
| <SystemBuffersVersion>4.5.1</SystemBuffersVersion> | ||
| <SystemTextEncodingsWebVersion>6.0.1</SystemTextEncodingsWebVersion> | ||
| <SystemTextJsonVersion>6.0.11</SystemTextJsonVersion> | ||
| <MicrosoftIdentityModelProtocolsOpenIdConnectVersion>6.35.0</MicrosoftIdentityModelProtocolsOpenIdConnectVersion> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved from line 32 unchanged.
|
|
||
| <!-- MDS NetStandard project dependencies --> | ||
| <PropertyGroup> | ||
| <MicrosoftWin32RegistryVersion>5.0.0</MicrosoftWin32RegistryVersion> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved from line 40 unchanged.
| <PropertyGroup> | ||
| <MicrosoftWin32RegistryVersion>5.0.0</MicrosoftWin32RegistryVersion> | ||
| <SystemRuntimeLoaderVersion>4.3.0</SystemRuntimeLoaderVersion> | ||
| <SystemSecurityCryptographyCngVersion>5.0.0</SystemSecurityCryptographyCngVersion> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved from line 47 unchanged.
| <MicrosoftSqlServerServerVersion>1.0.0</MicrosoftSqlServerServerVersion> | ||
| <SystemDiagnosticsDiagnosticSourceVersion>6.0.1</SystemDiagnosticsDiagnosticSourceVersion> | ||
| <SystemDiagnosticsPerformanceCounterVersion>6.0.1</SystemDiagnosticsPerformanceCounterVersion> | ||
| <SystemConfigurationConfigurationManagerVersion>6.0.1</SystemConfigurationConfigurationManagerVersion> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved from line 42 unchanged.
|
|
||
| <!-- Common Dependencies - Shared by multiple driver or test projects--> | ||
| <PropertyGroup> | ||
| <AzureCoreVersion>1.41.0</AzureCoreVersion> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved from line 58 unchanged.
…sions don't work with xUnit.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## release/5.1 #3838 +/- ##
===============================================
- Coverage 71.51% 71.13% -0.39%
===============================================
Files 293 293
Lines 61928 61928
===============================================
- Hits 44289 44053 -236
- Misses 17639 17875 +236
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 10 out of 10 changed files in this pull request and generated no new comments.
Description
NOTE: Some packages have DOWNGRADED major versions due to migrating from Direct dependencies to Transitive dependencies. This will have no effect on downstream apps, since the intermediate packages were already compatible with the previous Direct dependency versions. If apps were directly using those packages at-or-above the previous versions, NuGet will automatically resolve the transitive dependencies as it was doing before.
Details
MDS
AKV
Issues
Resolves #3809.
Testing