Bump InfluxDB.Client from 3.3.0 to 4.0.0
Created by: dependabot[bot]
Bumps InfluxDB.Client from 3.3.0 to 4.0.0.
Release notes
Sourced from InfluxDB.Client's releases.
4.0.0
⚠ The underlyingRestSharp
library was updated the latest major versionv107
. The new version ofRestSharp
switched from the legacyHttpWebRequest
class to the standard well-knownSystem.Net.Http.HttpClient
instead. This improves performance and solves lots of issues, like hanging connections, updated protocols support, and many other problems.Migration Notice
- New versions of
QueryApi
,QueryApiSync
,WriteApi
,WriteApiAsync
andFluxClient
methods uses default named argument values so you are able to easily migrate by:- _client.GetQueryApi().QueryAsyncEnumerable<T>(fluxQuery, token); + _client.GetQueryApi().QueryAsyncEnumerable<T>(fluxQuery, cancellationToken: token);
Breaking Changes
API
- The Client no longer supports the
ReadWriteTimeout
for HTTP Client. This settings is not supported by theHttpClient
. Use can useTimeout
property instead.- The
FluxClient
usesIDisposable
interface to releasing underlying HTTP connections:From
var client = FluxClientFactory.Create("http://localhost:8086/");
To
using var client = FluxClientFactory.Create("http://localhost:8086/");
- The Query APIs uses
CancellationToken
instead ofICancellable
:From
await QueryApi.QueryAsync(flux, (cancellable, record) => { // process record Console.WriteLine($"record: {record}"); if (your_condition) { // cancel stream source.Cancel(); } })
To
var source = new CancellationTokenSource(); await QueryApi.QueryAsync(flux, record => { // process record Console.WriteLine($"record: {record}"); if (your_condition)
... (truncated)
Changelog
Sourced from InfluxDB.Client's changelog.
4.0.0 [2022-03-18]
⚠ The underlyingRestSharp
library was updated the latest major versionv107
. The new version ofRestSharp
switched from the legacyHttpWebRequest
class to the standard well-knownSystem.Net.Http.HttpClient
instead. This improves performance and solves lots of issues, like hanging connections, updated protocols support, and many other problems.Migration Notice
- New versions of
QueryApi
,QueryApiSync
,WriteApi
,WriteApiAsync
andFluxClient
methods uses default named argument values so you are able to easily migrate by:- _client.GetQueryApi().QueryAsyncEnumerable<T>(fluxQuery, token); + _client.GetQueryApi().QueryAsyncEnumerable<T>(fluxQuery, cancellationToken: token);
Breaking Changes
API
- The Client no longer supports the
ReadWriteTimeout
for HTTP Client. This settings is not supported by theHttpClient
. Use can useTimeout
property instead.- The
FluxClient
usesIDisposable
interface to releasing underlying HTTP connections:From
var client = FluxClientFactory.Create("http://localhost:8086/");
To
using var client = FluxClientFactory.Create("http://localhost:8086/");
- The Query APIs uses
CancellationToken
instead ofICancellable
:From
await QueryApi.QueryAsync(flux, (cancellable, record) => { // process record Console.WriteLine($"record: {record}"); if (your_condition) { // cancel stream source.Cancel(); } })
To
var source = new CancellationTokenSource(); await QueryApi.QueryAsync(flux, record => { // process record Console.WriteLine($"record: {record}");
... (truncated)
Commits
-
efcd6fd
chore(release): release version 4.0.0 [skip ci] -
9e146fc
docs: prepare changelog for v4.0 (#298) -
32cb4c3
fix: get version fromX-Influxdb-Version
header (#297) -
3a4bcb0
chore(release): prepare for next development iteration -
7887eae
chore(release): release version 4.0.0-rc3 [skip ci] -
9bf6e5d
feat: add possibility to put generic type object as a value forPointData
a... -
7e410e3
chore(release): prepare for next development iteration -
23933ff
chore(release): release version 4.0.0-rc2 [skip ci] -
d80becc
feat: optimize serializationPointData
into LineProtocol (#294) -
2f1f452
fix: type ofCheckBase.LatestCompleted
isDateTime
(#293) - Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebase
will rebase this PR -
@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it -
@dependabot merge
will merge this PR after your CI passes on it -
@dependabot squash and merge
will squash and merge this PR after your CI passes on it -
@dependabot cancel merge
will cancel a previously requested merge and block automerging -
@dependabot reopen
will reopen this PR if it is closed -
@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)