Skip to content

Releases: dtanglr/Primitively

v1.5.0-beta.1

14 Jul 22:59
Compare
Choose a tag to compare
v1.5.0-beta.1 Pre-release
Pre-release

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

14 Jul 22:49
Compare
Choose a tag to compare

Updated the NuGet packages to the latest versions across all the solution.

v1.4.20

10 Apr 18:05
Compare
Choose a tag to compare

This release is a hotfix for Primitively class libraries that target netStandard2.0 whereby a reference to System.Text.Json was missing.

v1.4.19

10 Apr 00:07
Compare
Choose a tag to compare

This release contains a hotfix that addresses a bug on all source-generated PrimitivelyRepository classes when no Primitively types are declared within the associated class library.

v1.4.18

01 Apr 18:04
Compare
Choose a tag to compare

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

14 Mar 20:48
Compare
Choose a tag to compare

This is a minor update to bump the following NuGet packages:

  • Microsoft.Extensions.DependencyInjection.Abstractions from 8.0.0 to 8.0.1
  • System.Text.Json from 8.0.2 to 8.0.3

v1.4.15

13 Mar 00:56
Compare
Choose a tag to compare

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

12 Jan 00:48
Compare
Choose a tag to compare
v1.4.15-rc.1 Pre-release
Pre-release

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

08 Nov 01:55
Compare
Choose a tag to compare
v1.4.3-beta Pre-release
Pre-release

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.

v1.3.2-alpha

13 May 00:17
Compare
Choose a tag to compare
v1.3.2-alpha Pre-release
Pre-release

This release provides MongoDB BSON serialization of types produced by the Primitively C# source generator.