Releases: dtanglr/Primitively
v1.4.22
v1.5.0-beta.1
Added support for source generating Primitively types that encapsulate decimal, double and float (single) numeric values. For example: -
[Double(2, Minimum = -273.15d)]
public partial record struct Celsius : ITemperature<Celsius>
{
public static Celsius AbsoluteZero => new(-273.15d);
public static Celsius WaterMeltingPoint => new(0d);
public static Celsius WaterBoilingPoint => new(99.9839d);
public static explicit operator Kelvin(Celsius value) => new(value + 273.15d);
public static explicit operator Fahrenheit(Celsius value) => new((value * (9d / 5d)) + 32d);
public static explicit operator Rankine(Celsius value) => new((value + 273.15d) * (9d / 5d));
}
v1.4.21
v1.4.20
v1.4.19
v1.4.18
This release contains a hotfix to a bug that affected all Primitively source-generated integer types.
The HasValue property was incorrectly returning false for instances encapsulating the default instance value of zero, despite the value falling between the configured Minimum and Maximum value rules for the type.
The base template for integers has been updated as part of the fix. The unit tests have also been updated because previously they supported the incorrect logic that caused the bug! Oops.
v1.4.16
v1.4.15
Adds support for MongoDB BSON serialization and decouples Primitively.AspNetCore into separate MVC and Swagger class libs.
It includes a new dependency injection configuration to improve future extensibility and two new example projects to demonstrate Primitively usage.
The Primitively.AspNetCore NuGet package is deprecated in this release and removed in the next release. Use Primitively.AspNetCore.Mvc and Primitively.AspNetCore.SwaggerGen instead.
v1.4.15-rc.1
Adds support for MongoDB BSON serialization and decouples Primitively.AspNetCore into separate MVC and Swagger class libs.
It also includes a new dependency injection setup configuration to improve future extensibility and two example projects to demonstrate Primitively usage.
The Primitively.AspNetCore nuget package will be deprecated in the next release and removed in subsequent releases.
v1.4.3-beta
Adds support for MongoDB serialization and decouples Primitively.AspNetCore into separate MVC and Swagger class libs. It also includes a new dependency injection setup configuration to improve future extensibility.