v3.4.0-RC1: zstd cannot be decompressed without specifying the compressor
Frozenlock opened this issue ยท 3 comments
Frozenlock commented
This appears to be a bug, as thawing from all the other compressors works without specifying anything.
(-> (nippy/freeze-to-string "test" {:compressor nippy/lz4-compressor}) (nippy/thaw-from-string))
;=> "test"
(-> (nippy/freeze-to-string "test" {:compressor nippy/lz4hc-compressor}) (nippy/thaw-from-string))
;=> "test"
(-> (nippy/freeze-to-string "test" {:compressor nippy/lzma2-compressor}) (nippy/thaw-from-string))
; => "test"
; -------
(-> (nippy/freeze-to-string "test" {:compressor nippy/zstd-compressor}) (nippy/thaw-from-string))
Execution error (ExceptionInfo) at taoensso.nippy/get-auto-compressor (nippy.clj:1712).
Unrecognized :auto compressor id: :zstd
(-> (nippy/freeze-to-string "test" {:compressor nippy/zstd-compressor}) (nippy/thaw-from-string {:compressor nippy/zstd-compressor}))
;=> "test"
ptaoussanis commented
@Frozenlock Thanks for reporting the bug ๐
I've just pushed a fix to master, and will aim to cut RC2 tomorrow.
Really sorry about that!
Frozenlock commented
Lightning fast! Thanks to you! ๐
ptaoussanis commented
Closing, v3.4.0-RC2 is now on Clojars ๐
Thanks again for the report, and apologies for the trouble!