Releases: PawelGerr/Thinktecture.Runtime.Extensions
Releases · PawelGerr/Thinktecture.Runtime.Extensions
8.0.2
8.0.1
8.0.0
- [Breaking] Replaced (equality-based) Switch/Map with index-based ones.
- Reason: perf + dozens of (generic) overloads make the methods difficult to use.
- Migration from v7 to v8
- Adding
sealed
/readonly
onclass
/struct
is not necessary anymore, source gen takes this over - Added discriminated unions (regular and ad hoc)
- A union can be a struct or a ref struct.
- Args of switch/map must be named.
- Access modifier of union ctors are configurable + implicit conversions can be omitted.
- Smart enums, value object and unions can be nested
- [.NET 9] String-based smart enums are ISpanParsable
- [.NET 9] State and result of methods Switch/Map can be a ref struct
- Unions and value objects structs disallow default(T) and parameterless ctors by default. Value objects are configurable via AllowDefaultStructs.
- Union structs throw InvalidOperationException if they are not initialized or initialized with default value
- DefaultInstanceProperty is generated if AllowDefaultStructs is set to true
- Non-hardcoded method args are escaped by default
- EF value converter shouldn't do unnecessary round-trip conversion
- Renamed generic type parameter from
TContext
toTState
- Bugfix in analyzer regadring arrays
7.6.1
8.0.0-beta12
- [.NET 9] State and result of methods
Switch
/Map
can be aref struct
- [.NET 9] String-based smart enums are
ISpanParsable
8.0.0-beta11
- Smart enums, value object and unions can be nested
- Unions skip generation of (implicit/explicit) conversions if the member type is an interface
- Unions can have members of same type
- Renamed generic type parameter from TContext to TState
- Unions using
UnionAttribute<T1, T2>
are calledad hoc unions
- Implemented "regular" unions
7.6.0
- Added support for EF Core 9
- EF value converter tries to convert provided value to key type to improve user experience
- Smart enums and value object can be nested
- (implicit/explicit) Conversions are not generated if the key type ob an smart enum/value object is an interface
8.0.0-beta10
- EF value converter shouldn't do unnecessary round-trip conversion
- Arrays can be used with unions as well
8.0.0-beta09
- Removed
@
from error message
8.0.0-beta08
- EF value converter shouldn't do unnecessary round-trip conversion
DefaultInstanceProperty
is generated ifAllowDefaultStructs
is set totrue
- Union structs throw
InvalidOperationException
if they are not initialized or initialized with default value - Non-hardcoded method args are escaped by default