Add warning for people that upgrade to newer versions

If someone used something like lein-ancient to upgrade their libraries,
they might not realise that re-frame-trace has been renamed to
re-frame-10x. This commit will log a warning every time it is loaded, to
tell people that they should use the new 10x version.
This commit is contained in:
Daniel Compton 2018-02-20 14:24:35 +13:00
parent ba88153e09
commit 92227465e8

View File

@ -5,6 +5,7 @@
;; Use this namespace with the :preloads compiler option to perform the necessary setup for enabling tracing:
;; {:compiler {:preloads [day8.re-frame.trace.preload] ...}}
(js/console.warn "re-frame-trace has been renamed to re-frame-10x: (https://clojars.org/day8.re-frame/re-frame-10x). Update to newer versions of this library by using the `day8.re-frame/re-frame-10x` artifact ID. Thanks!")
(rf/clear-subscription-cache!)
(trace/init-db!)
(defonce _ (trace/init-tracing!))