From e865d6e243968e89e9dda0f621b53d96643ee271 Mon Sep 17 00:00:00 2001 From: Riccardo De Agostini Date: Sat, 20 Aug 2022 17:17:10 +0200 Subject: [PATCH] Update changelog and bump version to 1.0.0-preview.4 --- CHANGELOG.md | 9 +++++++++ VERSION | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bd14b37..eba761d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Known problems introduced by this release +## [1.0.0-preview.4](https://github.com/Tenacom/Louis/releases/tag/1.0.0-preview.4) (2022-08-20) + +### Changes to existing features + +- Type parameters `T1` and `T2` in `Louis.Fluency.FluentAction` and `Louis.Fluency.FluentAction` delegates are no longer contravariant. +Contravariance lead to the need for more verbose lambda syntax when `T1` and/or `T2` was a value type. For example, given a `StringBuilder builder` and a `byte[] bytes`, +to concatenate the hexadecimal representations of all bytes in the array you would now write `builder.ForEach(bytes, (sb, b) => sb.Append(b.ToString("x2")))`, whereas +in previous versions of Louis you had to write the same code as `builder.ForEach(bytes, (StringBuilder sb, in byte b) => sb.Append(b.ToString("x2")))`. + ## [1.0.0-preview.3](https://github.com/Tenacom/Louis/releases/tag/1.0.0-preview.3) (2022-08-20) ### New features diff --git a/VERSION b/VERSION index de9c07d..2c24b09 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.0.0-preview.3 +1.0.0-preview.4