We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
:edn/readers
1 parent 4ddab41 commit 2629e5dCopy full SHA for 2629e5d
CHANGELOG.md
@@ -2,9 +2,7 @@
2
3
## Added
4
5
-## Fixed
6
-
7
-## Changed
+- Specify edn tag reader functions with `:edn/readers`
8
9
# 1.4.80 (2023-08-30 / d352b27)
10
@@ -77,4 +75,4 @@
77
75
78
76
## Changed
79
80
-* Replaced `kitchen-async` dependency with `mhuebert/kitchen-async`, which is the same lib with a fixed version on Clojars
+* Replaced `kitchen-async` dependency with `mhuebert/kitchen-async`, which is the same lib with a fixed version on Clojars
src/lambdaisland/fetch/edn.cljs
@@ -12,4 +12,7 @@
12
13
(defmethod fetch/decode-body :edn [_ bodyp opts]
14
(p/let [text (j/call bodyp :text)]
15
- (edn/read-string text)))
+ (edn/read-string (cond-> {}
16
+ (:edn/readers opts)
17
+ (assoc :readers (:edn/readers opts)))
18
+ text)))
0 commit comments