Skip to content

3.0: the mediator libraries are renamed from TailoredApps.Shared.MediatR* to TailoredApps.Shared.Mediator* - #87

Merged
nieprzecietny merged 1 commit into
masterfrom
feat/v3-rename-mediatr-to-mediator
Nov 19, 2026
Merged

nieprzecietny merged 1 commit into
masterfrom
feat/v3-rename-mediatr-to-mediator

Conversation

@nieprzecietny

Copy link
Copy Markdown
Member

What

The mediator libraries have been built on ForkForward.Mediator since 3.0, so the name of the MediatR package goes from their own names as well. Packages, assemblies, project folders and namespaces change together.

2.x 3.0
TailoredApps.Shared.MediatR TailoredApps.Shared.Mediator
TailoredApps.Shared.MediatR.Caching TailoredApps.Shared.Mediator.Caching
TailoredApps.Shared.MediatR.Email TailoredApps.Shared.Mediator.Email
TailoredApps.Shared.MediatR.PagedRequest TailoredApps.Shared.Mediator.PagedRequest
TailoredApps.Shared.MediatR.ML (namespace …MediatR.ImageClassification) TailoredApps.Shared.Mediator.ML (namespace …Mediator.ImageClassification)

Types, members and configuration keys keep their names. The only identifiers that changed are two test methods (Should_Be_A_MediatR_Request_For_…).

Breaking change

An application replaces the TailoredApps.Shared.MediatR* package references and namespaces with TailoredApps.Shared.Mediator*. docs/Migration/v3.md (both languages) lists the ids, the two extra checklist steps and an updated AI agent prompt.

One trap, checked by compiling a probe: inside TailoredApps.Shared.* namespaces the short name Mediator is now a namespace, so the class of the fork has to be written ForkForward.Mediator.Mediator there (CS0118). Code in any other namespace and the interfaces (IMediator, ISender, …) are not affected. Nothing in this repository used the short name.

Also in this PR

  • Tests (Mediator.Tests, Mediator.ML.Tests), the sample service, the AOT smoke applications and TailoredApps.Shared.slnx follow the new names.
  • Docs: docs/Libraries/MediatR becomes docs/Libraries/Mediator in both languages, with navigation, links, package READMEs and CLAUDE.md updated.
  • The package description of TailoredApps.Shared.Mediator now says what the library does.
  • Mentions of the real MediatR package (the fork, its licence, using MediatR in the migration page), the generated bump log and the September security review keep the old names; the review gets one sentence about the rename.
  • Public API comparison: the renamed libraries stay outside it, because nuget.org has no 2.0.0 package with their id (src/Directory.Build.targets).

Verification

  • dotnet build TailoredApps.Shared.slnx: 0 warnings, 0 errors.
  • dotnet test TailoredApps.Shared.slnx: every test project passes on net10.0 and net11.0.
  • dotnet build TailoredApps.Shared.slnx -c Release -p:ValidatePublicApi=true: passes and packs 26 packages under the new names.
  • mkdocs build --strict passes for both configurations.
  • The NativeAOT publish of the smoke applications was not run locally; the CI job covers it.

After the merge

  • The next v3.0.0-preview.N tag publishes five new package ids. The old ids keep their 2.x versions and 3.0.0-preview.1 / 3.0.0-preview.2; they should be deprecated on nuget.org with the new ids as successors.
  • The NuGet badges on the five library pages stay empty until that first publication.
  • Documentation URLs under …/Libraries/MediatR/… are gone and there are no redirects.

🤖 Generated with Claude Code

…atR* to TailoredApps.Shared.Mediator*

The libraries have been built on ForkForward.Mediator since 3.0, so the name of
the MediatR package goes from their own names as well. Packages, assemblies,
project folders and namespaces change together:

  TailoredApps.Shared.MediatR              -> TailoredApps.Shared.Mediator
  TailoredApps.Shared.MediatR.Caching      -> TailoredApps.Shared.Mediator.Caching
  TailoredApps.Shared.MediatR.Email        -> TailoredApps.Shared.Mediator.Email
  TailoredApps.Shared.MediatR.PagedRequest -> TailoredApps.Shared.Mediator.PagedRequest
  TailoredApps.Shared.MediatR.ML           -> TailoredApps.Shared.Mediator.ML
  (namespace ...MediatR.ImageClassification -> ...Mediator.ImageClassification)

Types, members and configuration keys keep their names. The two test projects,
the sample service, the AOT smoke applications and the documentation in both
languages follow; docs/Libraries/MediatR becomes docs/Libraries/Mediator.

The migration page for 3.0 now lists the old and the new package ids and the
two extra steps for an application. It also records one trap, checked by
compiling: inside TailoredApps.Shared.* namespaces the short name Mediator is
now a namespace, so the class of the fork has to be written
ForkForward.Mediator.Mediator there (CS0118).

The renamed libraries stay outside the public API comparison: nuget.org has no
2.0.0 package with their id. The old ids keep their 2.x versions and the first
two 3.0 previews.

BREAKING CHANGE: applications replace the TailoredApps.Shared.MediatR* package
references and namespaces with TailoredApps.Shared.Mediator*.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@nieprzecietny
nieprzecietny requested a review from a team as a code owner November 19, 2026 00:38
@nieprzecietny nieprzecietny added the enhancement New feature or request label Nov 19, 2026
@nieprzecietny
nieprzecietny merged commit 25b0589 into master Nov 19, 2026
7 checks passed
@codecov

codecov Bot commented Nov 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.00%. Comparing base (9e929ed) to head (ed575cb).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #87      +/-   ##
==========================================
+ Coverage   92.95%   93.00%   +0.04%     
==========================================
  Files         140      140              
  Lines        4869     4000     -869     
  Branches      538      540       +2     
==========================================
- Hits         4526     3720     -806     
+ Misses        216      156      -60     
+ Partials      127      124       -3     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant