Skip to content

Conversation

@JimBobSquarePants
Copy link
Member

Prerequisites

  • I have written a descriptive pull-request title
  • I have verified that there are no overlapping pull-requests open
  • I have verified that I am following matches the existing coding patterns and practice as demonstrated in the repository. These follow strict Stylecop rules 👮.
  • I have provided test coverage for my change (where applicable)

Description

Updates ImageSharp to v3.1.8 and uses async disposal on relevant resources.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR upgrades ImageSharp to v3.1.8 and updates resource disposal to leverage asynchronous disposal for improved efficiency when handling I/O operations. Key changes include:

  • Converting synchronous using statements to async disposal in ImageSharpMiddleware.cs.
  • Updating StreamWriter disposal to use await using in ImageCacheMetadata.cs.

Reviewed Changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
src/ImageSharp.Web/Middleware/ImageSharpMiddleware.cs Updated using statements for async disposal of streams in request processing.
src/ImageSharp.Web/ImageCacheMetadata.cs Updated StreamWriter disposal to async disposal.
Files not reviewed (1)
  • src/ImageSharp.Web/ImageSharp.Web.csproj: Language not supported

@JimBobSquarePants JimBobSquarePants merged commit e38bc79 into main Apr 27, 2025
8 checks passed
@JimBobSquarePants JimBobSquarePants deleted the js/update-refs branch April 27, 2025 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants