Migration Guides (v1 -> v2) — Idempotency
Upgrade checklist from published NuGet v1.0.0 → v2.0.0 (BC-001–BC-004).
Migrating v1.0.0 to v2.0.0 (BC-001–BC-004)
Section titled “Migrating v1.0.0 to v2.0.0 (BC-001–BC-004)”- Header stripping (
BC-001/SEC-001):IdempotencyOptions.ResponseHeadersBlocklistremovesSet-Cookie,Authorization, and sensitive headers before storing responses. - Minimal API precedence (
BC-002/ADR-018):[Idempotent]attribute metadata takes precedence cleanly over route group defaults. SystemTextJsonIdempotencySerializerResult handling (BC-003): Conditional Result property suppression avoids leaking internal wrapper fields on replay.- HTTP 400 on malformed keys (
BC-004): InvalidIdempotency-Keyvalues now emit400 Bad Request(RFC 9110) instead of unhandled500errors.
Note on Unreleased Local v3.0.0–v3.1.0 (BC-005–BC-007)
Section titled “Note on Unreleased Local v3.0.0–v3.1.0 (BC-005–BC-007)”Local workspace 3.1.0 adds 4-byte LE length-prefixed framing in IdempotencyFingerprintHasher, AND status = 1 immutability guards in MarkFailedAsync, and eager startup evaluation of configure in AddIdempotencyCore (unpublished on NuGet).