taoensso / nippy

The fastest serialization library for Clojure
https://www.taoensso.com/nippy
Eclipse Public License 1.0
1.04k stars 60 forks source link

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

Closed Frozenlock closed 4 months ago

Frozenlock commented 4 months ago

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 4 months ago

@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 4 months ago

Lightning fast! Thanks to you! :pray:

ptaoussanis commented 4 months ago

Closing, v3.4.0-RC2 is now on Clojars 👍

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