Skip to content

Commit

Permalink
Releasing 0.27.1 (#1143)
Browse files Browse the repository at this point in the history
  • Loading branch information
belav committed Jan 24, 2024
1 parent da45e84 commit 2254d2d
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 2 deletions.
78 changes: 77 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,79 @@
# 0.27.0
# 0.27.1
## What's Changed
### Support for CSharp Script [#1141](https://github.com/belav/csharpier/issues/1141)
Previously CSharpier would only format files matching `*.cs` which prevented it from formatting C# script files. It now formats `*.{cs,csx}`

Thanks go to @Eptagone for the suggestion
### Weird formatting of invocation chain [#1130](https://github.com/belav/csharpier/issues/1130)
Invocation chains that started with an identifier <= 4 characters were causing a strange break in the first method call. There were other edge cases cleaned up while working on the fix.

```c#
// 0.27.0
var something________________________________________ = x.SomeProperty.CallMethod(
longParameter_____________,
longParameter_____________
)
.CallMethod();

// 0.27.1
var something________________________________________ = x
.SomeProperty.CallMethod(longParameter_____________, longParameter_____________)
.CallMethod();
```

```c#
// 0.27.0
var someLongValue_________________ = memberAccessExpression[
elementAccessExpression
].theMember______________________________();

// 0.27.1
var someLongValue_________________ = memberAccessExpression[elementAccessExpression]
.theMember______________________________();
```

```c#
// 0.27.0
someThing_______________________
?.Property
.CallMethod__________________()
.CallMethod__________________();

// 0.27.1
someThing_______________________
?.Property.CallMethod__________________()
.CallMethod__________________();
```

Thanks go to @Rudomitori for reporting the issue
### "Failed syntax tree validation" for raw string literals [#1129](https://github.com/belav/csharpier/issues/1129)
When an interpolated raw string changed indentation due to CSharpier formatting, CSharpier was incorrectly reporting it as failing syntax tree validation.
```c#
// input
CallMethod(CallMethod(
$$"""
SomeString
""", someValue));

// output
CallMethod(
CallMethod(
$$"""
SomeString
""",
someValue
)
);
```
Thanks go to @Rudomitori for reporting the issue

### Adding experimental support using HTTP for the extensions to communicate with CSharpier [#1137](https://github.com/belav/csharpier/pull/1137)
The GRPC support added in 0.27.0 increased the size of the nuget package significantly and has been removed.

CSharpier can now start a kestrel web server to support communication with the extensions once they are all updated.

**Full Changelog**: https://github.com/belav/csharpier/compare/0.27.0...0.27.1
# 0.27.0
## What's Changed
### Improve formatting of lambda expressions [#1066](https://github.com/belav/csharpier/pull/1066)
Many thanks go to @Rudomitori for contributing a number of improvements to the formatting of lambda expressions.
Expand Down Expand Up @@ -1977,3 +2052,4 @@ 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.27.0</Version>
<Version>0.27.1</Version>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<RepositoryUrl>https://github.com/belav/csharpier</RepositoryUrl>
<RepositoryType>git</RepositoryType>
Expand Down

0 comments on commit 2254d2d

Please sign in to comment.