From 7f68f91d63ca38cc7876597493e2ca116ccdf4f1 Mon Sep 17 00:00:00 2001 From: nhz2 Date: Fri, 7 Nov 2025 17:07:39 -0500 Subject: [PATCH] Deprecate internal `ZstdCompressor` constructor --- src/compression.jl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/compression.jl b/src/compression.jl index ee518ea..fed1b98 100644 --- a/src/compression.jl +++ b/src/compression.jl @@ -94,6 +94,11 @@ function ZstdCompressor(; ) end +function ZstdCompressor(cstream, level) + Base.depwarn("ZstdCompressor(cstream, level) is deprecated, use the keyword argument constructor ZstdCompressor(; level=...) instead", :ZstdCompressor) + ZstdCompressor(cstream, level, Int32(0), LibZstd.ZSTD_e_continue) +end + """ ZstdFrameCompressor(;level=$(DEFAULT_COMPRESSION_LEVEL))