Migration Guides (v1 -> v2 -> v3) — DomainPrimitives
Migrating v1.0.0 to v2.0.0 (BC-001–BC-008)
Section titled “Migrating v1.0.0 to v2.0.0 (BC-001–BC-008)”- Removed
Mapsteradapters: Replace anyMapstersource-generated mapping hooks with explicit projections. - Transitive test/API deps removed: Add explicit references to
Swashbuckle/xunitif your project relied on them transitively. SmartEnum.FromName&PrimitiveBuilder: UpdateFromName(name, ignoreCase)calls and remove calls toPrimitiveBuilder.BuildResult().[ValueObject]STJ deserialization: Deserialization now routes throughCreate()and rejects invalid JSON payloads.
Migrating v2.0.0 to v3.0.0 (BC-009–BC-024)
Section titled “Migrating v2.0.0 to v3.0.0 (BC-009–BC-024)”- Default
StrongId/DatePrimitiveguards: Explicit casts ondefault(T)throwInvalidOperationException;ToString()returnsstring.Empty. - Numeric
checkedarithmetic: Overflow in[NumericPrimitive<T>]arithmetic raisesOverflowException. DateTimeUTC normalization:DatePrimitivenormalizesDateTimevalues to UTC; EF CoreDateTimeOffset/TimeOnlykind mapping fixed.SmartEnum.All&DP0018:AllreturnsReadOnlyCollection<T>; mutable collections on[ValueObject]triggerDP0018.