|
1 | 1 | v0.8.0 |
| 2 | +--- |
2 | 3 |
|
3 | | -Breaking Changes: |
| 4 | +**Breaking Changes:** |
4 | 5 | * Trying to set ClickHouseConnection.ConnectionString will now throw a NotSupportedException. Create a new connection with the desired settings instead. |
5 | 6 | * When a default database is not provided, the client no longer uses "default" (now uses empty string). This allows default user database settings to function as expected. |
6 | 7 | * ClickHouseDataSource.Logger (ILogger) property changed to LoggerFactory (ILoggerFactory). |
7 | 8 | * Removed support for loading configuration from environment variables (CLICKHOUSE_DB, CLICKHOUSE_USER, CLICKHOUSE_PASSWORD). Use connection strings or ClickHouseClientSettings instead. |
| 9 | + * The default PooledConnectionIdleTimeout has been changed to 5 seconds, to prevent issues with half-open connections when using ClickHouse Cloud (where the default server-side idle timetout is 10s). |
8 | 10 |
|
9 | | -New Features: |
| 11 | +**New Features:** |
| 12 | + * Added .NET 10 as a target. |
10 | 13 | * The NuGet package is now signed. |
11 | 14 | * Enabled strong naming for the library. |
12 | 15 | * Added a new way to configure ClickHouseConnection: the ClickHouseClientSettings class. You can initialize it from a connection string by calling ClickHouseClientSettings.FromConnectionString(), or simply by setting its properties. |
13 | 16 | * Added settings validation to prevent incorrect configurations. |
14 | | - * Added logging in the library, enable it by passing a LoggerFactory through the settings. Logging level configuration is configured through the factory. |
| 17 | + * Added logging in the library, enable it by passing a LoggerFactory through the settings. Logging level configuration is configured through the factory. For more info, see the documentation: https://clickhouse.com/docs/integrations/csharp#logging-and-diagnostics |
| 18 | + * Added EnableDebugMode setting to ClickHouseClientSettings for low-level .NET network tracing (.NET 5+). When enabled, traces System.Net events (HTTP, Sockets, DNS, TLS) to help diagnose network issues. Requires ILoggerFactory with Trace-level logging enabled. WARNING: Significant performance impact - not recommended for production use. |
| 19 | + * AddClickHouseDataSource now automatically injects ILoggerFactory from the service provider when not explicitly provided. |
| 20 | + * Improvements to ActivitySource for tracing: stopped adding tags when it was not necessary, and made it configurable through ClickHouseDiagnosticsOptions. |
15 | 21 | * Added new AddClickHouseDataSource extension methods that accept ClickHouseClientSettings for strongly-typed configuration in DI scenarios. |
16 | 22 | * Added new AddClickHouseDataSource extension method that accepts IHttpClientFactory for better DI integration. |
17 | | - * AddClickHouseDataSource now automatically injects ILoggerFactory from the service provider when not explicitly provided. |
18 | | - * Added EnableDebugMode setting to ClickHouseClientSettings for low-level .NET network tracing (.NET 5+). When enabled, traces System.Net events (HTTP, Sockets, DNS, TLS) to help diagnose network issues. Requires ILoggerFactory with Trace-level logging enabled. WARNING: Significant performance impact - not recommended for production use. |
19 | 23 | * Optimized response header parsing. |
20 | 24 | * Added list type conversion, so List<T> can now be passed to the library (converts to Array() in ClickHouse). Thanks to @jorgeparavicini. |
21 | | - * Improvements to ActivitySource for tracing: stopped adding tags when it was not necessary, and made it configurable through ClickHouseDiagnosticsOptions. |
22 | 25 | * Optimized EnumType value lookups. |
23 | 26 | * Avoid unnecessarily parsing the X-ClickHouse-Summary headers twice. Thanks to @verdie-g. |
| 27 | + * Added the ability to pass a query id to ClickHouseConnection.PostStreamAsync(). Thanks to @dorki. |
| 28 | + * The user agent string now also contains information on the host operating system, .NET version, and processor architecture. |
24 | 29 |
|
25 | | -Bug fixes: |
| 30 | +**Bug fixes:** |
26 | 31 | * Fixed a crash when processing a tuple with an enum in it. |
27 | 32 | * Fixed a potential sync-over-async issue in the connection. Thanks to @verdie-g. |
| 33 | + * Fixed a bug with parsing table definitions with parametrized json fields. Thanks to @dorki. |
0 commit comments