Energinet-DataHub / ARCHIVED-geh-aggregations

This project aims to create an engine that is able to do calculations on billions of metering points and deliver the results within minutes
Apache License 2.0
2 stars 0 forks source link

Bump MediatR from 9.0.0 to 10.0.1 in /source/coordinator #744

Closed dependabot[bot] closed 2 years ago

dependabot[bot] commented 2 years ago

Bumps MediatR from 9.0.0 to 10.0.1.

Release notes

Sourced from MediatR's releases.

10.0.1

This is a patch release to support the latest Contracts package, which changed its targets to netstandard2.0 and net461.

Although MediatR supports only netstandard2.1 and above, it should not force the consumers of the contracts as such.

10.0.0

This release adds support for IAsyncEnumerable<T>. A new request type, IStreamRequest<T> represents a request to create a stream, with a new handler type IStreamRequestHandler<TRequest, TResponse> to handle. An example:

public class StreamPing : IStreamRequest<Pong>
{
    public string? Message { get; init; }
}

public class PingStreamHandler : IStreamRequestHandler<StreamPing, Pong> { public async IAsyncEnumerable<Pong> Handle(StreamPing request, [EnumeratorCancellation] CancellationToken cancellationToken) { yield return await Task.Run(() => new Pong { Message = request.Message + " Pang" }, cancellationToken); } }

Where the work inside of the handler would likely be calling some other streaming API, such as gRPC, EF Core streaming support, Dapper streaming etc.

There are also separate behaviors, with IStreamPipelineBehavior that are separate from the normal IPipelineBehavior.

With the addition of IAsyncEnumerable, this release now targets netstandard2.1 exclusively.

There are some breaking API changes, called out in the 10.0 migration guide.

Commits
  • 49f9821 Updating contracts package
  • 204f41e Targeting netstandard2.0 and net461 for the contracts package
  • dad92f3 Fixing release workflow
  • 682ee41 Updating readme to include contracts package
  • 290f80a Merge pull request #687 from jbogard/reference-contracts-package
  • bcb1aa7 Referencing contracts package
  • b152d92 Merge pull request #686 from jbogard/contracts-assembly
  • b2b0222 Creating a contracts package
  • a533cf2 Adding contracts assembly
  • 802e4a4 Merge pull request #685 from jbogard/separate-stream-request
  • Additional commits viewable in compare view


Dependabot compatibility score

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)
codecov[bot] commented 2 years ago

Codecov Report

Merging #744 (72f3164) into main (c9e92e5) will decrease coverage by 9.38%. The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #744      +/-   ##
==========================================
- Coverage   25.37%   15.98%   -9.39%     
==========================================
  Files         125       80      -45     
  Lines        1671     1101     -570     
  Branches      169      105      -64     
==========================================
- Hits          424      176     -248     
+ Misses       1231      920     -311     
+ Partials       16        5      -11     
Impacted Files Coverage Δ
...ub.Aggregations.Domain/MasterData/EsBrpRelation.cs
...tions.Infrastructure/Messaging/MessageExtractor.cs
...ion/Transformation/EventToMasterDataTransformer.cs
...DataHub.Aggregations.DatabaseMigration/Upgrader.cs
...nEvents/Mutators/SettlementMethodChangedMutator.cs
.../Middleware/FunctionInvocationLoggingMiddleware.cs
...gregations.Application/Extensions/EnumExtension.cs
....Aggregations.Domain/MasterData/GridLossSysCorr.cs
...ner/MeteringPoints/MeteringPointCreatedListener.cs
...ation/EnergySupplierChangedHandlerConfiguration.cs
... and 35 more

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

johevemi commented 2 years ago

bumped in #754

dependabot[bot] commented 2 years ago

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.