Skip to content

feat(fallback)!: unify options configuration - #174

Merged
thomhurst merged 2 commits into
mainfrom
issue-159-fallback-options-lambda
Aug 23, 2026
Merged

feat(fallback)!: unify options configuration#174
thomhurst merged 2 commits into
mainfrom
issue-159-fallback-options-lambda

Conversation

@thomhurst

Copy link
Copy Markdown
Owner

Summary

  • replace FallbackWithNotifications and typed optional callbacks with Fallback(..., configure) across untyped/typed shields and builders
  • preserve OnFallback -> OnFallbackAsync -> recovery ordering and failure propagation
  • update KEV003/KEV005 coverage, Kevlar.Testing descriptors, public API baselines, docs, benchmarks, and changelog

Breaking changes

  • removes all pre-release FallbackWithNotifications overloads
  • removes typed optional onFallback parameters; configure FallbackOptions instead

Validation

  • dotnet build Kevlar.slnx -c Release --no-restore (0 warnings)
  • Kevlar.Tests: 736 passed
  • Kevlar.IntegrationTests: 118 passed
  • Kevlar.Analyzers.Tests: 53 passed
  • Kevlar.Testing.Tests: 31 passed
  • Kevlar.Chaos.Tests: 23 passed
  • Kevlar.Extensions.RateLimiting.Tests: 19 passed
  • Kevlar.NetStandard.Tests: 5 passed
  • Kevlar.AllocationTests: 3 passed
  • documentation snippets: 97 compiled and executed
  • npm run build in docs/

Benchmark

FallbackBenchmarks.Kevlar_Triggered, .NET 10, BenchmarkDotNet 0.15.8:

Revision Mean Allocated
main 1.298 us 200 B
branch 1.303 us 200 B

Runtime delta is +0.4%, within measurement noise; allocations are unchanged.

Closes #159

Replace notification-specific overloads and optional callbacks with the standard configure-lambda pattern.

BREAKING CHANGE: FallbackWithNotifications and typed optional onFallback parameters are removed.

Refs #159
@coderabbitai

coderabbitai Bot commented Aug 23, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: f0c63138-82a9-4f92-a7f1-46414f522285


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 57dc3548a4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/Kevlar/ShieldOfT.cs
@thomhurst
thomhurst merged commit ad3860e into main Aug 23, 2026
6 checks passed
@thomhurst
thomhurst deleted the issue-159-fallback-options-lambda branch August 23, 2026 14:24
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.

feat(fallback): unify configuration behind Fallback options-lambda overloads

1 participant