Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: klauspost/compress
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.18.2
Choose a base ref
...
head repository: klauspost/compress
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.18.4
Choose a head ref
  • 11 commits
  • 19 files changed
  • 5 contributors

Commits on Dec 1, 2025

  1. Change log

    klauspost authored Dec 1, 2025
    Configuration menu
    Copy the full SHA
    daa180d View commit details
    Browse the repository at this point in the history

Commits on Dec 2, 2025

  1. build(deps): bump the github-actions group with 3 updates (#1118)

    Bumps the github-actions group with 3 updates: [actions/checkout](https://github.com/actions/checkout), [github/codeql-action](https://github.com/github/codeql-action) and [actions/setup-go](https://github.com/actions/setup-go).
    
    
    Updates `actions/checkout` from 5.0.0 to 6.0.0
    - [Release notes](https://github.com/actions/checkout/releases)
    - [Commits](actions/checkout@v5...v6)
    
    Updates `github/codeql-action` from 4.31.2 to 4.31.6
    - [Release notes](https://github.com/github/codeql-action/releases)
    - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
    - [Commits](github/codeql-action@0499de3...fe4161a)
    
    Updates `actions/setup-go` from 6.0.0 to 6.1.0
    - [Release notes](https://github.com/actions/setup-go/releases)
    - [Commits](actions/setup-go@v6...v6.1.0)
    
    ---
    updated-dependencies:
    - dependency-name: actions/checkout
      dependency-version: 6.0.0
      dependency-type: direct:production
      update-type: version-update:semver-major
      dependency-group: github-actions
    - dependency-name: github/codeql-action
      dependency-version: 4.31.6
      dependency-type: direct:production
      update-type: version-update:semver-patch
      dependency-group: github-actions
    - dependency-name: actions/setup-go
      dependency-version: 6.1.0
      dependency-type: direct:production
      update-type: version-update:semver-minor
      dependency-group: github-actions
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Dec 2, 2025
    Configuration menu
    Copy the full SHA
    fbe3b12 View commit details
    Browse the repository at this point in the history
  2. fix(gzhttp): preserve qvalue when extra parameters follow in Accept-E…

    …ncoding (#1116)
    
    parseCoding() reset qvalue to DefaultQValue on every loop iteration,
    causing "gzip;q=0.5;level=6" to incorrectly return qvalue=1.0 instead
    of 0.5.
    
    Move qvalue initialization before the loop.
    
    Signed-off-by: Mathias Bogaert <mathias.bogaert@gmail.com>
    analytically authored Dec 2, 2025
    Configuration menu
    Copy the full SHA
    986a51e View commit details
    Browse the repository at this point in the history

Commits on Jan 1, 2026

  1. build(deps): bump the github-actions group with 2 updates (#1120)

    Bumps the github-actions group with 2 updates: [actions/checkout](https://github.com/actions/checkout) and [github/codeql-action](https://github.com/github/codeql-action).
    
    
    Updates `actions/checkout` from 6.0.0 to 6.0.1
    - [Release notes](https://github.com/actions/checkout/releases)
    - [Commits](actions/checkout@v6...v6.0.1)
    
    Updates `github/codeql-action` from 4.31.6 to 4.31.9
    - [Release notes](https://github.com/github/codeql-action/releases)
    - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
    - [Commits](github/codeql-action@fe4161a...5d4e8d1)
    
    ---
    updated-dependencies:
    - dependency-name: actions/checkout
      dependency-version: 6.0.1
      dependency-type: direct:production
      update-type: version-update:semver-patch
      dependency-group: github-actions
    - dependency-name: github/codeql-action
      dependency-version: 4.31.9
      dependency-type: direct:production
      update-type: version-update:semver-patch
      dependency-group: github-actions
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jan 1, 2026
    Configuration menu
    Copy the full SHA
    bb1ab3b View commit details
    Browse the repository at this point in the history

Commits on Jan 14, 2026

  1. gzhttp: Add zstandard to server handler wrapper (#1121)

    Both gzip and zstd compression are now enabled by default. When a client supports both, zstd is preferred due to its better compression ratio and speed.
    
    Zstd compression is enabled by default alongside gzip. When the client supports both, zstd is preferred because it typically offers better compression ratios and faster decompression.
    
    The server uses `Accept-Encoding` header negotiation to select the best encoding:
    - If client only accepts `gzip` → response is gzip compressed
    - If client only accepts `zstd` → response is zstd compressed
    - If client accepts both with equal qvalues → zstd is used (configurable)
    - If client specifies qvalues (e.g., `gzip;q=1.0, zstd;q=0.5`) → higher qvalue wins
    
    Default zstd settings are conservative for broad compatibility:
    - Level: `SpeedFastest` (1) - maximum speed
    - Window size: 128KB - minimal memory usage
    - Concurrency: 1 - single-threaded per request
    klauspost authored Jan 14, 2026
    2 Configuration menu
    Copy the full SHA
    03de960 View commit details
    Browse the repository at this point in the history

Commits on Jan 16, 2026

  1. Downstream CVE-2025-61728 (#1123)

    * Downstream CVE-2025-61728
    * Use range in benchmark instead
    
    See golang/go#77102
    klauspost authored Jan 16, 2026
    Configuration menu
    Copy the full SHA
    861ca97 View commit details
    Browse the repository at this point in the history
  2. Update README.md

    klauspost authored Jan 16, 2026
    Configuration menu
    Copy the full SHA
    c262ec6 View commit details
    Browse the repository at this point in the history

Commits on Jan 22, 2026

  1. zstd: document concurrency option handling in encoder (#1124)

    * fix: concurrency option handling in encoder
    
    Update concurrency validation and default behavior follow comment of this function
    
    * Correct concurrency validation message
    
    Updated error message to reflect that concurrency must be >= 0 instead of at least 1.
    
    * Clarify comments and error messages in encoder_options.go
    
    * Update comment for WithEncoderConcurrency function
    
    * Fix error message for decoder concurrency option
    ethaizone authored Jan 22, 2026
    Configuration menu
    Copy the full SHA
    4309644 View commit details
    Browse the repository at this point in the history

Commits on Jan 28, 2026

  1. doc: Clarify documentation in readme (#1125)

    Reduce duplication, improve consistency, fix missing language
    zwass authored Jan 28, 2026
    Configuration menu
    Copy the full SHA
    4a36836 View commit details
    Browse the repository at this point in the history

Commits on Feb 2, 2026

  1. build(deps): bump the github-actions group with 3 updates (#1126)

    Bumps the github-actions group with 3 updates: [actions/checkout](https://github.com/actions/checkout), [github/codeql-action](https://github.com/github/codeql-action) and [actions/setup-go](https://github.com/actions/setup-go).
    
    
    Updates `actions/checkout` from 6.0.1 to 6.0.2
    - [Release notes](https://github.com/actions/checkout/releases)
    - [Commits](actions/checkout@v6.0.1...v6.0.2)
    
    Updates `github/codeql-action` from 4.31.9 to 4.32.0
    - [Release notes](https://github.com/github/codeql-action/releases)
    - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
    - [Commits](github/codeql-action@5d4e8d1...b20883b)
    
    Updates `actions/setup-go` from 6.1.0 to 6.2.0
    - [Release notes](https://github.com/actions/setup-go/releases)
    - [Commits](actions/setup-go@v6.1.0...v6.2.0)
    
    ---
    updated-dependencies:
    - dependency-name: actions/checkout
      dependency-version: 6.0.2
      dependency-type: direct:production
      update-type: version-update:semver-patch
      dependency-group: github-actions
    - dependency-name: github/codeql-action
      dependency-version: 4.32.0
      dependency-type: direct:production
      update-type: version-update:semver-minor
      dependency-group: github-actions
    - dependency-name: actions/setup-go
      dependency-version: 6.2.0
      dependency-type: direct:production
      update-type: version-update:semver-minor
      dependency-group: github-actions
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Feb 2, 2026
    Configuration menu
    Copy the full SHA
    0874ab8 View commit details
    Browse the repository at this point in the history

Commits on Feb 5, 2026

  1. zstd: Add ResetWithOptions to encoder/decoder (#1122)

    ## New API Methods
    
    ```
      func (*Encoder) ResetWithOptions(w io.Writer, opts ...EOption) error
      func (*Decoder) ResetWithOptions(r io.Reader, opts ...DOption) error
    
    ```
    
    New Options
    
      // Encoder - clears dictionary
      `WithEncoderDictDelete() EOption`
    
      // Decoder - removes dicts by ID; no args clears all
      `WithDecoderDictDelete(ids ...uint32) DOption`
    
    Option Reset Compatibility
    
      Can be changed with ResetWithOptions:
      - Encoder: WithEncoderCRC, WithEncoderPadding, WithZeroFrames, WithAllLitEntropyCompression, WithNoEntropyCompression, WithSingleSegment, WithEncoderDict, WithEncoderDictRaw, WithEncoderDictDelete
      - Decoder: WithDecoderMaxMemory, WithDecoderMaxWindow, WithDecoderDicts, WithDecoderDictRaw, WithDecoderDictDelete, WithDecodeAllCapLimit, IgnoreChecksum
    
      Cannot be changed with ResetWithOptions:
      - Encoder: WithEncoderConcurrency, WithWindowSize, WithEncoderLevel, WithLowerEncoderMem
      - Decoder: WithDecoderLowmem, WithDecoderConcurrency, WithDecodeBuffersBelow
    klauspost authored Feb 5, 2026
    Configuration menu
    Copy the full SHA
    c03560f View commit details
    Browse the repository at this point in the history
Loading