diff --git a/CHANGELOG.md b/CHANGELOG.md index 651ee67..01350f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog # +## Version 7.0.444 + +Date: 2022-02-22 + +- REVERT: Make `promise?` to check for IPromise protocol instead of concrete + types. Because the impl was wrong. + + ## Version 7.0.443 Date: 2022-02-22 diff --git a/doc/user-guide.md b/doc/user-guide.md index c00ef2a..b90c762 100644 --- a/doc/user-guide.md +++ b/doc/user-guide.md @@ -9,13 +9,13 @@ A promise library for Clojure and ClojureScript. Leiningen: ```clojure -[funcool/promesa "7.0.443"] +[funcool/promesa "7.0.444"] ``` deps.edn: ```clojure -funcool/promesa {:mvn/version "7.0.443"} +funcool/promesa {:mvn/version "7.0.444"} ``` On the JVM platform _promesa_ is built on top of *completable futures* diff --git a/src/promesa/core.cljc b/src/promesa/core.cljc index bae6da4..eda4646 100644 --- a/src/promesa/core.cljc +++ b/src/promesa/core.cljc @@ -92,7 +92,8 @@ (defn promise? "Return true if `v` is a promise instance." [v] - (satisfies? pt/IPromise v)) + #?(:clj (instance? CompletionStage v) + :cljs (instance? impl/*default-promise* v))) (defn deferred? "Return true if `v` is a promise instance (alias to `promise?`."