Skip to content

Add Zstandard compression support#4

Merged
making merged 1 commit intodevelopfrom
add-zstd-support
Apr 13, 2026
Merged

Add Zstandard compression support#4
making merged 1 commit intodevelopfrom
add-zstd-support

Conversation

@making
Copy link
Copy Markdown
Owner

@making making commented Apr 13, 2026

Summary

  • Add ZstdCompressor using com.github.luben:zstd-jni 1.5.7-7 as a third compression algorithm alongside Brotli and Gzip
  • New Mojo parameters: zstdEnabled (default true) and zstdLevel (default 22, libzstd's maximum "ultra" mode)
  • Spring Framework's EncodedResourceResolver does not yet serve .zst files (Add zstd content coding support to EncodedResourceResolver spring-projects/spring-framework#36647). README documents that Spring users should set zstdEnabled=false until that change is released
  • New ZstdCompressorTest and an src/it/zstd-enabled integration test; existing IT verify scripts updated to assert .zst files

Test plan

  • `./mvnw spring-javaformat:apply test` — 22/22 unit tests pass
  • `./mvnw spring-javaformat:apply verify` — 5/5 integration tests pass (zstd-enabled, basic-compress, custom-extensions, skip-enabled, spring-boot)

🤖 Generated with Claude Code

Adds a third compression algorithm alongside Brotli and Gzip via the
zstd-jni library. Zstd is enabled by default at level 22 (maximum).
Spring Framework's EncodedResourceResolver does not yet serve .zst
files (spring-projects/spring-framework#36647), so users serving via
Spring's resource chain should set zstdEnabled=false until that change
is released.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@making making merged commit 212fefc into develop Apr 13, 2026
2 checks passed
@making making deleted the add-zstd-support branch April 13, 2026 12:11
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