Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Nov 17, 2025

Updated Mediator.SourceGenerator from 2.1.7 to 3.0.1.

Release notes

Sourced from Mediator.SourceGenerator's releases.

3.0

🚀 Features, improvements & breaking changes

  • [#​176] Refactor source generation template, improve performance and update benchmarks - fixed "large project" performance, i.e. many messages
  • [#​203] Add configuration to make generated types internal (MediatorOptions.GenerateTypesAsInternal) - allows control over visibility of generated types
  • [#​202] Support for explicit assemblies configuration (where to find messages and handlers, MediatorOptions.Assemblies) - improves control over source generation scope
  • [#​145] Parallel notifications, correct ordering for switch statement cases - introduction of INotificationPublisher and MediatorOptions.NotificationPublisherType
  • [#​140] Upgrade to .NET 8, upgrade csharpier, fix tests and remove Roslyn 3.8, 4.0 support - Roslyn 4.1+ supported
  • Proper NativeAOT support (see linked issues):
    • [#​199] Get rid of open generics registrations for generic notification handlers - cleaner DI registration
    • [#​188] Generate DI registrations for pipelines using constructed types when provided in 'MediatorOptions' configuration (MediatorOptions.PipelineBehaviors/MediatorOptions.StreamPipelineBehaviors)
  • [#​179] Put internal components in '.Internals' namespace in generated source
  • [#​66] Improved error handling (consistent exceptions) and XML docs
  • [#​181] Improve code formatting in generated code
  • [#​180] Cleanup and improve initialization of models used during source generation
  • [#​113] Add incremental caching - performance improvement for source generation
  • [#​99] Generate code with NRT enabled - nullable reference types support
  • [#​86] Remove unnecessary System.Threading.Tasks.Extensions dependency

🐛 Bug Fixes

  • [#​207] Fix issue where diagnostics were reported with location from different assemblies
  • [#​206] Fix support for multiple notification handlers on 1 class
  • [#​147] Fix buggy code for ordering switch statement cases for messages
  • [#​191] Fix HasManyCommands typo in the template
  • [#​190] Fix ManyQueries template
  • [#​52] CancellationToken parameters must come last - parameter ordering fix
  • [#​131] Use correct accessibility modifier based on message implementing IRequest etc - to support internal messages
  • [#​219] Remove ServiceDescriptor alias in Mediator.g.cs - alias collision. Potential breaking change for users relying on this alias

📚 Documentation & Samples

  • [#​201] Add MassTransit sample - new integration example
  • [#​173] .NET Framework 4.6.2 sample, improve netstandard support
  • 3c6326e Add notifications sample
  • 466dbd7 Add simple Autofac sample

Contributors:

  • @​TimothyMakkison
  • @​feiyun0112
  • @​alaatm
  • @​zyofeng
  • @​hallvar
  • @​oskogstad
  • @​SimonCropp

Thank you all!

This is a big release, some changes are not listed above.
See full changelog at martinothamar/Mediator@release/v2.1...release/v3.0

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 show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @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)

---
updated-dependencies:
- dependency-name: Mediator.SourceGenerator
  dependency-version: 3.0.1
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added .NET Pull requests that update .net code dependencies Pull requests that update a dependency file labels Nov 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file .NET Pull requests that update .net code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant