Bump Foundatio.Mediator.Abstractions from 1.1.0 to 1.2.1#291
Merged
github-actions[bot] merged 1 commit intomainfrom Apr 28, 2026
Merged
Conversation
--- updated-dependencies: - dependency-name: Foundatio.Mediator.Abstractions dependency-version: 1.2.1 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
4a6206b to
988e3a9
Compare
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.
Rebasing might not happen immediately, so don't worry if this takes some time.
Note: if you make any changes to this PR yourself, they will take precedence over the rebase.
Pinned Foundatio.Mediator.Abstractions at 1.2.1.
Release notes
Sourced from Foundatio.Mediator.Abstractions's releases.
1.2.1
Bug Fixes
using Foundatio.Mediator.Generated;unconditionally in_FoundatioModule, but that namespace only exists when handler wrapper types are generated. Projects containing only middleware (no handlers) failed withCS0234: The type or namespace name 'Generated' does not exist. Theusingdirective is now conditionally emitted only when the project has at least one handler._FoundatioModulehint to.g.cs— The generated file now follows the.g.csnaming convention so test infrastructure properly validates it for compilation errors.Full Changelog: FoundatioFx/Foundatio.Mediator@v1.2.0...v1.2.1
1.2.0
What's New
Endpoint Conventions & Customization
IEndpointConvention<TBuilder>— New interface for compile-time endpoint customization via attributes. Convention attributes on methods, classes, or assemblies configure endpoint/group builders at startup without runtime reflection. Supports 3-level precedence with most-derived-wins deduplication (method overrides class overrides assembly). (#176)IMediatorResultMapper<TResult>interface allows overriding the defaultResult<T>-to-HTTP status code mapping in generated endpoints. Register a custom mapper beforeAddMediator()to override the defaults. (#177)Route Constraints
{orderId:guid},{itemId:long},{widgetId:int}). Supported types:int,long,guid,bool,datetime,decimal,double,float. String parameters remain unconstrained.Endpoint Attribute Improvements
[HandlerEndpoint("{productId}")]instead of[HandlerEndpoint(Route = "{productId}")][HandlerEndpoint(HandlerMethod.Get, "/{productId}")]for concise explicit endpoint declarationsHandlerMethod-only constructor —[HandlerEndpoint(HandlerMethod.Get)]for endpoints with no additional route segment beyond the group prefix[StringSyntax("Route")]annotation — Route parameters on[HandlerEndpoint]now have IDE route-completion support (with a netstandard2.0 polyfill)"Make Endpoint Explicit" Code Fix
FMED017— Offers "Make endpoint explicit" and "Make all endpoints in class explicit" actions that insert[HandlerEndpoint]and[HandlerEndpointGroup]attributes to freeze convention-based routes so they won't change across library versionsBreaking Changes
EndpointHttpMethodrenamed toHandlerMethod— The HTTP method enum used in endpoint attributes has been renamed for clarityHttpMethodproperty renamed toMethodonHandlerEndpointAttributeRateLimitedAttributerenamed toEndpointRateLimiterAttribute— More consistent naming with the endpoint convention systemBug Fixes
TrimStartchar-array bug inTypeSymbolInfo.GetQualifiedName—TrimStart("global::".ToCharArray())was stripping individual characters from the set instead of the prefix string, causing incorrect qualified names for types likelong,bool, andobject[AsParameters]binding for zero-property message typesGetPolicy()now falls back to the default policy when the named policy is not foundDocumentation
FMED017/FMED018diagnostic documentationIEndpointConvention<T>interface, scoping, and deduplicationHandlerEndpointGroupAttributeandMediatorConfigurationAttributeDependencies
Full Changelog: FoundatioFx/Foundatio.Mediator@v1.1.0...v1.2.0
Commits viewable in compare view.