Skip to content

Conversation

@StevenTCramer
Copy link
Collaborator

Summary

Migrate TimeWarp.State from MediatR 12.4.1 to TimeWarp.Mediator 13.0.0 (version 12.0.0-beta.1)

Changes

  • ✅ Updated package version to 12.0.0-beta.1
  • ✅ Replaced MediatR with TimeWarp.Mediator in all package references
  • ✅ Updated using statements from MediatR to TimeWarp.Mediator
  • ✅ Changed service registration from AddMediatR to AddMediator (corrected spelling)
  • ✅ Updated all sample projects to use the new packages
  • ✅ Fixed Test.App.Server startup configuration

Testing

  • ✅ All unit tests pass
  • ✅ Test.App runs successfully
  • ✅ Test.App tests pass
  • ✅ Sample apps run (Sample00Wasm verified)
  • ✅ NuGet packages build successfully

Migration Notes

TimeWarp.Mediator is a fork of MediatR that maintains full API compatibility. The main changes are:

  1. Package name: MediatRTimeWarp.Mediator
  2. Namespace: using MediatRusing TimeWarp.Mediator
  3. Service registration: AddMediatRAddMediator

All interfaces (IRequest, IRequestHandler, IMediator, ISender, IPublisher) and behaviors work unchanged.

Known Issues

  • Test.App.Server doesn't display "Now listening on..." message in console (cosmetic issue, server runs fine)

CI/CD Note

This PR will NOT publish to NuGet. Publishing only occurs on release creation via the release-publish.yml workflow.

Closes #32

🤖 Generated with Claude Code

Co-Authored-By: Claude [email protected]

StevenTCramer and others added 11 commits August 18, 2025 18:33
…Mediator 13.0.0

- Bump TimeWarpStateVersion from 11.0.3 to 12.0.0-beta.1
- Replace MediatR 12.4.1 with TimeWarp.Mediator 13.0.0 in Directory.Packages.props
…t files

- Update TimeWarp.State.csproj
- Update TimeWarp.State.Plus.csproj
- Update Test.App.Contracts.csproj
- Update package tags to reference TimeWarp.Mediator
- Update global using statements in 7 files
- Update explicit using in RoutesState_Clone_Tests.cs
- Remove unnecessary MediatR using from Sample02Wasm
- Add TimeWarp.Mediator using to Sample02Wasm Program.cs for IPipelineBehavior
TimeWarp.Mediator uses the corrected spelling 'AddMediator' instead of 'AddMediatR'
Update package version references in all sample projects to test the migration
- Add HTTP profile to launchSettings.json
- Fix JSON formatting in launchSettings.json
- Update RunTestApp.ps1 to use 'dotnet run' with HTTP profile instead of 'dotnet watch'
Update global.json to support .NET 10 preview for development
Auto-generated lock file updates from package restore
Update references from MediatR.Contracts.dll to TimeWarp.Mediator.Contracts.dll
in TimeWarpStateActionAnalyser_Tests.cs
- Update XML comments to reference Mediator instead of MediatR
- Fix analyzer test to use TimeWarp.Mediator.Contracts.dll
- Update SVG diagram to replace MediatR with Mediator
- Clean up all remaining textual references to MediatR

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@StevenTCramer StevenTCramer merged commit 833b369 into master Aug 20, 2025
1 of 2 checks passed
@StevenTCramer StevenTCramer deleted the Cramer/2025-08-12/032migrate-from-mediatr-to-timewarp-mediator branch August 20, 2025 01:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

State should not be shared by duplicate components as an option

2 participants