Skip to content

Commit

Permalink
Releasing 0.30.4 (#1420)
Browse files Browse the repository at this point in the history
  • Loading branch information
belav authored Dec 28, 2024
1 parent cd618ac commit 064d35f
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
34 changes: 33 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,35 @@
# 0.30.3
# 0.30.4
## What's Changed
### Formatting deletes `unsafe` modifier [#1416](https://github.com/belav/csharpier/issues/1416)
Formatting a using directive with an unsafe modifier resulted in the lose of the unsafe keyword
```c#
// input & expected output
using unsafe NvapiQueryInterface = delegate* unmanaged[Cdecl]<uint, nint>;

// 0.30.3
using NvapiQueryInterface = delegate* unmanaged[Cdecl]<uint, nint>;
```
### CSharpier keeps adding a newline every time a file is formatted [#1408](https://github.com/belav/csharpier/issues/1408)
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
```c#
// input & expected outpet
using System;

namespace MyCompany.MyNamespace;

// Comment block
// 0.30.3
using System;

namespace MyCompany.MyNamespace;


// Comment block
```

**Full Changelog**: https://github.com/belav/csharpier/compare/30.0.4...0.30.4
# 0.30.3
## What's Changed
### CSharpier.MsBuild doesn't fail the github action anymore [#1357](https://github.com/belav/csharpier/issues/1357)
The changes for [1311](https://github.com/belav/csharpier/pull/1311) caused CSharpier.MsBuild to not report unformatted files as errors on linux.
Expand Down Expand Up @@ -2834,5 +2865,6 @@ 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.3</Version>
<Version>0.30.4</Version>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<RepositoryUrl>https://github.com/belav/csharpier</RepositoryUrl>
<RepositoryType>git</RepositoryType>
Expand Down

0 comments on commit 064d35f

Please sign in to comment.