taoensso/nippy

v3.4.0-RC1: zstd cannot be decompressed without specifying the compressor

Frozenlock opened this issue ยท 3 comments

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"

@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!

Lightning fast! Thanks to you! ๐Ÿ™

Closing, v3.4.0-RC2 is now on Clojars ๐Ÿ‘

Thanks again for the report, and apologies for the trouble!