Skip to content

Commit

Permalink
Releasing 0.30.2
Browse files Browse the repository at this point in the history
  • Loading branch information
belav committed Nov 22, 2024
1 parent 576a75b commit 97c0062
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 2 deletions.
52 changes: 51 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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<string, string[]> dictionary = new()
{
{
"Key",
[
"SomeValue__________________________________________",
"SomeValue__________________________________________",
]
},
};

// 0.30.1
Dictionary<string, string[]> 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

Expand Down Expand Up @@ -2767,4 +2816,5 @@ Thanks go to @pingzing
2 changes: 1 addition & 1 deletion Nuget/Build.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<Version>0.30.1</Version>
<Version>0.30.2</Version>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<RepositoryUrl>https://github.com/belav/csharpier</RepositoryUrl>
<RepositoryType>git</RepositoryType>
Expand Down

0 comments on commit 97c0062

Please sign in to comment.