From 97c00620028674ed150497cb2ace1babbd3dd2ec Mon Sep 17 00:00:00 2001 From: Bela VanderVoort Date: Fri, 22 Nov 2024 10:44:42 -0600 Subject: [PATCH] Releasing 0.30.2 --- CHANGELOG.md | 52 ++++++++++++++++++++++++++++++++++++++++++++++- Nuget/Build.props | 2 +- 2 files changed, 52 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7ef0f0c66..6fa5f7203 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,53 @@ -# 0.30.1 +# 0.30.2 +## What's Changed +### Collection expression inside a dictionary adds unexpected new line [#1390](https://github.com/belav/csharpier/issues/1390) +```c# +// input & expected output +Dictionary dictionary = new() +{ + { + "Key", + [ + "SomeValue__________________________________________", + "SomeValue__________________________________________", + ] + }, +}; + +// 0.30.1 +Dictionary dictionary = new() +{ + { + "Key", + + [ + "SomeValue__________________________________________", + "SomeValue__________________________________________", + ] + }, +}; +``` +### Failed syntax tree validation reported when trailing comma added before a trailing comment [#1388](https://github.com/belav/csharpier/issues/1388) +With the following code, CSharpier will add a trailing comma before the trailing comment. +CSharpier's syntax tree validation was incorrectly reporting this as a failure. +```c# +// input +var someObject = new SomeObject() +{ + Property1 = 1, + Property2 = 2 // Trailing Comment +}; + +// output +var someObject = new SomeObject() +{ + Property1 = 1, + Property2 = 2, // Trailing Comment +}; +``` + +**Full Changelog**: https://github.com/belav/csharpier/compare/0.30.1...0.30.2 +# 0.30.1 ## What's Changed Revert tool command back to `dotnet-csharpier`, it was supposed to be changed to `csharpier` for 1.0.0 @@ -2767,4 +2816,5 @@ Thanks go to @pingzing + diff --git a/Nuget/Build.props b/Nuget/Build.props index c75d7165f..e88eb0099 100644 --- a/Nuget/Build.props +++ b/Nuget/Build.props @@ -1,6 +1,6 @@ - 0.30.1 + 0.30.2 MIT https://github.com/belav/csharpier git