From df16fa11455f0f3a696a2b09f1f82243c8a2f681 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Bedn=C3=A1=C5=99?= Date: Tue, 2 Dec 2025 12:13:03 +0100 Subject: [PATCH 1/4] chore: update version to 5.0.0 and modify CHANGELOG.md --- CHANGELOG.md | 6 ++++-- Client.Core/Client.Core.csproj | 2 +- Client.Legacy/Client.Legacy.csproj | 2 +- Client.Linq/Client.Linq.csproj | 2 +- Client/Client.csproj | 2 +- Examples/Examples.csproj | 2 +- 6 files changed, 9 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index db46aae9..ef02abfe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## 4.19.0 [unreleased] +## 5.0.0 [unreleased] ### Dependencies @@ -7,6 +7,9 @@ ### CI 1. [#681](https://github.com/influxdata/influxdb-client-csharp/pull/681): Add build for `dotnet8` +### Features +2. [#606](https://github.com/influxdata/influxdb-client-csharp/pull/606): Use IEnumerable in WriteApi to eliminate unnescessary memmory allocations + ## 4.18.0 [2024-09-13] ### Features: @@ -94,7 +97,6 @@ Update dependencies: ### Features 1. [#590](https://github.com/influxdata/influxdb-client-csharp/pull/590): Allows disable Trace verbose messages -2. [#606](https://github.com/influxdata/influxdb-client-csharp/pull/606): Use IEnumerable in WriteApi to eliminate unnescessary memmory allocations ### Dependencies Update dependencies: diff --git a/Client.Core/Client.Core.csproj b/Client.Core/Client.Core.csproj index 69b59f49..8a055ca7 100644 --- a/Client.Core/Client.Core.csproj +++ b/Client.Core/Client.Core.csproj @@ -7,7 +7,7 @@ InfluxDB Client Core - exceptions, validations, REST client. influxdb-client-csharp Contributors InfluxDB.Client.Core - 4.19.0 + 5.0.0 dev InfluxDB.Client.Core diff --git a/Client.Legacy/Client.Legacy.csproj b/Client.Legacy/Client.Legacy.csproj index b10393a7..6a1fbc49 100644 --- a/Client.Legacy/Client.Legacy.csproj +++ b/Client.Legacy/Client.Legacy.csproj @@ -6,7 +6,7 @@ The client that allow perform Flux Query against the InfluxDB 1.7+. influxdb-client-csharp Contributors InfluxDB.Client.Flux - 4.19.0 + 5.0.0 dev InfluxDB.Client.Flux diff --git a/Client.Linq/Client.Linq.csproj b/Client.Linq/Client.Linq.csproj index fcadbde5..015cc25b 100644 --- a/Client.Linq/Client.Linq.csproj +++ b/Client.Linq/Client.Linq.csproj @@ -7,7 +7,7 @@ The library supports querying InfluxDB 2.x by LINQ expressions. influxdb-client-csharp Contributors InfluxDB.Client.Linq - 4.19.0 + 5.0.0 dev InfluxDB.Client.Linq diff --git a/Client/Client.csproj b/Client/Client.csproj index bda849b6..52fb09b5 100644 --- a/Client/Client.csproj +++ b/Client/Client.csproj @@ -7,7 +7,7 @@ The reference client that allows query, write and management (bucket, organization, users) for the InfluxDB 2.x. influxdb-client-csharp Contributors InfluxDB.Client - 4.19.0 + 5.0.0 dev InfluxDB.Client diff --git a/Examples/Examples.csproj b/Examples/Examples.csproj index 32dfbbd6..f5b23b46 100644 --- a/Examples/Examples.csproj +++ b/Examples/Examples.csproj @@ -4,7 +4,7 @@ Exe netcoreapp3.1;net5.0;net6.0;net7.0;net8.0 8 - 4.19.0 + 5.0.0 dev false From 964fa66300c441d45746518612626c0905c21a1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Bedn=C3=A1=C5=99?= Date: Tue, 2 Dec 2025 12:59:23 +0100 Subject: [PATCH 2/4] fix: update User-Agent header checks to version 5.0.0 --- Client.Legacy.Test/FluxClientQueryTest.cs | 2 +- Client.Test/InfluxDbClientTest.cs | 2 +- Client.Test/WriteApiTest.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Client.Legacy.Test/FluxClientQueryTest.cs b/Client.Legacy.Test/FluxClientQueryTest.cs index 3b98255e..6b73fc5c 100644 --- a/Client.Legacy.Test/FluxClientQueryTest.cs +++ b/Client.Legacy.Test/FluxClientQueryTest.cs @@ -222,7 +222,7 @@ public async Task UserAgentHeader() await FluxClient.QueryAsync("from(bucket:\"telegraf\")"); var request = MockServer.LogEntries.Last(); - StringAssert.StartsWith("influxdb-client-csharp/4.", request.RequestMessage.Headers["User-Agent"].First()); + StringAssert.StartsWith("influxdb-client-csharp/5.", request.RequestMessage.Headers["User-Agent"].First()); StringAssert.EndsWith(".0.0", request.RequestMessage.Headers["User-Agent"].First()); } diff --git a/Client.Test/InfluxDbClientTest.cs b/Client.Test/InfluxDbClientTest.cs index 37b31ab2..b6edf7c7 100644 --- a/Client.Test/InfluxDbClientTest.cs +++ b/Client.Test/InfluxDbClientTest.cs @@ -163,7 +163,7 @@ public async Task UserAgentHeader() await _client.GetAuthorizationsApi().FindAuthorizationByIdAsync("id"); var request = MockServer.LogEntries.Last(); - StringAssert.StartsWith("influxdb-client-csharp/4.", request.RequestMessage.Headers["User-Agent"].First()); + StringAssert.StartsWith("influxdb-client-csharp/5.", request.RequestMessage.Headers["User-Agent"].First()); StringAssert.EndsWith(".0.0", request.RequestMessage.Headers["User-Agent"].First()); } diff --git a/Client.Test/WriteApiTest.cs b/Client.Test/WriteApiTest.cs index 83fe59a1..eb7acbd9 100644 --- a/Client.Test/WriteApiTest.cs +++ b/Client.Test/WriteApiTest.cs @@ -442,7 +442,7 @@ public void UserAgentHeader() listener.Get(); var request = MockServer.LogEntries.Last(); - StringAssert.StartsWith("influxdb-client-csharp/4.", request.RequestMessage.Headers["User-Agent"].First()); + StringAssert.StartsWith("influxdb-client-csharp/5.", request.RequestMessage.Headers["User-Agent"].First()); StringAssert.EndsWith(".0.0", request.RequestMessage.Headers["User-Agent"].First()); } From 4a79c87c50cb2d8e19159efcb1ecd0e879dbd768 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Bedn=C3=A1=C5=99?= Date: Tue, 2 Dec 2025 13:21:39 +0100 Subject: [PATCH 3/4] test: update assembly version check to 5.0.0 --- Client.Test/AssemblyHelperTest.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Client.Test/AssemblyHelperTest.cs b/Client.Test/AssemblyHelperTest.cs index 9bde3181..1726a271 100644 --- a/Client.Test/AssemblyHelperTest.cs +++ b/Client.Test/AssemblyHelperTest.cs @@ -11,7 +11,7 @@ public class AssemblyHelperTest public void GetAssemblyVersion() { var version = AssemblyHelper.GetVersion(typeof(InfluxDBClient)); - Assert.AreEqual(4, Version.Parse(version).Major); + Assert.AreEqual(5, Version.Parse(version).Major); Assert.GreaterOrEqual(Version.Parse(version).Minor, 0); Assert.AreEqual(0, Version.Parse(version).Build); Assert.AreEqual(0, Version.Parse(version).Revision); From b05099d3bdd2c5f9157139c0d1056ad70c97fae8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Bedn=C3=A1=C5=99?= Date: Tue, 2 Dec 2025 14:46:41 +0100 Subject: [PATCH 4/4] docs: Update CHANGELOG for pull requests 606 and 615 --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ef02abfe..97d49645 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,7 @@ 1. [#681](https://github.com/influxdata/influxdb-client-csharp/pull/681): Add build for `dotnet8` ### Features -2. [#606](https://github.com/influxdata/influxdb-client-csharp/pull/606): Use IEnumerable in WriteApi to eliminate unnescessary memmory allocations +2. [#615](https://github.com/influxdata/influxdb-client-csharp/pull/615): Use IEnumerable in WriteApi to eliminate unnescessary memmory allocations ## 4.18.0 [2024-09-13]