Skip to content

fix: 1.0.1 patch for DI floor, CQRS dispatchers, and events - #21

Merged
illia1f merged 5 commits into
mainfrom
fix/patch-1.0.1
Nov 11, 2026
Merged

illia1f merged 5 commits into
mainfrom
fix/patch-1.0.1

Conversation

@illia1f

@illia1f illia1f commented Nov 11, 2026

Copy link
Copy Markdown
Owner

Patch fixes found after 1.0.0. No public API changes. CHANGELOG lists them under [Unreleased] for 1.0.1.

  • Keyed descriptors on the DI floor: AddRequestFlow threw InvalidOperationException ("This service descriptor is keyed") when a keyed service was registered before it and the app resolved Microsoft.Extensions.DependencyInjection.Abstractions 8.0.0 or 8.0.1. The registry lookup checks the service type before reading ImplementationInstance.
  • CI at the dependency floor: a new step runs RequestFlow.Tests.Unit on net8.0 with Microsoft.Extensions.DependencyInjection 8.0.0, which resolves the Abstractions 8.0.1 floor that src/RequestFlow declares. tests/Directory.Build.props exposes the version as DependencyInjectionVersion.
  • RF0013 reported once: an interface declared as the strategy for a second target no longer adds RF0014.
  • CQRS dispatcher split: ICommandDispatcher and IQueryDispatcher resolve to separate internal classes, so a query dispatcher can no longer be cast to a command dispatcher. The ValueTask pair is split the same way. The cast was never documented.
  • Handlerless parallel events: a ParallelPublishStrategy event with no applicable handler runs on the sequential plan and skips the task-array allocation. Cancellation and completion behavior are unchanged.
  • Docs: the detached strategy sample in docs/events.md takes IHostApplicationLifetime instead of a CancellationToken the container cannot resolve. README and ROADMAP link the 1.0.0 changelog anchor by its 2026-10-17 date.

Validation:

  • dotnet build -c Release: 0 warnings, 0 errors.
  • dotnet test -c Release: all pass on net462, net8.0, and net10.0. RequestFlow.Tests.Unit ran 1110, 1139, and 1139 tests; RequestFlow.Cqrs.Tests.Unit ran 68 on each.
  • The dependency-floor step, run locally as written: 1139 of 1139 pass on net8.0, with Abstractions resolved to 8.0.1.
  • git diff --check: passed.

AddRequestFlow read ImplementationInstance on every descriptor, which throws for a keyed descriptor in Microsoft.Extensions.DependencyInjection.Abstractions 8.0.0 and 8.0.1.
The registry lookup now checks the service type first.

CI also runs RequestFlow.Tests.Unit on net8.0 against Microsoft.Extensions.DependencyInjection 8.0.0, which resolves the Abstractions 8.0.1 floor that src/RequestFlow declares.
An interface declared as the strategy for a second target fell through to the abstract-class check and added RF0014.
One class implemented both ICommandDispatcher and IQueryDispatcher, so a resolved query dispatcher could be cast to a command dispatcher.
The ValueTask pair had the same shape.
ParallelEventPlan allocated a task array even when no handler applied.
Cancellation and completion behavior match the parallel plan.
The DetachedStrategy sample took a CancellationToken, which the container cannot resolve.
It now takes IHostApplicationLifetime.
README and ROADMAP linked the 1.0.0 changelog anchor by its old 2026-10-14 date.
@illia1f
illia1f merged commit 36dec99 into main Nov 11, 2026
1 check passed
@illia1f
illia1f deleted the fix/patch-1.0.1 branch November 11, 2026 09:38
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.

1 participant