Skip to content

Commit 384f7a1

Browse files
authored
Releasing 0.30.2 (#1393)
1 parent 576a75b commit 384f7a1

File tree

2 files changed

+52
-2
lines changed

2 files changed

+52
-2
lines changed

CHANGELOG.md

Lines changed: 51 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,53 @@
1-
# 0.30.1
1+
# 0.30.2
2+
## What's Changed
3+
### Collection expression inside a dictionary adds unexpected new line [#1390](https://github.com/belav/csharpier/issues/1390)
4+
```c#
5+
// input & expected output
6+
Dictionary<string, string[]> dictionary = new()
7+
{
8+
{
9+
"Key",
10+
[
11+
"SomeValue__________________________________________",
12+
"SomeValue__________________________________________",
13+
]
14+
},
15+
};
16+
17+
// 0.30.1
18+
Dictionary<string, string[]> dictionary = new()
19+
{
20+
{
21+
"Key",
22+
23+
[
24+
"SomeValue__________________________________________",
25+
"SomeValue__________________________________________",
26+
]
27+
},
28+
};
29+
```
30+
### Failed syntax tree validation reported when trailing comma added before a trailing comment [#1388](https://github.com/belav/csharpier/issues/1388)
31+
With the following code, CSharpier will add a trailing comma before the trailing comment.
32+
CSharpier's syntax tree validation was incorrectly reporting this as a failure.
33+
```c#
34+
// input
35+
var someObject = new SomeObject()
36+
{
37+
Property1 = 1,
38+
Property2 = 2 // Trailing Comment
39+
};
40+
41+
// output
42+
var someObject = new SomeObject()
43+
{
44+
Property1 = 1,
45+
Property2 = 2, // Trailing Comment
46+
};
47+
```
48+
49+
**Full Changelog**: https://github.com/belav/csharpier/compare/0.30.1...0.30.2
50+
# 0.30.1
251
## What's Changed
352
Revert tool command back to `dotnet-csharpier`, it was supposed to be changed to `csharpier` for 1.0.0
453

@@ -2767,4 +2816,5 @@ Thanks go to @pingzing
27672816
27682817
27692818
2819+
27702820

Nuget/Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project>
22
<PropertyGroup>
3-
<Version>0.30.1</Version>
3+
<Version>0.30.2</Version>
44
<PackageLicenseExpression>MIT</PackageLicenseExpression>
55
<RepositoryUrl>https://github.com/belav/csharpier</RepositoryUrl>
66
<RepositoryType>git</RepositoryType>

0 commit comments

Comments
 (0)