Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,61 @@
# 1.2.6
## What's Changed
### [Bug]: XML with DOCTYPE results in "invalid xml" warning [#1809](https://github.com/belav/csharpier/issues/1809)
CSharpier was not formatting xml that included a doctype and instead reporting that it was invalid xml.
```xml
<?xml version="1.0"?>
<!DOCTYPE staff SYSTEM "staff.dtd"[
<!ENTITY ent1 "es">
]>
<staff></staff>
```
### [Bug]: Initializing a span using `stackalloc` leads to different formatting compared to `new` [#1808](https://github.com/belav/csharpier/issues/1808)
When initializing a spacn using stackalloc, it was not being formatting consistently with other code
```c#
// input & expected output
Span<int> metatable = new int[]
{
00000000000000000000000001,
00000000000000000000000002,
00000000000000000000000003,
};

Span<int> metatable = stackalloc int[]
{
00000000000000000000000001,
00000000000000000000000002,
00000000000000000000000003,
};

// 1.2.5
Span<int> metatable = new int[]
{
00000000000000000000000001,
00000000000000000000000002,
00000000000000000000000003,
};

Span<int> metatable =
stackalloc int[] {
00000000000000000000000001,
00000000000000000000000002,
00000000000000000000000003,
};

```
### [Bug]: Comments in otherwise empty object pattern disappear when formatting [#1804](https://github.com/belav/csharpier/issues/1804)
CSharpier was removing comments if they were the only content of an object pattern.
```c#
// input & expected output
var match = obj is {
//Property: 123
};

// 1.2.5
var match = obj is { };
```

**Full Changelog**: https://github.com/belav/csharpier/compare/1.2.5...1.2.6
# 1.2.5
## What's Changed
### Performance issue when running CLI in project with pnpm on Windows [#1781](https://github.com/belav/csharpier/issues/1781)
Expand Down Expand Up @@ -3792,5 +3850,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>1.2.5</Version>
<Version>1.2.6</Version>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<RepositoryUrl>https://github.com/belav/csharpier</RepositoryUrl>
<RepositoryType>git</RepositoryType>
Expand Down