Skip to content

Search EricksonLopez.* Ecosystem

Type a library name, NuGet package ID, .NET type, or architectural concept to search across the portal.

Migration Guides (v1 -> v2 -> v3)

L0StableNuGet: v3.0.0Local HEAD: v3.2.0AOT: Partial

Upgrade paths across the three published NuGet majors (v1.0.0 → v2.0.0 → v3.0.0), grounded directly in CHANGELOG.md breaking-change records (BC-001 through BC-019).

  1. Replace Finally with Inspect and FoldError with MapFailure:
    v1.0.0
    // var mapped = result.FoldError(err => Error.Failure("Mapped", err.Description));
    // result.Finally(r => Log(r));
    // v2.0.0+
    string mapped = result.MapFailure(static err => $"Error: {err.Description}", "OK");
    Result remapped = result.MapError(static err => Error.Failure("Mapped", err.Description));
    result.Inspect(static r => Log(r));
  2. Replace Result<T>.ToResult() / WithoutValue() with .DiscardValue():
    Result nonGeneric = typedResult.DiscardValue();
  3. Update ResultMetrics static calls: Replace RecordSuccess / RecordFailure with ResultMetrics.StaticTrackSuccess / StaticTrackFailure.
  4. External package major upgrades: FluentValidation v12, MediatR v14, NUnit 4.6.1, xunit.v3.assert 4.0.0.
  1. Uninitialized Result<T, E> & default guard: default(Result<T>) now reports IsFailure == false and ToString() == "Uninitialized". Always return Result.Success(...) or Result.Failure(...).
  2. JSON depth limit: ErrorJsonConverter.MaxAllowedDepth is capped at 32 to guard against deeply nested inner-error payloads.
  3. FluentValidation PII redaction: Sensitive property names (password, token, secret, cvv, etc.) are automatically masked as "[REDACTED]".
  4. Telemetry & JSON discriminator: OpenTelemetry tags emit result.outcome = "uninitialized" and JSON serialization includes "isUninitialized": true for default structs.