From 13ca68eb3dbc43b2bd0a75f444c3b3016a0c4f85 Mon Sep 17 00:00:00 2001 From: Mark Stega Date: Wed, 13 Mar 2024 14:27:05 -0400 Subject: [PATCH 1/3] Dependabot updates --- .github/workflows/GithubActionsRelease.yml | 5 ++--- .github/workflows/GithubActionsWIP.yml | 3 +-- .../CompressedStaticFiles.AspNet.Tests.csproj | 10 +++++----- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/GithubActionsRelease.yml b/.github/workflows/GithubActionsRelease.yml index bfd7821..1f18782 100644 --- a/.github/workflows/GithubActionsRelease.yml +++ b/.github/workflows/GithubActionsRelease.yml @@ -56,11 +56,10 @@ jobs: with: persist-credentials: false - - name: Use prelease dotnet - uses: actions/setup-dotnet@v2 + - name: Use dotnet + uses: actions/setup-dotnet@v4 with: dotnet-version: '8.x' - include-prerelease: true - name: Get the version run: echo "version=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV diff --git a/.github/workflows/GithubActionsWIP.yml b/.github/workflows/GithubActionsWIP.yml index fdbe25d..479231f 100644 --- a/.github/workflows/GithubActionsWIP.yml +++ b/.github/workflows/GithubActionsWIP.yml @@ -36,10 +36,9 @@ jobs: persist-credentials: false - name: Use prelease dotnet - uses: actions/setup-dotnet@v2 + uses: actions/setup-dotnet@v4 with: dotnet-version: '8.x' - include-prerelease: true - name: Build CompressedStaticFiles.AspNetCore 🔧 run: dotnet build ${{env.projectCSFB}} --configuration ${{env.buildConfiguration}} --version-suffix ${{env.ciSuffix}} diff --git a/CompressedStaticFiles.AspNet.Tests/CompressedStaticFiles.AspNet.Tests.csproj b/CompressedStaticFiles.AspNet.Tests/CompressedStaticFiles.AspNet.Tests.csproj index 1ed723f..84f3a23 100644 --- a/CompressedStaticFiles.AspNet.Tests/CompressedStaticFiles.AspNet.Tests.csproj +++ b/CompressedStaticFiles.AspNet.Tests/CompressedStaticFiles.AspNet.Tests.csproj @@ -6,16 +6,16 @@ - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive - + - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive From 93f579f414d6f0dffdea83d919d110b22bde6433 Mon Sep 17 00:00:00 2001 From: Mark Stega Date: Wed, 13 Mar 2024 14:39:08 -0400 Subject: [PATCH 2/3] Addressed build warnings --- CompressedStaticFiles.AspNet/AlternativeImageFile.cs | 2 +- CompressedStaticFiles.AspNet/CompressedAlternativeFile.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CompressedStaticFiles.AspNet/AlternativeImageFile.cs b/CompressedStaticFiles.AspNet/AlternativeImageFile.cs index e6e3b33..7bae2cf 100644 --- a/CompressedStaticFiles.AspNet/AlternativeImageFile.cs +++ b/CompressedStaticFiles.AspNet/AlternativeImageFile.cs @@ -50,7 +50,7 @@ public void Apply(HttpContext context) context.Request.Path = new PathString(matchedPath); //Ensure that a caching proxy knows that it should cache based on the Accept header. - context.Response.Headers.Add("Vary", "Accept"); + context.Response.Headers["Vary"] = "Accept"; } diff --git a/CompressedStaticFiles.AspNet/CompressedAlternativeFile.cs b/CompressedStaticFiles.AspNet/CompressedAlternativeFile.cs index 8dbf568..565f6c4 100644 --- a/CompressedStaticFiles.AspNet/CompressedAlternativeFile.cs +++ b/CompressedStaticFiles.AspNet/CompressedAlternativeFile.cs @@ -55,7 +55,7 @@ public void Prepare(IContentTypeProvider contentTypeProvider, StaticFileResponse if (contentTypeProvider.TryGetContentType(staticFileResponseContext.File.PhysicalPath.Remove( staticFileResponseContext.File.PhysicalPath.Length - fileExtension.Length, fileExtension.Length), out var contentType)) staticFileResponseContext.Context.Response.ContentType = contentType; - staticFileResponseContext.Context.Response.Headers.Add("Content-Encoding", new[] { compressionType }); + staticFileResponseContext.Context.Response.Headers["Content-Encoding"] = new[] { compressionType }; } } } From e0ff87252ced397668f15f8411aa60c054079270 Mon Sep 17 00:00:00 2001 From: Mark Stega Date: Wed, 13 Mar 2024 14:44:47 -0400 Subject: [PATCH 3/3] Updated release notes --- ReleaseNotes.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/ReleaseNotes.md b/ReleaseNotes.md index e6ee1bf..afbc2cd 100644 --- a/ReleaseNotes.md +++ b/ReleaseNotes.md @@ -5,6 +5,19 @@ title: ReleaseNotes # Release Notes +#### [2.1.0](https://github.com/Material-Blazor/CompressedStaticFiles.AspNet/tree/2.1.0) + +Released 2024-03-13 + +**Updates** +- .Net 8.0.3 +- Dependabot updates +- Support added for zstd compression (Thanks to a contribution from Jeremy Kescher) + +**Breaking Changes** + +**Known issues** + #### [2.0.0](https://github.com/Material-Blazor/CompressedStaticFiles.AspNet/tree/2.0.0) Released 2023-11-14