diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c64b6e..564671a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog # +## Version 7.0.437 + +Date: 2022-02-21 + +- Make the `bind` function behave as it should behave (like bind and + not being `then` alias). **This is technically a breaking change**, + the `bind` function should have been implemented in terms of `bind` + operation and not be an alias for `then`. + ## Version 6.1.436 Date: 2022-02-16 diff --git a/build.clj b/build.clj index 8f3dfd1..aae5c0a 100644 --- a/build.clj +++ b/build.clj @@ -5,7 +5,7 @@ [cljs.build.api :as api])) (def lib 'funcool/promesa) -(def version (format "6.1.%s" (b/git-count-revs nil))) +(def version (format "7.0.%s" (b/git-count-revs nil))) (def class-dir "target/classes") (def basis (b/create-basis {:project "deps.edn"})) (def jar-file (format "target/%s-%s.jar" (name lib) version)) diff --git a/doc/user-guide.md b/doc/user-guide.md index 9f234e8..be6862f 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 "6.1.436"] +[funcool/promesa "7.0.437"] ``` deps.edn: ```clojure -funcool/promesa {:mvn/version "6.1.436"} +funcool/promesa {:mvn/version "7.0.437"} ``` 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 18e3147..eda4646 100644 --- a/src/promesa/core.cljc +++ b/src/promesa/core.cljc @@ -156,11 +156,10 @@ (pt/-then p f executor))) (defn bind - "A convenient alias for `then`." ([p f] - (pt/-then p f)) + (pt/-bind p f)) ([p f executor] - (pt/-then p f executor))) + (pt/-bind p f executor))) (defn then' "Chains a computation `f` (function) to be executed when the promise