Skip to content

Commit 52ec290

Browse files
authored
2.1.0 (#53)
* Dependabot updates * Addressed build warnings * Updated release notes
1 parent c15055f commit 52ec290

File tree

6 files changed

+23
-12
lines changed

6 files changed

+23
-12
lines changed

.github/workflows/GithubActionsRelease.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,10 @@ jobs:
5656
with:
5757
persist-credentials: false
5858

59-
- name: Use prelease dotnet
60-
uses: actions/setup-dotnet@v2
59+
- name: Use dotnet
60+
uses: actions/setup-dotnet@v4
6161
with:
6262
dotnet-version: '8.x'
63-
include-prerelease: true
6463

6564
- name: Get the version
6665
run: echo "version=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV

.github/workflows/GithubActionsWIP.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,9 @@ jobs:
3636
persist-credentials: false
3737

3838
- name: Use prelease dotnet
39-
uses: actions/setup-dotnet@v2
39+
uses: actions/setup-dotnet@v4
4040
with:
4141
dotnet-version: '8.x'
42-
include-prerelease: true
4342

4443
- name: Build CompressedStaticFiles.AspNetCore 🔧
4544
run: dotnet build ${{env.projectCSFB}} --configuration ${{env.buildConfiguration}} --version-suffix ${{env.ciSuffix}}

CompressedStaticFiles.AspNet.Tests/CompressedStaticFiles.AspNet.Tests.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="8.0.0" />
10-
<PackageReference Include="coverlet.collector" Version="6.0.0">
9+
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="8.0.3" />
10+
<PackageReference Include="coverlet.collector" Version="6.0.2">
1111
<PrivateAssets>all</PrivateAssets>
1212
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1313
</PackageReference>
1414
<PackageReference Include="FluentAssertions" Version="6.12.0" />
15-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0-preview-23531-01" />
15+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
1616
<PackageReference Include="NSubstitute" Version="5.1.0" />
17-
<PackageReference Include="xunit" Version="2.6.1" />
18-
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.3">
17+
<PackageReference Include="xunit" Version="2.7.0" />
18+
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.7">
1919
<PrivateAssets>all</PrivateAssets>
2020
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2121
</PackageReference>

CompressedStaticFiles.AspNet/AlternativeImageFile.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public void Apply(HttpContext context)
5050
context.Request.Path = new PathString(matchedPath);
5151

5252
//Ensure that a caching proxy knows that it should cache based on the Accept header.
53-
context.Response.Headers.Add("Vary", "Accept");
53+
context.Response.Headers["Vary"] = "Accept";
5454
}
5555

5656

CompressedStaticFiles.AspNet/CompressedAlternativeFile.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public void Prepare(IContentTypeProvider contentTypeProvider, StaticFileResponse
5555
if (contentTypeProvider.TryGetContentType(staticFileResponseContext.File.PhysicalPath.Remove(
5656
staticFileResponseContext.File.PhysicalPath.Length - fileExtension.Length, fileExtension.Length), out var contentType))
5757
staticFileResponseContext.Context.Response.ContentType = contentType;
58-
staticFileResponseContext.Context.Response.Headers.Add("Content-Encoding", new[] { compressionType });
58+
staticFileResponseContext.Context.Response.Headers["Content-Encoding"] = new[] { compressionType };
5959
}
6060
}
6161
}

ReleaseNotes.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,19 @@ title: ReleaseNotes
55
# Release Notes
66

77

8+
#### [2.1.0](https://github.com/Material-Blazor/CompressedStaticFiles.AspNet/tree/2.1.0)
9+
10+
Released 2024-03-13
11+
12+
**Updates**
13+
- .Net 8.0.3
14+
- Dependabot updates
15+
- Support added for zstd compression (Thanks to a contribution from Jeremy Kescher)
16+
17+
**Breaking Changes**
18+
19+
**Known issues**
20+
821
#### [2.0.0](https://github.com/Material-Blazor/CompressedStaticFiles.AspNet/tree/2.0.0)
922

1023
Released 2023-11-14

0 commit comments

Comments
 (0)