Skip to content

Releases: PawelGerr/Thinktecture.Runtime.Extensions

8.0.2

18 Dec 11:21
8f4e6d7
Compare
Choose a tag to compare
  • Fix for Switch/Map

8.0.1

11 Dec 20:48
b65d089
Compare
Choose a tag to compare
  • Slightly improved perf of source gen and analyzers

8.0.0

11 Dec 20:47
4e4070d
Compare
Choose a tag to compare
  • [Breaking] Replaced (equality-based) Switch/Map with index-based ones.
  • Adding sealed/readonly on class/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 to TState
  • Bugfix in analyzer regadring arrays

7.6.1

21 Nov 07:46
d03e719
Compare
Choose a tag to compare
  • Added TypedMemberStateFactory for .NET 9

8.0.0-beta12

19 Nov 20:05
b2658b8
Compare
Choose a tag to compare
8.0.0-beta12 Pre-release
Pre-release
  • [.NET 9] State and result of methods Switch/Map can be a ref struct
  • [.NET 9] String-based smart enums are ISpanParsable

8.0.0-beta11

15 Nov 22:46
c195ae3
Compare
Choose a tag to compare
8.0.0-beta11 Pre-release
Pre-release
  • 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 called ad hoc unions
  • Implemented "regular" unions

7.6.0

13 Nov 07:01
5907025
Compare
Choose a tag to compare
  • 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

28 Oct 06:40
9bec95d
Compare
Choose a tag to compare
8.0.0-beta10 Pre-release
Pre-release
  • EF value converter shouldn't do unnecessary round-trip conversion
  • Arrays can be used with unions as well

8.0.0-beta09

23 Oct 21:19
3217eb2
Compare
Choose a tag to compare
8.0.0-beta09 Pre-release
Pre-release
  • Removed @ from error message

8.0.0-beta08

23 Oct 19:44
2c88350
Compare
Choose a tag to compare
8.0.0-beta08 Pre-release
Pre-release
  • EF value converter shouldn't do unnecessary round-trip conversion
  • DefaultInstanceProperty is generated if AllowDefaultStructs is set to true
  • Union structs throw InvalidOperationException if they are not initialized or initialized with default value
  • Non-hardcoded method args are escaped by default