From 9a5b67940944f21fe56a5d483029d29d567a1029 Mon Sep 17 00:00:00 2001 From: radar roark <122068506+xeubie@users.noreply.github.com> Date: Thu, 18 Jun 2026 15:22:07 -0400 Subject: [PATCH] bump xitdb and do small cleanup --- deps.edn | 2 +- src/xitdb/util/conversion.clj | 25 +++---------------------- 2 files changed, 4 insertions(+), 23 deletions(-) diff --git a/deps.edn b/deps.edn index 5adbbf6..6cee079 100644 --- a/deps.edn +++ b/deps.edn @@ -1,6 +1,6 @@ {:paths ["src" "test"] :deps {org.clojure/clojure {:mvn/version "1.12.0"} - io.github.radarroark/xitdb {:mvn/version "0.28.0"}} + io.github.radarroark/xitdb {:mvn/version "0.30.0"}} :aliases {:test {:extra-deps {io.github.cognitect-labs/test-runner diff --git a/src/xitdb/util/conversion.clj b/src/xitdb/util/conversion.clj index 8934686..1774bc6 100644 --- a/src/xitdb/util/conversion.clj +++ b/src/xitdb/util/conversion.clj @@ -4,8 +4,7 @@ (:import [io.github.radarroark.xitdb Database Database$Bytes Database$Float Database$Int - ReadArrayList ReadLinkedArrayList ReadCountedHashMap ReadCountedHashSet ReadCursor ReadHashMap - ReadHashSet Slot Tag WriteArrayList WriteCountedHashMap WriteCountedHashSet WriteCursor + ReadCursor Slot Slotted Tag WriteArrayList WriteCountedHashMap WriteCountedHashSet WriteCursor WriteHashMap WriteHashSet WriteLinkedArrayList] [java.io OutputStream OutputStreamWriter] [java.security DigestOutputStream])) @@ -146,26 +145,8 @@ (validation/lazy-seq? v) (throw (IllegalArgumentException. "Lazy sequences can be infinite and not allowed!")) - ;; we only need to check for the read-only data structures, - ;; because the writeable data structures inherit from them! - - (instance? ReadArrayList v) - (-> ^ReadArrayList v .cursor .slot) - - (instance? ReadLinkedArrayList v) - (-> ^ReadLinkedArrayList v .cursor .slot) - - (instance? ReadHashMap v) - (-> ^ReadHashMap v .cursor .slot) - - (instance? ReadHashSet v) - (-> ^ReadHashSet v .cursor .slot) - - (instance? ReadCountedHashMap v) - (-> ^ReadCountedHashMap v .cursor .slot) - - (instance? ReadCountedHashSet v) - (-> ^ReadCountedHashSet v .cursor .slot) + (instance? Slotted v) + (.slot ^Slotted v) (map? v) (do