Skip to content

Fix DecoderOptions handler.#323

Merged
JimBobSquarePants merged 2 commits into
mainfrom
js/critical-fix-decoder-options
Apr 5, 2023
Merged

Fix DecoderOptions handler.#323
JimBobSquarePants merged 2 commits into
mainfrom
js/critical-fix-decoder-options

Conversation

@JimBobSquarePants

Copy link
Copy Markdown
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

The current OnBeforeLoadAsync delegate is useless as DecoderOptions properties are init-only. This PR includes an emergency breaking change which updates the method to return options themselves.

@codecov

codecov Bot commented Apr 5, 2023

Copy link
Copy Markdown

Codecov Report

Merging #323 (6071b4e) into main (4fdc000) will increase coverage by 0%.
The diff coverage is 100%.

@@         Coverage Diff         @@
##           main   #323   +/-   ##
===================================
  Coverage    85%    85%           
===================================
  Files        83     83           
  Lines      2371   2371           
  Branches    346    347    +1     
===================================
+ Hits       2024   2026    +2     
+ Misses      244    242    -2     
  Partials    103    103           
Flag Coverage Δ
unittests 85% <100%> (+<1%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
.../ImageSharp.Web/Middleware/ImageSharpMiddleware.cs 83% <100%> (ø)
...harp.Web/Middleware/ImageSharpMiddlewareOptions.cs 93% <100%> (ø)

... and 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@JimBobSquarePants JimBobSquarePants merged commit 67e82ab into main Apr 5, 2023
@JimBobSquarePants JimBobSquarePants deleted the js/critical-fix-decoder-options branch April 5, 2023 14:02
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.

1 participant