Repository navigation
3.0: the mediator libraries are renamed from TailoredApps.Shared.MediatR* to TailoredApps.Shared.Mediator* - #87
Merged
Conversation
…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>
Codecov Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
TailoredApps.Shared.MediatRTailoredApps.Shared.MediatorTailoredApps.Shared.MediatR.CachingTailoredApps.Shared.Mediator.CachingTailoredApps.Shared.MediatR.EmailTailoredApps.Shared.Mediator.EmailTailoredApps.Shared.MediatR.PagedRequestTailoredApps.Shared.Mediator.PagedRequestTailoredApps.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 withTailoredApps.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 nameMediatoris now a namespace, so the class of the fork has to be writtenForkForward.Mediator.Mediatorthere (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
Mediator.Tests,Mediator.ML.Tests), the sample service, the AOT smoke applications andTailoredApps.Shared.slnxfollow the new names.docs/Libraries/MediatRbecomesdocs/Libraries/Mediatorin both languages, with navigation, links, package READMEs andCLAUDE.mdupdated.TailoredApps.Shared.Mediatornow says what the library does.using MediatRin the migration page), the generated bump log and the September security review keep the old names; the review gets one sentence about the rename.2.0.0package 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 onnet10.0andnet11.0.dotnet build TailoredApps.Shared.slnx -c Release -p:ValidatePublicApi=true: passes and packs 26 packages under the new names.mkdocs build --strictpasses for both configurations.After the merge
v3.0.0-preview.Ntag publishes five new package ids. The old ids keep their 2.x versions and3.0.0-preview.1/3.0.0-preview.2; they should be deprecated on nuget.org with the new ids as successors.…/Libraries/MediatR/…are gone and there are no redirects.🤖 Generated with Claude Code