Skip to content

Releases: jtmueller/RustyOptions

bool.Then()

28 Dec 07:24
1ca696d
Compare
Choose a tag to compare

Adds bool.Then() and bool.ThenSome() extension methods, as well as async versions.

.NET 8

03 Dec 02:13
b7e0935
Compare
Choose a tag to compare

Support for .NET 8 and IUtf8SpanFormattable

0.9.0: SelectWhere

29 Apr 06:23
e5bb3d1
Compare
Choose a tag to compare

Do you want to both transform values into other types, and filter them at the same time? Now you can, with SelectWhere!

var strings = new[] { "1", "two", "NaN", "four", "5", "six", "7", "eight", "9", "10" };

var ints = strings.SelectWhere(Option.Parse<int>);

Assert.Equal(new[] { 1, 5, 7, 9, 10 }, ints);

0.8.0: Documentation and API Completion

06 Feb 20:26
d24dbb8
Compare
Choose a tag to compare

This release adds more-complete API documentation, and fills in a few missing API methods in collection support and F# conversion.

0.7.0: Adding a Unit type

01 Feb 23:12
2e2b305
Compare
Choose a tag to compare

This release adds the Unit type, which is needed for Result-returning methods that might error, but do not return a value if successful. Supports JSON serialization and conversion to ValueTuple and the F# unit.

FSharp.Core version sync

31 Jan 17:50
afca138
Compare
Choose a tag to compare

Previous release was targeting FSharp.Core 7.0 in the .NET 6 version. This version now targets FSharp.Core 6.0, while the .NET 7 version targets FSharp.Core 7.0

F# Conversion Support

24 Jan 21:14
82bd8c0
Compare
Choose a tag to compare

This release adds the RustyOptions.FSharp package, allowing easier interop between C# code using RustyOptions, and F# code using the built-in Option, ValueOption, and Result types.

JSON Serialization Support

18 Jan 03:00
f9f5414
Compare
Choose a tag to compare

This release adds JSON Serialization support (System.Text.Json only, sorry Newtonsoft) and Option.ParseEnum<T>.

Minor breaking change: Because the default value of the Result struct is in the Err state, but the actual error value will be set to the default value for the error type, we cannot prevent the error value from being null in this specific circumstance. As a result, the Result.IsErr method has had its nullable reference type annotations adjusted to reflect this reality. You may have to check error values for null or assert they are non-null with the ! operator in cases where you previously did not.

What's Changed

Full Changelog: 0.4.0...0.5.0

0.4.0: Async Support (#12)

17 Jan 06:03
12229d8
Compare
Choose a tag to compare

Adding Async and IAsyncEnumerable support.

0.3.0

09 Jan 16:17
ad1b452
Compare
Choose a tag to compare
0.3.0 Pre-release
Pre-release

This release adds INumber<T> support for .NET 7.0