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

Replace PngCrcChunkHandling #2786

Merged
merged 3 commits into from
Aug 12, 2024
Merged

Replace PngCrcChunkHandling #2786

merged 3 commits into from
Aug 12, 2024

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 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

This is a rework of #2589 for V4 that generalizes the segment error handling allowing us to specify rules during identification.

  • Removes PngCrcChunkHandling from PngDecoderOptions
  • Adds SegmentIntegrityHandling to DecoderOptions

PNG is currently the only format that uses these properties, but others can be migrated when required.

@JimBobSquarePants JimBobSquarePants added API breaking Signifies a binary breaking change. labels Aug 1, 2024
@JimBobSquarePants JimBobSquarePants added this to the v4.0.0 milestone Aug 1, 2024
@Erik-White
Copy link

Excellent, this will be very useful!

@JimBobSquarePants JimBobSquarePants merged commit 98437a0 into main Aug 12, 2024
5 checks passed
@JimBobSquarePants JimBobSquarePants deleted the js/rework-2589 branch August 12, 2024 00:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API breaking Signifies a binary breaking change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants