Skip to content

Add Zlib codec, CRC32Checksum and FallbackTextDecoder (v1.11.0) - #18

Merged
rickhohler merged 1 commit into
mainfrom
feature/zlib-codec-and-text-decoding
Oct 24, 2026
Merged

rickhohler merged 1 commit into
mainfrom
feature/zlib-codec-and-text-decoding

Conversation

@rickhohler

Copy link
Copy Markdown
Collaborator
  • Zlib/ZlibError: one public zlib binding (import zlib) for zlib, gzip and
    raw DEFLATE framing selected by window bits, plus Zlib.Framing. Streams
    are heap-allocated, input is fed in chunks, and truncated or corrupt
    input throws instead of returning partial output.
  • Gzip is rebuilt on Zlib; the @_silgen_name proxy, hand-written z_stream
    layout and private CRC table are removed. Gzip's API and output bytes are
    unchanged.
  • CRC32Checksum: UInt32 CRC-32 with incremental update; CRC32Strategy uses it.
  • FallbackTextDecoder: decode bytes of unknown encoding by trying
    US-ASCII, UTF-8, Mac OS Roman and Windows-1252, stripping control
    characters except newlines and tabs. Callers add their own
    TextDecodingStrategy before or after the defaults, directly or through
    TextDecoderRegistry. Data.decodedText(using:) is the convenience entry.
  • DesignAlgorithmsKit.version is 1.11.0; README and CHANGELOG updated.
  • 343 tests pass; builds for macOS, iOS, tvOS and watchOS.

🤖 Generated with Claude Code

- Zlib/ZlibError: one public zlib binding (import zlib) for zlib, gzip and
  raw DEFLATE framing selected by window bits, plus Zlib.Framing. Streams
  are heap-allocated, input is fed in chunks, and truncated or corrupt
  input throws instead of returning partial output.
- Gzip is rebuilt on Zlib; the @_silgen_name proxy, hand-written z_stream
  layout and private CRC table are removed. Gzip's API and output bytes are
  unchanged.
- CRC32Checksum: UInt32 CRC-32 with incremental update; CRC32Strategy uses it.
- FallbackTextDecoder: decode bytes of unknown encoding by trying
  US-ASCII, UTF-8, Mac OS Roman and Windows-1252, stripping control
  characters except newlines and tabs. Callers add their own
  TextDecodingStrategy before or after the defaults, directly or through
  TextDecoderRegistry. Data.decodedText(using:) is the convenience entry.
- DesignAlgorithmsKit.version is 1.11.0; README and CHANGELOG updated.
- 343 tests pass; builds for macOS, iOS, tvOS and watchOS.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@rickhohler
rickhohler merged commit ea49f64 into main Oct 24, 2026
@rickhohler
rickhohler deleted the feature/zlib-codec-and-text-decoding branch October 24, 2026 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant