From 4257445616fc466720f8ec43355f28d1306722e2 Mon Sep 17 00:00:00 2001 From: Ruben Schmidmeister <4602612+bash@users.noreply.github.com> Date: Fri, 14 Jul 2023 11:38:32 +0200 Subject: [PATCH] Bump versions and update changelog --- .../Funcky.Analyzers.Package.csproj | 2 +- .../Funcky.Analyzers/AnalyzerReleases.Shipped.md | 1 + Funcky.Xunit/Funcky.Xunit.csproj | 2 +- Funcky/Funcky.csproj | 2 +- changelog.md | 15 +++++++++++++++ 5 files changed, 19 insertions(+), 3 deletions(-) diff --git a/Funcky.Analyzers/Funcky.Analyzers.Package/Funcky.Analyzers.Package.csproj b/Funcky.Analyzers/Funcky.Analyzers.Package/Funcky.Analyzers.Package.csproj index 0057f92b..f0d532ad 100644 --- a/Funcky.Analyzers/Funcky.Analyzers.Package/Funcky.Analyzers.Package.csproj +++ b/Funcky.Analyzers/Funcky.Analyzers.Package/Funcky.Analyzers.Package.csproj @@ -12,7 +12,7 @@ Funcky.Analyzers - 1.2.0 + 1.3.0 Analyzers to guide to the correct usage of Funcky. funcky, analyzers, roslyn true diff --git a/Funcky.Analyzers/Funcky.Analyzers/AnalyzerReleases.Shipped.md b/Funcky.Analyzers/Funcky.Analyzers/AnalyzerReleases.Shipped.md index cc728e21..c0d33a86 100644 --- a/Funcky.Analyzers/Funcky.Analyzers/AnalyzerReleases.Shipped.md +++ b/Funcky.Analyzers/Funcky.Analyzers/AnalyzerReleases.Shipped.md @@ -24,3 +24,4 @@ Rule ID | Category | Severity | Notes λ1007 | Funcky | Warning | OptionMatchAnalyzer λ1008 | Funcky | Warning | OptionMatchAnalyzer +## Release 1.3 diff --git a/Funcky.Xunit/Funcky.Xunit.csproj b/Funcky.Xunit/Funcky.Xunit.csproj index 26c97c96..9b581517 100644 --- a/Funcky.Xunit/Funcky.Xunit.csproj +++ b/Funcky.Xunit/Funcky.Xunit.csproj @@ -5,7 +5,7 @@ enable Package to use Funcky with xUnit Functional Monad xUnit - 2.0.0 + 2.0.1 true snupkg Funcky diff --git a/Funcky/Funcky.csproj b/Funcky/Funcky.csproj index 718624af..d61d5f69 100644 --- a/Funcky/Funcky.csproj +++ b/Funcky/Funcky.csproj @@ -7,7 +7,7 @@ Funcky Funcky is a functional C# library Functional Monad Linq - 3.2.0 + 3.3.0 true snupkg README.md diff --git a/changelog.md b/changelog.md index 47613ca8..73c72d13 100644 --- a/changelog.md +++ b/changelog.md @@ -2,6 +2,21 @@ All notable changes to this project will be documented in this file. Funcky adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## Funcky 3.3.0 | Funcky.Analyzers 1.3.0 | Funcky.Xunit 2.0.1 +This is a relatively minor release focuses on convenience for our monads `Option`, `Either` and `Result`. + +### `GetOrElse` and `OrElse` for all +We've added `GetOrElse` and `OrElse` to `Either` and `Result` bringing them on par with `Option`. \ +The corresponding analyzer now also correctly suggests using these methods instead of `Match` for `Result` and `Either`. + +### `Inspect` for the error case +All three alternative monads `Option`, `Either` and `Result` now support inspecting the «error» case: +* `Option.InspectNone` - executes a side effect only when the option is `None`. +* `Either.InspectLeft` - executes a side effect only when the either is on the `Left` side. +* `Result.InspectError` - executes a side effect only when the result is an `Error`. + +These methods are particularly useful for logging warnings/errors. + ## Funcky 3.2.0 | Funcky.Async 1.2.0 ### List Pattern for Option We've added support for C# 11's List Patterns to `Option`.