Skip to content

Commit 8cb96f6

Browse files
committed
Fixed JS version bug caused by Conn rewrite
1 parent 9d46481 commit 8cb96f6

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# WIP
2+
3+
- Fixed JS version bug caused by Conn rewrite
4+
15
# 1.6.0
26

37
- [ BREAKING ] Implement Conn as a single atom with extend-clj

script/test_all.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
set -o nounset -o pipefail
33
cd "`dirname $0`/.."
44

5-
./script/test_clj.sh
6-
./script/test_cljs.sh
7-
./script/test_js.sh
8-
./script/test_datomic.sh
5+
EXIT=0
6+
./script/test_clj.sh || EXIT=$((EXIT + $?))
7+
./script/test_cljs.sh || EXIT=$((EXIT + $?))
8+
./script/test_js.sh || EXIT=$((EXIT + $?))
9+
./script/test_datomic.sh || EXIT=$((EXIT + $?))
10+
exit $EXIT

src/datascript/js.cljs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
(let [entities (entities->clj entities)
128128
report (-> (conn/-transact! conn entities tx-meta)
129129
tx-report->js)]
130-
(doseq [[_ callback] @(:listeners (meta conn))]
130+
(doseq [[_ callback] (:listeners @(:atom conn))]
131131
(callback report))
132132
report))
133133

@@ -140,7 +140,7 @@
140140
(d/datoms db :eavt)))
141141
:tx_meta tx-meta }]
142142
(reset! conn db)
143-
(doseq [[_ callback] @(:listeners (meta conn))]
143+
(doseq [[_ callback] (:listeners @(:atom conn))]
144144
(callback report))
145145
db))
146146

0 commit comments

Comments
 (0)