phnx47 / dapper-repositories

CRUD for Dapper
MIT License
659 stars 203 forks source link

chore(deps): update dependency mysqlconnector to v2.3.0 #331

Closed renovate[bot] closed 9 months ago

renovate[bot] commented 9 months ago

Mend Renovate logo banner

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
MySqlConnector (source) 2.2.7 -> 2.3.0 age adoption passing confidence

Release Notes

mysql-net/MySqlConnector (MySqlConnector) ### [`v2.3.0`](https://togithub.com/mysql-net/MySqlConnector/releases/tag/2.3.0) [Compare Source](https://togithub.com/mysql-net/MySqlConnector/compare/2.2.7...2.3.0) - Support .NET 8.0. - Mark some serialization APIs as `[Obsolete]`. - Implement `DbBatchCommand.CreateParameter`: [#​1352](https://togithub.com/mysql-net/MySqlConnector/issues/1352). - Optimizations: Use `IUtf8SpanFormattable`, `Ascii.FromUtf16`, `Guid(bigEndian: true)` constructor, argument-throwing helpers, etc. - Support .NET Framework 4.8 (`net48`) TFM: [#​1355](https://togithub.com/mysql-net/MySqlConnector/issues/1355). - This allows `TlsVersion = TLSv1.3` to be used on .NET Framework 4.8. - Drop support for .NET 4.6.1 and .NET Core 3.1: [#​636](https://togithub.com/mysql-net/MySqlConnector/issues/636), [#​1273](https://togithub.com/mysql-net/MySqlConnector/issues/1273). - .NET 4.6.1 support ended on 26 April 2022, and .NET Core 3.1 on 13 December 2022. - The minimum supported versions are now .NET Framework 4.6.2 and .NET 6.0, although other frameworks should be supported via `netstandard2.0`. - `MySqlDataSource` is now available for all TFMs, not just .NET 7.0: [#​1269](https://togithub.com/mysql-net/MySqlConnector/issues/1269). - This provides a single place to configure a MySQL connection and makes it easier to register `MySqlConnection` with dependency injection. - Add `MySqlDataSourceBuilder` class to configure `MySqlDataSource` instances. - Add `MySqlDataSource.Name` and `MySqlDataSourceBuilder.UseName`. - Microsoft.Extensions.Logging is now used as the core logging abstraction: [#​1110](https://togithub.com/mysql-net/MySqlConnector/issues/1110). - `MySqlConnectorLogManager.Provider` can still be used to add a logging destination, but it is now deprecated. - Use `MySqlDataSourceBuilder.UseLoggerFactory` to configure logging. - Add new MySqlConnector.DependencyInjection package: [#​1271](https://togithub.com/mysql-net/MySqlConnector/issues/1271). - `MySqlDataSource` and `MySqlConnection` can be registered with dependency injection by using `builder.Services.AddMySqlDataSource(connectionString)`. - This also configures logging automatically. - Expose connection pool metrics: [#​491](https://togithub.com/mysql-net/MySqlConnector/issues/491). - Remove `COM_MULTI` protocol support: [#​946](https://togithub.com/mysql-net/MySqlConnector/issues/946). - Support `ZEROFILL` columns in `MySqlDecimal`: [#​1354](https://togithub.com/mysql-net/MySqlConnector/issues/1354). - Support higher-precision `DateTime` values: [#​1379](https://togithub.com/mysql-net/MySqlConnector/issues/1379). - Use `ValueTask` in `MySqlBulkCopy` API for all TFMs: [#​1364](https://togithub.com/mysql-net/MySqlConnector/issues/1364). - **Breaking** This changes the return type of `WriteToServerAsync` from `Task` to `ValueTask` on .NET Framework - Support skipping metadata for prepared statements with MariaDB 10.6 and later: [#​1301](https://togithub.com/mysql-net/MySqlConnector/issues/1301). - Support multiple authentication methods when connecting: [#​1303](https://togithub.com/mysql-net/MySqlConnector/issues/1303). - Support per-query variables for `CommandBehavior.SchemaOnly` and `SingleRow`: [#​1312](https://togithub.com/mysql-net/MySqlConnector/issues/1312). - Recycle `MySqlDataReader` objects: [#​1277](https://togithub.com/mysql-net/MySqlConnector/issues/1277). - Perform XA rollback when preparing a transaction fails: [#​1348](https://togithub.com/mysql-net/MySqlConnector/issues/1348). - Implement faster parsing for result sets with multiple rows: [#​1330](https://togithub.com/mysql-net/MySqlConnector/issues/1330). - Optimize parameter encoding for ASCII strings: [#​1296](https://togithub.com/mysql-net/MySqlConnector/issues/1296). - Use `TcpClient.ConnectAsync` overload with `CancellationToken` on .NET 5.0 and later: [#​1291](https://togithub.com/mysql-net/MySqlConnector/issues/1291). - Fix cancellation when using a redirected connection: [#​1305](https://togithub.com/mysql-net/MySqlConnector/issues/1305). - Fix `MySqlConnection.CloneWith` for connections created from a `MySqlDataSource`: [#​1306](https://togithub.com/mysql-net/MySqlConnector/issues/1306). - Work around ephemeral PEM bug on Windows: [#​1278](https://togithub.com/mysql-net/MySqlConnector/issues/1278). - Reduce allocations on common code paths. - Fix bug when column name begins with `@` in `MySqlBulkCopy`: [#​1365](https://togithub.com/mysql-net/MySqlConnector/issues/1365). - Ignore `MySqlDbType` when serializing enum values: [#​1384](https://togithub.com/mysql-net/MySqlConnector/issues/1384). - Fix bug that didn't copy `MySqlDataSource` in `MySqlConnection.Clone`: [#​1267](https://togithub.com/mysql-net/MySqlConnector/issues/1267). - Fix version parsing for MariaDB 11.0 and later: [#​1311](https://togithub.com/mysql-net/MySqlConnector/issues/1311). - Fix potential error in reallocating an internal buffer when writing ASCII text. - Update handling of `ActivityStatus` to latest conventions: [#​1334](https://togithub.com/mysql-net/MySqlConnector/issues/1334). - Reduce overhead of `CommandTimeout`: [#​1338](https://togithub.com/mysql-net/MySqlConnector/issues/1338). - Reword end-of-stream message to be more generic: [#​1383](https://togithub.com/mysql-net/MySqlConnector/issues/1383). - Thanks to [@​gboucher90](https://togithub.com/gboucher90), [@​JackBOBO](https://togithub.com/JackBOBO), [@​Kielek](https://togithub.com/Kielek), [@​rusher](https://togithub.com/rusher), and [@​stilettk](https://togithub.com/stilettk) for contributions to this release.

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

â™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR has been generated by Mend Renovate. View repository job log here.

codecov[bot] commented 9 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (2df3acd) 65.29% compared to head (2d882fa) 65.29%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #331 +/- ## ======================================= Coverage 65.29% 65.29% ======================================= Files 59 59 Lines 1896 1896 Branches 369 369 ======================================= Hits 1238 1238 Misses 555 555 Partials 103 103 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.