Skip to content

Commit 2629e5d

Browse files
committed
Specify edn tag reader functions with :edn/readers
1 parent 4ddab41 commit 2629e5d

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

CHANGELOG.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
## Added
44

5-
## Fixed
6-
7-
## Changed
5+
- Specify edn tag reader functions with `:edn/readers`
86

97
# 1.4.80 (2023-08-30 / d352b27)
108

@@ -77,4 +75,4 @@
7775

7876
## Changed
7977

80-
* Replaced `kitchen-async` dependency with `mhuebert/kitchen-async`, which is the same lib with a fixed version on Clojars
78+
* Replaced `kitchen-async` dependency with `mhuebert/kitchen-async`, which is the same lib with a fixed version on Clojars

src/lambdaisland/fetch/edn.cljs

+4-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,7 @@
1212

1313
(defmethod fetch/decode-body :edn [_ bodyp opts]
1414
(p/let [text (j/call bodyp :text)]
15-
(edn/read-string text)))
15+
(edn/read-string (cond-> {}
16+
(:edn/readers opts)
17+
(assoc :readers (:edn/readers opts)))
18+
text)))

0 commit comments

Comments
 (0)