Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.1.0 #53

Merged
merged 3 commits into from
Mar 13, 2024
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
5 changes: 2 additions & 3 deletions .github/workflows/GithubActionsRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/GithubActionsWIP.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="8.0.0" />
<PackageReference Include="coverlet.collector" Version="6.0.0">
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="8.0.3" />
<PackageReference Include="coverlet.collector" Version="6.0.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0-preview-23531-01" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="NSubstitute" Version="5.1.0" />
<PackageReference Include="xunit" Version="2.6.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.3">
<PackageReference Include="xunit" Version="2.7.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.7">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
2 changes: 1 addition & 1 deletion CompressedStaticFiles.AspNet/AlternativeImageFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}


Expand Down
2 changes: 1 addition & 1 deletion CompressedStaticFiles.AspNet/CompressedAlternativeFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
}
}
}
Expand Down
13 changes: 13 additions & 0 deletions ReleaseNotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading