Skip to content

Commit 064d35f

Browse files
authored
Releasing 0.30.4 (#1420)
1 parent cd618ac commit 064d35f

File tree

2 files changed

+34
-2
lines changed

2 files changed

+34
-2
lines changed

CHANGELOG.md

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,35 @@
1-
# 0.30.3
1+
# 0.30.4
2+
## What's Changed
3+
### Formatting deletes `unsafe` modifier [#1416](https://github.com/belav/csharpier/issues/1416)
4+
Formatting a using directive with an unsafe modifier resulted in the lose of the unsafe keyword
5+
```c#
6+
// input & expected output
7+
using unsafe NvapiQueryInterface = delegate* unmanaged[Cdecl]<uint, nint>;
8+
9+
// 0.30.3
10+
using NvapiQueryInterface = delegate* unmanaged[Cdecl]<uint, nint>;
11+
```
12+
### CSharpier keeps adding a newline every time a file is formatted [#1408](https://github.com/belav/csharpier/issues/1408)
13+
In some cases if a file ended with a comment, CSharpier would add a new extra blank line above the comment each time it formatted the file
14+
```c#
15+
// input & expected outpet
16+
using System;
17+
18+
namespace MyCompany.MyNamespace;
19+
20+
// Comment block
21+
22+
// 0.30.3
23+
using System;
24+
25+
namespace MyCompany.MyNamespace;
26+
27+
28+
// Comment block
29+
```
30+
31+
**Full Changelog**: https://github.com/belav/csharpier/compare/30.0.4...0.30.4
32+
# 0.30.3
233
## What's Changed
334
### CSharpier.MsBuild doesn't fail the github action anymore [#1357](https://github.com/belav/csharpier/issues/1357)
435
The changes for [1311](https://github.com/belav/csharpier/pull/1311) caused CSharpier.MsBuild to not report unformatted files as errors on linux.
@@ -2834,5 +2865,6 @@ Thanks go to @pingzing
28342865
28352866
28362867
2868+
28372869
28382870

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.3</Version>
3+
<Version>0.30.4</Version>
44
<PackageLicenseExpression>MIT</PackageLicenseExpression>
55
<RepositoryUrl>https://github.com/belav/csharpier</RepositoryUrl>
66
<RepositoryType>git</RepositoryType>

0 commit comments

Comments
 (0)