diff --git a/CHANGELOG.md b/CHANGELOG.md index 4a7e0e9..c4eb6f0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ This project uses [**Break Versioning**](https://www.taoensso.com/break-versioni # `v3.5.0-RC1` (2024-10-28) -- 📦 **Dependency**: available [on Clojars](https://clojars.org/com.taoensso/nippy/versions/3.5.0-RC1) +- **Dependency**: [on Clojars](https://clojars.org/com.taoensso/nippy/versions/3.5.0-RC1) - **Versioning**: [Break Versioning](https://www.taoensso.com/break-versioning) This is a **non-breaking maintenance release** that updates dependencies and includes read support for more native array types to be introduced in a future v3.6 release. @@ -36,8 +36,8 @@ As always: # `v3.4.2` (2024-05-26) -> **Dep**: Nippy is [on Clojars](https://clojars.org/com.taoensso/nippy/versions/3.4.2). -> **Versioning**: Nippy uses [Break Versioning](https://www.taoensso.com/break-versioning). +- **Dependency**: [on Clojars](https://clojars.org/com.taoensso/nippy/versions/3.4.2) +- **Versioning**: [Break Versioning](https://www.taoensso.com/break-versioning) ⚠️ This release addresses a [**security vulnerability**](https://github.com/taoensso/nippy/security/advisories/GHSA-vw78-267v-588h) in Nippy's upstream compression library and is **recommended for all existing users**. diff --git a/README.md b/README.md index 2c24596..3c955c2 100644 --- a/README.md +++ b/README.md @@ -118,8 +118,8 @@ Licensed under [EPL 1.0](LICENSE.txt) (same as Clojure). -[Codox docs]: https://taoensso.github.io/nippy/ -[cljdoc docs]: https://cljdoc.org/d/com.taoensso/nippy/ +[Codox docs]: https://taoensso.github.io/nippy/ +[cljdoc docs]: https://cljdoc.org/d/com.taoensso/nippy/CURRENT/api/taoensso.nippy [Clojars SVG]: https://img.shields.io/clojars/v/com.taoensso/nippy.svg [Clojars URL]: https://clojars.org/com.taoensso/nippy diff --git a/project.clj b/project.clj index e019b49..95e5026 100644 --- a/project.clj +++ b/project.clj @@ -18,7 +18,7 @@ :profiles {;; :default [:base :system :user :provided :dev] :provided {:dependencies [[org.clojure/clojure "1.11.3"]]} - :c1.12 {:dependencies [[org.clojure/clojure "1.12.0-alpha12"]]} + :c1.12 {:dependencies [[org.clojure/clojure "1.12.0"]]} :c1.11 {:dependencies [[org.clojure/clojure "1.11.3"]]} :c1.10 {:dependencies [[org.clojure/clojure "1.10.1"]]} :c1.9 {:dependencies [[org.clojure/clojure "1.9.0"]]} diff --git a/src/taoensso/nippy.clj b/src/taoensso/nippy.clj index b74ef6c..939813c 100644 --- a/src/taoensso/nippy.clj +++ b/src/taoensso/nippy.clj @@ -1352,7 +1352,7 @@ id-byte-array-md (read-bytes in (read-md-count in)) id-byte-array-lg (read-bytes in (read-lg-count in))))) -(defmacro ^:private read-array [in thaw-type array array-type] +(defmacro ^:private read-array [in thaw-type array-type array] (let [thawed-sym (with-meta 'thawed-sym {:tag thaw-type}) array-sym (with-meta 'array-sym {:tag array-type})] `(let [~array-sym ~array] @@ -1607,14 +1607,14 @@ id-byte-array-md (read-bytes in (read-md-count in)) id-byte-array-lg (read-bytes in (read-lg-count in)) - id-long-array-lg (read-array in long (long-array (read-lg-count in)) "[J") - id-int-array-lg (read-array in int (int-array (read-lg-count in)) "[I") + id-long-array-lg (read-array in long "[J" (long-array (read-lg-count in))) + id-int-array-lg (read-array in int "[I" (int-array (read-lg-count in))) - id-double-array-lg (read-array in double (double-array (read-lg-count in)) "[D") - id-float-array-lg (read-array in float (float-array (read-lg-count in)) "[F") + id-double-array-lg (read-array in double "[D" (double-array (read-lg-count in))) + id-float-array-lg (read-array in float "[F" (float-array (read-lg-count in))) - id-string-array-lg (read-array in String (make-array String (read-lg-count in)) "[Ljava.lang.String;") - id-object-array-lg (read-array in Object (object-array (read-lg-count in)) "[Ljava.lang.Object;") + id-string-array-lg (read-array in String "[Ljava.lang.String;" (make-array String (read-lg-count in))) + id-object-array-lg (read-array in Object "[Ljava.lang.Object;" (object-array (read-lg-count in))) id-str-0 "" id-str-sm* (read-str in (read-sm-count* in))